:root{
  --bg:#0b1220;
  --panel: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.10);
  --text:#ffffff;
  --muted: rgba(255,255,255,.78);
  --accent:#14a3d8;
  --accent2:#0b6aa9;
  --max: 1120px;
  --radius: 16px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 700px at 20% -10%, rgba(20,163,216,.20), transparent 55%),
             radial-gradient(900px 600px at 90% 10%, rgba(11,106,169,.20), transparent 55%),
             #070c16;
  color: var(--text);
}
a{color:inherit; text-decoration:none}
.container{width:min(var(--max), calc(100% - 40px)); margin:0 auto}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  font-weight:800;
  letter-spacing:.2px;
}
.btn--primary{background: linear-gradient(90deg, var(--accent2), var(--accent))}
.btn--ghost{background: rgba(255,255,255,.08)}
.btn--sm{padding:10px 12px; border-radius: 12px; font-weight:800}

.topbar{
  position:relative;
  background: rgba(7,12,22,.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
  padding:12px 0;
}
.brand{display:flex; align-items:center; gap:10px}
.brand__logo{width:34px; height:34px; object-fit:contain}
.brand__name{font-weight:900}

.topnav{
  display:flex; gap:10px;
  flex-wrap:nowrap;
  white-space:nowrap;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  justify-content:flex-start;
}
.topnav::-webkit-scrollbar{display:none}

.topnav a{
  padding:8px 10px;
  border-radius: 12px;
  opacity:.9;
  flex:0 0 auto;
  font-weight:900;
}

.topnav a:hover{background: rgba(255,255,255,.08); opacity:1}

.topbar__cta{display:flex; gap:10px; flex-wrap:wrap}

/* Floating */
.float{
  position:fixed; right:14px; bottom:14px; z-index:120;
  display:flex; flex-direction:column; gap:10px;
}
.float__btn{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-weight:900;
}

/* Hero */
.hero{position:relative; min-height: 58vh; display:grid; place-items:center}
.hero__media{position:absolute; inset:0; overflow:hidden}
.hero__video{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.hero__fallback{position:absolute; inset:0; background-size:cover; background-position:center}
.hero__overlay{position:absolute; inset:0; background: linear-gradient(180deg, rgba(7,12,22,.22) 0%, rgba(7,12,22,.70) 70%, rgba(7,12,22,.86) 100%)}
.hero__content{position:relative; z-index:2; padding:40px 0}
.kicker{text-transform:uppercase; letter-spacing:.8px; font-weight:900; font-size:.86rem; opacity:.92}
h1{font-size: clamp(2rem, 3.6vw, 3.1rem); margin:.6rem 0 0}
.accent{color: var(--accent)}
.lead{max-width: 60ch; color: var(--muted); line-height:1.65; margin:14px 0 22px}
.hero__cta{display:flex; gap:12px; flex-wrap:wrap}
.hero__badges{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}
.badge{padding:8px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); font-weight:900}

/* Sections */
.section{padding:64px 0}
.section--alt{background: rgba(255,255,255,.07); border-top:1px solid rgba(255,255,255,.06); border-bottom:1px solid rgba(255,255,255,.06)}
h2{font-size: clamp(1.5rem, 2.2vw, 2rem); margin:0 0 12px}
.sub{margin:0 0 22px; color: var(--muted); line-height:1.65; max-width:70ch}
.p{margin:0; color: var(--muted); line-height:1.65}
.link{display:inline-block; margin-top:10px; opacity:.95}
.link:hover{text-decoration:underline}

.grid3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
.card{
  background: rgba(255,255,255,.08);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
}

.band{
  padding:46px 0;
  background: linear-gradient(90deg, rgba(11,106,169,.35), rgba(20,163,216,.18));
  border-top:1px solid rgba(255,255,255,.10);
  border-bottom:1px solid rgba(255,255,255,.10);
}
.band__inner{display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap}
.band__inner p{margin:0; color: var(--muted)}
.band__cta{display:flex; gap:12px; flex-wrap:wrap}

/* Page header */
.pagehead{padding:34px 0 8px}
.pagehead h1{margin:0}

/* Accordion */
.accordion{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  background: rgba(255,255,255,.08);
}
.acc{
  width:100%;
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px;
  border:0;
  background: rgba(255,255,255,.06);
  color:var(--text);
  font-weight:900;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.acc:hover{background: rgba(255,255,255,.08)}
.acc__icon{
  width:34px; height:34px;
  display:grid; place-items:center;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.10);
  font-size: 18px;
}
.acc__panel{padding:12px 14px 16px; border-bottom:1px solid rgba(255,255,255,.08)}
.bullets{margin:0; padding-left:18px; color: var(--muted); line-height:1.7}

.mt{margin-top:14px}
.section__cta{margin-top:16px; display:flex; gap:12px; flex-wrap:wrap}

/* Insurer pills & note */
.logos{display:flex; flex-wrap:wrap; gap:10px}
.logo-pill{padding:10px 12px; border-radius:999px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); font-weight:900}
.note{margin-top:14px; padding:14px; border-radius: var(--radius); background: rgba(255,255,255,.08); border:1px solid var(--border); color: var(--muted)}
code{background: rgba(0,0,0,.22); padding:2px 6px; border-radius: 8px}

