/* TRAZO CERRAMIENTOS · estilos base */
:root {
  --verde: #12523E;
  --verde-claro: #8FD1AE;   /* acento sobre fondos oscuros */
  --carbon: #30302E;
  --blanco: #FFFFFF;
  --gris-fondo: #F3F3F0;
  --gris-texto: #55554F;
  --whatsapp: #25D366;
  --header-h: 88px;
  --radio: 36px;
  --margen: clamp(20px, 6vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Tipografía: Manrope para los textos (más legible, peso 500) y Montserrat para títulos, menú y botones (como el logo).
   Tamaño base 17 px: todo lo que está en rem se agranda parejo. */
html { font-size: 106.25%; }
body { font-family: 'Manrope', system-ui, sans-serif; font-weight: 600; color: var(--carbon); background: var(--blanco); line-height: 1.7; }
h1, h2, h3, h4, .btn, .nav a, .nav-boton, .eyebrow, .producto-nombre, .card-link, .datos strong, .razon-num, .hero-titulo, .footer h2, .contacto-cerrar { font-family: 'Montserrat', system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; }

/* ── HEADER ── */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--margen); background: var(--blanco); border-bottom: 1px solid rgba(48,48,46,.08); }
.header-logo img { height: 46px; width: auto; }
.nav ul { display: flex; gap: 44px; list-style: none; }
.nav a, .nav-boton { text-decoration: none; text-transform: uppercase; font-size: .8rem; font-weight: 600; letter-spacing: 1.5px; padding: 8px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-boton { background: none; border-width: 0 0 2px; color: inherit; cursor: pointer; }
.nav a:hover, .nav a[aria-current="page"], .nav-boton:hover { color: var(--verde); border-color: var(--verde); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 28px; height: 3px; margin: 5px auto; background: var(--verde); }

/* ── BOTONES ── */
.btn { display: inline-block; padding: 15px 30px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-verde { background: var(--verde); color: var(--blanco); }
.btn-claro { background: var(--blanco); color: var(--verde); }

/* ── PLACEHOLDERS ── */
.ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; min-height: 240px; border-radius: 18px; border: 2px dashed rgba(18,82,62,.3); background: #E8E9E4; color: var(--gris-texto); font-size: .75rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }

/* ── HERO (inicio) ── */
.hero { position: relative; height: calc(100vh - var(--header-h)); min-height: 420px; margin-top: var(--header-h); display: flex; align-items: center; justify-content: center; color: var(--blanco); overflow: hidden; background: repeating-linear-gradient(135deg, #3b4540 0 24px, #353f3a 24px 48px); }
/* Cartel de reserva (solo se ve si falta hero.jpg). Va fuera del flujo para no correr el título */
.hero-ph-nota { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); font-size: .75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; opacity: .6; }
/* Foto con zoom lento y suave: una sola vez, de 100% a 110% en 30 s, y se queda en 110% */
.hero-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: center; will-change: transform; animation: hero-zoom 30s ease-in-out forwards; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.1); } }
/* Overlay sobre la foto, como en Berkes: una capa pareja del color de la marca.
   --hero-overlay es la intensidad (0 = sin capa, 1 = verde sólido). Probar entre .4 y .75 */
