/* ============================================================
   RESIDENCIA MIRADOR · editorial mediterráneo (rediseño pro)
   Paleta: azul Hispania, naranja cálido, cremas y grafito
   Tipografía: Fraunces · Instrument Serif · Manrope
   ============================================================ */

:root {
  /* Fondos: blanco puro + cremas cálidas (arena mediterránea) */
  --cream-50:  #ffffff;
  --cream-100: #f4ece0;
  --cream-200: #ebe0cf;
  --cream-300: #ddcfba;

  /* Naranja Hispania (acento cálido) */
  --ochre-300: #f5b570;
  --ochre-400: #ef9b3e;
  --ochre-500: #e8861a;
  --ochre-600: #c06a10;
  --ochre-700: #8a4c0c;

  /* Azul Hispania (institucional) */
  --terra-400: #3d6c9a;
  --terra-500: #1f4e7e;
  --terra-600: #174066;
  --terra-700: #0f2f4d;

  /* Gris neutro Hispania (secundario) */
  --olive-300: #d4d4d4;
  --olive-500: #a5a5a5;
  --olive-600: #7a7a7a;
  --olive-700: #555555;

  /* Tinta azul-grafito */
  --ink-900: #0c1f33;
  --ink-800: #152c45;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;

  --white: #ffffff;

  /* Azul medio */
  --sky-500: #2a6094;

  /* Radios */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 40px;

  /* Sombras */
  --sh-xs: 0 1px 2px rgba(12, 31, 51, 0.06);
  --sh-sm: 0 6px 16px rgba(12, 31, 51, 0.08);
  --sh-md: 0 18px 40px rgba(12, 31, 51, 0.10);
  --sh-lg: 0 40px 80px rgba(12, 31, 51, 0.16);

  /* Tipografías */
  --f-display: "Fraunces", ui-serif, Georgia, serif;
  --f-italic:  "Instrument Serif", ui-serif, Georgia, serif;
  --f-body:    "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--cream-50);
  scroll-padding-top: 100px;
}

body {
  font-family: var(--f-body);
  color: var(--ink-800);
  background: var(--cream-50);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Capa de grano cálido sobre toda la web */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12   0 0 0 0 0.31   0 0 0 0 0.5   0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.25'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.14;
  pointer-events: none;
  z-index: 1;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:focus-visible {
  outline: 3px solid var(--ochre-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

/* Enlace de salto accesible */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  background: var(--ink-900);
  color: var(--cream-50);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Barra de progreso de lectura */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--terra-500), var(--ochre-500));
  transition: width .1s linear;
  box-shadow: 0 1px 8px rgba(232, 134, 26, 0.5);
}

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  color: var(--ink-900);
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

h1 {
  font-size: clamp(3.2rem, 9.5vw, 8.4rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 350;
  letter-spacing: -0.035em;
  line-height: 1.0;
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h4 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

em, .italic {
  font-family: var(--f-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra-600);
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* Índice de sección (sustituye al guion largo decorativo) */
.section-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ochre-600);
}
.section-num::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lead {
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  color: var(--ink-700);
  line-height: 1.6;
  max-width: 58ch;
  font-weight: 400;
}

::selection {
  background: var(--ochre-400);
  color: var(--ink-900);
}

/* ============================================================
   REVELADO AL HACER SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 30px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

.btn-primary { background: var(--ink-900); color: var(--cream-50); }
.btn-primary:hover { background: var(--terra-600); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23, 64, 102, 0.35); }

.btn-amber { background: var(--ochre-500); color: var(--ink-900); }
.btn-amber:hover { background: var(--ochre-600); color: var(--cream-50); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31, 78, 126, 0.35); }

.btn-ghost { background: transparent; color: var(--ink-900); border: 1px solid rgba(12, 31, 51, 0.18); }
.btn-ghost:hover { background: var(--ink-900); color: var(--cream-50); border-color: var(--ink-900); }

.btn-wa { background: #25D366; color: white; }
.btn-wa:hover { background: #1fb955; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4); }

.btn-light { background: var(--cream-50); color: var(--ink-900); box-shadow: var(--sh-sm); }
.btn-light:hover { background: var(--ochre-500); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(232, 134, 26, 0.4); }

.btn svg { flex-shrink: 0; transition: transform .35s ease; }
.btn:hover svg.arrow { transform: translateX(4px); }

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(31, 78, 126, 0.1);
  box-shadow: 0 4px 24px rgba(12, 31, 51, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity .3s ease;
}
.logo:hover { opacity: 0.7; }

/* Navbar: logoh horizontal (6406×1512 native) */
.logo-mark {
  height: 62px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  margin: -4px 0 0 0;
  animation: logoFadeIn 1.2s var(--ease) both;
}
.nav.scrolled .logo-mark { height: 52px; transition: height .4s var(--ease); }
@keyframes logoFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Footer: logov vertical en blanco (3482×3527 native) */
.footer-logo { display: inline-block; }
.logo-full {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  margin: 0 auto;
  opacity: 0.92;
  transition: opacity .3s ease;
}
.footer-logo:hover .logo-full { opacity: 1; }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-700);
  position: relative;
  padding: 8px 0;
  transition: color .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--ochre-500);
  transition: width .35s ease;
}
.nav-links a:hover { color: var(--terra-600); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--terra-600); }

