:root{
  --navy:#0f2540;--navy-mid:#152d4a;
  --blue:#88CCFF;--blue-deep:#1a5fb4;--blue-hover:#1450a0;
  --cream:#e8f0fe;--muted:#7a95b8;--border:rgba(136,204,255,0.18);
  --wa-blue:#1a5fb4;--wa-hover:#1450a0;--gold:#FF8C42;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--navy);color:var(--cream);overflow-x:hidden;}
img{display:block;max-width:100%;}
a{color:inherit;text-decoration:none;}

/* ════════════════════════════════════════════
   PANTALLA PRINCIPAL (home)
   ════════════════════════════════════════════ */
#screen-home{display:flex;flex-direction:column;min-height:100dvh;}

/* ── HERO ─────────────────────────────────── */
.home-hero{
  position:relative;
  min-height:100dvh;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  overflow:hidden;
  padding:0.5rem 1.5rem 2rem;
  justify-content:flex-start;
}
.home-video-bg{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;z-index:0;
}
.home-overlay{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(
    170deg,
    rgba(5,12,28,0.88) 0%,
    rgba(7,15,35,0.82) 50%,
    rgba(5,12,28,0.92) 100%
  );
}
.home-content{
  position:relative;z-index:2;
  text-align:center;
  max-width:680px;
  width:100%;
  margin-top:1.5rem;
  animation:fadeUp .7s ease both;
}
@keyframes fadeUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}

.home-logo-row{
  display:flex;align-items:center;justify-content:center;
  gap:.6rem;margin-bottom:2rem;
}
.home-logo-row img{width:80px;height:80px;border-radius:14px;object-fit:cover;}
.home-logo-row span{color:var(--muted);font-size:.88rem;font-weight:600;letter-spacing:.04em;}

.home-eyebrow{
  font-size:.72rem;font-weight:700;
  letter-spacing:.22em;text-transform:uppercase;
  color:var(--blue);margin-bottom:1rem;
  animation:fadeUp .7s .1s ease both;
}

.home-h1{
  color:#fff;
  font-size:clamp(2rem,7vw,3.6rem);
  font-weight:800;line-height:1.1;
  letter-spacing:-.02em;
  margin-bottom:1.2rem;
  animation:fadeUp .7s .18s ease both;
}
.home-h1 span{color:var(--blue);}

.home-desc{
  color:rgba(232,240,254,.75);
  font-size:clamp(1rem,2.5vw,1.15rem);
  line-height:1.7;
  max-width:520px;margin:0 auto 2.2rem;
  animation:fadeUp .7s .26s ease both;
}

.home-cta{
  display:inline-flex;align-items:center;gap:.6rem;
  background:var(--wa-blue);color:#fff;
  font-weight:800;font-size:1.05rem;
  padding:1.05rem 2.4rem;border-radius:50px;
  box-shadow:0 6px 28px rgba(26,95,180,.45);
  transition:background .2s,transform .2s,box-shadow .2s;
  animation:fadeUp .7s .34s ease both;
  text-decoration:none;
}
.home-cta:hover{background:var(--wa-hover);transform:translateY(-2px);box-shadow:0 10px 36px rgba(26,95,180,.55);}

.home-scroll-hint{
  position:absolute;bottom:2rem;left:50%;transform:translateX(-50%);
  z-index:2;background:none;border:none;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:.5rem;
  animation:fadeUp .7s .6s ease both;
}
.home-scroll-hint span{
  color:var(--muted);font-size:.65rem;font-weight:600;
  letter-spacing:.2em;text-transform:uppercase;
}
.home-scroll-arrow{
  width:1px;height:40px;
  background:linear-gradient(to bottom,var(--blue),transparent);
  animation:arrowPulse 2s ease-in-out infinite;
}
@keyframes arrowPulse{0%,100%{opacity:.4;transform:scaleY(1)}50%{opacity:1;transform:scaleY(1.2)}}

