:root {
  --police-blue:   #3C4E5F;
  --dark-gunmetal: #0e1a2b;
  --yankees-blue:  #243450;
  --light-silver:  #D6D6D6;
  --granite-gray:  #5A5A5A;
  --off-white:     #F0EDE8;
  --white:         #ffffff;
  --red:           #1A6FC4;
  --red-bright:    #4A9FE8;
  --red-glow:      rgba(26, 111, 196, 0.14);
  --cream-dark:    #E8E4DE;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--off-white);
  color: var(--dark-gunmetal);
  line-height: 1.6;
}

/* ─── NAV ──────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 15, 24, 0.98);
  backdrop-filter: blur(10px);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
  border-bottom: 3px solid var(--red);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.logo-img  { height: 60px; width: auto; object-fit: contain; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 10px 26px; border-radius: 2px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--red-bright) !important; }

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--dark-gunmetal);
  background-image: url('hero-bg.png');
  background-size: cover; background-position: center left;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 5% 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,14,24,0.97) 36%, rgba(8,14,24,0.5) 100%);
  z-index: 1;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.04; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='60' height='60' fill='none'/%3E%3Cpath d='M0 60 L60 0' stroke='%23ffffff' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.hero-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 3;
  background: linear-gradient(90deg, var(--red) 0%, var(--police-blue) 60%, transparent 100%);
}
/* Línea roja vertical izquierda */
.hero::after {
  content: ''; position: absolute; left: 5%; top: 20%; bottom: 20%;
  width: 3px; z-index: 3;
  background: linear-gradient(180deg, transparent, var(--red) 30%, var(--red) 70%, transparent);
}

.hero-content { position: relative; z-index: 3; max-width: 720px; padding-left: 28px; }

.hero-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--red-bright);
  margin-bottom: 28px; display: flex; align-items: center; gap: 14px;
}
.hero-eyebrow::before { content: ''; display: block; width: 44px; height: 2px; background: var(--red); }

.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(52px, 8.5vw, 96px);
  font-weight: 700; line-height: 0.95;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--white); margin-bottom: 0;
}
.hero h1 span {
  display: block; font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 400; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.4); margin-bottom: 10px;
}

.hero-redline {
  display: block; width: 90px; height: 4px;
  background: var(--red); margin: 20px 0 28px;
}

.hero-desc {
  font-size: 19px; color: rgba(255,255,255,0.75);
  max-width: 530px; margin-bottom: 44px;
  line-height: 1.85; font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--red); color: var(--white);
  padding: 16px 38px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.85);
  padding: 16px 38px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }

/* ─── STATS ─────────────────────────────────────────── */
.stats-bar {
  background: var(--yankees-blue);
  padding: 42px 5%;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 3px solid var(--red);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stat-item {
  padding: 16px 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 52px; font-weight: 700;
  color: var(--white); letter-spacing: 0.02em;
  line-height: 1; margin-bottom: 8px;
}
/* Solo el número en rojo, el prefijo (+) queda blanco heredado */
.stat-num span { color: var(--red-bright); }
.stat-label {
  font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.45); font-weight: 500;
}

/* ─── SECTIONS COMUNES ───────────────────────────────── */
section { padding: 100px 5%; }

.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::before { content: ''; display: block; width: 34px; height: 2px; background: var(--red); }

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; line-height: 1.05;
  color: var(--dark-gunmetal); margin-bottom: 10px;
}

.section-redline {
  display: block; width: 60px; height: 4px;
  background: var(--red); margin: 14px 0 22px;
}

.section-body {
  font-size: 18px; color: var(--granite-gray);
  max-width: 560px; line-height: 1.9; font-weight: 300;
}

/* ─── MISIÓN ─────────────────────────────────────────── */
.mission-section { background: var(--off-white); }
.mission-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: start; margin-top: 60px;
}
.mission-card {
  background: transparent;
  border: none;
  border-left: 4px solid var(--red);
  padding: 28px 28px 28px 28px; position: relative;
  background: rgba(26,111,196,0.04);
}
.mission-card::before { display: none; }
.mission-card-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.3em;
  color: var(--red); text-transform: uppercase; margin-bottom: 14px;
}
.mission-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--dark-gunmetal); margin-bottom: 14px;
}
.mission-card p { font-size: 15px; color: var(--granite-gray); line-height: 1.9; font-weight: 300; text-align: justify; }