.nav-cta { display: flex; gap: 10px; align-items: center; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ink-900);
  transition: background .2s ease;
  z-index: 130;
}
.menu-toggle:hover { background: var(--cream-100); }

/* Menú móvil a pantalla completa */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--cream-100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu::after {
  content: "";
  position: absolute;
  right: -10%; bottom: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(232,134,26,0.12), transparent 70%);
  pointer-events: none;
}
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu ul a {
  font-family: var(--f-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 350;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  padding: 6px 0;
}
.mobile-menu ul a span { font-family: var(--f-body); font-size: 0.8rem; font-weight: 600; color: var(--ochre-600); letter-spacing: 0.2em; }
.mobile-menu .mm-cta { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu .mm-cta .btn { width: 100%; }
.mm-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ink-900);
  background: rgba(12, 31, 51, 0.06);
  transition: background .2s ease, transform .25s ease;
  z-index: 2;
}
.mm-close:hover { background: rgba(12, 31, 51, 0.12); transform: rotate(90deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  overflow: hidden;
  background: var(--cream-100);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: saturate(1.08) contrast(1.02);
  animation: heroIntro 2.4s var(--ease) both;
}
@keyframes heroIntro {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255,0.3) 0%, rgba(255, 255, 255,0) 20%, rgba(12, 31, 51,0.1) 60%, rgba(12, 31, 51,0.58) 100%),
    linear-gradient(100deg, rgba(255, 255, 255,0.2) 0%, rgba(255, 255, 255,0) 45%);
}
/* Resplandor cálido tipo amanecer */
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(232,134,26,0.22), transparent 60%);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 220px);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 40px;
}

.hero-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 40px;
  padding-top: 80px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-50);
  background: rgba(12, 31, 51, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
}
.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ochre-400);
  box-shadow: 0 0 0 4px rgba(245,181,112,0.3);
}



.hero-main { color: var(--cream-50); text-shadow: 0 2px 24px rgba(12,31,51,0.45), 0 1px 6px rgba(0,0,0,0.3); }
.hero-main h1 { color: var(--cream-50); position: relative; }
.hero-main h1 em { color: var(--cream-50); position: relative; }

.vida-underline {
  position: absolute;
  left: 0; right: 0; bottom: -0.12em;
  width: 100%; height: 0.34em;
  overflow: visible;
}
.vida-underline path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: drawLine 1.4s var(--ease) 1.1s forwards;
}
@keyframes drawLine { 0% { stroke-dashoffset: 1; opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }

.hero-lead {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  color: rgba(255,255,255,0.92);
  max-width: 56ch;
  margin: 28px 0 36px;
  line-height: 1.55;
  text-shadow: 0 2px 20px rgba(12,31,51,0.4), 0 1px 6px rgba(0,0,0,0.25);
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; text-shadow: none; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.22);
  padding-top: 32px;
}
.hero-stat .num {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 350;
  color: var(--cream-50);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-stat .num sup { font-size: 0.45em; color: var(--ochre-300); top: -0.7em; }
.hero-stat .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  margin-top: 8px;
  letter-spacing: 0.03em;
  font-weight: 500;
}