.hero { --hero-overlay: .62; }
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(18,82,62, var(--hero-overlay)); pointer-events: none; }
/* Frase del banner (estilo Berkes): mayúsculas, letras muy separadas, color de acento */
.hero-titulo { position: relative; z-index: 2; max-width: 1300px; padding: 0 var(--margen) 0 calc(var(--margen) + .28em); text-align: center; text-wrap: balance; text-transform: uppercase; font-size: clamp(1.35rem, 4vw, 3.1rem); font-weight: 700; letter-spacing: .28em; line-height: 1.5; color: var(--blanco); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── HERO (páginas internas) ── */
.page-hero { background: var(--verde); color: var(--blanco); padding: calc(var(--header-h) + 80px) var(--margen) 80px; border-radius: 0 0 var(--radio) var(--radio); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 800; text-transform: uppercase; margin-bottom: 16px; }
.page-hero p { max-width: 720px; color: rgba(255,255,255,.9); font-size: 1.08rem; }
.page-hero p + p { margin-top: 14px; }
/* Banner con foto de fondo (un <img class="page-hero-img"> adentro) y overlay verde como en la portada.
   --hero-overlay es la intensidad: más alto = más verde */
.page-hero-foto { --hero-overlay: .62; position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: calc(var(--header-h) + 300px); padding-bottom: 60px; }
/* La foto y el overlay arrancan DEBAJO del menú fijo (si no, el menú tapa la parte de arriba de la foto).
   object-position: 0% = se ve el borde de arriba de la foto, 50% = centrado, 100% = el de abajo */
.page-hero-img { position: absolute; inset: var(--header-h) 0 0 0; z-index: 0; width: 100%; height: calc(100% - var(--header-h)); object-fit: cover; object-position: center 30%; }
.page-hero-foto::before { content: ''; position: absolute; inset: var(--header-h) 0 0 0; z-index: 1; background: rgba(18,82,62, var(--hero-overlay)); pointer-events: none; }
.page-hero-foto h1 { position: relative; z-index: 2; }

/* ── SECCIONES ── */
.section { padding: 110px var(--margen); }
.section-gris { background: var(--gris-fondo); }
.eyebrow { color: var(--verde); font-size: .72rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 14px; }
.title { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 800; margin-bottom: 22px; }
.text { color: var(--gris-texto); max-width: 620px; margin-bottom: 28px; font-size: 1.05rem; }
/* Título con barrita verde horizontal debajo */
.titulo-barra::after { content: ''; display: block; width: 72px; height: 5px; margin-top: 14px; background: var(--verde); border-radius: 3px; }

/* Texto con barra verde a la izquierda */
.texto-barra { border-left: 4px solid var(--verde); padding-left: 20px; margin-bottom: 28px; }
.texto-barra .text { margin-bottom: 14px; }
.texto-barra .text:last-child { margin-bottom: 0; }
.lista-titulo { font-size: .9rem; margin-bottom: 4px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split .ph { min-height: 420px; }
.foto-seccion { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }

/* ── NUESTROS PRODUCTOS (2 rectángulos) ── */
.productos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 18px; }
/* Para poner la foto: agregar en cada .producto  style="background-image:url('assets/img/muros.jpg')"  y borrar .producto-ph */
/* Capas de la card de producto (de abajo hacia arriba): foto, degradado verde de hover, degradado base, nombre */
.producto { position: relative; isolation: isolate; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: #46524C; color: var(--blanco); text-decoration: none; transition: transform .35s ease, box-shadow .35s ease; }
.producto-foto { position: absolute; inset: 0; z-index: 0; background-position: center; background-size: cover; background-repeat: no-repeat; transition: transform .7s ease; }
.producto::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(18,82,62,.95) 10%, rgba(18,82,62,.5) 100%); opacity: 0; transition: opacity .4s ease; }
.producto::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(18,82,62,.95), rgba(18,82,62,.05) 65%); }
.producto-nombre span { display: inline-block; transition: transform .35s ease; }
.producto:focus-visible { outline: 3px solid var(--verde-claro); outline-offset: 3px; }
@media (hover: hover) {
  .producto:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(18,82,62,.25); }
  .producto:hover .producto-foto { transform: scale(1.05); }
  .producto:hover::before { opacity: .3; }
  .producto:hover .producto-nombre span { transform: translateX(8px); }
}
.producto-ph { position: absolute; top: 38%; left: 0; right: 0; text-align: center; font-size: .75rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; opacity: .7; }
.producto-nombre { position: relative; z-index: 3; display: flex; justify-content: space-between; width: 100%; padding: 32px; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }

/* ── BLOQUES DE COLOR (portada, estilo Berkes) ──
   .fondo = bloque de color · .hoja = bloque claro con esquinas redondeadas que va montado encima */
.hoja { position: relative; z-index: 2; background: var(--blanco); border-radius: var(--radio); }
.hoja.section-gris { background: var(--gris-fondo); }
.fondo { position: relative; z-index: 1; margin: calc(var(--radio) * -1) 0; color: var(--blanco); }
.section.fondo { padding-top: calc(110px + var(--radio)); padding-bottom: calc(110px + var(--radio)); }
.fondo-verde { background: var(--verde); }
.fondo .eyebrow { color: var(--verde-claro); }
.fondo .text { color: rgba(255,255,255,.75); }
.cta.fondo-final { margin-bottom: 0; padding-top: calc(90px + var(--radio)); padding-bottom: calc(90px + var(--radio)); }
.footer-hoja { position: relative; z-index: 2; margin-top: calc(var(--radio) * -1); border-radius: var(--radio) var(--radio) 0 0; }

