/* Inknut Antiqua self-hosted (400 + 600) — sin Google Fonts externo */
@font-face {
  font-family: "Inknut Antiqua";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inknut-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inknut Antiqua";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inknut-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inknut Antiqua";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inknut-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inknut Antiqua";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inknut-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================
   VARIABLES — Sistema de colores
   ============================================ */

:root {
  /* Backgrounds */
  --bg: #ffffff;
  --bg-hover: #f7f7f7;

  /* Text */
  --text: #000000;
  --text-content: #333333;
  --text-secondary: #767676;
  --text-muted: #737373;

  /* Borders */
  --border: rgba(0, 0, 0, 0.12);
  --border-hover: rgba(0, 0, 0, 0.35);

  /* Shadows */
  --shadow-sm: rgba(0, 0, 0, 0.05);
  --shadow-md: rgba(0, 0, 0, 0.08);

  /* Scrollbar */
  --scrollbar-thumb: rgba(0, 0, 0, 0.2);

  /* Zone label */
  --zone-label: rgba(0, 0, 0, 0.055);

  /* Minimap */
  --minimap-cell: #d0d0d0;
  --minimap-active: #000000;
  --minimap-expanded-bg: #c0c0c0;
  --minimap-expanded-hover: #555555;
  --minimap-expanded-text: #ffffff;
  --overlay-bg: rgba(255, 255, 255, 0.97);

  /* Buttons (subtle) */
  --btn-subtle: rgba(0, 0, 0, 0.3);
  --btn-subtle-hover: rgba(0, 0, 0, 0.6);
  --btn-subtle-strong: rgba(0, 0, 0, 0.35);
  --btn-subtle-strong-hover: rgba(0, 0, 0, 0.7);

  /* Gradient (scroll fade) */
  --gradient-color: #ffffff;

  /* Tipografía */
  --font-serif: "Inknut Antiqua", serif;

  /* Transitions reutilizables (la mayoría — algunas componentes
     usan duraciones específicas distintas). */
  --transition-fast: 0.2s ease;
  --transition-med: 0.3s ease;
  --transition-slow: 0.4s ease;

  /* Padding desde el borde del viewport para nav-labels, lang/font
     buttons, theme toggle, etc. */
  --edge-pad-y: 3dvh;
  --edge-pad-x: 3dvw;

  /* Escala de z-index */
  --z-base: 1;          /* zone-label-bg, scroll gradients */
  --z-cell: 2;          /* celda */
  --z-cupon: 5;         /* cupón flotante (welcome) */
  --z-nav: 10;          /* nav-labels, lang/font/theme buttons, section-nav */
  --z-overlay-img: 30;  /* overlay sobre imagen (portfolio grid) */
  --z-header: 100;      /* header fijo (minimapa inline) */
  --z-modal: 200;       /* overlay modal (minimapa expandido) */
}

/* ============================================
   TEMA OSCURO
   ============================================ */

[data-theme="dark"] {
  /* Backgrounds */
  --bg: #121212;
  --bg-hover: #1e1e1e;

  /* Text */
  --text: #e0e0e0;
  --text-content: #cccccc;
  --text-secondary: #8a8a8a;
  --text-muted: #808080;

  /* Borders */
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.25);

  /* Shadows */
  --shadow-sm: rgba(0, 0, 0, 0.2);
  --shadow-md: rgba(0, 0, 0, 0.35);

  /* Scrollbar */
  --scrollbar-thumb: rgba(255, 255, 255, 0.2);

  /* Zone label */
  --zone-label: rgba(255, 255, 255, 0.04);

  /* Minimap */
  --minimap-cell: #3a3a3a;
  --minimap-active: #f2f2f2;
  --minimap-expanded-bg: #555555;
  --minimap-expanded-hover: #999999;
  --minimap-expanded-text: #121212;
  --overlay-bg: rgba(18, 18, 18, 0.97);

  /* Buttons (subtle) */
  --btn-subtle: rgba(255, 255, 255, 0.3);
  --btn-subtle-hover: rgba(255, 255, 255, 0.6);
  --btn-subtle-strong: rgba(255, 255, 255, 0.35);
  --btn-subtle-strong-hover: rgba(255, 255, 255, 0.7);

  /* Gradient (scroll fade) */
  --gradient-color: #121212;
}

/* ============================================
   0. RESET & BASE
   Normalización y estilos base globales.
   Fuente: Inknut Antiqua (serif).
   ============================================ */

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.3;
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Foco visible solo en navegación por teclado (no en click de ratón/táctil).
   Usa --text para contrastar en ambos temas. */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

p, h1, h2, h3 {
  margin: 0;
  padding: 0;
}

/* Respeta la preferencia del sistema: anula transiciones y animaciones
   para usuarios con sensibilidad al movimiento. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   1. CONTENEDOR PRINCIPAL
   Ocupa todo el viewport. Las celdas se apilan
   dentro con position:absolute.
   ============================================ */