/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--cream-100);
  position: relative;
}
.philosophy-quote { max-width: 1000px; margin: 0 auto; text-align: center; position: relative; }
.philosophy-quote::before {
  content: "“";
  position: absolute;
  top: -0.5em; left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-size: clamp(6rem, 14vw, 12rem);
  line-height: 1;
  color: var(--ochre-400);
  opacity: 0.25;
  z-index: 0;
}
.philosophy-quote h2 {
  position: relative;
  z-index: 1;
  font-weight: 300;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.philosophy-quote h2 em { color: var(--terra-500); }
.philosophy-attr {
  margin-top: 36px;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ochre-600);
  font-weight: 600;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: clamp(70px, 10vw, 130px) 0;
  background: var(--cream-50);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about-visual { position: relative; }
.img-main {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  position: relative;
}
.img-main img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.img-main:hover img { transform: scale(1.04); }
.about-sticker {
  position: absolute;
  bottom: -28px; right: -20px;
  background: var(--ochre-500);
  color: var(--ink-900);
  padding: 22px 28px;
  border-radius: var(--r-md);
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: var(--sh-md);
  font-weight: 500;
  animation: floaty 5s ease-in-out infinite;
}
.about-sticker strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 4px;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.about-text h2 { margin: 18px 0 24px; }
.about-text h2 em { color: var(--terra-500); }
.about-text .lead { margin-bottom: 18px; }
.about-text p { color: var(--ink-700); margin-bottom: 16px; }

.about-features {
  list-style: none;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--ink-800);
  font-size: 0.98rem;
}
.about-features svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--cream-50);
  background: var(--terra-500);
  border-radius: 50%;
  padding: 4px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 70px);
}
.section-head .head-left h2 { margin-top: 18px; }
.section-head .head-left h2 em { color: var(--terra-500); }
.section-head .head-right { padding-bottom: 6px; }

.services {
  padding: clamp(70px, 10vw, 130px) 0;
  background: var(--cream-100);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--cream-300);
  border: 1px solid var(--cream-300);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.service-card {
  background: var(--cream-50);
  padding: 38px 32px 34px;
  position: relative;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.service-card:hover { background: var(--white); transform: translateY(-2px); z-index: 2; box-shadow: var(--sh-md); }
.service-num {
  position: absolute;
  top: 28px; right: 30px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-300);
  transition: color .3s ease;
}
.service-card:hover .service-num { color: var(--ochre-500); }
.service-icon {
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  background: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--terra-500); stroke-width: 1.7; transition: stroke .4s ease; }
.service-card:hover .service-icon { background: var(--terra-500); transform: rotate(-4deg) scale(1.05); }
.service-card:hover .service-icon svg { stroke: var(--cream-50); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--ink-700); font-size: 0.97rem; line-height: 1.55; }

.services-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding: 24px 30px;
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
}
.services-footer svg { width: 28px; height: 28px; flex-shrink: 0; stroke: var(--ochre-500); stroke-width: 1.6; }
.services-footer p { font-size: 0.95rem; color: var(--ink-700); }
.services-footer strong { color: var(--ink-900); font-weight: 700; }

/* ============================================================
   FACILITIES (bento)
   ============================================================ */
.facilities {
  padding: clamp(70px, 10vw, 130px) 0;
  background: var(--cream-50);
}
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.bento-item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream-200);
  cursor: pointer;
}
.bento-item .num {
  position: absolute;
  top: 18px; left: 20px;
  z-index: 3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cream-50);
  mix-blend-mode: difference;
}
.bento-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .5s ease;
}
.bento-item.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,31,51,0) 35%, rgba(12,31,51,0.72) 100%);
  transition: opacity .4s ease;
  z-index: 1;
}
.bento-item:hover img { transform: scale(1.07); }
.bento-item .overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px;
  z-index: 2;
  color: var(--cream-50);
  transform: translateY(8px);
  transition: transform .45s var(--ease);
}
.bento-item:hover .overlay { transform: translateY(0); }
.bento-item .overlay h3 { color: var(--cream-50); font-size: 1.25rem; }
.bento-item .overlay p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease), opacity .45s var(--ease), margin .45s var(--ease);
}
.bento-item:hover .overlay p { max-height: 80px; opacity: 1; }
.bento-item .expand {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 3;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity .35s ease, transform .35s var(--ease), background .3s ease;
}
.bento-item:hover .expand { opacity: 1; transform: scale(1); }
.bento-item .expand:hover { background: var(--ochre-500); }
.bento-item .expand svg { width: 16px; height: 16px; stroke: var(--cream-50); }