.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: 60px;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-left: 1px solid rgba(0,0,0,0.1);
}
.value-item {
  padding: 32px 28px;
  border-right: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background: transparent;
  position: relative; overflow: hidden;
  transition: background 0.25s;
}
.value-item:hover { background: rgba(18,30,46,0.05); }
.value-item::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.value-item:hover::after { transform: scaleX(1); }
.value-icon {
  width: 40px; height: 40px;
  border: 1.5px solid var(--red);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.value-icon svg { width: 20px; height: 20px; stroke: var(--red); fill: none; stroke-width: 1.5; }
.value-item h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 19px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--dark-gunmetal); margin-bottom: 10px;
}
.value-item p { font-size: 15px; color: var(--granite-gray); line-height: 1.8; font-weight: 300; text-align: justify; }

/* ─── PROGRAMAS ──────────────────────────────────────── */
.programs-section { background: var(--dark-gunmetal); color: var(--white); }
.programs-section .section-eyebrow { color: var(--red-bright); }
.programs-section .section-eyebrow::before { background: var(--red-bright); }
.programs-section .section-title { color: var(--white); }
.programs-section .section-body { color: rgba(255,255,255,0.52); font-size: 18px; }

.programs-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 2px; margin-top: 48px;
  background: rgba(255,255,255,0.04);
}
.program-card {
  background: transparent; padding: 28px 22px;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative; overflow: hidden; transition: background 0.3s; display: flex; flex-direction: column;
}
.program-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.program-card:hover { background: rgba(255,255,255,0.06); }
.program-card:hover::before { transform: scaleX(1); }

.program-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.3em;
  color: var(--red-bright); margin-bottom: 14px;
}
.program-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--white); margin-bottom: 10px; line-height: 1.15;
}
.program-card p {
  font-size: 12px; color: rgba(255,255,255,0.48);
  line-height: 1.75; font-weight: 300; margin-bottom: 18px; flex: 1;
}
.program-tag {
  display: inline-block; font-size: 9px; font-weight: 700; margin-top: auto;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red-bright); border: 1px solid var(--red);
  padding: 4px 10px; border-radius: 1px;
}

@media (max-width: 1100px) {
  .programs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .program-card h3 { letter-spacing: 0.02em; }
}
@media (max-width: 620px) {
  .programs-grid { grid-template-columns: 1fr; }
}

/* ─── EQUIPO ─────────────────────────────────────────── */
.team-section { background: var(--off-white); }
.team-section .section-eyebrow { color: var(--red); }
.team-section .section-eyebrow::before { background: var(--red); }

.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-top: 60px; background: transparent;
}
.team-card { background: var(--white); padding: 36px 32px; text-align: left; border: 1px solid rgba(0,0,0,0.07); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.team-avatar {
  width: 86px; height: 86px; border-radius: 50%;
  background: var(--yankees-blue);
  border: 3px solid var(--red);
  margin: 0 0 22px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-size: 27px; font-weight: 700;
  color: rgba(255,255,255,0.8); letter-spacing: 0.05em;
}
.team-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--dark-gunmetal); margin-bottom: 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.team-card .role {
  font-size: 13px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red); margin-bottom: 16px;
}
.team-card p { font-size: 14px; color: var(--granite-gray); line-height: 1.8; font-weight: 300; text-align: justify; }

/* ─── DONACIÓN ───────────────────────────────────────── */
.donation-section {
  background: linear-gradient(105deg, #0a0f18 0%, var(--yankees-blue) 100%);
  padding: 72px 5%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  border-top: 4px solid var(--red);
  border-bottom: 4px solid var(--red);
  position: relative; overflow: hidden;
}
.donation-text h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 46px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--white); margin-bottom: 12px;
}
.donation-text p { font-size: 18px; color: rgba(255,255,255,0.58); font-weight: 300; }

.btn-donate {
  background: var(--red); color: var(--white);
  padding: 18px 48px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px; white-space: nowrap;
  transition: background 0.2s, transform 0.15s; display: inline-block;
}
.btn-donate:hover { background: var(--red-bright); transform: translateY(-2px); }