#content {
  position: relative;
  width: 100dvw;
  height: 100dvh;
}

/* ============================================
   2. CELDAS (PÁGINAS)
   Cada celda ocupa el 100% del viewport.
   Solo la celda con .activa es visible (opacity 1)
   y recibe pointer-events.
   ============================================ */

.celda {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 10dvh 10dvw;
  box-sizing: border-box;
  background-color: transparent;
  color: var(--text);
  opacity: 0;
  visibility: hidden;               /* bloquea clicks en hijos aunque tengan pointer-events:auto */
  transition: opacity 0.6s ease-in-out, visibility 0s 0.6s; /* visibility se oculta tras el fade-out */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-cell);
}

.celda.activa {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease-in-out, visibility 0s 0s; /* visibility visible inmediato al activar */
}

/* ============================================
   3. ZONE LABEL
   Texto grande semi-transparente de fondo que
   muestra el nombre de la página actual.
   ============================================ */

.zone-label-bg {
  position: fixed;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(5rem, 18dvw, 16rem);
  font-weight: 400;
  color: var(--zone-label);
  text-transform: lowercase;
  letter-spacing: -0.03em;
  pointer-events: none;
  z-index: var(--z-base);
  white-space: nowrap;
  user-select: none;
  transition: opacity 0.6s ease;
  line-height: 1;
}

/* ============================================
   4. MINIMAP INLINE (esquina superior derecha)
   Cuadrícula pequeña que muestra la posición
   actual en el grid. Click abre el overlay.
   ============================================ */

.header-topright {
  position: fixed;
  top: 3dvh;
  right: 3dvw;
  z-index: var(--z-header);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.minimap-inline {
  display: grid;
  /* columnas y filas se definen en JS según GRID.length */
  gap: 3px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.minimap-inline:hover {
  opacity: 1;
}

.minimap-inline-cell {
  background: var(--minimap-cell);
  transition: background 0.2s ease;
}

.minimap-inline-cell.activa {
  background: var(--minimap-active);
  /* Anillo sutil para que la sección actual sea inequívoca también en celdas
     pequeñas de móvil, sin depender solo del brillo. */
  box-shadow: 0 0 0 1px var(--minimap-active);
}

.minimap-inline-cell.invisible {
  visibility: hidden;
}

/* ============================================
   5. MINIMAP EXPANDIDO (overlay)
   Overlay a pantalla completa con celdas
   clickeables para navegar directamente.
   ============================================ */

.minimap-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  background: var(--overlay-bg);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.minimap-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.minimap-expanded {
  display: grid;
  gap: 12px;
}

.minimap-expanded-cell {
  background: var(--minimap-expanded-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
  font-family: var(--font-serif);
  font-size: clamp(0.5rem, 1dvw, 0.85rem);
  color: var(--minimap-expanded-text);
  transition: background 0.3s ease, transform 0.3s ease;
  text-transform: lowercase;
}

.minimap-expanded-cell:hover {
  transform: scale(1.06);
  background: var(--minimap-expanded-hover);
}

.minimap-expanded-cell.activa {
  background: var(--minimap-active);
}

.minimap-expanded-cell.invisible {
  visibility: hidden;
}

/* ============================================
   6. NAV LABELS (botones de navegación)
   Texto en los bordes de la celda activa
   que indica las celdas vecinas navegables.
   Posiciones: top, bottom, left, right.
   ============================================ */

.nav-label {
  position: absolute;
  font-size: clamp(0.7rem, 1dvw, 1rem);
  color: var(--text-secondary);
  cursor: pointer;
  z-index: var(--z-nav);
  transition: color 0.3s ease;
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
  border: none;
  background: none;
  padding: 0;
  text-decoration: none;
  line-height: normal;
}

.nav-label:hover,
a.nav-label:hover {
  color: var(--text);
}

a.nav-label,
a.nav-label:visited {
  color: var(--text-secondary);
}

.nav-label.left {
  left: 3dvw;
  top: 50%;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}

.nav-label.right {
  right: 3dvw;
  top: 50%;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.nav-label.top {
  top: 3dvh;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
}

.nav-label.bottom {
  bottom: 3dvh;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .nav-label {
    font-size: clamp(0.6rem, 2.5dvw, 0.8rem);
  }
}

/* ============================================
   7. SCROLL WRAPPER / CONTENT (compartido)
   Gradientes top/bottom que aparecen cuando el
   contenido es scrolleable. JS añade .can-scroll-*
   según la posición. Cada página puede sobreescribir
   width/height/padding sin repetir el patrón.
   ============================================ */

.scroll-wrapper {
  position: relative;
}

.scroll-wrapper::before,
.scroll-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3rem;
  pointer-events: none;
  z-index: var(--z-base);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.scroll-wrapper::before {
  top: 0;
  background: linear-gradient(to bottom, var(--gradient-color), transparent);
}

.scroll-wrapper::after {
  bottom: 0;
  background: linear-gradient(to top, var(--gradient-color), transparent);
}

.scroll-wrapper.can-scroll-up::before { opacity: 1; }
.scroll-wrapper.can-scroll-down::after { opacity: 1; }

.scroll-content {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  transition: opacity 0.25s ease;
}

/* ============================================
   8. PAGE: TOOLS
   Herramientas internas del estudio.
   Reutiliza los estilos de .tool-link y .tools-dropdown-*.
   ============================================ */

.celda.tools {
  flex-direction: column;
}

.tools-scroll-wrapper {
  width: 90dvw;
  max-width: 1000px;
  height: 80dvh;
}

.tools-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tools-list {
  width: 70dvw;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tools-list.has-open-last-dropdown {
  padding-bottom: 30dvh;
}

/* ============================================
   9. PAGE: WELCOME
   Solo el título del estudio, centrado.
   ============================================ */

.celda.welcome {
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: transparent;
}

.welcome-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: var(--z-nav);
  pointer-events: none;
}

.welcome-title {
  font-size: clamp(1.6rem, 3.5dvw, 3rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: center;
  text-shadow:
    0 0 12px var(--bg),
    0 0 24px var(--bg),
    0 0 36px var(--bg);
}

/* El título es link al modo fácil. `.welcome-content` tiene pointer-events:none
   (para que el cupón de detrás reciba los clics), así que lo reactivamos solo
   en el link. Subrayado sutil al hover como pista de que es navegable. */
.welcome-title-link {
  pointer-events: auto;
}
.welcome-title-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 1px;
}


@media (max-width: 768px) {
  .welcome-title {
    max-width: 60dvw;
  }
}

/* Cupón rebotando en la welcome — sello con flip 3D al hacer click.
   El wrapper recibe el translate+rotate del rebote. El inner gira en Y para
   mostrar el dorso. Las caras son hermanas con backface-hidden para que solo
   se vea la que toca. La front está en flujo y marca el tamaño; la back va
   absoluta encima, rotada 180º. */
.welcome-cupon-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z-cupon);
  perspective: 1200px;
  will-change: transform;
  transform-origin: center;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
}

.welcome-cupon-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.5, 0, 0.3, 1);
}