/* Tarjeta de texto (sin foto) */
.bento-item.text-card {
  background: linear-gradient(150deg, var(--terra-500), var(--terra-700));
  cursor: default;
}
.bento-item.text-card .overlay { position: static; transform: none; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.bento-item.text-card .overlay p { max-height: none; opacity: 1; margin-top: 8px; }
.bento-item.text-card .num { mix-blend-mode: normal; color: var(--ochre-300); }

/* Composición del bento */
.b-1 { grid-column: span 2; grid-row: span 2; }
.b-2 { grid-column: span 2; }
.b-3 { grid-column: span 1; }
.b-4 { grid-column: span 1; }
.b-5 { grid-column: span 2; }
.b-6 { grid-column: span 2; }

/* ============================================================
   VISITS
   ============================================================ */
.visits {
  padding: clamp(70px, 10vw, 130px) 0;
  background: linear-gradient(180deg, var(--terra-600), var(--terra-700));
  color: var(--cream-50);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.visits::before {
  content: "";
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 80vw; height: 80vw;
  background: radial-gradient(circle, rgba(232,134,26,0.16), transparent 60%);
  pointer-events: none;
}
.visits .wrap { position: relative; z-index: 2; }
.visits .section-num { color: var(--ochre-300); justify-content: center; }
.visits h2 { color: var(--cream-50); margin: 16px 0 18px; }
.visits h2 em { color: var(--ochre-300); }
.visits .lead { color: rgba(255,255,255,0.85); margin: 0 auto 44px; }
.visits-slots {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.visits-slot {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-lg);
  padding: 32px 44px;
  min-width: 230px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), border-color .4s ease;
}
.visits-slot:hover { transform: translateY(-4px); border-color: var(--ochre-400); }
.slot-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre-300);
  font-weight: 600;
  margin-bottom: 10px;
}
.slot-hours {
  font-family: var(--f-display);
  font-size: 1.9rem;
  font-weight: 350;
  color: var(--cream-50);
}
.visits-note {
  max-width: 56ch;
  margin: 0 auto;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: clamp(70px, 10vw, 130px) 0;
  background: var(--cream-50);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: stretch;
}
.contact-info h2 { margin: 16px 0 18px; }
.contact-info h2 em { color: var(--terra-500); }
.contact-info .lead { margin-bottom: 34px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--cream-200);
}
.contact-info .contact-item:last-of-type { border-bottom: none; }
.contact-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; stroke: var(--terra-500); stroke-width: 1.7; }
.contact-icon.wa { background: rgba(37,211,102,0.12); }
.contact-icon.wa svg { fill: #25D366; stroke: none; }
.contact-icon.ochre svg { stroke: var(--ochre-600); }
.contact-icon.ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.contact-icon.ig svg { stroke: #fff; }
.ci-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 600;
  margin-bottom: 3px;
}
.ci-value { font-size: 1.02rem; font-weight: 500; color: var(--ink-900); }
.ci-value a { transition: color .25s ease; }
.ci-value a:hover { color: var(--ochre-600); }

.contact-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* Tarjeta de mapa */
.contact-side { display: flex; flex-direction: column; height: 100%; }

.contact-map-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.contact-map {
  flex: 1 1 auto;
  position: relative;
  min-height: 380px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.02);
}
.map-gate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  background: var(--cream-100);
}
.map-gate p {
  font-size: 0.88rem;
  color: var(--ink-500);
  line-height: 1.5;
  max-width: 220px;
}
.map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--cream-100);
  border-top: 1px solid var(--cream-300);
}
.map-footer .mf-text { display: flex; flex-direction: column; gap: 2px; }
.map-footer .mf-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 600;
}
.map-footer .mf-addr { font-size: 0.98rem; font-weight: 500; color: var(--ink-900); }
.map-footer .btn { padding: 11px 22px; font-size: 0.9rem; }

/* ============================================================
   FORMULARIO DE CONTACTO
   ============================================================ */
.contact-form-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: clamp(28px, 3.4vw, 44px);
}
.contact-form-card .form-sub {
  color: var(--ink-500);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 10px 0 26px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 8px;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--f-body);
  font-size: 0.98rem;
  color: var(--ink-900);
  background: var(--cream-100);
  border: 1px solid var(--cream-300);
  border-radius: var(--r-sm);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-400); }
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--terra-500);
  background: var(--cream-50);
  box-shadow: 0 0 0 3px rgba(31,78,126,0.12);
}
.form-textarea { resize: vertical; min-height: 118px; }
.form-hp { display: none; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-700);
  line-height: 1.5;
  cursor: pointer;
  margin: 4px 0 6px;
}
.form-check input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--terra-500);
  cursor: pointer;
}
.form-check a { color: var(--terra-600); text-decoration: underline; text-underline-offset: 2px; }
.form-check a:hover { color: var(--ochre-600); }

