/* ===========  Variables & Base  =========== */
:root{
  --bg:#0b0f14;
  --surface:#0f1620;
  --surface-2:#131c28;
  --text:#e6eefc;
  --muted:#9eb0c5;
  --primary:#31d0aa;
  --primary-2:#1ec0f0;
  --accent:#ff6666;
  --card:#0f1722;
  --g1a:#1ec0f0;
  --g1b:#31d0aa;
  --g2a:#2b6ef5;
  --g2b:#0fe3b1;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  background: radial-gradient(1200px 600px at 20% -10%, #112031 0%, transparent 60%), var(--bg);
  color:var(--text);
  line-height:1.6;
}

/* ===========  Layout  =========== */
.container{width:min(1140px, 92vw); margin:0 auto;}

.site-header{
  position:sticky; top:0; z-index:999;
  background:rgba(11,15,20,.7); backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav{display:flex; align-items:center; justify-content:space-between; padding:14px 0;}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:7px}
.brand.small span{font-size:.95rem}
.logo-svg{width:30px; height:30px; fill:var(--primary); stroke:white; stroke-width:1.5}
.menu{display:flex; gap:18px; align-items:center}
.menu a{color:var(--muted); text-decoration:none; font-weight:650; font-size:.99rem}
.menu a:hover{color:var(--text)}
.btn-ghost{padding:6px 12px; border:1px solid rgba(255,255,255,.12); border-radius:12px}


.hero{
  padding:72px 0 24px;
  background-image: linear-gradient( to bottom right, rgba(11,15,20,.55), rgba(11,15,20,.65) ),
    radial-gradient(800px 400px at 90% -10%, rgba(49,208,170,.25), transparent 60%),
    radial-gradient(600px 300px at -10% 0%, rgba(30,192,240,.25), transparent 60%),
    url('assets/ima01.png');
  background-size: auto, auto, auto, cover;
  background-position: center, 90% -10%, -10% 0%, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}