.welcome-cupon-wrapper.flipped .welcome-cupon-inner {
  transform: rotateY(180deg);
}

/* Ancho fijo en ambas caras para que el cupón no baile al cambiar de idioma.
   El valor está calibrado al idioma más ancho (es: "válido hasta finales de agosto"). */
.welcome-cupon-face {
  box-sizing: border-box;
  width: 23rem;
  padding: 1.3rem 2.8rem;
  background: var(--bg);
  border: 1px solid var(--text);
  outline: 1px solid var(--text);
  outline-offset: 4px;
  text-align: center;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: background 0.25s ease, color 0.25s ease, outline-color 0.25s ease;
}

.welcome-cupon-front {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.welcome-cupon-back {
  position: absolute;
  inset: 0;
  /* Hereda padding de .welcome-cupon-face para respirar igual que el anverso
     (y para que el ajuste mobile del face también le afecte) */
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

/* Invertir colores al pasar por encima — solo en la cara visible */
.welcome-cupon-wrapper:not(.flipped):hover .welcome-cupon-front,
.welcome-cupon-wrapper.flipped:hover .welcome-cupon-back {
  background: var(--text);
  color: var(--bg);
  outline-color: var(--text);
}

.welcome-cupon-hazte {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.welcome-cupon-precio {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0.2rem 0 0.4rem;
}

.welcome-cupon-iva {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-style: italic;
}

.welcome-cupon-caduca {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.45rem;
}

.welcome-cupon-wrapper:hover .welcome-cupon-hazte,
.welcome-cupon-wrapper:hover .welcome-cupon-iva,
.welcome-cupon-wrapper:hover .welcome-cupon-caduca,
.welcome-cupon-wrapper:hover .welcome-cupon-primera {
  color: var(--bg);
  opacity: 0.85;
}

/* Dorso — párrafo con lo que incluye + primera reunión + CTA.
   `white-space: normal` sobrescribe el `nowrap` heredado de .welcome-cupon-face
   para que el párrafo pueda partir en varias líneas. */
.welcome-cupon-incluye {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: normal;
}

.welcome-cupon-primera {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.welcome-cupon-cta {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
  pointer-events: auto;
}

.welcome-cupon-cta:hover {
  background: var(--text);
  color: var(--bg) !important;
}

.welcome-cupon-wrapper.flipped:hover .welcome-cupon-cta:hover {
  background: var(--bg);
  color: var(--text) !important;
}

@media (max-width: 560px) {
  .welcome-cupon-face {
    width: 15rem;
    padding: 0.8rem 1.2rem;
    outline-offset: 3px;
  }
  .welcome-cupon-front {
    gap: 0.2rem;
  }
  .welcome-cupon-hazte {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
  }
  .welcome-cupon-precio {
    font-size: 1.55rem;
    margin: 0.15rem 0 0.3rem;
  }
  .welcome-cupon-iva {
    font-size: 0.58rem;
  }
  .welcome-cupon-caduca {
    font-size: 0.52rem;
    letter-spacing: 0.12em;
    margin-top: 0.3rem;
  }
  .welcome-cupon-back {
    gap: 0.4rem;
  }
  .welcome-cupon-incluye {
    font-size: 0.58rem;
    line-height: 1.45;
  }
  .welcome-cupon-primera {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
  }
  .welcome-cupon-cta {
    font-size: 0.64rem;
    padding: 0.45rem 1.1rem;
    letter-spacing: 0.15em;
  }
}

/* Link tipo tarjeta (cada herramienta/proyecto) */
.tool-link {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 1rem;
  font-family: var(--font-serif);
  font-size: clamp(0.7rem, 0.95dvw, 0.9rem);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px var(--shadow-sm);
  position: relative;
}

.tool-link:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-md);
}

.tool-link:active {
  transform: translateY(0);
}

/* --- Botón doble (2 links en una línea) --- */

.tool-link-dual {
  display: flex;
  gap: 0.4rem;
}

.tool-link-dual .tool-link {
  flex: 1;
  min-width: 0;
}

.tool-link-dual .tool-link:first-child {
  text-align: right;
}

.tool-link-dual .tool-link:last-child {
  text-align: left;
}

/* --- Dropdowns (formateadores, webs terminadas) --- */

.tools-dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

/* Botón del dropdown: mismo estilo visual que .tool-link */
.tools-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 1rem;
  font-family: var(--font-serif);
  font-size: clamp(0.7rem, 0.95dvw, 0.9rem);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px var(--shadow-sm);
  text-align: center;
}

.tools-dropdown-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-md);
}