.form-submit { width: 100%; margin-top: 20px; }
.form-submit:disabled { opacity: 0.6; pointer-events: none; }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-500);
  text-align: center;
  margin-top: 18px;
}
.form-note a { color: var(--terra-600); }
.form-note a:hover { color: var(--ochre-600); }

.form-error {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(196,60,40,0.08);
  border: 1px solid rgba(196,60,40,0.22);
  color: #9a2c1c;
  font-size: 0.86rem;
  line-height: 1.5;
}
.form-error.show { display: flex; }
.form-error svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }
.form-error a { color: inherit; font-weight: 600; text-decoration: underline; }

.form-success {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 20px 10px;
}
.form-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(37,211,102,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success-icon svg { width: 28px; height: 28px; stroke: #1fb955; }
.form-success p { color: var(--ink-700); font-size: 0.95rem; max-width: 34ch; }
.form-success .btn { margin-top: 8px; }

.contact-form-card.is-sent .contact-form { display: none; }
.contact-form-card.is-sent .form-success { display: flex; }

.contact-map-full { margin-top: clamp(28px, 4vw, 48px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.7);
  padding: clamp(60px, 8vw, 100px) 0 40px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(31,78,126,0.4), transparent 60%);
  pointer-events: none;
}
.footer .wrap { position: relative; z-index: 2; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: clamp(30px, 5vw, 60px);
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-about p { font-size: 0.95rem; line-height: 1.65; max-width: 36ch; margin-top: 6px; }
.footer h4 {
  color: var(--cream-50);
  font-family: var(--f-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer ul a, .footer ul button {
  font-size: 0.94rem;
  color: rgba(255,255,255,0.7);
  transition: color .25s ease, padding-left .25s ease;
  text-align: left;
  padding: 0;
}
.footer ul a:hover, .footer ul button:hover { color: var(--ochre-400); padding-left: 4px; }
.footer-contact p { font-size: 0.94rem; line-height: 1.8; }
.footer-contact strong { color: var(--cream-50); display: block; font-weight: 600; margin-bottom: 4px; }
.footer-contact a:hover { color: var(--ochre-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 30px;
  font-size: 0.85rem;
}
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a, .footer-legal button { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color .25s ease; }
.footer-legal a:hover, .footer-legal button:hover { color: var(--ochre-400); }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.45);
  transition: transform .35s var(--ease), box-shadow .35s ease;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2.4s var(--ease-soft) infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 36px rgba(37,211,102,0.6); }
.wa-float svg { width: 30px; height: 30px; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie {
  position: fixed;
  left: 22px; bottom: 22px;
  z-index: 150;
  max-width: 420px;
  background: var(--cream-50);
  border: 1px solid var(--cream-300);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  box-shadow: var(--sh-lg);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.cookie.show { transform: translateY(0); opacity: 1; }
.cookie h4 { font-family: var(--f-display); font-size: 1.2rem; font-weight: 400; margin-bottom: 8px; }
.cookie p { font-size: 0.88rem; color: var(--ink-700); line-height: 1.55; margin-bottom: 18px; }
.cookie p a { color: var(--terra-600); text-decoration: underline; text-underline-offset: 2px; }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btns .btn { padding: 11px 22px; font-size: 0.88rem; }

/* ============================================================
   MODALS (legal)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(12, 31, 51, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-inner {
  background: var(--cream-50);
  border-radius: var(--r-lg);
  max-width: 760px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: clamp(30px, 5vw, 56px);
  position: relative;
  box-shadow: var(--sh-lg);
  transform: translateY(20px) scale(0.98);
  transition: transform .4s var(--ease);
}
.modal.open .modal-inner { transform: none; }
.modal-close {
  position: sticky;
  top: 0; left: 100%;
  margin-bottom: -44px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-700);
  transition: background .25s ease, color .25s ease;
  z-index: 2;
}
.modal-close:hover { background: var(--ink-900); color: var(--cream-50); }
.modal-sub {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre-600);
  font-weight: 600;
  margin-bottom: 8px;
}
.modal-inner h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 26px; line-height: 1.15; }
.modal-inner h3 { font-size: 1.3rem; margin: 34px 0 12px; color: var(--terra-600); line-height: 1.3; }
.modal-inner h3:first-of-type { margin-top: 10px; }
.modal-inner h3 + h4 { margin-top: 14px; }
.modal-inner h4 { font-size: 1.08rem; margin: 24px 0 8px; color: var(--ink-900); line-height: 1.35; }
.modal-inner p { font-size: 1rem; color: var(--ink-700); margin-bottom: 14px; line-height: 1.7; }
.modal-inner ul { margin: 0 0 16px 22px; }
.modal-inner li { font-size: 1rem; color: var(--ink-700); margin-bottom: 8px; line-height: 1.65; }
.modal-inner a { color: var(--terra-600); text-decoration: underline; text-underline-offset: 2px; }
.modal-inner strong { color: var(--ink-900); }

/* ============================================================
   PÁGINAS LEGALES (/aviso-legal, /privacidad, /cookies)
   ============================================================ */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(31, 78, 126, 0.1);
  box-shadow: 0 4px 24px rgba(12, 31, 51, 0.05);
  padding: 14px 0;
}
.legal-header .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legal-header .logo-mark { height: 50px; width: auto; display: block; margin: -2px 0 0; }
.legal-header-actions { display: flex; gap: 10px; align-items: center; }
.legal-home-btn .home-arrow { display: none; }
.legal-home-btn .home-label-short { display: none; }

.legal { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-sub {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre-600);
  font-weight: 600;
  margin-bottom: 10px;
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.12; margin-bottom: 10px; }
.legal-updated { font-size: 0.9rem; color: var(--ink-500); margin-bottom: 34px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; color: var(--terra-600); line-height: 1.3; }
.legal h2:first-of-type { margin-top: 20px; }
.legal h2 + h3 { margin-top: 16px; }
.legal h3 { font-size: 1.08rem; margin: 26px 0 8px; color: var(--ink-900); line-height: 1.35; }
.legal p { font-size: 1rem; color: var(--ink-700); margin-bottom: 14px; line-height: 1.7; }
.legal ul { margin: 0 0 16px 22px; }
.legal li { font-size: 1rem; color: var(--ink-700); margin-bottom: 8px; line-height: 1.65; }
.legal a { color: var(--terra-600); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink-900); }
.legal-back {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid rgba(31, 78, 126, 0.12);
  font-size: 0.95rem;
}
.legal-back a { color: var(--terra-600); font-weight: 600; text-decoration: none; }
.legal-back a:hover { text-decoration: underline; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 18, 30, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
  padding: 40px;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  transform: scale(0.96);
  transition: transform .4s var(--ease);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--cream-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, transform .25s ease;
  z-index: 3;
}
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 22px; height: 22px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--ochre-500); }
.lightbox-close { top: -64px; right: 0; }
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }
.lightbox-prev:hover { transform: translateX(-3px); }
.lightbox-next:hover { transform: translateX(3px); }
.lightbox-caption {
  position: absolute;
  bottom: -54px; left: 0; right: 0;
  text-align: center;
  color: var(--cream-50);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.9rem;
}
.lightbox-caption .title { font-weight: 600; }
.lightbox-caption .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ochre-400); }
.lightbox-caption .counter { color: rgba(255,255,255,0.6); letter-spacing: 0.1em; font-size: 0.8rem; }
body.lightbox-open { overflow: hidden; }