/* Gallery */
.gallery{display:grid; grid-template-columns: repeat(12, 1fr); gap:12px}
.gimg{grid-column: span 4; border-radius: 14px; overflow:hidden; border:1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.12); min-height: 220px}
.gimg img{width:100%; height:100%; object-fit:cover;
  background: #0b1220; display:block}

/* Contact */
.contact{display:grid; grid-template-columns: 1.1fr .9fr; gap:16px; align-items:start}
.contact__box{background: rgba(255,255,255,.08); border:1px solid var(--border); border-radius: var(--radius); padding:16px}
.contact__row{display:flex; justify-content:space-between; gap:14px; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.08)}
.contact__row:last-child{border-bottom:0}
.label{opacity:.75; font-weight:900}
.form{background: rgba(255,255,255,.08); border:1px solid var(--border); border-radius: var(--radius); padding:16px; display:flex; flex-direction:column; gap:12px}
label{display:flex; flex-direction:column; gap:6px; font-weight:900}
input, textarea{background: rgba(0,0,0,.18); border:1px solid rgba(255,255,255,.12); border-radius: 12px; padding:12px; color: var(--text); outline:none}
input:focus, textarea:focus{border-color: rgba(20,163,216,.55); box-shadow: 0 0 0 4px rgba(20,163,216,.18)}
.mini{opacity:.75; font-size:.92rem}

/* Footer */
.footer{padding:30px 0 54px; border-top:1px solid rgba(255,255,255,.08)}
.footer__inner{display:flex; gap:14px; align-items:flex-start}
.footer__logo{width:46px; height:46px; object-fit:contain}
.footer__links{display:flex; gap:14px; flex-wrap:wrap; opacity:.95; margin:6px 0 0}
.footer__copy{margin:10px 0 0; opacity:.75}
.footmini{opacity:.7; font-weight:900}

/* Responsive */
@media (max-width: 980px){
  .topbar__cta{display:none}

  .topbar__inner{flex-wrap:wrap}
  .topnav{
  display:flex; gap:10px;
  flex-wrap:nowrap;
  white-space:nowrap;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  justify-content:flex-start;
}
.topnav::-webkit-scrollbar{display:none}

  .grid3{grid-template-columns: 1fr}
  .contact{grid-template-columns: 1fr}
  .gimg{grid-column: span 6}
}
@media (max-width: 560px){
  .gimg{grid-column: span 12}
  .float{right:10px; bottom:10px}
}

/* Logo badge for dark header */
.brand__logoWrap{
  width:40px; height:40px;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.18);
  display:grid; place-items:center;
  overflow:hidden;
}
.brand__logo{width:30px; height:30px}

.hero__video, .hero__fallback{will-change: transform}