.tools-dropdown-btn.active {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

/* Flecha del dropdown: rota 180deg al abrir */
.tools-dropdown-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  opacity: 0.5;
}

.tools-dropdown-btn.active .tools-dropdown-icon {
  transform: rotate(180deg);
}

/* Contenido desplegable: animado con grid-template-rows 0fr→1fr */
.tools-dropdown-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  overflow: hidden;
  width: 100%;
  background: var(--bg);
}

.tools-dropdown-content.open {
  grid-template-rows: 1fr;
}

.tools-dropdown-inner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0;
  transition: margin-top 0.2s ease;
}

.tools-dropdown-content.open .tools-dropdown-inner {
  margin-top: 0.5rem;
}


/* El scroll del contenido de dropdowns lo gestiona .tools-content */

/* ============================================
   10. PAGE: STATEMENT
   Manifiesto del estudio: texto centrado.
   ============================================ */

.celda.statement {
  flex-direction: column;
}

.statement-content {
  text-align: center;
  max-width: 720px;
  width: 70dvw;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2em;
  line-height: 1.7;
  font-size: clamp(0.85rem, 1.2dvw, 1.15rem);
  transition: opacity 0.25s ease;
}

.statement-content p {
  margin: 0;
  color: var(--text-content);
}


/* ============================================
   11. PAGE: METODOLOGÍA
   Proceso de trabajo en 5 pasos, mismo formato que statement.
   ============================================ */

.celda.metodologia {
  flex-direction: column;
}

.metodologia-scroll-wrapper {
  width: 70dvw;
  max-width: 720px;
  height: 80dvh;
}

.metodologia-content {
  text-align: center;
  line-height: 1.7;
  font-size: clamp(0.85rem, 1.2dvw, 1.15rem);
  padding-top: 20dvh;
  padding-bottom: 20dvh;
}

.metodologia-content p {
  margin-bottom: 1.4em;
  color: var(--text-content);
}

/* ============================================
   12. PAGE: FOOTER
   Términos de pago y condiciones del estudio.
   ============================================ */

.footer-scroll-wrapper {
  width: 70dvw;
  max-width: 720px;
  height: 80dvh;
}

.footer-content {
  text-align: center;
  line-height: 1.7;
  font-size: 0.88rem;
  padding-top: 20dvh;
  padding-bottom: 20dvh;
}

/* Cuando la sección no necesita scroll, centrar vertical y descartar el padding 20dvh */
.footer-scroll-wrapper.is-short .footer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}

.footer-content p {
  margin-bottom: 1.4em;
  color: var(--text-content);
}

/* Último párrafo más tenue (compromiso del estudio) */
.footer-content p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.88em;
}

/* Nota final: "aceptar el presupuesto..." */
.footer-nota {
  margin-top: 2em;
  font-weight: 600;
  color: var(--text) !important;
  font-size: 1em !important;
}