/* ─── CONTACTO ───────────────────────────────────────── */
.contact-section { background: var(--dark-gunmetal); color: var(--white); padding: 28px 5%; }
.contact-section .section-eyebrow { color: var(--red-bright); }
.contact-section .section-eyebrow::before { background: var(--red-bright); }
.contact-section .section-title { color: var(--white); }

.contact-desc {
  font-size: 15px; color: rgba(255,255,255,0.45);
  line-height: 1.85; font-weight: 300;
  max-width: 480px; margin-bottom: 40px;
}
.contact-list { display: flex; flex-direction: column; max-width: 480px; }
.contact-detail {
  display: flex; align-items: center; gap: 18px;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.contact-detail:last-child { border-bottom: none; }
.contact-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 15px; height: 15px; }
.contact-icon--mail { background: rgba(231,76,60,0.15); }
.contact-icon--wa   { background: rgba(37,211,102,0.15); }
.contact-icon--loc  { background: rgba(52,152,219,0.15); }
.contact-icon--web  { background: rgba(255,255,255,0.07); }
.contact-detail-text span {
  display: block; font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.28); margin-bottom: 3px;
}
.contact-detail-text strong { font-size: 14px; color: rgba(255,255,255,0.82); font-weight: 300; }

/* ─── FOOTER ─────────────────────────────────────────── */
.social-list { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.social-row  { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.social-row span { font-size: 14px; color: rgba(255,255,255,0.4); font-weight: 300; transition: color 0.2s; }
.social-row:hover span { color: rgba(255,255,255,0.8); }
.social-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: none; }
.ic-fb  { background: none; }
.ic-ig  { background: none; }
.ic-yt  { background: none; }
.ic-web { background: none; }

footer {
  background: #070c14; padding: 62px 5% 32px;
  color: rgba(255,255,255,0.4);
  border-top: 3px solid var(--red);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand p { font-size: 14px; line-height: 1.9; margin-top: 20px; font-weight: 300; max-width: 280px; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.26em;
  text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  font-size: 14px; color: rgba(255,255,255,0.38);
  text-decoration: none; font-weight: 300; transition: color 0.2s;
}
.footer-col ul li a:hover { color: rgba(255,255,255,0.75); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p   { font-size: 13px; font-weight: 300; }
.footer-bottom a   { font-size: 13px; color: rgba(255,255,255,0.4); text-decoration: none; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .mission-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .values-grid   { grid-template-columns: 1fr 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .hero-right    { display: none; }
  .nav-links     { display: none; }
  .stats-bar     { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .hero::after   { display: none; }
  .hero-content  { padding-left: 0; }
}
@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
  section      { padding: 70px 5%; }
  .team-grid   { grid-template-columns: 1fr; }
}

/* ─── CONTACTO GRID ──────────────────────────────────── */
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 70px; align-items: start; margin-top: 10px;
}

/* ─── FORMULARIO EMAIL ───────────────────────────────── */
.contact-form-wrap { padding-top: 8px; }
.contact-form-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--white);
  text-align: center; margin-bottom: 14px;
  padding-bottom: 16px;
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  padding-top: 16px;
}
.contact-form-box { display: flex; flex-direction: column; gap: 6px; }
.cfg { display: flex; flex-direction: column; gap: 2px; }
.cfg label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}
.cfg input, .cfg textarea, .cfg select {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 0 !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: none !important;
  color: var(--white) !important;
  padding: 2px 0;
  font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 300;
  outline: none !important; width: 100%; transition: border-color 0.2s;
}
.cfg textarea {
  background: transparent !important;
  resize: none; height: 64px;
  -webkit-appearance: none;
  box-shadow: none !important;
}
.cfg input:focus,
.cfg textarea:focus,
.cfg select:focus { border-bottom-color: var(--red); }
.cfg input::placeholder,
.cfg textarea::placeholder { color: rgba(255,255,255,0.2); }
.cfg select { appearance: none; cursor: pointer; }
.cfg select option { background: var(--dark-gunmetal); color: var(--white); }
.btn-cf {
  background: var(--red); color: var(--white);
  padding: 12px 32px; font-family: 'Barlow', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s; align-self: flex-start;
  margin-top: 4px;
}
.btn-cf:hover { background: var(--red-bright); transform: translateY(-2px); }

/* ─── WHATSAPP FLOTANTE ──────────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.wa-float svg { width: 30px; height: 30px; }

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}