.hero-grid{
  display:grid; grid-template-columns: 1.2fr 1fr; gap:40px; align-items:center;
}
.hero-copy h1{font-size: clamp(1.8rem, 1rem + 3vw, 3rem); line-height:1.1; margin:0 0 10px}
.highlight{background: linear-gradient(90deg, var(--g1a), var(--g1b)); -webkit-background-clip:text; background-clip:text; color:transparent}
.lead{color:var(--muted); font-size:1.1rem; max-width: 58ch}
.hero-cta{display:flex; gap:14px; margin:18px 0 24px}
.btn-primary{background:linear-gradient(90deg, var(--g1a), var(--g1b)); color:#002018; text-decoration:none; padding:10px 16px; border-radius:12px; font-weight:800; box-shadow: var(--shadow)}
.btn-link{color:var(--text); text-decoration:none; font-weight:700}

.stats{display:flex; gap:22px; flex-wrap:wrap}
.stat{background:rgba(255,255,255,.05); padding:12px 14px; border-radius:12px; border:1px solid rgba(255,255,255,.06)}
.stat-value{font-size:1.4rem; font-weight:800; display:block}
.stat-label{color:var(--muted); font-size:.9rem}

.hero-art{display:flex; justify-content:center}
.art-svg{width:min(420px, 90%); height:auto}
.tl-body{fill:#0a1220; stroke:#2c3c55; stroke-width:3}
.tl-red{fill:#ff6b6b}
.tl-yellow{fill:#ffcf66}
.tl-green{fill:#2fe39f}
.glow{filter: drop-shadow(0 0 10px rgba(15,227,177,.8))}
.route{fill:none; stroke:var(--primary); stroke-width:4; stroke-dasharray:6 6; opacity:.9}
.panel{fill:var(--surface); stroke:#263246; stroke-width:2}
.building{fill:#152236}
.road{stroke:#314764; stroke-width:6}
.light-pole{fill:#1f2b3e}
.light-red{fill:#ff6b6b}
.light-yellow{fill:#ffcf66}
.light-green{fill:#2fe39f}
.ambulance{fill:#e6eefc; stroke:#304560; stroke-width:2}
.moving{animation: drive 5s linear infinite}
@keyframes drive{
  0% {transform: translateX(0)}
  50% {transform: translateX(90px)}
  100% {transform: translateX(0)}
}

/* ===========  Sections  =========== */
.section{padding:64px 0}
.section.alt{background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 60%)}
.grid-2{display:grid; grid-template-columns: 1fr 1fr; gap:40px; align-items:center}
.order-2{order:2}
.check{padding-left:18px}
.check li{margin:10px 0}
.note{color:var(--muted); font-size:.95rem}
.card-illustration{background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06); border-radius:16px; padding:12px; box-shadow:var(--shadow)}

.steps{display:grid; grid-template-columns: repeat(4,1fr); gap:18px; margin-top:18px}
.step{background:var(--surface); border:1px solid rgba(255,255,255,.06); border-radius:14px; padding:16px}
.step-icon{font-size:1.4rem}
.tags{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px}
.tag{background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); padding:6px 10px; border-radius:999px; font-weight:700; font-size:.85rem}

.shield{padding-left:18px}
.shield li{margin:10px 0}

.cards{display:grid; grid-template-columns: repeat(4,1fr); gap:18px; margin-top:18px}
.card{background:var(--surface); border:1px solid rgba(255,255,255,.06); border-radius:14px; padding:18px; min-height:120px}

.roadmap{counter-reset: step; list-style:none; padding:0; margin:18px 0 0}
.roadmap li{position:relative; padding-left:42px; margin:16px 0}
.roadmap li::before{
  counter-increment: step;
  content: counter(step);
  position:absolute; left:0; top:0;
  width:28px; height:28px; border-radius:50%;
  background:linear-gradient(90deg, var(--g1a), var(--g1b));
  color:#062620; display:grid; place-items:center; font-weight:800
}

.team{display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:18px}
.member{display:flex; gap:12px; align-items:center; background:var(--surface); border:1px solid rgba(255,255,255,.06); border-radius:14px; padding:14px}
.avatar{
  width:40px; height:40px; display:grid; place-items:center; border-radius:50%;
  background: linear-gradient(90deg, var(--g1a), var(--g1b)); color:#05231f; font-weight:800
}

.accordion details{
  background:var(--surface-2);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:12px 16px; margin:12px 0;
}
.accordion summary{cursor:pointer; font-weight:700}
.accordion p{color:var(--muted); margin:8px 0 0}

.cta{padding:84px 0}
.cta-box{
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px; padding:24px;
  background: radial-gradient(800px 360px at 10% -20%, rgba(49,208,170,.2), transparent 60%), var(--surface);
  text-align:center
}

.site-footer{padding:28px 0; border-top:1px solid rgba(255,255,255,.06)}
.footer-grid{display:flex; justify-content:space-between; align-items:center; gap:20px}
.links a{color:var(--muted); text-decoration:none; margin-right:12px}
.links a:hover{color:var(--text)}

/* ===========  Responsive  =========== */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .steps{grid-template-columns: repeat(2,1fr)}
  .cards{grid-template-columns: repeat(2,1fr)}
  .footer-grid{flex-direction:column; align-items:flex-start}
}
@media (max-width: 560px){
  .steps{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr}
}


/* ===========  Extras for info/razones pages  =========== */
.menu a.active{color:var(--text); text-decoration:underline}
.gallery{display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; margin-top:16px}
.gallery-img{width:100%; height:auto; border-radius:12px; border:1px solid rgba(255,255,255,.08); box-shadow: var(--shadow)}


/* =========== Hero background image =========== */
.hero{
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:url('assets/bg-hero.png') center/cover no-repeat;
  opacity:.25;
  z-index:0;
}
.hero-grid{position:relative; z-index:1}



/* ===========  Video Section  =========== */
.video-section{padding: clamp(2rem, 5vw, 4rem) 0; background: var(--bg-soft, #0b0d14);}
.video-section .video-card{
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  background: #000;
}
.video-section .video-player{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Optional: subtle animated border glow to match highlight color if defined */
@media (prefers-reduced-motion: no-preference){
  .video-section .video-card::after{
    content:"";
    position:absolute; inset:0;
    pointer-events:none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 0 0 0 rgba(255,0,0,0);
    animation: pulseGlow 6s ease-in-out infinite;
  }
  @keyframes pulseGlow{
    0%,100%{ box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 0 40px 0 rgba(255,70,70,.14); }
    50%{ box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 60px 0 rgba(255,70,70,.22); }
  }
}



/* ===========  Video Section (dos columnas)  =========== */
.video-section.with-copy{
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  background: var(--bg, #0a0c12);
}
.video-grid{
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: clamp(1rem, 4vw, 2rem);
  align-items: center;
}
.video-copy .section-title{ margin: 0 0 .75rem 0; }
.video-copy .lead{ font-size: clamp(1rem, 1.1vw + .7rem, 1.125rem); opacity:.92; margin-bottom: 1rem; }
.video-copy .check{ margin: .5rem 0 1.25rem 0; }
.video-copy .cta-row{ display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; }

.video-section .video-card{
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
  background: #000;
}
.video-section .video-player{
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Full-bleed feel on large screens */
@media (min-width: 1200px){
  .video-section .container{ width:min(1280px, 92vw); }
}

/* Responsive stack */
@media (max-width: 960px){
  .video-grid{ grid-template-columns: 1fr; }
}

/* Subtle glow like accent */
@media (prefers-reduced-motion: no-preference){
  .video-section .video-card::after{
    content:""; position:absolute; inset:0; pointer-events:none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 0 40px rgba(255,70,70,.15);
  }
}

.logo-img{ height:56px; width:auto; display:block; }
@media (max-width:640px){ .logo-img{ height:85px; } }

/* Si quedó el SVG por ahí, lo escondemos */
.logo-svg{ display:none !important; }

.brand a {
  margin-left: 50px; /* lo separa del texto OlaVerdeSoS */
}


/* ===========  Responsive Navbar (added)  =========== */
.nav-toggle{
  display:inline-grid; place-items:center;
  width:42px; height:42px; border-radius:10px;
  border:1px solid rgba(255,255,255,.12); background:transparent; cursor:pointer;
}
.nav-toggle:focus{ outline:2px solid rgba(49,208,170,.35); outline-offset:2px }
.nav-toggle span{
  display:block; width:20px; height:2px; background:var(--text);
  border-radius:2px; position:relative
}
.nav-toggle span::before, .nav-toggle span::after{
  content:""; position:absolute; left:0; width:100%; height:100%;
  background:currentColor; border-radius:2px;
  transition:transform .2s ease, opacity .2s ease
}
.nav-toggle span::before{ top:-6px }
.nav-toggle span::after{ top:6px }
.nav-toggle[aria-expanded="true"] span{ background:transparent }
.nav-toggle[aria-expanded="true"] span::before{ transform:translateY(6px) rotate(45deg) }
.nav-toggle[aria-expanded="true"] span::after{ transform:translateY(-6px) rotate(-45deg) }

/* Drawer (right) */
.mobile-drawer{
  position:fixed; inset:0 0 0 auto;
  width:min(86vw,360px); background:#0c1118; box-shadow:-12px 0 32px rgba(0,0,0,.5);
  transform:translateX(100%); transition:transform .25s ease; z-index:1100;
  display:flex; flex-direction:column; border-left:1px solid rgba(255,255,255,.06);
}
.mobile-drawer__header{
  display:flex; align-items:center; justify-content:space-between;
  padding:1rem; border-bottom:1px solid rgba(255,255,255,.08);
}
.mobile-drawer__links{ display:grid; gap:.25rem; padding:.75rem }
.mobile-drawer__links a{
  padding:.85rem 1rem; border-radius:.8rem; color:var(--text);
  text-decoration:none; font-weight:700; background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
}
.mobile-drawer__links a:hover{ background:rgba(255,255,255,.06) }
.mobile-drawer.open{ transform:translateX(0) }

/* Overlay */
.scrim{
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  backdrop-filter:blur(2px); opacity:0; pointer-events:none;
  transition:opacity .2s ease; z-index:1050
}
.scrim.show{ opacity:1; pointer-events:auto }

/* Hide desktop menu on small screens, show on desktop */
@media (max-width: 960px){
  .menu{ display:none }
}
@media (min-width: 961px){
  .nav-toggle{ display:none }
  .scrim{ display:none }
  .mobile-drawer{ display:none }
}


/* === FIX: Drawer visual styles for production === */
.mobile-drawer{ color:#e5e7eb; background:#0b1220; }
.mobile-drawer__header strong{ color:#e5e7eb; font-weight:800; }
.mobile-drawer__links a{
  display:block !important;
  color:#e5e7eb !important;
  text-decoration:none !important;
  padding:.9rem 1rem !important;
  border-radius:.8rem;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  line-height:1.2;
}
.mobile-drawer__links a:hover{
  background:rgba(255,255,255,.08) !important;
}
.mobile-drawer__links a.cta{
  background:#ef4444 !important;
  border-color:transparent !important;
  color:#fff !important;
}
/* Ensure default <a> rules don't win */
.mobile-drawer .mobile-drawer__links a:link,
.mobile-drawer .mobile-drawer__links a:visited{
  color:#e5e7eb !important;
  text-decoration:none !important;
}


/* === FIX: Asegurar clic del botón hamburguesa por encima de overlays === */
.nav-toggle{ position:relative; z-index:1201; }