/* Wrapper para centrar contenedor + barra verticalmente */
.celda.footer {
  flex-direction: column;
}

/* Barra inferior: +/- tamaño de fuente */
.footer-bottom-bar {
  position: absolute;
  bottom: 3dvh;
  left: 3dvw;
  display: flex;
  align-items: center;
  gap: 0;
}

.lang-group {
  position: absolute;
  bottom: 3dvh;
  right: 3dvw;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: var(--z-nav);
}

.lang-btn,
.footer-section-tab {
  border: none;
  background: none;
  color: var(--btn-subtle);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  transition: color 0.2s ease;
}

.lang-btn:hover,
.footer-section-tab:hover {
  color: var(--btn-subtle-hover);
}

.lang-btn.is-active,
.footer-section-tab.is-active {
  font-weight: 600;
  color: var(--text);
}


.footer-font-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--btn-subtle-strong);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  padding: 0;
}

.footer-font-btn:hover {
  color: var(--btn-subtle-strong-hover);
}

/* Área táctil ≥44px sin alterar el tamaño visual ni la maquetación: el
   ::before es absoluto (no ocupa espacio) y transparente; solo amplía la
   zona pulsable de controles pequeños en móvil.
   - lang-btn: fila horizontal con gap 0.3rem → se tesela el hueco sin solapar.
   - font-btn: la fila +/- va pegada (gap 0) → solo se amplía en vertical para
     no robar clicks al botón vecino.
   - theme-toggle: aislado en el overlay → 44×44 completo. */
.lang-btn,
.footer-font-btn {
  position: relative;
}
.lang-btn::before,
.footer-font-btn::before,
.theme-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  height: 44px;
  transform: translate(-50%, -50%);
}
.lang-btn::before    { width: calc(100% + 0.3rem); }
.footer-font-btn::before { width: 100%; }
.theme-toggle::before    { width: 44px; }

/* ============================================
   13. PAGE: PORTFOLIO
   Dos modos de visualización:
     - Nubes flotantes (clouds): screenshots que
       se desplazan horizontalmente con WAAPI
       + deriva vertical con CSS keyframes.
     - Grid: cuadrícula estática ordenada.
   ============================================ */

.celda.portfolio {
  padding: 0;
  overflow: hidden;
  background: transparent;
  position: relative;
}

/* --- Grid de proyectos --- */

.portfolio-scroll-wrapper {
  width: 100%;
  height: 100%;
  padding: 0 8dvw;
  box-sizing: border-box;
}

.portfolio-scroll-wrapper::before,
.portfolio-scroll-wrapper::after {
  height: 4rem;
}

.portfolio-scroll-content {
  padding: 5rem 0 6rem;
  box-sizing: border-box;
}

.portfolio-scroll-content::-webkit-scrollbar { width: 6px; }
.portfolio-scroll-content::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

.portfolio-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.6rem 1rem;
}

.pgrid-item {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 480px) {
  .pgrid-item {
    flex-basis: calc((100% - 1rem) / 2);
    max-width: calc((100% - 1rem) / 2);
  }
}

@media (min-width: 720px) {
  .portfolio-grid { gap: 1.8rem 1.2rem; }
  .pgrid-item {
    flex-basis: calc((100% - 2.4rem) / 3);
    max-width: calc((100% - 2.4rem) / 3);
  }
}

@media (min-width: 1200px) {
  .portfolio-grid { gap: 2rem 1.4rem; }
  .pgrid-item {
    flex-basis: calc((100% - 4.2rem) / 4);
    max-width: calc((100% - 4.2rem) / 4);
  }
}

.pgrid-item {
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease;
}

.pgrid-item[href]:hover,
.pgrid-item:has(.pgrid-url:hover) {
  transform: translateY(-3px);
}

.pgrid-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.pgrid-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 2s ease;
}

.pgrid-img-a { opacity: 1; }
.pgrid-img-b { opacity: 0; }

.pgrid-thumb.crossfade-flip .pgrid-img-a { opacity: 0; }
.pgrid-thumb.crossfade-flip .pgrid-img-b { opacity: 1; }

.pgrid-meta {
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.pgrid-url {
  font-size: clamp(0.7rem, 0.9dvw, 0.8rem);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pgrid-item:hover .pgrid-url,
.pgrid-url:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .celda.portfolio .nav-label {
    z-index: var(--z-overlay-img);
  }
  .portfolio-scroll-wrapper {
    padding: 0 10dvw;
  }
  .portfolio-scroll-content {
    padding: 4rem 0 5rem;
  }
}


/* ============================================
   14. PAGE: CONTACTO
   Página minimalista de contacto: email + Instagram.
   ============================================ */

.celda.contacto {
  align-items: center;
  justify-content: center;
}

.contacto-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
  padding-top: 5dvh;
}