/* ── ¿POR QUÉ ELEGIRNOS? ── */
.split-arriba { align-items: start; }
.razones { list-style: none; }
.razones li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.razones li:first-child { padding-top: 0; }
.razon-num { color: var(--verde-claro); font-size: .8rem; font-weight: 700; letter-spacing: 2px; line-height: 1.6; }
.razones h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px; transition: color .2s; }
.razones p { font-size: 1rem; color: rgba(255,255,255,.82); }
.razones li:hover h3 { color: var(--verde-claro); }

/* ── TARJETAS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.card { background: var(--blanco); border-radius: 22px; overflow: hidden; border: 1px solid rgba(48,48,46,.08); }
.card .ph { border-radius: 0; border-width: 0 0 2px 0; aspect-ratio: 4 / 3; min-height: 0; }
.card-foto { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 24px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card-body p { font-size: 1rem; color: var(--gris-texto); margin-bottom: 16px; }
.card { display: flex; flex-direction: column; }
.card .ph, .card-foto { flex-shrink: 0; }
.card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
/* Las alturas van siempre abajo, justo encima del botón, así quedan alineadas en las tres cards */
.card-body .card-dato { color: var(--carbon); margin-top: auto; }
.card-body .card-dato + .card-link { margin-top: 0; }
.card-dato strong { font-weight: 700; }
.sin-corte { white-space: nowrap; }
.card-link { display: inline-block; color: var(--verde); font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; transition: transform .35s ease; }

/* Hover de las cards: se levantan, la foto hace zoom y aparece un degradado de la paleta verde */
.card { position: relative; isolation: isolate; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.card .ph, .card-foto { transition: transform .7s ease; }
/* Degradado verde discreto sobre TODA la card (de arriba a abajo, sin cortes); el texto queda por encima y conserva su color.
   Para más o menos intensidad cambiar el .22 (0 = sin degradado) */
.card::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: linear-gradient(to bottom, rgba(18,82,62,0) 30%, rgba(18,82,62,.22) 100%); }
.card-body { position: relative; z-index: 2; }
.card-link { transition: transform .35s ease; }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(18,82,62,.2); border-color: rgba(18,82,62,.45); }
  .card:hover .ph, .card:hover .card-foto { transform: scale(1.04); }
  .card:hover::after { opacity: 1; }
  .card:hover .card-link { transform: translateX(6px); }
}

/* ── CONTACTO ── */
.datos { list-style: none; }
.datos li { padding: 16px 0; border-bottom: 1px solid rgba(48,48,46,.12); }
.datos strong { display: block; font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--verde); }
.datos a { text-decoration: none; }
.datos a:hover { color: var(--verde); }

