:root {
  --marino: #0e2356; --azul: #1b4fd1; --azul-osc: #153fa8; --cielo: #bcd4ff; --jabon: #edf3ff;
  --linea: #d2dff5; --suave: #43547d; --blanco: #fff; --error: #b3261e;
  --display: "Gabarito", system-ui, sans-serif; --texto: "Public Sans", system-ui, sans-serif;
  --ancho: min(1180px, 100% - 2.5rem);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--blanco); color: var(--marino); font-family: var(--texto); font-size: 1.0625rem; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 4px; }
.ancho { width: var(--ancho); margin-inline: auto; }
main { flex: 1 0 auto; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--marino); color: #fff; padding: .7rem 1rem; z-index: 50; }
.saltar:focus { left: 0; }

.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .75rem 1.5rem; border: 0; border-radius: 999px;
  background: var(--azul); color: #fff; font: 700 1.05rem var(--texto); text-decoration: none; cursor: pointer; transition: background-color .18s ease; }
.boton:hover { background: var(--azul-osc); }
.tel { font-weight: 700; text-underline-offset: 4px; white-space: nowrap; }

.cabecera { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--linea); }
.cabecera .ancho { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.marca { display: flex; align-items: center; gap: .55rem; text-decoration: none; font: 700 .82rem/1.1 var(--display); letter-spacing: .09em; text-transform: uppercase; }
.marca img { width: 86px; }
.marca .dibujo { width: auto; height: 54px; }
.marca span { max-width: 7em; }
.navega { display: flex; align-items: center; gap: 1.5rem; }
.navega > a:not(.boton):not(.pastilla) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.acciones .tel, .nota a { display: inline-block; padding-block: .65rem; }
.navega > a:not(.boton):not(.pastilla):hover { color: var(--azul); }
.a-portal svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.navega .boton { white-space: nowrap; }
@media (max-width: 1099px) { .navega { gap: .8rem; } }
@media (max-width: 979px) { .navega > a.solo-ancho:not(.boton) { display: none; } }
.pastilla { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding-inline: 1.1rem; border: 1.5px solid var(--marino); border-radius: 999px; font: 700 .98rem var(--texto); white-space: nowrap; text-decoration: none; }
.pastilla:hover { background: var(--jabon); }
@media (max-width: 430px) { .navega { gap: .5rem; } .pastilla { padding-inline: .7rem; } }
@media (max-width: 389px) { .a-portal.pastilla { justify-content: center; width: 44px; padding: 0; } .a-portal span { display: none; } }
.navega .boton { min-height: 44px; padding: .4rem 1.1rem; font-size: .98rem; }

.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.8rem; }
.frecuencias { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin-top: 2rem; padding: 0; list-style: none; font-weight: 700; font-size: .98rem; }
.frecuencias li + li::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .7rem; background: var(--azul);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }


.bloque { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.intro { max-width: 40em; margin-top: 1rem; color: var(--suave); font-size: 1.15rem; }



.lista-extras { margin: 0; padding: clamp(1.1rem, 2.4vw, 1.9rem) clamp(1.4rem, 3vw, 2.4rem); list-style: none; background: #fff; }
.lista-extras li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.2rem; padding: .7rem 0; border-bottom: 1px solid var(--linea); }
.lista-extras li:last-child { border-bottom: 0; }
.lista-extras b, .horario dd { font-family: var(--display); font-weight: 700; }
.lista-extras b { white-space: nowrap; color: var(--marino); }
.casillas { display: grid; gap: .1rem 1rem; border: 0; }
.casillas legend { margin-bottom: .35rem; font-weight: 700; }
.casilla { display: flex; align-items: center; gap: .6rem; min-height: 44px; margin: 0; font-weight: 400; cursor: pointer; }
.casilla input { width: 22px; height: 22px; flex: none; accent-color: var(--azul); }

.bloque.trabajo { padding-top: 0; overflow: hidden; }

.pasos-fondo { background: var(--jabon); }
.pasos { display: grid; gap: 2rem; margin-top: 2.5rem; padding: 0; list-style: none; counter-reset: paso; }
.pasos li { counter-increment: paso; }
.pasos li::before { content: counter(paso); display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem; border-radius: 50%; background: var(--marino); color: #fff; font: 800 1.3rem var(--display); }
.pasos h3 { font-size: 1.5rem; margin-bottom: .45rem; }
.pasos p { color: var(--suave); }

.nosotras { display: grid; gap: 2.5rem; align-items: center; }
.nosotras figure img { border-radius: 14px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.nosotras figcaption { margin-top: .6rem; font-size: .95rem; color: var(--suave); }
.datos { display: grid; gap: 1.2rem; margin-top: 2rem; }
.datos dt { font: 800 1.25rem var(--display); }
.datos dd { color: var(--suave); }

.zona { background: var(--marino); color: #fff; }
.zona h2 { color: #fff; }
.ciudades { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; margin-top: 2rem; padding: 0; list-style: none; font: 700 clamp(1.7rem, 4.6vw, 3.1rem)/1.22 var(--display); }
.ciudades li + li::before { content: ""; display: inline-block; width: .22em; height: .22em; margin-right: 1.1rem; vertical-align: .2em; border-radius: 50%; background: #fff; }
.horario { display: grid; gap: 1.2rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(188, 212, 255, .45); }
.horario dt { font-weight: 700; color: var(--cielo); }
.zona a { color: #fff; }
.mapa { position: relative; z-index: 0; height: clamp(340px, 52vw, 520px); margin-top: 2rem; border-radius: 16px; overflow: hidden; background: var(--jabon); color: var(--marino); }
.mapa[hidden] { display: none; }
.mapa a { color: var(--azul-osc); }
.mapa .leaflet-tile-pane { filter: saturate(.35) brightness(1.06); }
.mapa .etiqueta-mapa { padding: .05rem .4rem; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .88); box-shadow: none; color: var(--marino); font: 700 .82rem var(--texto); }
.mapa .etiqueta-mapa::before { display: none; }

.cotiza { display: grid; gap: 2.5rem; }
.cotiza aside p { margin-top: 1rem; color: var(--suave); font-size: 1.15rem; }
.cotiza aside .tel { display: inline-flex; align-items: center; min-height: 44px; margin-top: .7rem; font: 800 1.6rem var(--display); color: var(--azul-osc); }
form { display: grid; gap: 1.2rem; padding: clamp(1.25rem, 3vw, 2.2rem); background: var(--jabon); border-radius: 16px; }
.dos { display: grid; gap: 1.2rem; }
label { display: block; margin-bottom: .35rem; font-weight: 700; }
input[type=text], input[type=tel], input[type=email], select, textarea { width: 100%; min-height: 50px; padding: .7rem .85rem; border: 1.5px solid #6c81ae; border-radius: 10px; background: #fff; color: var(--marino); font: 400 1.0625rem var(--texto); }
textarea { min-height: 110px; resize: vertical; }
[aria-invalid=true] { border-color: var(--error); }
.falla { margin-top: .35rem; color: var(--error); font-size: .95rem; font-weight: 700; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nota { font-size: .95rem; color: var(--suave); }
.nota a { font-weight: 700; }
.casilla input { accent-color: var(--marino); }
.resultado { padding: .85rem 1rem; border-radius: 10px; background: #fff; border: 1.5px solid var(--azul); font-weight: 700; }
.resultado[hidden] { display: none; }
form .boton { width: 100%; }

.pie { padding-block: 3rem; background: var(--marino); color: #fff; }
.pie .ancho { display: grid; gap: 1.5rem; }
.pie-marca { display: flex; align-items: center; gap: .8rem; font: 700 .95rem/1.15 var(--display); letter-spacing: .09em; text-transform: uppercase; }
.pie-marca img { width: 118px; flex: none; }
.pie-marca span { max-width: 7em; }
.pie-marca .dibujo { width: auto; height: 78px; }
.pie ul { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; padding: 0; list-style: none; }
.pie a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-underline-offset: 4px; }
.fb { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font-weight: 700; text-underline-offset: 4px; }
.fb svg { flex: none; width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--marino); fill: #fff; }
.cotiza aside .tel { gap: .55rem; }
.cotiza aside .tel svg { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--marino); fill: #fff; }
.redes a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; transition: transform .25s ease; }
.redes a:hover { transform: translateY(-2px); }
.redes a:focus-visible { outline-color: #fff; }
.redes svg { width: 26px; height: 26px; fill: var(--marino); }
.pie small { color: var(--cielo); font-size: .92rem; }

.barra-movil { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem; padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--linea); }
.barra-movil a { min-height: 48px; padding: .4rem .7rem; font-size: 1rem; }
.barra-movil .secundario { background: #fff; color: var(--marino); border: 1.5px solid var(--marino); }
body:has(.barra-movil) { padding-bottom: 76px; }
body.sin-barra { padding-bottom: 0; }

.legal { padding-block: 3rem 5rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.4rem; margin: 1.8rem 0 .5rem; }
.legal p { max-width: 42em; color: var(--suave); }

@media (max-width: 759px) { .navega > a.solo-ancho { display: none !important; } .marca { min-height: 44px; }
}
@media (min-width: 760px) {
  body:has(.barra-movil) { padding-bottom: 0; }
  .barra-movil { display: none; }
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .dos { grid-template-columns: 1fr 1fr; }
  .casillas { grid-template-columns: 1fr 1fr; }
  .datos, .horario { grid-template-columns: repeat(3, 1fr); }
  .pie .ancho { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 3rem; }
}
@media (min-width: 1000px) {
  .nosotras { grid-template-columns: .8fr 1.2fr; gap: 4rem; }
  .cotiza { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Servicios con pestañas */
.servs { margin-top: 2.6rem; }
.serv-lista { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--linea); }
.serv-lista button { position: relative; min-height: 60px; padding: .9rem .5rem; border: 0; background: none; color: var(--suave); font: 700 clamp(1rem, 1.7vw, 1.3rem) var(--display); cursor: pointer; transition: color .25s ease; }
.serv-lista button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--marino); transform: scaleX(0); transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.serv-lista button:hover { color: var(--marino); }
.serv-lista button[aria-selected=true] { color: var(--marino); }
.serv-lista button[aria-selected=true]::after { transform: scaleX(1); }
.serv-panel { display: grid; margin-top: 1.6rem; overflow: hidden; border: 1px solid var(--linea); border-radius: 20px; animation: subir .55s cubic-bezier(.16, 1, .3, 1); }
.serv-panel[hidden] { display: none; }
.serv-lado { display: flex; flex-direction: column; background: var(--marino); color: #fff; }
.serv-lado img { width: 100%; height: 220px; object-fit: cover; }
.serv-texto { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .8rem; padding: 1.7rem; }
.serv-texto h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.05; color: #fff; }
.serv-texto p { flex: 1; color: #e4e9f3; }
.serv-texto .boton { margin-top: .6rem; }
.serv-grupos { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.8rem 2.2rem; align-content: start; padding: clamp(1.4rem, 3vw, 2.4rem); background: #fff; }
.grupo h4 { margin-bottom: .7rem; padding-bottom: .5rem; border-bottom: 2px solid var(--marino); font: 800 1.08rem var(--display); }
.grupo ul { padding: 0; list-style: none; }
.grupo li { position: relative; padding: .28rem 0 .28rem 1.5rem; font-size: .98rem; }
.grupo li::before { content: ""; position: absolute; left: .1rem; top: .72em; width: .72em; height: .38em; border-left: 2px solid var(--marino); border-bottom: 2px solid var(--marino); transform: rotate(-45deg); }
#tab-extras { grid-column: 1 / -1; }
@media (min-width: 760px) { .serv-lista { grid-template-columns: repeat(5, 1fr); } #tab-extras { grid-column: auto; } }
@media (min-width: 1000px) { .serv-panel { grid-template-columns: minmax(300px, .72fr) 1.6fr; } .serv-lado img { height: 260px; } }

/* Diseño cine: fotos a pantalla completa, letras grandes y movimiento */
:root { --marino: #0b1f4d; --azul: #1b3f9e; --azul-osc: #142f7a; --jabon: #f4f6fa; --linea: #dfe4ee; --cielo: #c9d3e6; --suave: #4b5875; }
h1, h2, h3 { letter-spacing: -.025em; }
h2 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: 1; }
.boton { gap: .6rem; background: var(--marino); transition: background-color .25s ease, transform .3s cubic-bezier(.16, 1, .3, 1); }
.boton:hover { background: var(--azul); transform: translateY(-2px); }
.boton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.boton:hover svg { transform: translateX(4px); }
.boton.blanco, .boton.blanco:hover { background: #fff; color: var(--marino); }
.barra-movil .secundario, .barra-movil .secundario:hover { background: #fff; transform: none; }

.cabecera.sobre { position: fixed; inset: 0 0 auto 0; background: transparent; border-color: transparent; color: #fff; transition: background-color .35s ease, color .35s ease, border-color .35s ease; }
.cabecera.sobre .marca img { filter: brightness(0) invert(1); transition: filter .35s ease; }
.cabecera.sobre .pastilla { border-color: #fff; }
.cabecera.sobre .pastilla:hover { background: rgba(255, 255, 255, .16); }
.cabecera.sobre .navega > a:not(.boton):not(.pastilla):hover { opacity: .75; }
.cabecera.sobre .navega .boton { background: #fff; color: var(--marino); }
.cabecera.sobre.solida { background: rgba(255, 255, 255, .96); border-color: var(--linea); color: var(--marino); }
.cabecera.sobre.solida .marca img { filter: none; }
.cabecera.sobre.solida .pastilla { border-color: var(--marino); }
.cabecera.sobre.solida .pastilla:hover { background: var(--jabon); }
.cabecera.sobre.solida .navega > a:not(.boton):not(.pastilla):hover { color: var(--azul); }
.cabecera.sobre.solida .navega .boton { background: var(--marino); color: #fff; }

.banner { position: relative; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--marino); color: #fff; isolation: isolate; }
.banner-foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; opacity: 0; transform: scale(1.12); transition: opacity 1.6s ease; }
.banner-foto.activa { opacity: 1; animation: acercar 8s linear forwards; }
.banner-velo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 31, 77, .96) 4%, rgba(11, 31, 77, .62) 42%, rgba(11, 31, 77, .08) 72%, rgba(11, 31, 77, .5)); }
.banner-texto { padding-block: 7rem 3rem; }
.banner h1 { max-width: 11em; font-size: clamp(3rem, 8.6vw, 7.2rem); line-height: .98; color: #fff; }
.banner-texto > p { max-width: 36em; margin-top: 1.2rem; font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: #eef7ff; }
.palabra { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .09em; }
.palabra > span { display: inline-block; animation: palabra 1s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms) both; }
.entra { animation: subir 1s cubic-bezier(.16, 1, .3, 1) .55s both; }
.banner-pie { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.6rem 3rem; margin-top: 2.2rem; }
.cifras { display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; }
.cifras b { display: block; font: 800 clamp(2.2rem, 4vw, 3.2rem)/1 var(--display); }
.cifras span { font-size: .95rem; color: #dcebff; }
.banner .acciones { margin-top: 0; }
.banner .tel { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }

.cinta { overflow: hidden; padding-block: 1.2rem; background: var(--marino); border-top: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.cinta div { display: flex; width: max-content; gap: 3rem; font: 700 clamp(1.3rem, 2.8vw, 2.1rem) var(--display); white-space: nowrap; animation: cinta 40s linear infinite; }
.cinta span::after { content: ""; display: inline-block; width: .28em; height: .28em; margin-left: 3rem; vertical-align: .16em; border-radius: 50%; background: #fff; }

@keyframes acercar { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes palabra { from { transform: translateY(110%); } to { transform: none; } }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cinta { to { transform: translateX(-50%); } }

.por-aparecer { opacity: 0; transform: translateY(34px); }
.bloque h2, .bloque .intro, .servs, .carrusel, .pasos li, .nosotras figure, .datos > div, .ciudades, .mapa, .horario > div, .cotiza aside, #solicitud { transition: opacity .9s cubic-bezier(.16, 1, .3, 1) var(--retraso, 0ms), transform .9s cubic-bezier(.16, 1, .3, 1) var(--retraso, 0ms); }

#solicitud { background: var(--jabon); border-radius: 20px; }
.pasos-fondo { background: var(--jabon); }
.pasos li::before { background: var(--marino); }
.zona { background: var(--marino); }
.pie { background: var(--marino); }
.nosotras figure img { border-radius: 24px; }

@media (max-width: 759px) {
  .banner { min-height: calc(100vh - 66px); min-height: calc(100svh - 66px); }
  .banner-texto { padding-block: 6rem 1.8rem; }
  .banner-pie .acciones { display: none; }
  .cabecera .marca span, .cabecera .marca .dibujo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .banner-foto.activa, .palabra > span, .entra, .cinta div, .serv-panel { animation: none; }
  .banner-foto { transform: none; }
  .boton:hover { transform: none; }
  .diapo, .diapo img { transition: none; }
}

/* Carrusel de trabajos */
.carrusel { margin-top: 2.4rem; }
.pista { --lado: clamp(270px, 36vw, 500px); display: flex; gap: clamp(.8rem, 2vw, 1.6rem); padding-inline: calc(50% - var(--lado) / 2); padding-block: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pista::-webkit-scrollbar { display: none; }
.pista:focus-visible { outline-offset: -3px; }
.diapo { position: relative; flex: none; width: var(--lado); scroll-snap-align: center; opacity: .5; transform: scale(.9); transition: transform .8s cubic-bezier(.16, 1, .3, 1), opacity .8s ease; cursor: pointer; }
.diapo.activa { opacity: 1; transform: none; cursor: default; }
.diapo .marco { overflow: hidden; border-radius: 20px; }
.diapo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--jabon); transform: scale(1.08); transition: transform 4.5s ease-out; }
.diapo.activa img { transform: none; }
.diapo figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .35rem .85rem; border-radius: 999px; background: var(--marino); color: #fff; font-weight: 700; font-size: .95rem; opacity: 0; transform: translateY(8px); transition: opacity .5s ease .15s, transform .5s ease .15s; }
.diapo.activa figcaption { opacity: 1; transform: none; }
.controles { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.flecha-car { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border: 1.5px solid var(--marino); border-radius: 50%; background: #fff; color: var(--marino); cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.flecha-car:hover { background: var(--marino); color: #fff; }
.flecha-car svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.avance { flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: var(--linea); }
.avance i { display: block; height: 100%; background: var(--marino); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.contador { min-width: 3.4em; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