.contacto-row {
  display: flex;
  align-items: baseline;
  gap: 1em;
}

.contacto-email {
  font-size: clamp(1rem, 2dvw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contacto-email:hover {
  color: var(--text-secondary);
}

.contacto-instagram,
.contacto-cv {
  font-size: clamp(0.7rem, 1dvw, 0.95rem);
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.contacto-instagram:hover,
.contacto-cv:hover {
  color: var(--text);
}

/* ============================================
   15. THEME TOGGLE
   SVG morph sun↔moon centrado abajo del minimap
   expandido (dentro de .minimap-overlay).
   ============================================ */

.theme-toggle {
  position: absolute;
  bottom: 10dvh;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  width: clamp(28px, 3.5dvw, 44px);
  height: clamp(28px, 3.5dvw, 44px);
  color: var(--btn-subtle);
  transition: color 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
  color: var(--btn-subtle-hover);
}

/* Iconos SVG apilados con crossfade */
.toggle-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.4s ease;
}

/* Light mode: sun visible, moon oculto */
.toggle-sun  { opacity: 1; }
.toggle-moon { opacity: 0; }

/* Dark mode: moon visible, sun oculto */
.theme-toggle.is-dark .toggle-sun  { opacity: 0; }
.theme-toggle.is-dark .toggle-moon { opacity: 1; }

/* ============================================
   16. ARCHIVE — Páginas del archivo personal
   Comparte el sistema de grid, minimap y tema
   del studio. Grid diamante 4×4, estilo shooter.
   ============================================ */

/* --- Meowrhino hub (archive) --- */

.celda.archive-meowrhino {
  align-items: center;
  justify-content: center;
}

/* --- Secciones shooter (genérico) --- */

.archive-section {
  width: 80dvw;
  height: 80dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
}

.archive-section-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  padding: 4dvh 2dvw;
}

/* Cada item: staggered reveal */
.archive-item {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: calc(var(--i) * 80ms);
}

/* Activar animación cuando la celda es activa */
.celda.activa .archive-item {
  opacity: 1;
  transform: scale(1);
}

.archive-item-name {
  font-size: clamp(0.8rem, 1.1dvw, 1rem);
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.archive-item-name:hover {
  color: var(--text-secondary);
}

.archive-item-links {
  display: flex;
  gap: 0.4em;
}

.archive-item-link {
  font-size: clamp(0.55rem, 0.75dvw, 0.7rem);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.archive-item-link:hover {
  color: var(--text);
}

/* ============================================
   FOOTER — hub con secciones
   Vista inicial: lista de botones (condiciones,
   cookies, financiación).
   ============================================ */

.footer-seccion p {
  margin: 0 0 0.7rem;
}

.footer-seccion p:last-child {
  margin-bottom: 0;
}

.footer-seccion a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.footer-seccion a:hover {
  color: var(--text-secondary);
}

/* Subvención: logos + frase oficial.
   Desktop: 2 col, cada logo pegado al gap central (col1→end, col2→start)
   para que el bloque se lea como un grupo compacto, no disperso.
   Móvil: 1 col, todo centrado. */
.footer-logos {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1.2rem 1.8rem;
  align-items: center;
  justify-content: center;
  margin: 1.8rem 0 1.5rem;
}

.footer-logos > :nth-child(odd) { justify-self: end; }
.footer-logos > :nth-child(even) { justify-self: start; }

@media (max-width: 768px) {
  .footer-logos {
    grid-template-columns: 1fr;
  }
  .footer-logos > :nth-child(odd),
  .footer-logos > :nth-child(even) {
    justify-self: center;
  }
}

.footer-logo {
  height: clamp(40px, 5dvh, 60px);
  width: auto;
  display: block;
}

/* Nav inferior: tabs entre secciones (auto-rotación).
   Mismo estilo que .lang-btn para coherencia visual.
   En móvil sube una fila para no solapar con +/- y es/en/cat. */
.footer-section-nav {
  position: absolute;
  bottom: 3dvh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: var(--z-nav);
}

@media (max-width: 768px) {
  .footer-section-nav {
    --tab-fs: clamp(0.6rem, 2.5dvw, 0.8rem);
    --tab-h: calc(var(--tab-fs) * 1.4);
    --tab-gap: calc(var(--tab-fs) * 0.3);
    bottom: 3dvh;
    flex-direction: column;
    align-items: center;
    gap: var(--tab-gap);
    max-width: 92dvw;
    /* alinea el centro óptico del tab medio con el de un .nav-label.bottom.
       .nav-label usa line-height:normal (Inknut Antiqua ≈ 2.5×), el tab usa 1.4.
       Offset base (border inferior tab medio en 3dvh) = tab_h + gap = 1.7·fs.
       Compensamos la diferencia de line-boxes: (2.5 − 1.4)/2 = 0.55·fs.
       Total = 1.15·fs. */
    transform: translateX(-50%) translateY(calc(var(--tab-fs) * 1.15));
  }
  .footer-section-tab {
    padding: 0;
    font-size: var(--tab-fs);
    line-height: 1.4;
  }
}

.footer-frase {
  font-style: italic;
  text-align: center;
  margin-top: 1.2rem !important;
  color: var(--text-content);
}

/* ============================================
   17. MODO FÁCIL (easy.html)
   Misma data.json que el grid, en scroll lineal.
   Activado por <html class="easy"> + <body class="easy-mode">.
   ============================================ */

html.easy, html.easy body {
  overflow: auto;          /* el grid usa overflow:hidden; aquí sí scrolleamos */
  height: auto;
  scroll-behavior: smooth;
}

#easy { display: block; }

.easy-section, .easy-hero, .easy-footer { scroll-margin-top: 56px; }

/* --- Header (compacto: wordmark + idiomas en una fila a la izquierda) --- */
.easy-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem clamp(1rem, 4dvw, 2.5rem);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
/* Fila izquierda: wordmark con los idiomas al lado */
.easy-header-id { display: flex; flex-direction: row; align-items: baseline; gap: 0.9rem; }
.easy-logo { font-size: 1.02rem; letter-spacing: -0.02em; color: var(--text); }
/* Reubicar controles reutilizados (vienen posicionados absolutos para el grid).
   El toggle usa relative (no static) para seguir siendo el contexto de sus
   iconos SVG absolutos; inset:auto anula el bottom:10dvh del overlay. */
.easy-header .lang-group { position: static; inset: auto; gap: 0.35rem; }
.easy-header .lang-btn { font-size: 0.72rem; }
.easy-header .theme-toggle { position: relative; inset: auto; flex: none; width: 26px; height: 26px; }

/* --- Hero --- */
.easy-hero {
  text-align: center;
  padding: clamp(3rem, 9dvh, 6rem) 1.5rem clamp(2rem, 5dvh, 3.5rem);
  max-width: 42rem;
  margin: 0 auto;
}
.easy-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.4rem;
}
.easy-hero-title { font-size: clamp(1.85rem, 4.6dvw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; max-width: 26rem; margin: 0 auto; }
.easy-ticket {
  display: inline-block;
  margin: 2.2rem auto 0;
  padding: 1.2rem 2.6rem;
  border: 1px solid var(--text);
  outline: 1px solid var(--text);
  outline-offset: 4px;
}
.easy-ticket-hazte { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.easy-ticket-precio { font-size: clamp(2.2rem, 7dvw, 3rem); font-weight: 600; letter-spacing: 0.02em; line-height: 1.1; margin: 0.3rem 0 0.2rem; }
.easy-ticket-iva { font-size: 0.7rem; font-style: italic; color: var(--text-muted); }
.easy-ticket-caduca { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.4rem; }
.easy-hero-incluye { font-size: 0.85rem; color: var(--text-content); line-height: 1.6; max-width: 30rem; margin: 1.8rem auto 0; }
.easy-hero-cta { margin-top: 1.8rem; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.easy-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--text); color: var(--bg);
  font-size: 0.85rem; letter-spacing: 0.06em;
  padding: 0.7rem 1.8rem; border-radius: 4px;
  min-height: 44px;
}
.easy-btn:hover { opacity: 0.85; }
.easy-hero-primera { font-size: 0.75rem; color: var(--text-muted); }

/* --- Secciones genéricas (ritmo vertical consistente) --- */
.easy-section { padding: clamp(3.5rem, 9dvh, 6rem) clamp(1.5rem, 5dvw, 4rem); max-width: 64rem; margin: 0 auto; }
.easy-h { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.8rem; font-weight: 400; }

/* --- Portfolio (visor con fundido: imágenes apiladas que cambian por opacidad) --- */
.easy-pf { display: flex; flex-direction: column; gap: 1.4rem; }
.easy-pf-viewer { position: relative; width: min(92%, 60rem); margin: 0 auto; }
.easy-pf-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
}
.easy-pf-stage:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
/* Cada proyecto es una capa apilada; solo la activa es visible → crossfade. */
.easy-pf-slide {
  position: absolute; inset: 0;
  display: block;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease;
}
.easy-pf-slide.is-active { opacity: 1; pointer-events: auto; }
/* contain: la imagen se ve entera, sin recortar */
.easy-pf-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Flechas: discretas, en los bordes del visor */
.easy-pf-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  border: none; border-radius: 50%; cursor: pointer;
  background: var(--bg); color: var(--text); opacity: 0.85;
  font-size: 1.5rem; line-height: 1;
  box-shadow: 0 1px 8px rgba(0,0,0,0.18);
  transition: opacity 0.2s ease;
}
.easy-pf-nav:hover { opacity: 1; }
.easy-pf-prev { left: 0.6rem; }
.easy-pf-next { right: 0.6rem; }

.easy-pf-caption { display: flex; justify-content: center; align-items: baseline; gap: 1rem; min-height: 1.5em; margin: 0 auto; }
.easy-pf-name { font-size: 1rem; color: var(--text); }
.easy-pf-visitar { font-size: 0.82rem; letter-spacing: 0.02em; color: var(--text-muted); }
.easy-pf-visitar:hover { color: var(--text); }

.easy-pf-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.5rem;
}
.easy-pf-thumb {
  padding: 0; border: none; background: none; cursor: pointer;
  aspect-ratio: 1; overflow: hidden; border-radius: 3px;
  opacity: 0.4; outline: 2px solid transparent; outline-offset: 2px;
  transition: opacity 0.2s ease, outline-color 0.2s ease;
}
.easy-pf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.easy-pf-thumb:hover { opacity: 0.75; }
.easy-pf-thumb.is-active { opacity: 1; outline-color: var(--text); }