/* Global background video */
.bg{
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.bg__video{
  transition: opacity .35s ease;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  background: #0b1220;
  filter: brightness(.80) contrast(1.05);
}
.bg__fallback{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
}
.bg__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(7,12,22,.35) 0%, rgba(7,12,22,.78) 70%, rgba(7,12,22,.92) 100%);
}
body{background: transparent;}

.footer .mini{margin:8px 0 0; opacity:.78}

/* Floating contact buttons */
.floating-cta{
  position:fixed;
  bottom:18px;
  right:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:9999;
}
.floating-cta a{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 16px;
  border-radius:50px;
  color:#fff;
  font-weight:600;
  text-decoration:none;
  box-shadow:0 6px 16px rgba(0,0,0,.25);
}
.floating-cta .call{background:#1f8b4c;}
.floating-cta .whatsapp{background:#0f6d63;}

/* Mobile bottom bar */
.mobilebar{
  position:fixed;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:9998;
  display:none;
  gap:10px;
}
.mobilebar a{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 14px;
  border-radius:14px;
  color:#fff;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 10px 22px rgba(0,0,0,.28);
}
.mobilebar .mcall{background:#176b3a;}
.mobilebar .mwa{background:#0f6d63;}
@media (max-width: 820px){
  .mobilebar{display:flex;}
  .floating-cta{display:none;}
  body{padding-bottom:86px;}
}

.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media(max-width:900px){.grid2{grid-template-columns:1fr}}

details{background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:14px; padding:12px 14px; margin:10px 0}
details summary{cursor:pointer; font-weight:700}
details p{margin:10px 0 0}


/* === TAP FIX (iOS/Android/Chrome) ===
   Ensure background video/overlay NEVER captures taps.
*/
.bg, .bg * { pointer-events: none !important; }
.bg { position: fixed !important; inset: 0; z-index: 0 !important; }
header, main, footer, .topbar, .pagehead, .section { position: relative; z-index: 10 !important; }
.floating-cta, .mobilebar { z-index: 9999 !important; }

.overlay, .glass, .card::before { pointer-events:none !important; }

@media (max-width: 820px){
  body{padding-bottom: 96px;}
  #quickContact{padding-bottom: 130px;}
}

/* Reviews */
.reviews-card{display:flex; flex-direction:column; gap:12px}
.stars{font-size:1.4rem; letter-spacing:.14em; opacity:.95}


/* Video background shared (hero + reviews) */
.section--video-bg {
  position: relative;
  overflow: hidden;
}
.section--video-bg .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.section--video-bg .container {
  position: relative;
  z-index: 2;
}

/* FIX v44: quitar imagen de fondo en Servicios (mantener contenido) */
#servicios { background-image: none !important; background: transparent !important; }

#servicios { position: relative; overflow: hidden; }
#servicios .bg-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; pointer-events:none; }
#servicios .container { position:relative; z-index:2; }

/* FIX v47: si el video no carga o autoplay está bloqueado, NO mostrar foto: mostrar fondo oscuro */
.bg__fallback{
  background-image: none !important;
  background: linear-gradient(180deg, #07121c, #050a10) !important;
}

/* Fotos */
.photo-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
  margin-top:16px;
}
.photo{
  margin:0;
  border-radius:14px;
  overflow:hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.photo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  aspect-ratio: 4 / 3;
}
.photo.placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio: 4 / 3;
}
.photo .ph{
  padding:18px;
  text-align:center;
  opacity:.8;
}
@media (max-width: 820px){
  .photo-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ===== Video background (servicios) ===== */
#servicios {
  position: relative;
  overflow: hidden;
}
#servicios .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
#servicios .container {
  position: relative;
  z-index: 2;
}

/* ===== Trabajos ===== */
.trabajos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.trabajo-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  padding-bottom: 12px;
}

.trabajo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.trabajo-card h3 {
  margin: 12px 12px 4px;
  font-size: 1.1rem;
}

.trabajo-card p {
  margin: 0 12px;
  opacity: .85;
  font-size: .95rem;
}

/* remove tick/check icons */
.check, .check-icon, .icon-check, .fa-check, .fa-check-circle,
i[class*="check"], svg[class*="check"] {
  display: none !important;
}