/* ── GALERÍA HOME ─────────────────────────── */
.home-gallery{background:#152d4a;padding:4.5rem 1.2rem 5rem;}
.home-gallery-inner{max-width:960px;margin:0 auto;}
.home-gallery-tag{
  font-family:inherit;font-size:.7rem;font-weight:700;
  letter-spacing:.22em;text-transform:uppercase;
  color:#88CCFF;margin-bottom:.8rem;
  display:flex;align-items:center;gap:.7rem;
}
.home-gallery-tag::before{content:'';display:block;width:24px;height:1px;background:#88CCFF;}
.home-gallery-title{color:#fff;font-size:clamp(1.4rem,3.5vw,2rem);font-weight:800;margin-bottom:.4rem;}
.home-gallery-sub{color:var(--muted);font-size:.9rem;margin-bottom:2rem;}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:.6rem;
}
@media(max-width:768px){.gallery-grid{grid-template-columns:repeat(3,1fr);}}
@media(max-width:520px){.gallery-grid{grid-template-columns:repeat(2,1fr);}}

/* celda compartida imagen/video */
.g-wrap{position:relative;overflow:hidden;border-radius:10px;cursor:default;}
.g-wrap img,.g-wrap video.g-thumb{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;filter:brightness(.82);transition:filter .35s,transform .35s;}
.g-wrap:hover img,.g-wrap:hover video.g-thumb{filter:brightness(1.05);transform:scale(1.04);}
.g-play-btn{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:2;}
.g-play-btn svg{width:48px;height:48px;background:rgba(255,255,255,.18);border-radius:50%;padding:11px;backdrop-filter:blur(4px);transition:background .2s,transform .2s;filter:drop-shadow(0 2px 8px rgba(0,0,0,.5));}
.g-wrap:hover .g-play-btn svg{background:rgba(255,255,255,.30);transform:scale(1.12);}
.g-caption{position:absolute;bottom:0;left:0;right:0;padding:.55rem .75rem .5rem;background:linear-gradient(transparent,rgba(4,10,22,.82));color:rgba(232,240,254,.90);font-size:.68rem;font-weight:700;letter-spacing:.10em;text-transform:uppercase;line-height:1.2;pointer-events:none;}

/* ── SELECTOR DE SERVICIOS (en home) ──────── */
.home-selector{background:#0f2540;padding:5rem 1.2rem 4rem;border-top:1px solid var(--border);}
.home-selector-inner{max-width:960px;margin:0 auto;}
.home-selector-tag{font-size:.7rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:#88CCFF;margin-bottom:.8rem;display:flex;align-items:center;gap:.7rem;}
.home-selector-tag::before{content:'';display:block;width:24px;height:1px;background:#88CCFF;}
.home-selector-title{color:#fff;font-size:clamp(1.4rem,3.5vw,2rem);font-weight:800;margin-bottom:.4rem;}
.home-selector-sub{color:var(--muted);font-size:.95rem;margin-bottom:2.2rem;max-width:520px;}

.sel-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:.85rem;
  width:100%;max-width:960px;margin:0 auto;
}
@media(max-width:620px){.sel-grid{grid-template-columns:repeat(2,1fr);gap:.6rem;}}

.sel-card{background:rgba(255,255,255,.04);border:1px solid var(--border);border-radius:16px;padding:1.3rem 1rem 1.1rem;cursor:pointer;display:flex;flex-direction:column;align-items:center;text-align:center;gap:.55rem;transition:background .22s,border-color .22s,transform .22s,box-shadow .22s;}
.sel-card:hover{background:rgba(136,204,255,.10);border-color:rgba(136,204,255,.50);transform:translateY(-3px);box-shadow:0 8px 28px rgba(136,204,255,.14);}
.sel-card:active{transform:scale(.97);}
.sel-card-icon{width:54px;height:54px;border-radius:50%;background:rgba(136,204,255,.11);display:flex;align-items:center;justify-content:center;font-size:1.65rem;transition:background .2s;}
.sel-card:hover .sel-card-icon{background:rgba(136,204,255,.22);}
.sel-card-name{color:#ddeeff;font-size:.82rem;font-weight:700;line-height:1.3;}
.sel-card-hint{color:#e05530;font-size:.72rem;line-height:1.35;font-weight:600;}

.home-direct-contact{
  text-align:center;margin-top:2rem;
  color:#556677;font-size:.78rem;font-weight:600;
  cursor:pointer;background:none;border:none;
  transition:color .2s;letter-spacing:.02em;
  display:inline-flex;align-items:center;gap:.35rem;
}
.home-direct-contact:hover{color:var(--muted);}

/* ── SEO Y FOOTER ─────────────────────────── */
.svc-seo{background:#060b16;padding:4rem 1.5rem;border-top:1px solid rgba(136,204,255,.08);}
.svc-seo-inner{max-width:900px;margin:0 auto;}
.svc-seo h2{color:#fff;font-size:clamp(1.2rem,3vw,1.6rem);font-weight:700;margin-bottom:1rem;line-height:1.3;}
.svc-seo p{color:var(--muted);font-size:.9rem;line-height:1.8;margin-bottom:1rem;}
.svc-seo strong{color:rgba(232,240,254,.75);font-weight:600;}
.svc-seo-zones{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:1.2rem;}
.svc-seo-zone{background:rgba(136,204,255,.07);border:1px solid rgba(136,204,255,.14);border-radius:50px;padding:.3rem .8rem;font-size:.75rem;color:var(--muted);text-decoration:none;transition:background .2s,border-color .2s,color .2s;}
a.svc-seo-zone:hover{background:rgba(136,204,255,.16);border-color:rgba(136,204,255,.38);color:var(--cream);}

.svc-footer{background:#000;color:rgba(255,255,255,.55);text-align:center;padding:1rem;font-size:.82rem;border-top:1px solid rgba(255,255,255,.05);}
.svc-footer a{color:rgba(255,255,255,.45);}
.svc-footer a:hover{color:#fff;}

/* ════════════════════════════════════════════
   PÁGINA DE SERVICIO (emergencias/*.html)
   ════════════════════════════════════════════ */
.svc-video-section{position:relative;min-height:100dvh;display:flex;flex-direction:column;overflow:hidden;}
.svc-video-bg{display:none !important;}
.svc-video-overlay{position:absolute;inset:0;z-index:1;background:#0f2540 !important;}

.svc-navbar{position:relative;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;max-width:960px;width:100%;margin:0 auto;}
.svc-back-btn{display:flex;align-items:center;gap:.4rem;color:var(--muted);font-size:.82rem;font-weight:600;cursor:pointer;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);border-radius:50px;padding:.45rem 1rem;transition:color .2s,background .2s;text-decoration:none;}
.svc-back-btn:hover{color:#fff;background:rgba(255,255,255,.09);}
.svc-logo-row{display:flex;align-items:center;gap:.5rem;}
.svc-logo-row img{width:48px;height:48px;border-radius:10px;object-fit:cover;}
.svc-logo-row span{color:var(--muted);font-size:.82rem;font-weight:600;}

.svc-explanation{position:relative;z-index:5;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2.5rem 1.5rem 4rem;max-width:760px;margin:0 auto;width:100%;text-align:center;}
.svc-icon-circle{width:72px;height:72px;border-radius:50%;background:rgba(136,204,255,.12);border:1px solid rgba(136,204,255,.28);display:flex;align-items:center;justify-content:center;font-size:2rem;margin-bottom:1.4rem;animation:fadeUp .5s ease both;}
.svc-title{color:#fff;font-size:clamp(1.6rem,5vw,2.6rem);font-weight:800;line-height:1.15;margin-bottom:.9rem;letter-spacing:-.02em;animation:fadeUp .5s .08s ease both;}
.svc-exp-content{animation:fadeUp .5s .16s ease both;width:100%;}
.svc-exp-content p{color:rgba(232,240,254,.80);font-size:clamp(1rem,2.5vw,1.12rem);line-height:1.75;margin-bottom:1rem;}
.svc-exp-content ul{color:rgba(232,240,254,.75);font-size:1rem;line-height:1.7;list-style:none;margin-bottom:1rem;text-align:left;display:inline-block;}
.svc-exp-content ul li::before{content:'✓ ';color:#e05530;font-weight:700;}
.svc-exp-content strong{color:#fff;font-weight:700;}
.svc-tip-box{background:rgba(136,204,255,.07);border:1px solid rgba(136,204,255,.18);border-radius:12px;padding:1rem 1.3rem;margin:1.2rem 0 2rem;text-align:left;width:100%;}
.svc-tip-box strong{display:block;color:var(--blue);font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.45rem;}
.svc-tip-box p{color:rgba(232,240,254,.70);font-size:.9rem!important;line-height:1.6!important;margin:0!important;}
.svc-exp-content h2{color:#88CCFF!important;}
.svc-exp-content ul li strong{color:var(--gold);font-weight:700;}
.svc-exp-content p strong{color:#fff;font-weight:700;}

.svc-cta-inline{display:inline-flex;align-items:center;gap:.55rem;background:#e05530 !important;color:#fff;font-weight:800;font-size:1rem;padding:1rem 2.2rem;border-radius:50px;transition:background .2s,transform .2s,box-shadow .2s;box-shadow:0 4px 20px rgba(224,85,48,0.35) !important;animation:fadeUp .5s .24s ease both;text-decoration:none;}
.svc-cta-inline:hover{background:#c44420 !important;transform:translateY(-2px);box-shadow:0 8px 28px rgba(224,85,48,0.50) !important;}

.svc-gallery{background:#152d4a;padding:4rem 1.2rem 5rem;}
.svc-gallery-inner{max-width:960px;margin:0 auto;}
.svc-gallery-title{color:#fff;font-size:clamp(1.3rem,3.5vw,1.8rem);font-weight:700;margin-bottom:.5rem;text-align:center;}
.svc-gallery-sub{color:var(--muted);font-size:.9rem;text-align:center;margin-bottom:2rem;}
.svc-gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem;}
@media(max-width:768px){.svc-gallery-grid{grid-template-columns:repeat(3,1fr);}}
@media(max-width:520px){.svc-gallery-grid{grid-template-columns:repeat(2,1fr);}}

/* ── LIGHTBOX (desactivado, estilos base) ─── */
.lightbox{display:none;}

/* ── BOTÓN WA FIJO ────────────────────────── */
#wa-fixed{display:none;position:fixed;bottom:1.5rem;right:1.5rem;z-index:999;align-items:center;gap:.55rem;background:#e05530 !important;color:#fff;font-weight:700;font-size:.88rem;padding:.8rem 1.3rem;border-radius:50px;box-shadow:0 6px 24px rgba(224,85,48,0.40) !important;cursor:pointer;border:none;transition:background .2s,transform .2s,box-shadow .2s;text-decoration:none;}
#wa-fixed.visible{display:flex;}
#wa-fixed:hover{background:#c44420 !important;transform:translateY(-2px);box-shadow:0 10px 32px rgba(224,85,48,0.55) !important;}
@media(max-width:520px){
  #wa-fixed{font-size:0;width:54px;height:54px;padding:0;border-radius:50%;justify-content:center;align-items:center;flex-shrink:0;}
  #wa-fixed svg{width:24px;height:24px;flex-shrink:0;}
  #wa-fixed span{display:none;}
}

/* ── V4 HERO: fondo blanco, sin video ──────── */
.home-video-bg{display:none;}
.home-overlay{display:none;}
.home-hero{background:#ffffff;border-bottom:1px solid #e8e8e8;}
.home-logo-row span{color:#666;}
.home-eyebrow{color:#e05530;}
.home-h1{color:#0d1629;}
.home-h1 span{color:#e05530;}
.home-desc{color:#555;}
.home-cta{background:#e05530;box-shadow:0 6px 28px rgba(224,85,48,0.35);}
.home-cta:hover{background:#c44420;box-shadow:0 10px 36px rgba(224,85,48,0.50);}
.home-cta-group{display:flex;flex-direction:column;gap:.75rem;}
.home-cta-group .home-cta{display:flex;width:100%;justify-content:center;}
.home-cta-group .home-cta-call{background:#e8360a;box-shadow:0 6px 28px rgba(232,54,10,0.40);}
.home-cta-group .home-cta-call:hover{background:#c42d08;box-shadow:0 10px 36px rgba(232,54,10,0.55);}
.home-cta-group .home-cta-whatsapp{background:#25d366;box-shadow:0 6px 28px rgba(37,211,102,0.35);}
.home-cta-group .home-cta-whatsapp:hover{background:#1da851;box-shadow:0 10px 36px rgba(37,211,102,0.50);}
.home-scroll-hint span{color:#999;}
.home-scroll-arrow{background:linear-gradient(to bottom,#e05530,transparent);}

/* ── Lb desc oculto ──── */
.lb-desc{display:none !important;}
.lb-caption-tag{display:none !important;}