/* --- Metodología (stepper: insignias unidas por conectores en el hueco) --- */
.easy-steps { position: relative; list-style: none; margin: 0; max-width: 46rem; padding: 0 0 0 3rem; }
.easy-step { position: relative; padding: 0 0 2.4rem; }
.easy-step:last-child { padding-bottom: 0; }
.easy-step-num {
  position: absolute; left: -3rem; top: -0.1rem; transform: translateX(-50%);
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: 50%;
  font-size: 0.92rem; font-weight: 600; color: var(--text); line-height: 1;
}
.easy-step-text { font-size: 1.05rem; color: var(--text-content); line-height: 1.65; padding-top: 0.35rem; }

/* Conector entre insignias: vive SOLO en el hueco (de debajo de una insignia a la
   siguiente), así nunca cruza un número. */
.easy-step:not(:last-child)::before {
  content: ""; position: absolute; left: -3rem; transform: translateX(-50%);
  top: 2.4rem; bottom: -0.1rem; width: 1px; background: var(--border);
  transition: background 0.45s ease;
}

/* Stepper de progreso al scrollear: nº y conectores se encienden acumulativamente. */
.easy-steps.is-scrolly .easy-step { opacity: 0.35; transition: opacity 0.45s ease; }
.easy-steps.is-scrolly .easy-step.is-on { opacity: 1; }
.easy-step-num { transition: background 0.45s ease, color 0.45s ease, border-color 0.45s ease; }
.easy-steps.is-scrolly .easy-step.is-on .easy-step-num {
  background: var(--text); color: var(--bg); border-color: var(--text);
}
.easy-steps.is-scrolly .easy-step.link-on::before { background: var(--text); }