/* Íconos de teléfono y mail */
.icono { width: 1.1em; height: 1.1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dato-link, .contacto-lista a { display: inline-flex; align-items: center; gap: 10px; overflow-wrap: anywhere; text-decoration: none; }
.dato-link .icono { color: var(--verde); }
.contacto-lista { list-style: none; }
.contacto-lista li + li { margin-top: 10px; }
.contacto-lista .icono { color: var(--verde-claro); }
.contacto-lista a:hover { color: var(--blanco); }

/* Rectángulo de contacto: se abre sobre la página desde el menú */
.contacto-modal { border: 0; padding: 0; margin: auto; width: min(92vw, 520px); max-height: 92vh; overflow: auto; background: transparent; color: var(--carbon); }
.contacto-modal::backdrop { background: rgba(8,22,16,.62); backdrop-filter: blur(3px); }
.contacto-modal[open] { animation: contacto-entra .25s ease-out; }
@keyframes contacto-entra { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.contacto-caja { position: relative; background: var(--blanco); border-radius: var(--radio); padding: 44px 40px 32px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.contacto-caja .title { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 12px; }
.contacto-caja .text { margin-bottom: 24px; }
.contacto-cerrar { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--gris-fondo); color: var(--carbon); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s; }
.contacto-cerrar:hover { background: #E3E4DE; }
.btn-wa { display: block; text-align: center; background: var(--whatsapp); color: #0B2A1A; margin-bottom: 10px; }
.redes { display: flex; gap: 10px; margin-top: 8px; }
.redes a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(48,48,46,.2); font-size: .85rem; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.redes .icono { color: var(--verde); transition: color .2s; }
.redes a:hover { background: var(--verde); border-color: var(--verde); color: var(--blanco); }
.redes a:hover .icono { color: var(--blanco); }

/* Redes en el pie de página: botones redondos */
.redes-pie { display: flex; gap: 10px; margin-top: 18px; }
.redes-pie a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: var(--verde-claro); transition: background .25s, color .25s, border-color .25s, transform .25s; }
.redes-pie .icono { width: 20px; height: 20px; }
.redes-pie a:hover { background: var(--verde-claro); border-color: var(--verde-claro); color: var(--carbon); transform: translateY(-3px); }

/* ── CERCOS: grilla de fotos 4:5 + bloque de texto ── */
.cercos-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.cercos-fotos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cercos-layout > * { min-width: 0; }
.cercos-boton { margin-top: 28px; }
.cercos-fotos .ph, .cercos-fotos img { width: 100%; height: auto; aspect-ratio: 4 / 5; min-height: 0; object-fit: cover; border-radius: 18px; display: block; }
@media (max-width: 900px) {
  .cercos-layout { grid-template-columns: 1fr; gap: 0; }
  .cercos-fotos { gap: 12px; order: 2; margin-bottom: 36px; }
  /* en celular el título va arriba de las fotos y el resto del texto abajo */
  .cercos-texto { display: contents; }
  .cercos-texto .titulo-barra { order: 1; margin-bottom: 28px; }
  .cercos-texto .texto-barra, .cercos-texto .lista-titulo, .cercos-texto .datos { order: 3; }
  .cercos-texto .cercos-boton { order: 4; justify-self: start; }
}

/* ── CERCOS: variedad de colores ── */
.colores { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
.colores li { text-align: center; }
.colores img { display: block; width: 100%; max-width: 200px; height: auto; margin: 0 auto 18px; filter: drop-shadow(0 8px 14px rgba(48,48,46,.18)); transition: transform .35s ease; }
.colores span { font-family: 'Montserrat', system-ui, sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--verde); }
@media (hover: hover) { .colores li:hover img { transform: translateY(-6px) scale(1.04); } }
@media (max-width: 900px) {
  .colores { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 16px; margin-top: 32px; }
  .colores li { width: calc((100% - 32px) / 3); }
  .colores img { max-width: 110px; }
}

/* ── CTA ── */
.cta { background: var(--verde); color: var(--blanco); text-align: center; padding: 90px var(--margen); }
.cta p { color: rgba(255,255,255,.8); margin-bottom: 30px; }
.cta .title { margin-bottom: 32px; }

/* ── FOOTER ── */
.footer { background: var(--carbon); color: rgba(255,255,255,.7); padding: 64px var(--margen) 24px; font-size: 1rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer img { height: 54px; width: auto; }
.footer h2 { color: var(--blanco); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.footer-bottom { text-align: center; padding-top: 22px; font-size: .78rem; opacity: .6; }
@media (min-width: 901px) {
  .footer { padding: 40px var(--margen) 16px; font-size: .92rem; }
  .footer-top { gap: 28px; padding-bottom: 24px; }
  .footer img { height: 42px; }
  .footer h2 { margin-bottom: 10px; }
  .contacto-lista li + li { margin-top: 6px; }
  .redes-pie { margin-top: 12px; }
  .redes-pie a { width: 36px; height: 36px; }
  .redes-pie .icono { width: 17px; height: 17px; }
  .footer-bottom { padding-top: 14px; }
}

/* ── WHATSAPP FLOTANTE ── */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 22px rgba(0,0,0,.25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 31px; height: 31px; fill: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --header-h: 72px; --radio: 24px; }
  .header-logo img { height: 36px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--blanco); padding: 12px var(--margen) 24px; box-shadow: 0 16px 24px rgba(0,0,0,.1); }
  .nav.abierto { display: block; }
  .nav ul { flex-direction: column; gap: 10px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split .ph { min-height: 260px; }
  .hero { height: 62vh; min-height: 320px; }
  .page-hero-foto { min-height: calc(var(--header-h) + 230px); padding-top: var(--header-h); padding-bottom: 0; align-items: center; }
  /* Texto del banner un poco más grande en celular, centrado y con menos separación entre letras */
  .hero-titulo { font-size: clamp(1.5rem, 6.6vw, 2.3rem); letter-spacing: .2em; padding: 0 var(--margen) 0 calc(var(--margen) + .2em); }
  .section { padding: 72px var(--margen); }
  .section.fondo { padding-top: calc(72px + var(--radio)); padding-bottom: calc(72px + var(--radio)); }
  .grid-3, .productos { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } .hero-foto { animation: none; } }

/* ── VISOR DE FOTOS (clic para ampliar) ── */
img.ampliable { cursor: zoom-in; }
img.ampliable:focus-visible { outline: 3px solid var(--verde-claro); outline-offset: 3px; }
.visor { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; max-width: none; max-height: none; background: transparent; display: none; align-items: center; justify-content: center; }
.visor[open] { display: flex; animation: contacto-entra .25s ease-out; }
.visor::backdrop { background: rgba(12,18,15,.92); }
.visor-img { max-width: min(92vw, 1100px); max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: default; }
.visor-cerrar, .visor-nav { position: absolute; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; transition: background .25s; }
.visor-cerrar:hover, .visor-nav:hover { background: rgba(255,255,255,.3); }
.visor-cerrar { top: 18px; right: 18px; }
.visor-nav { top: 50%; transform: translateY(-50%); }
.visor-prev { left: 18px; }
.visor-next { right: 18px; }
.visor-solo .visor-nav { display: none; }
@media (max-width: 900px) {
  .visor-img { max-width: 94vw; max-height: 80vh; }
  .visor-nav { width: 40px; height: 40px; top: auto; bottom: 22px; transform: none; }
  .visor-prev { left: calc(50% - 56px); }
  .visor-next { right: calc(50% - 56px); }
}

/* ── PORTONES: bloque de texto + imagen con slide ── */
.portones-bloque { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.portones-bloque > * { min-width: 0; }
.portones-bloque.invertido .portones-texto { order: 2; }
.portones-texto .btn { margin-top: 4px; }

.slider { position: relative; border-radius: 18px; overflow: hidden; background: #E8E9E4; }
.slider-pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slider-pista::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 5; }
.slide img, .slide .ph { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; border: 0; min-height: 0; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--verde); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); transition: background .25s, color .25s, transform .25s; }
.slider-btn:hover { background: var(--verde); color: var(--blanco); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-puntos { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.slider-puntos button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: pointer; transition: background .25s, transform .25s; }
.slider-puntos button.activo { background: var(--blanco); transform: scale(1.3); }
@media (max-width: 900px) {
  .portones-bloque { grid-template-columns: 1fr; gap: 0; }
  .portones-bloque.invertido .portones-texto { order: 0; }
  /* en celular: título, luego el slide, y abajo la descripción y el botón */
  .portones-texto { display: contents; }
  .portones-texto .titulo-barra { order: 1; margin-bottom: 28px; }
  .portones-bloque .slider { order: 2; margin-bottom: 28px; }
  .portones-texto .texto-barra { order: 3; }
  .portones-texto .btn { order: 4; justify-self: start; }
  .slider-btn { width: 38px; height: 38px; font-size: 1.4rem; }
}

/* ── ANIMACIONES AL HACER SCROLL ── */
/* Solo se ocultan si el JavaScript funciona (la clase "js" la pone el propio sitio); sin JS todo se ve normal */
.js .reveal { opacity: 0; }
.js .reveal.visible { opacity: 1; animation: reveal-sube .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) backwards; }
@keyframes reveal-sube { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; }
  .js .reveal.visible { animation: none; }
}

/* con la foto ampliada, la página de atrás no se mueve */
html:has(.visor[open]) { overflow: hidden; }

/* ── MIGAS DE PAN (Inicio › Página) ── */
.breadcrumb { position: absolute; z-index: 2; left: var(--margen); top: calc(var(--header-h) + 18px); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-family: 'Montserrat', system-ui, sans-serif; font-size: .74rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.88); text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.breadcrumb li + li::before { content: '›'; margin: 0 10px; font-size: 1rem; line-height: 1; opacity: .75; }
.breadcrumb a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.45); padding-bottom: 1px; transition: border-color .25s, color .25s; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--blanco); border-color: var(--blanco); }
.breadcrumb [aria-current] { color: var(--blanco); font-weight: 700; }
@media (max-width: 900px) { .breadcrumb { top: calc(var(--header-h) + 14px); } .breadcrumb ol { font-size: .68rem; letter-spacing: 1.2px; } }

/* Email del modal en una sola línea en mobile */
@media (max-width:600px){
  .contacto-caja { padding-left: 28px; padding-right: 28px; }
  .contacto-caja .dato-link { overflow-wrap: normal; white-space: nowrap; font-size: .92rem; gap: 8px; }
}
@media (max-width:350px){
  .contacto-caja { padding-left: 22px; padding-right: 22px; }
  .contacto-caja .dato-link { font-size: .8rem; gap: 6px; }
}

/* Carrusel dentro de las cards de muros (4:3, solo fotos de ese modelo) */
.slider-card { border-radius: 0; }
.slider-card .slide { aspect-ratio: 4 / 3; }

.colores-nota { margin-top: 36px; text-align: center; font-size: .9rem; color: var(--gris-texto); }
@media (max-width:900px){ .colores-nota { margin-top: 28px; font-size: .85rem; } }