/* ============================================================
   IMÁGENES LAZY (fade-in)
   ============================================================ */
img[loading="lazy"] { opacity: 0; transition: opacity .8s ease; }
img[loading="lazy"].is-loaded { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost, .nav-cta .btn-amber { display: none; }
  .menu-toggle { display: flex; }
  .legal-header .btn-ghost { display: none; }
  .legal-header .logo-mark { height: 58px; }
  .legal-header .btn-amber { padding: 11px 18px; font-size: 0.85rem; }
  .legal-home-btn .home-arrow { display: inline-block; }
  .legal-home-btn .home-label-full { display: none; }
  .legal-home-btn .home-label-short { display: inline; }
  .about-inner { grid-template-columns: 1fr; }
  .about-sticker { right: 16px; bottom: -22px; }
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-top { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 120px 0 70px; }
  .hero-top { padding-top: 30px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .b-1 { grid-column: span 2; grid-row: span 2; }
  .b-2, .b-5, .b-6 { grid-column: span 2; }
  .b-3, .b-4 { grid-column: span 1; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: -56px; }
  .cookie { left: 14px; right: 14px; max-width: none; bottom: 14px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .legal-header .logo-mark { height: 54px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg img { animation: none; }
  .about-sticker { animation: none; }
  .vida-underline path { stroke-dashoffset: 0; }
}

/* Contenedor oculto: alimenta el visor con las fotos no expuestas en rejilla */
.lightbox-pool { display: none; }