/* --- Statement (manifiesto centrado; resalta la línea del centro al scrollear) --- */
.easy-statement { text-align: center; padding-top: clamp(5rem, 17dvh, 10rem); padding-bottom: clamp(5rem, 17dvh, 10rem); }
.easy-statement-line {
  font-size: clamp(1.3rem, 3.3dvw, 2rem); line-height: 1.5; letter-spacing: -0.01em;
  color: var(--text); margin: 0 auto 1.7rem; max-width: 40rem;
  transition: opacity 0.45s ease;
}
.easy-statement-line:last-child { margin-bottom: 0; }
/* Karaoke: con JS, las líneas se atenúan y solo brilla la del centro */
.easy-statement.is-scrolly .easy-statement-line { opacity: 0.28; }
.easy-statement.is-scrolly .easy-statement-line.is-active { opacity: 1; }

/* --- Contacto (más pequeño, con aire) --- */
.easy-contacto { text-align: center; padding-top: clamp(5.5rem, 18dvh, 11rem); padding-bottom: clamp(5.5rem, 18dvh, 11rem); }
.easy-contacto .easy-h { margin-bottom: 3rem; }
.easy-email { font-size: clamp(1.6rem, 5dvw, 2.7rem); letter-spacing: -0.02em; color: var(--text); }
.easy-email:hover { text-decoration: underline; text-underline-offset: 0.12em; }
.easy-contacto-cta { margin-top: 3rem; }
.easy-contacto-links { margin-top: 2.8rem; display: flex; gap: 1.8rem; justify-content: center; color: var(--text-secondary); font-size: 0.95rem; }
.easy-contacto-links a { color: inherit; }
.easy-contacto-links a:hover { color: var(--text); }

/* --- Footer (solo el wordmark, centrado) --- */
.easy-footer {
  display: flex; justify-content: center;
  padding: 2.6rem clamp(1.5rem, 5dvw, 4rem);
  font-size: 0.95rem; color: var(--text-muted);
}
.easy-footer a { color: inherit; letter-spacing: -0.01em; }
.easy-footer a:hover { color: var(--text); }

@media (max-width: 600px) {
  .easy-logo { font-size: 0.95rem; }
  .easy-pf-slide { flex-basis: 90%; }
}
