/* Web de Mundocasa. Colores y tipografía de su marca (clientes/mundocasa/marca/marca.json) */
@font-face { font-family: "Rubik"; src: url(/marca/rubik.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
:root {
  --marca: #3C91CD; --acento: #2475AE; --acento-hover: #1F6699; --suave: #EDF5FA; --suave-2: #DCEBF6;
  --t1: #1A1A1A; --t2: #54595F; --t3: #808080; --bg: #FFFFFF; --bg2: #F7F7F7; --linea: #E8E8E8; --linea2: #D5D5D5; --oscuro: #303030;
  --ok: #1E7F4F; --error: #C4221A;
  --ancho: 1240px; --lado: 24px; --cab: 76px;
  --fuente: "Rubik", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--t1); font: 400 16px/1.6 var(--fuente); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
.in { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--lado); padding-left: max(var(--lado), env(safe-area-inset-left)); padding-right: max(var(--lado), env(safe-area-inset-right)); }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.saltar { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--acento); color: #fff; padding: 10px 16px; }
.saltar:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }

/* Franja y cabecera */
.franja { background: var(--acento); color: #fff; font-size: 13.5px; }
.franja .in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.franja a { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; opacity: .95; }
.franja a:hover { opacity: 1; text-decoration: underline; }
.franja .i { width: 15px; height: 15px; }
.franja-der { display: flex; gap: 24px; }
.cabecera { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--linea); }
.cab-in { display: flex; align-items: center; gap: 28px; min-height: var(--cab); }
.logo img { height: 40px; width: auto; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { position: relative; padding: 10px 11px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--t1); white-space: nowrap; }
.menu a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--acento); transform: scaleX(0); transition: transform .15s; }
.menu a:hover { color: var(--acento); }
.menu a[aria-current=page] { color: var(--acento); }
.menu a[aria-current=page]::after, .menu a:hover::after { transform: scaleX(1); }
.cab-acciones { display: flex; align-items: center; gap: 12px; }
.guardados { position: relative; width: 42px; height: 42px; display: grid; place-items: center; color: var(--t1); border: 1px solid var(--linea2); }
.guardados:hover { border-color: var(--acento); color: var(--acento); }
.guardados span { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; background: var(--acento); color: #fff; font-size: 11.5px; font-weight: 500; }
.hamburguesa { display: none; width: 42px; height: 42px; border: 1px solid var(--linea2); background: none; padding: 0 11px; flex-direction: column; justify-content: center; gap: 5px; }
.hamburguesa span { height: 2px; background: var(--t1); transition: transform .2s, opacity .2s; }
.menu-abierto .hamburguesa span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-abierto .hamburguesa span:nth-child(2) { opacity: 0; }
.menu-abierto .hamburguesa span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--acento); color: #fff; border: 1px solid var(--acento); padding: 13px 22px; font-size: 15.5px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.boton:hover { background: var(--acento-hover); border-color: var(--acento-hover); }
.boton-sm { padding: 10px 16px; font-size: 14.5px; }
.boton-borde { background: transparent; color: var(--acento); }
.boton-borde:hover { background: var(--suave); color: var(--acento-hover); }
.boton-blanco { background: #fff; color: var(--acento); border-color: #fff; }
.boton-blanco:hover { background: var(--suave); border-color: var(--suave); color: var(--acento-hover); }
.boton-fantasma { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.boton-fantasma:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.boton[disabled] { opacity: .6; cursor: default; }
.enlace { color: var(--acento); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.enlace:hover { text-decoration: underline; }
.enlace .i { width: 16px; height: 16px; }

/* Cargando */
.cargando { min-height: 60vh; display: grid; place-items: center; }
.cargando i { width: 28px; height: 28px; border: 2px solid var(--linea); border-top-color: var(--acento); animation: giro .8s linear infinite; }
@keyframes giro { to { transform: rotate(360deg); } }

/* Secciones */
.seccion { padding: 88px 0; }
.seccion.gris { background: var(--bg2); }
.sec-cab { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.sec-cab > div { max-width: 680px; }
.antetitulo { display: block; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--acento); margin-bottom: 12px; }
.sec-cab h2, .titulo-sec { font-size: clamp(30px, 3.4vw, 42px); }
.sec-cab p { color: var(--t2); font-size: 17.5px; margin-top: 14px; }

/* Portada: a pantalla completa, con vídeo (o foto) de fondo y la cabecera transparente encima */
.portada { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: #fff; background: #12263a; overflow: hidden; isolation: isolate; }
.portada-medio { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.portada-video, .portada-foto { width: 100%; height: 100%; object-fit: cover; }
.animar .portada-foto { animation: acercar 28s ease-in-out infinite alternate; transform-origin: 62% 50%; }
@keyframes acercar { from { transform: scale(1); } to { transform: scale(1.09); } }
.portada-medio::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,20,32,.6) 0%, rgba(8,20,32,.08) 24%, rgba(8,20,32,.16) 50%, rgba(8,20,32,.84) 100%), linear-gradient(90deg, rgba(8,20,32,.6) 0%, rgba(8,20,32,0) 64%); }
.portada-in { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--cab) + 56px); padding-bottom: 44px; }
.portada h1 { font-size: clamp(44px, 6.6vw, 98px); font-weight: 500; letter-spacing: -.038em; line-height: .98; max-width: 13ch; }
.portada .bajada { font-size: clamp(17px, 1.5vw, 20px); max-width: 50ch; margin-top: 24px; color: rgba(255,255,255,.86); }
.buscador { margin-top: 40px; max-width: 1080px; display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; background: #fff; color: var(--t1); box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.busca-op { display: flex; align-items: center; gap: 4px; padding: 0 12px; border-right: 1px solid var(--linea); }
.busca-op button { background: none; border: 0; padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--t2); }
.busca-op button:hover { color: var(--acento); }
.busca-op button[aria-pressed=true] { background: var(--suave); color: var(--acento); }
.busca-campo { display: grid; align-content: center; gap: 2px; padding: 15px 22px; border-right: 1px solid var(--linea); min-width: 0; cursor: pointer; }
.busca-campo span { font-size: 12px; font-weight: 500; color: var(--t3); text-transform: uppercase; letter-spacing: .07em; }
.busca-campo select { border: 0; background: transparent; padding: 2px 20px 2px 0; font-size: 16px; font-weight: 500; width: 100%; min-width: 0; appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2354595F' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; }
.busca-campo select:focus { outline: 0; }
.busca-campo:focus-within { background: var(--suave); }
.buscador > .boton { margin: 10px; padding: 0 32px; font-size: 16px; }
.atajos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; font-size: 14px; }
.atajos span { color: rgba(255,255,255,.75); margin-right: 8px; }
.atajos a { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.4); color: #fff; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.atajos a b { font-weight: 500; font-size: 12.5px; color: rgba(255,255,255,.7); }
.atajos a:hover { background: #fff; color: var(--acento); border-color: #fff; }
.atajos a:hover b { color: var(--t3); }
.portada-pie { border-top: 1px solid rgba(255,255,255,.2); }
.portada-pie .in { display: flex; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 26px; }
.cifras-portada { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cifras-portada > * { display: grid; gap: 2px; text-decoration: none; color: inherit; min-width: 0; }
.cifras-portada b { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.cifras-portada span { font-size: 13.5px; color: rgba(255,255,255,.75); }
.cifras-portada a:hover b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.control-video { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.45); color: #fff; }
.control-video:hover { background: rgba(255,255,255,.2); }
.control-video .i { width: 16px; height: 16px; }

/* Cabecera sobre la portada: transparente con el logo blanco, y blanca en cuanto se baja */
.l-blanco { display: none; }
.en-portada .franja { display: none; }
.en-portada .cabecera { position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: rgba(255,255,255,.16); transition: background .25s, border-color .25s, box-shadow .25s; }
.en-portada.con-scroll .cabecera, .en-portada.menu-abierto .cabecera { background: rgba(255,255,255,.97); border-bottom-color: var(--linea); box-shadow: 0 10px 30px -24px rgba(0,0,0,.4); }
.en-portada:not(.con-scroll):not(.menu-abierto) .l-color { display: none; }
.en-portada:not(.con-scroll):not(.menu-abierto) .l-blanco { display: block; }
.en-portada:not(.con-scroll):not(.menu-abierto) .menu a { color: #fff; }
.en-portada:not(.con-scroll):not(.menu-abierto) .menu a::after { background: #fff; }
.en-portada:not(.con-scroll):not(.menu-abierto) .guardados, .en-portada:not(.con-scroll):not(.menu-abierto) .hamburguesa { color: #fff; border-color: rgba(255,255,255,.5); }
.en-portada:not(.con-scroll):not(.menu-abierto) .hamburguesa span { background: #fff; }
.en-portada:not(.con-scroll):not(.menu-abierto) .cab-acciones .boton { background: #fff; color: var(--acento); border-color: #fff; }

/* Carrusel de novedades: arranca alineado con el contenido y sale por la derecha */
:root { --borde-in: max(var(--lado), calc((100vw - var(--ancho)) / 2 + var(--lado))); }
.carrusel { display: grid; grid-auto-flow: column; grid-auto-columns: min(372px, 84vw); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px var(--borde-in) 30px; scroll-padding: 0 var(--borde-in); }
.carrusel::-webkit-scrollbar { display: none; }
.carrusel > .tarjeta { scroll-snap-align: start; }
.sec-acciones { display: flex; align-items: center; gap: 22px; }
.flechas { display: flex; gap: 8px; }
.flecha { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--linea2); background: #fff; color: var(--t1); }
.flecha:hover { border-color: var(--acento); color: var(--acento); }

/* Inmueble destacado */
.destacado { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.dest-fotos { position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(360px, 40vw, 520px); overflow: hidden; }
.dest-fotos img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform .6s; }
.dest-fotos img:first-child { grid-row: 1 / 3; }
.dest-fotos:hover img { transform: scale(1.02); }
.dest-texto h2 { font-size: clamp(28px, 3vw, 40px); margin-top: 2px; }
.dest-lugar { display: flex; gap: 8px; align-items: center; color: var(--t2); margin-top: 14px; }
.dest-lugar .i { color: var(--t3); }
.dest-precio { font-size: 40px; font-weight: 500; letter-spacing: -.03em; margin-top: 22px; }
.dest-texto .datos { border-top: 0; padding-top: 0; margin-top: 8px; font-size: 15px; }
.dest-desc { color: var(--t2); margin-top: 20px; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dest-texto .acciones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

/* Aparecen al entrar en pantalla (no si se pide menos movimiento) */
.animar .revelar { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1), border-color .15s, box-shadow .15s; }
.animar .revelar.visto { opacity: 1; transform: none; }
img[loading=lazy] { opacity: 0; transition: opacity .5s ease; }
img[loading=lazy].ok { opacity: 1; }

/* Barra fija del móvil en la ficha */
.barra-movil { display: none; }

/* Tarjetas de inmueble */
.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 292px), 1fr)); gap: 28px 24px; }
.tarjeta { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linea); min-width: 0; transition: border-color .15s, box-shadow .15s; }
.tarjeta:hover { border-color: var(--linea2); box-shadow: 0 14px 34px -24px rgba(16,40,64,.45); }
.t-foto { position: relative; aspect-ratio: 4 / 3; background: var(--bg2); overflow: hidden; }
.t-tira { display: flex; height: 100%; text-decoration: none; color: inherit; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.t-tira::-webkit-scrollbar { display: none; }
.t-tira > * { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; }
.t-tira img { object-fit: cover; transition: opacity .5s, transform .6s; }
.tarjeta:hover .t-tira img { transform: scale(1.03); }
.t-flecha { position: absolute; top: 50%; margin-top: -18px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; background: rgba(255,255,255,.94); border: 0; color: var(--t1); opacity: 0; transition: opacity .15s; }
.t-flecha .i { width: 16px; height: 16px; }
.t-ant { left: 10px; }
.t-sig { right: 10px; }
.t-flecha:focus-visible { opacity: 1; }
@media (hover: hover) { .t-foto:hover .t-flecha { opacity: 1; } }
.t-puntos { position: absolute; left: 0; right: 0; bottom: 15px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.t-puntos i { width: 6px; height: 6px; background: rgba(255,255,255,.55); transition: background .2s; }
.t-puntos i.on { background: #fff; }
a.t-cuerpo { text-decoration: none; color: inherit; }
a.t-cuerpo:hover .t-titulo { color: var(--acento); }
.sin-foto { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 12px; background: var(--suave); }
.sin-foto img { width: 150px; max-width: 46%; height: auto; opacity: .5; object-fit: contain; }
.sin-foto span { font-size: 13px; color: var(--t2); }
.chapas { position: absolute; left: 12px; top: 12px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.chapa { background: #fff; color: var(--t1); font-size: 12px; font-weight: 500; padding: 4px 9px; letter-spacing: .02em; }
.chapa.azul { background: var(--acento); color: #fff; }
.chapa.oscura { background: rgba(26,26,26,.78); color: #fff; }
.n-fotos { position: absolute; right: 12px; bottom: 12px; z-index: 1; pointer-events: none; background: rgba(26,26,26,.72); color: #fff; font-size: 12.5px; padding: 3px 8px; display: inline-flex; gap: 6px; align-items: center; }
.n-fotos .i { width: 14px; height: 14px; }
.corazon { position: absolute; right: 12px; top: 12px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; background: #fff; border: 0; color: var(--t1); }
.corazon:hover { color: var(--acento); }
.corazon[aria-pressed=true] { color: #fff; background: var(--acento); }
.corazon[aria-pressed=true] .i { fill: currentColor; }
.t-cuerpo { padding: 18px 20px 20px; display: grid; gap: 6px; flex: 1; align-content: start; }
.t-precio { font-size: 24px; font-weight: 500; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.t-precio small { font-size: 13.5px; font-weight: 400; color: var(--t3); letter-spacing: 0; }
.t-precio s { font-size: 15px; color: var(--t3); font-weight: 400; }
.t-titulo { font-size: 16px; font-weight: 500; line-height: 1.35; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-lugar { font-size: 14px; color: var(--t2); display: flex; gap: 6px; align-items: center; min-width: 0; }
.t-lugar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-lugar .i { width: 15px; height: 15px; color: var(--t3); }
.datos { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--linea); font-size: 14px; color: var(--t2); }
.datos span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.datos .i { width: 17px; height: 17px; color: var(--t3); }

/* Zonas */
.zonas { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: repeat(2, minmax(240px, 290px)); gap: 16px; }
.zona { position: relative; color: #fff; text-decoration: none; overflow: hidden; background: var(--oscuro); }
.zona:nth-child(1) { grid-row: 1 / 3; }
.zona:nth-child(4) { grid-column: 2 / 4; }
.zona img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform .7s; }
.zona:hover img { transform: scale(1.04); }
.zona::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(10,20,30,.8) 100%); }
.zona div { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; }
.zona b { display: block; font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.zona span { font-size: 14.5px; color: rgba(255,255,255,.88); display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.zona span .i { width: 15px; height: 15px; transition: transform .2s; }
.zona:hover span .i { transform: translateX(4px); }

/* Ventajas */
.ventajas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ventaja { padding: 32px 30px; background: #fff; border: 1px solid var(--linea); }
.ventaja-cab { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.ventaja-num { font-size: 14px; font-weight: 500; color: var(--t3); letter-spacing: .08em; }
.ventaja .ic { width: 52px; height: 52px; display: grid; place-items: center; background: var(--suave); color: var(--acento); }
.ventaja .ic .i { width: 26px; height: 26px; stroke-width: 1.6; }
.ventaja h3 { font-size: 21px; margin-bottom: 10px; }
.ventaja p { color: var(--t2); font-size: 15.5px; }

/* Bandas */
.banda { background: var(--acento); color: #fff; }
.banda .in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.banda h2 { font-size: clamp(30px, 3.6vw, 46px); }
.banda p { color: rgba(255,255,255,.88); font-size: 18px; margin-top: 16px; max-width: 52ch; }
.banda .acciones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.banda-cifras { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.22); }
.banda-cifras div { background: var(--acento); padding: 26px 24px; }
.banda-cifras b { display: block; font-size: 38px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.banda-cifras span { font-size: 14.5px; color: rgba(255,255,255,.8); }
.banda-foto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--bg2); }
.banda-foto > img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.banda-foto > div { padding: 72px clamp(24px, 6vw, 88px); align-self: center; max-width: 660px; }
.banda-foto h2 { font-size: clamp(30px, 3.4vw, 42px); }
.banda-foto p { color: var(--t2); font-size: 17.5px; margin-top: 16px; }
.lista-check { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.lista-check li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.lista-check li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; background: var(--acento) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5'/%3E%3C/svg%3E") center/20px no-repeat; }

/* Oficinas */
.oficinas-bloque { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
.mapa { width: 100%; min-height: 460px; background: var(--suave); border: 1px solid var(--linea); z-index: 0; }
.lista-oficinas { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--linea); border: 1px solid var(--linea); align-content: start; }
.oficina { background: #fff; padding: 18px 20px; display: grid; gap: 3px; font-size: 14.5px; color: var(--t2); cursor: default; }
.oficina b { font-size: 16.5px; font-weight: 500; color: var(--t1); }
.oficina a { color: var(--acento); text-decoration: none; font-weight: 500; }
.oficina a:hover { text-decoration: underline; }
.oficina.activa { background: var(--suave); }
.oficina.azul { background: var(--acento); color: rgba(255,255,255,.85); }
.oficina.azul b, .oficina.azul a { color: #fff; }
.oficinas-pagina { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.ofi-tarjeta { border: 1px solid var(--linea); padding: 26px; display: grid; gap: 6px; align-content: start; background: #fff; }
.ofi-tarjeta h3 { font-size: 21px; }
.ofi-tarjeta .dir { color: var(--t2); }
.ofi-tarjeta .acciones { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* Blog */
.articulos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.articulo-t { text-decoration: none; display: grid; gap: 10px; align-content: start; }
.articulo-t .foto { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg2); }
.articulo-t .foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.articulo-t:hover .foto img { transform: scale(1.03); }
.articulo-t small { color: var(--t3); font-size: 13.5px; margin-top: 6px; }
.articulo-t h3 { font-size: 21px; line-height: 1.25; }
.articulo-t:hover h3 { color: var(--acento); }
.articulo-t p { color: var(--t2); font-size: 15.5px; }
.articulo { max-width: 760px; margin: 0 auto; }
.articulo .migas { margin-bottom: 20px; }
.articulo h1 { font-size: clamp(32px, 4vw, 48px); }
.articulo .entradilla { font-size: 20px; color: var(--t2); margin-top: 16px; }
.articulo .meta { color: var(--t3); font-size: 14px; margin-top: 16px; }
.articulo .portada-art { margin: 32px 0 8px; aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.cuerpo-texto { font-size: 17.5px; line-height: 1.7; }
.cuerpo-texto p, .cuerpo-texto ul { margin: 18px 0 0; }
.cuerpo-texto h2 { font-size: 26px; margin-top: 40px; }
.cuerpo-texto ul { padding-left: 22px; }
.cuerpo-texto li { margin-top: 8px; }
.cuerpo-texto li::marker { color: var(--acento); }

/* Páginas interiores */
.cab-pagina { background: var(--bg2); border-bottom: 1px solid var(--linea); }
.cab-pagina .in { padding-top: 56px; padding-bottom: 48px; }
.cab-pagina h1 { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.03em; }
.cab-pagina p { color: var(--t2); font-size: 18.5px; margin-top: 14px; max-width: 60ch; }
.cab-pagina.foto { color: #fff; background: #1d3a52 center/cover no-repeat; position: relative; border: 0; }
.cab-pagina.foto::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,33,51,.86), rgba(14,33,51,.45)); }
.cab-pagina.foto .in { position: relative; padding-top: 88px; padding-bottom: 88px; }
.cab-pagina.foto p { color: rgba(255,255,255,.88); }
.cab-pagina .acciones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.migas { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--t3); }
.migas a { color: var(--t2); text-decoration: none; }
.migas a:hover { color: var(--acento); }
.dos-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 56px; align-items: start; }

/* Listado */
.filtros { position: sticky; top: var(--cab); z-index: 30; background: #fff; border-bottom: 1px solid var(--linea); }
.filtros .in { display: flex; gap: 10px; align-items: center; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.segmento { display: inline-flex; border: 1px solid var(--linea2); }
.segmento button { background: #fff; border: 0; padding: 9px 14px; font-size: 14.5px; font-weight: 500; color: var(--t2); }
.segmento button + button { border-left: 1px solid var(--linea2); }
.segmento button[aria-pressed=true] { background: var(--acento); color: #fff; }
.filtro { position: relative; }
.filtro select, .filtro input { border: 1px solid var(--linea2); background: #fff; padding: 9px 34px 9px 12px; font-size: 14.5px; min-width: 0; appearance: none; border-radius: 0; height: 40px; }
.filtro select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2354595F' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.filtro select.puesto { border-color: var(--acento); background-color: var(--suave); color: var(--acento); font-weight: 500; }
.filtro select { max-width: 210px; }
.filtro-texto { flex: 1; min-width: 180px; display: flex; align-items: center; }
.filtro-texto .i { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--t3); pointer-events: none; }
.filtro-texto input { width: 100%; padding-left: 36px; padding-right: 12px; }
.filtro input:focus, .filtro select:focus { outline: 0; border-color: var(--acento); box-shadow: 0 0 0 3px rgba(36,117,174,.15); }
.limpiar { background: none; border: 0; color: var(--acento); font-weight: 500; font-size: 14.5px; padding: 0; margin-left: 14px; }
.limpiar:hover { text-decoration: underline; }
.resultados-cab { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 0 22px; }
.resultados-cab h1 { font-size: clamp(24px, 2.6vw, 32px); }
.resultados-cab p { color: var(--t2); font-size: 15px; margin-top: 4px; display: flex; align-items: baseline; flex-wrap: wrap; }
#vista:focus { outline: none; }
.resultados-cab .lado { display: flex; gap: 10px; align-items: center; }
.listado.con-mapa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 24px; align-items: start; }
.listado.con-mapa .rejilla { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.listado.con-mapa .mapa { position: sticky; top: calc(var(--cab) + 84px); height: calc(100vh - var(--cab) - 108px); min-height: 420px; }
.vacio { border: 1px dashed var(--linea2); padding: 48px 24px; text-align: center; color: var(--t2); display: grid; gap: 14px; justify-items: center; }
.vacio b { color: var(--t1); font-size: 19px; font-weight: 500; }
.mas { display: flex; justify-content: center; margin-top: 40px; }
.precio-mapa { background: var(--acento); color: #fff; font: 500 12.5px/1 var(--fuente); padding: 6px 8px; white-space: nowrap; box-shadow: 0 4px 12px -4px rgba(0,0,0,.5); transform: translate(-50%, -100%); display: inline-block; position: relative; }
.precio-mapa::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--acento); }
.precio-mapa.activo { background: var(--t1); }
.precio-mapa.activo::after { border-top-color: var(--t1); }
.marcador-mapa { background: none; border: 0; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { border-radius: 0 !important; }
.leaflet-popup-content { margin: 0 !important; width: 240px !important; font-family: var(--fuente); }
.pop img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pop div { padding: 10px 12px 12px; }
.pop b { display: block; font-size: 17px; font-weight: 500; }
.pop span { font-size: 13px; color: var(--t2); display: block; line-height: 1.35; margin-top: 2px; }
.pop a { color: var(--acento); font-weight: 500; font-size: 13.5px; text-decoration: none; display: inline-block; margin-top: 6px; }

/* Ficha */
.ficha-cab { padding: 28px 0 22px; display: grid; gap: 14px; }
.ficha-cab .fila { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.ficha-cab h1 { font-size: clamp(26px, 3vw, 38px); max-width: 26ch; }
.ficha-cab .lugar { color: var(--t2); display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 16px; }
.ficha-cab .acciones-f { display: flex; gap: 8px; }
.icono-boton { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--linea2); background: #fff; font-size: 14.5px; font-weight: 500; color: var(--t1); }
.icono-boton:hover { border-color: var(--acento); color: var(--acento); }
.icono-boton[aria-pressed=true] { background: var(--acento); border-color: var(--acento); color: #fff; }
.icono-boton[aria-pressed=true] .i { fill: currentColor; }
.galeria { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(560px, 56vw); }
.galeria button { position: relative; padding: 0; border: 0; background: var(--bg2); overflow: hidden; min-height: 0; }
.galeria button:first-child { grid-row: 1 / 3; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.galeria button:hover img { transform: scale(1.02); }
.galeria .todas { position: absolute; right: 14px; bottom: 14px; background: #fff; color: var(--t1); padding: 9px 14px; font-size: 14px; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; box-shadow: 0 6px 18px -8px rgba(0,0,0,.4); }
.galeria.g1 { grid-template-columns: 1fr; }
.galeria.g2 { grid-template-columns: 2fr 1fr; }
.galeria.g2 button:first-child { grid-row: 1 / 3; }
.galeria.g2 button:nth-child(2) { grid-row: 1 / 3; }
.galeria.g3 { grid-template-columns: 2fr 1fr; }
.ficha-cuerpo { padding: 40px 0 88px; }
.precio-grande { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.precio-grande b { font-size: 40px; font-weight: 500; letter-spacing: -.03em; }
.precio-grande span { color: var(--t2); font-size: 16px; }
.precio-grande .chapa { font-size: 13px; align-self: center; }
.datos-grandes { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border: 1px solid var(--linea); margin-top: 24px; }
.datos-grandes div { padding: 16px 18px; border-right: 1px solid var(--linea); display: grid; gap: 4px; }
.datos-grandes div:last-child { border-right: 0; }
.datos-grandes .i { width: 22px; height: 22px; color: var(--acento); }
.datos-grandes b { font-size: 19px; font-weight: 500; }
.datos-grandes span { font-size: 13.5px; color: var(--t3); }
.bloque { margin-top: 48px; }
.bloque > h2 { font-size: 24px; margin-bottom: 16px; }
.descripcion { font-size: 16.5px; color: var(--t1); line-height: 1.7; }
.descripcion p + p { margin-top: 14px; }
.descripcion.plegada { max-height: 300px; overflow: hidden; position: relative; }
.descripcion.plegada::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.ver-mas { margin-top: 12px; background: none; border: 0; padding: 0; color: var(--acento); font-weight: 500; }
.caracteristicas { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--linea); }
.caracteristicas div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--linea); font-size: 15.5px; }
.caracteristicas div:nth-child(odd) { margin-right: 28px; }
.caracteristicas span { color: var(--t2); }
.caracteristicas b { font-weight: 500; text-align: right; }
.nota { font-size: 13.5px; color: var(--t3); margin-top: 10px; }
.mapa-ficha { height: 360px; }
.contacto-ficha { position: sticky; top: calc(var(--cab) + 24px); border: 1px solid var(--linea); background: #fff; }
.contacto-ficha .cab-c { padding: 22px 24px; background: var(--bg2); border-bottom: 1px solid var(--linea); display: flex; gap: 14px; align-items: center; }
.contacto-ficha .cab-c img { width: 48px; height: 48px; }
.contacto-ficha .cab-c b { display: block; font-weight: 500; font-size: 16.5px; }
.contacto-ficha .cab-c span { font-size: 14px; color: var(--t2); }
.contacto-ficha form, .contacto-ficha .botones { padding: 22px 24px; }
.contacto-ficha .botones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 0; }
.ref { font-size: 13px; color: var(--t3); padding: 0 24px 20px; }

/* Formularios */
.formulario { display: grid; gap: 14px; }
.formulario .fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.campo { display: grid; gap: 6px; font-size: 14px; font-weight: 500; min-width: 0; align-content: start; }
.campo input, .campo select, .campo textarea { width: 100%; border: 1px solid var(--linea2); background: #fff; padding: 11px 13px; font-size: 16px; font-weight: 400; border-radius: 0; appearance: none; }
.campo select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2354595F' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
.campo textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 0; border-color: var(--acento); box-shadow: 0 0 0 3px rgba(36,117,174,.15); }
.campo input[aria-invalid=true] { border-color: var(--error); }
/* Campo trampa para robots: fuera de la vista y del teclado */
.trampa { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.formulario { position: relative; }
/* Formulario desactivado en la app: el teléfono en su lugar */
.form-off { display: grid; gap: 16px; justify-items: start; padding: 22px; background: var(--suave); }
.form-off p { margin: 0; color: var(--t1); }
/* Formulario enviado */
.enviado { display: grid; gap: 8px; padding: 22px; background: var(--suave); outline: 0; }
.enviado .i { width: 28px; height: 28px; color: var(--acento); }
.enviado b { font-size: 19px; font-weight: 600; }
.enviado span { color: var(--t1); }
.enviado .nota { margin: 0; color: var(--t2); }
.enviado a { color: var(--acento); }
.aviso-form a { color: inherit; font-weight: 600; }
.acepto { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--t2); font-weight: 400; line-height: 1.45; }
.acepto input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--acento); flex: none; }
.acepto a { color: var(--acento); }
.aviso-form { font-size: 14px; padding: 12px 14px; background: var(--suave); color: var(--t1); }
.aviso-form.error { background: #FCEBEA; color: var(--error); }
.tarjeta-form { border: 1px solid var(--linea); padding: 32px; background: #fff; }
.tarjeta-form h2 { font-size: 26px; }
.tarjeta-form > p { color: var(--t2); margin: 8px 0 22px; }
/* Tu franquicia: la cabecera con el asistente de expansión al lado del titular */
.hero-franq { position: relative; color: #fff; background: #1d3a52 center/cover no-repeat; }
.hero-franq::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12,30,47,.94) 0%, rgba(12,30,47,.82) 48%, rgba(12,30,47,.55) 100%); }
.hero-franq .in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 450px); gap: 72px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero-franq.sin-chat .in { grid-template-columns: minmax(0, 1fr); padding-top: 88px; padding-bottom: 88px; }
.hero-franq .antetitulo { color: #9CCDEE; }
.hero-franq h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.03em; font-weight: 500; }
.hero-lead { color: rgba(255,255,255,.88); font-size: 18.5px; line-height: 1.55; margin: 18px 0 0; max-width: 34em; }
.hero-pasos { list-style: none; counter-reset: paso; margin: 34px 0 0; padding: 0; display: grid; gap: 16px; max-width: 34em; }
.hero-pasos li { counter-increment: paso; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.hero-pasos li::before { content: counter(paso); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); display: grid; place-items: center; font-size: 13.5px; font-weight: 600; color: #fff; }
.hero-pasos li:first-child::before { background: var(--marca); border-color: var(--marca); }
.hero-pasos b { font-weight: 500; font-size: 16.5px; line-height: 1.3; padding-top: 5px; }
.hero-pasos span { font-size: 14.5px; color: rgba(255,255,255,.72); line-height: 1.45; }
.hero-cifras { list-style: none; display: flex; gap: 40px; flex-wrap: wrap; margin: 34px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(255,255,255,.18); max-width: 34em; }
.hero-cifras b { display: block; font-size: 30px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-cifras span { font-size: 13.5px; color: rgba(255,255,255,.7); }
.hero-acciones { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.enlace-claro { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px; }
.enlace-claro:hover { border-bottom-color: #fff; }
.enlace-claro .i { width: 16px; height: 16px; }
.hero-chat { position: relative; height: 640px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.18), 0 40px 90px -30px rgba(0,0,0,.7); }
.hero-chat iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; opacity: 0; transition: opacity .3s; }
.hero-chat.listo iframe { opacity: 1; }
.hero-chat-cargando { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--t2); font-size: 14.5px; }
.hero-chat-cargando span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--suave-2); border-top-color: var(--acento); animation: gira-chat .8s linear infinite; }
.hero-chat.listo .hero-chat-cargando { display: none; }
@keyframes gira-chat { to { transform: rotate(360deg); } }
@media (max-width: 1080px) {
  .hero-franq .in { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: 40px; }
}
/* En el móvil, el asistente justo debajo del titular; las cifras y el enlace al formulario, después */
@media (max-width: 860px) {
  .hero-franq .in, .hero-franq.sin-chat .in { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 36px; padding-bottom: 36px; }
  .hero-franq-texto { display: contents; }
  .hero-franq .antetitulo, .hero-franq h1, .hero-lead { order: 1; }
  .hero-chat { order: 2; height: 580px; margin-top: 26px; }
  .hero-pasos { display: none; }
  .hero-cifras { order: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; padding-top: 18px; max-width: none; }
  .hero-cifras b { font-size: 24px; }
  .hero-cifras span { font-size: 12.5px; line-height: 1.35; display: block; }
  .hero-franq .acciones.hero-acciones { order: 4; margin-top: 20px; }
}
@media (max-width: 560px) {
  .hero-franq .in { padding-left: 16px; padding-right: 16px; }
  .hero-lead { font-size: 16.5px; }
  .hero-chat { height: 560px; border-radius: 12px; margin: 0 -4px; }
}
@media (prefers-reduced-motion: reduce) { .hero-chat-cargando span { animation: none; } .hero-chat iframe { transition: none; } }

/* Pasos */
.pasos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--linea); counter-reset: paso; }
.paso { padding: 30px 26px; border-right: 1px solid var(--linea); counter-increment: paso; background: #fff; }
.paso:last-child { border-right: 0; }
.paso::before { content: "0" counter(paso); display: block; font-size: 14px; font-weight: 500; color: var(--acento); margin-bottom: 18px; letter-spacing: .06em; }
.paso h3 { font-size: 19px; margin-bottom: 8px; }
.paso p { color: var(--t2); font-size: 15px; }

/* Calculadora */
.calculadora { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--linea); background: #fff; }
.calculadora .entradas { padding: 32px; display: grid; gap: 22px; }
.deslizador { display: grid; gap: 10px; }
.deslizador .cab-d { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 500; }
.deslizador output { font-size: 18px; color: var(--acento); font-variant-numeric: tabular-nums; }
.deslizador input[type=range] { width: 100%; accent-color: var(--acento); }
.calculadora .resultado { background: var(--acento); color: #fff; padding: 32px; display: grid; gap: 20px; align-content: start; }
.resultado .cuota small { display: block; font-size: 14px; color: rgba(255,255,255,.8); }
.resultado .cuota b { font-size: 50px; font-weight: 500; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.resultado dl { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.25); }
.resultado dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.25); font-size: 15px; }
.resultado dt { color: rgba(255,255,255,.82); }
.resultado dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.resultado .barra { height: 10px; display: flex; background: rgba(255,255,255,.25); }
.resultado .barra i { display: block; background: #fff; }
.resultado .aviso-calc { font-size: 13.5px; color: rgba(255,255,255,.85); }
.resultado .aviso-calc.alerta { background: rgba(255,255,255,.14); padding: 10px 12px; color: #fff; }
.mini-calc { border: 1px solid var(--linea); padding: 24px; background: var(--bg2); display: grid; gap: 16px; }
.mini-calc .fila3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini-calc .res { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--linea2); }
.mini-calc .res b { font-size: 30px; font-weight: 500; color: var(--acento); letter-spacing: -.02em; }

/* Visor de fotos */
.visor { position: fixed; inset: 0; z-index: 100; background: rgba(10,14,20,.96); display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; }
.visor figure { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 56px 0 18px; }
.visor img { width: 100%; height: 100%; object-fit: contain; }
.visor figcaption { color: rgba(255,255,255,.8); text-align: center; font-size: 14px; padding-top: 12px; }
.visor button { background: none; border: 0; color: #fff; height: 64px; display: grid; place-items: center; }
.visor .i { width: 32px; height: 32px; stroke-width: 1.5; }
.visor-cerrar { position: absolute; top: 10px; right: 14px; font-size: 38px; line-height: 1; width: 52px; height: 52px !important; z-index: 1; }

/* Pie */
.pie { background: var(--oscuro); color: #B3B3B3; font-size: 15px; }
.pie-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.pie-marca img { height: 40px; width: auto; }
.pie-marca p { margin-top: 18px; max-width: 38ch; line-height: 1.6; }
.pie-tel { display: inline-grid; margin-top: 22px; color: #fff; font-size: 26px; font-weight: 500; text-decoration: none; letter-spacing: -.01em; }
.pie-tel small { font-size: 13px; color: #B3B3B3; font-weight: 400; letter-spacing: 0; }
.pie h2 { color: #fff; font-size: 15px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.pie-in > div:not(.pie-marca) { display: grid; gap: 10px; align-content: start; }
.pie a { text-decoration: none; }
.pie-in a:hover { color: #fff; }
.pie-legal { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #474747; padding-top: 22px; padding-bottom: 28px; font-size: 13.5px; }
.pie-legal a:hover { color: #fff; }

/* Responsive */
@media (max-width: 1180px) {
  .menu a { padding: 10px 8px; font-size: 14.5px; }
  .menu a::after { left: 8px; right: 8px; }
  .cab-in { gap: 18px; }
}
@media (max-width: 1080px) {
  :root { --cab: 68px; }
  .hamburguesa { display: flex; }
  .menu { position: fixed; left: 0; right: 0; top: var(--cab); bottom: 0; background: #fff; flex-direction: column; gap: 0; padding: 12px var(--lado) 32px; margin: 0; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; border-top: 1px solid var(--linea); }
  .menu a { padding: 16px 0; font-size: 19px; border-bottom: 1px solid var(--linea); }
  .menu a::after { display: none; }
  .menu-abierto .menu { opacity: 1; transform: none; visibility: visible; }
  .menu-abierto { overflow: hidden; }
  .cab-acciones { margin-left: auto; }
  .zonas { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .zona { aspect-ratio: 16 / 11; }
  .zona:nth-child(1), .zona:nth-child(4) { grid-row: auto; grid-column: auto; }
  .buscador { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .busca-op { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--linea); padding: 8px 10px; }
  .busca-campo { border-bottom: 1px solid var(--linea); }
  .busca-campo:nth-of-type(2) { border-right: 0; }
  .busca-campo:nth-of-type(3) { grid-column: 1 / -1; border-right: 0; }
  .buscador > .boton { grid-column: 1 / -1; padding: 15px; }
  .cifras-portada { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
  .destacado { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .dos-col { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contacto-ficha { position: static; }
  .listado.con-mapa { grid-template-columns: minmax(0, 1fr); }
  .listado.con-mapa .mapa { position: relative; top: 0; height: 56vh; order: -1; }
  .oficinas-bloque { grid-template-columns: minmax(0, 1fr); }
  .pasos { grid-template-columns: 1fr 1fr; }
  .paso:nth-child(2) { border-right: 0; }
  .paso:nth-child(-n+2) { border-bottom: 1px solid var(--linea); }
  .oficinas-pagina { grid-template-columns: 1fr 1fr; }
  .pie-in { grid-template-columns: 1fr 1fr; }
  .pie-marca { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .franja .in > span:first-child { display: none; }
  .franja-der { width: 100%; justify-content: space-between; }
  .seccion { padding: 64px 0; }
  .sec-cab { flex-direction: column; align-items: start; }
  .ventajas, .articulos { grid-template-columns: minmax(0, 1fr); }
  .banda .in { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 64px; padding-bottom: 64px; }
  .banda-foto { grid-template-columns: minmax(0, 1fr); }
  .banda-foto > img { min-height: 260px; max-height: 340px; }
  .banda-foto > div { padding: 48px var(--lado) 56px; }
  .calculadora { grid-template-columns: minmax(0, 1fr); }
  .galeria { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 90px; height: auto; }
  .galeria button:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .galeria button:nth-child(n+4) { display: none; }
  .galeria.g1 button:first-child, .galeria.g2 button:first-child { grid-column: 1 / -1; }
  .galeria.g2 button:nth-child(2) { grid-row: auto; grid-column: 1 / -1; display: none; }
  .caracteristicas { grid-template-columns: 1fr; }
  .caracteristicas div:nth-child(odd) { margin-right: 0; }
  .filtros .in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filtros .in::-webkit-scrollbar { display: none; }
  .filtro, .segmento, .limpiar { flex: none; }
  .filtro-texto { flex: none; width: 220px; }
  .visor { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .barra-movil { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px var(--lado) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--linea); box-shadow: 0 -10px 30px -22px rgba(0,0,0,.4); }
  .con-barra .pie { padding-bottom: 78px; }
}
@media (max-width: 560px) {
  :root { --lado: 16px; }
  .logo img { height: 32px; }
  .en-portada .cab-acciones > .boton-sm { display: none; }
  .boton-sm.cab-cta, .cab-acciones > .boton-sm { display: none; }
  .franja { font-size: 12.5px; }
  .franja-der a:last-child { display: none; }
  .portada-in { padding-top: calc(var(--cab) + 32px); padding-bottom: 28px; }
  .portada h1 { font-size: 42px; }
  .buscador { grid-template-columns: minmax(0, 1fr); margin-top: 30px; }
  .busca-campo { border-right: 0 !important; grid-column: auto !important; padding: 12px 18px; }
  .atajos span { width: 100%; }
  .cifras-portada b { font-size: 22px; }
  .dest-fotos { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; }
  .dest-fotos img:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
  .dest-fotos img:nth-child(n+2) { display: none; }
  .dest-precio { font-size: 34px; }
  .zonas { grid-template-columns: minmax(0, 1fr); }
  .zona { aspect-ratio: 16 / 10; }
  .sec-acciones { width: 100%; justify-content: space-between; }
  .formulario .fila2, .mini-calc .fila3 { grid-template-columns: minmax(0, 1fr); }
  .resultados-cab .lado { width: 100%; }
  .resultados-cab .lado .filtro { flex: 1; min-width: 0; }
  .resultados-cab .lado .filtro select { width: 100%; max-width: none; }
  .resultados-cab .segmento button { padding: 9px 11px; }
  .pasos, .oficinas-pagina, .lista-oficinas { grid-template-columns: minmax(0, 1fr); }
  .paso { border-right: 0; border-bottom: 1px solid var(--linea); }
  .paso:last-child { border-bottom: 0; }
  .pie-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pie-legal { flex-direction: column; }
  .tarjeta-form, .calculadora .entradas, .calculadora .resultado { padding: 24px 20px; }
  .resultado .cuota b { font-size: 42px; }
  .precio-grande b { font-size: 34px; }
  .ficha-cab .acciones-f .icono-boton span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .franja, .cabecera, .pie, .filtros, .contacto-ficha form, .corazon, .acciones-f, .barra-movil { display: none !important; }
}
