/* =============================================
   a 3 manos - Estilos v3 (diseño limpio editorial)
   Basado en captura aprobada: fondo lino/pergamino,
   tipografía Cormorant + Jost, acento ocre, mucho aire.
   Animaciones: GSAP + ScrollTrigger + Lenis (sutiles).
============================================= */

/* =============================================
   VARIABLES
============================================= */
:root {
  /* Paleta - dominan los claros */
  --bg:           #FAF7F0;   /* lino */
  --bg-alt:       #EDE5D0;   /* pergamino */
  --bg-dark:      #3D2B1A;   /* marrón CTA */
  --bg-dark-alt:  #2C1A0E;   /* footer muy oscuro */
  --text:         #2C1A0E;   /* texto principal */
  --text-muted:   #7A6A5A;
  --text-inv:     #FAF7F0;   /* texto sobre oscuro */

  /* Acento */
  --ocre:         #805000;
  --ocre-dim:     #633B00;
  --ocre-pale:    #966000;

  /* Bordes */
  --border:       rgba(44, 26, 14, 0.10);
  --border-warm:  rgba(200, 137, 26, 0.22);
  --border-light: rgba(250, 247, 240, 0.18);

  /* Tipografías */
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;

  /* Espaciados */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  6rem;
  --sp-2xl: 10rem;

  /* Radios */
  --r-sm: 2px;
  --r-md: 6px;
  --r-btn: 10px;

  /* Sombras */
  --shadow-sm: 0 2px 16px rgba(44,26,14,0.07);
  --shadow-md: 0 8px 40px rgba(44,26,14,0.13);
  --shadow-lg: 0 20px 60px rgba(44,26,14,0.20);

  /* Header */
  --header-h: 72px;

  /* Transiciones */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================
   RESET + BASE
============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* scroll-behavior gestionado por Lenis */
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-y: scroll; /* Lenis necesita scroll nativo */
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* =============================================
   UTILITARIOS
============================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.container--narrow {
  max-width: 760px;
}
/* el titular del cierre entra en una linea, el cuerpo se queda estrecho */
.container--narrow .section-title { max-width: none; }

/* Label editorial - mayúsculas espaciadas */
.chapter-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: block;
}
.chapter-label--light {
  color: rgba(250, 247, 240, 0.45);
}

/* Títulos de sección */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--sp-md);
}
.section-title em,
.section-title .palabra-acento {
  font-weight: 500;
  color: var(--ocre);
}
.section-title--light {
  color: var(--text-inv);
}
.section-title--light em,
.section-title--light .palabra-acento {
  color: var(--ocre-pale);
  font-weight: 500;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-lg);
  max-width: 80ch;
}

.body-text {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: var(--sp-md);
  max-width: 52ch;
}
.body-text strong {
  color: var(--text);
  font-weight: 500;
}

/* =============================================
   BOTONES
============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ocre);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 1.9rem;
  border-radius: var(--r-btn);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--ocre-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,137,26,0.32);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--ocre);
  outline-offset: 3px;
}

/* Botón outline (en hero, sobre fondo oscuro) */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,247,240,0.85);
  border: 1px solid rgba(250,247,240,0.35);
  padding: 0.9rem 1.9rem;
  border-radius: var(--r-btn);
  transition: border-color 0.2s ease, color 0.2s ease;
  min-height: 48px;
}
.btn-ghost:hover {
  border-color: rgba(250,247,240,0.75);
  color: #fff;
}

/* Outline oscuro - sobre fondos claros */
.btn-outline {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border: 1.5px solid rgba(44,26,14,0.45);
  padding: 0.85rem 1.75rem;
  border-radius: var(--r-btn);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  min-height: 48px;
}
.btn-outline:hover {
  background: var(--ocre);
  border-color: var(--ocre);
  color: #fff;
}

/* Outline claro - sobre fondos oscuros */
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,247,240,0.7);
  border: 1px solid rgba(250,247,240,0.2);
  padding: 0.9rem 1.9rem;
  border-radius: var(--r-btn);
  transition: border-color 0.2s ease, color 0.2s ease;
  min-height: 48px;
  white-space: nowrap;
}
.btn-ghost-light:hover {
  border-color: rgba(250,247,240,0.55);
  color: var(--text-inv);
}

/* Botones con icono de Instagram */
.btn-ig {
  gap: 0.6rem;
  justify-content: center;
}
.btn-ig svg { flex-shrink: 0; }
/* El de la sección artesana: ancho según contenido (sin hueco) */
.artesana-texto .btn-ig {
  align-self: flex-start;
}

/* =============================================
   HEADER - fondo blanco sólido desde el inicio (Cambio 1)
============================================= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(
    180deg,
    rgba(244, 233, 211, 0.20) 0%,
    rgba(244, 233, 211, 0.08) 100%
  );
  -webkit-backdrop-filter: blur(9px) saturate(0.92);
  backdrop-filter: blur(9px) saturate(0.92);
  border-bottom: 1px solid rgba(55, 36, 22, 0.14);
  box-shadow: 0 1px 0 rgba(255, 252, 244, 0.18) inset;
  transition: background 0.35s ease, box-shadow 0.35s ease,
              backdrop-filter 0.35s ease;
}
#header.scrolled {
  background: linear-gradient(
    180deg,
    rgba(231, 214, 185, 0.34) 0%,
    rgba(231, 214, 185, 0.20) 100%
  );
  -webkit-backdrop-filter: blur(13px) saturate(0.88);
  backdrop-filter: blur(13px) saturate(0.88);
  box-shadow: 0 8px 24px rgba(42, 27, 17, 0.08),
              0 1px 0 rgba(255, 252, 244, 0.16) inset;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(255, 249, 236, 0.78));
  transition: filter 0.3s ease;
}

/* Nav central - visible solo en desktop */
.header-nav {
  display: none;
  gap: 2.2rem;
}
@media (min-width: 1024px) {
  .header-nav { display: flex; }
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #332218;
  opacity: 0.78;
  text-shadow: 0 1px 2px rgba(255, 249, 236, 0.92);
  transition: opacity 0.2s ease;
  padding: 4px 0;
}
.nav-link:hover { opacity: 1; }

/* Header sobre hero: texto siempre oscuro (fondo blanco sólido) */

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Botón audio */
.btn-audio {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text);
  opacity: 0.55;
  transition: opacity 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.btn-audio:hover {
  opacity: 1;
  background: var(--bg-alt);
}
.btn-audio:focus-visible {
  outline: 2px solid var(--ocre);
  outline-offset: 2px;
}
/* Icono mudo/activo - solo uno visible */
.btn-audio .icon-sound { display: none; }
.btn-audio .icon-muted { display: block; }
.btn-audio.is-playing .icon-sound { display: block; }
.btn-audio.is-playing .icon-muted { display: none; }

/* Icono audio - siempre oscuro sobre fondo blanco */

/* Botón "Escríbeme" - header desktop */
.btn-wa-header {
  display: none;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ocre);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-btn);
  transition: background 0.2s ease;
  min-height: 36px;
  align-items: center;
}
.btn-wa-header:hover { background: var(--ocre-dim); }
@media (min-width: 768px) {
  .btn-wa-header { display: inline-flex; }
}

/* Hamburger */
.btn-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--r-sm);
  transition: background 0.2s ease;
}
.btn-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s ease;
}
.btn-hamburger:hover { background: var(--bg-alt); }
.btn-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.btn-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.btn-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
/* Hamburger - siempre oscuro sobre fondo blanco */
@media (min-width: 1024px) {
  .btn-hamburger { display: none; }
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 99;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}
.mobile-menu:not([hidden]) {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu[hidden] { display: flex; }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}
.mobile-link {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.mobile-link:hover { opacity: 1; }

/* =============================================
   HERO - fullscreen, imagen de fondo, texto centrado (Cambio 2)
============================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url("../assets/img/linen.png?v=13") repeat, var(--bg-alt);
  background-size: 150px;
}

/* Banner de fondo (logo bordado a la izquierda, lino) */
/* Solo se dibuja en pantallas grandes; en telefono el hero usa su propia
   imagen vertical, asi que este archivo de 296 KB ya no se descarga. */
.hero-banner {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

@media (min-width: 900px) {
  .hero-banner { display: block; }
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) var(--sp-md) var(--sp-xl);
  display: flex;
  justify-content: center;
}
@media (min-width: 900px) {
  .hero-grid {
    padding-top: var(--header-h);
    padding-bottom: 0;
    justify-content: flex-start; /* texto en la zona vacía (izquierda) */
  }
}

/* Contenido - centrado en móvil, a la derecha en desktop */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  width: 100%;
  text-align: center;
}
@media (min-width: 900px) {
  .hero-content {
    text-align: left;
    margin-left: 2vw;
  }
}

/* Móvil: el banner se muestra completo arriba y el texto va debajo, sobre el lino */
@media (max-width: 899px) {
  /* Banner vertical de fondo: logo arriba, lino abajo para el texto */
  .hero {
    min-height: 100svh;
    align-items: flex-end;
    background-image: url("../assets/img/hero-banner3.webp?v=2");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #DFCDBB;
  }
  .hero-banner { display: none; }
  .hero-grid {
    padding-top: 0;
    padding-bottom: 4.5rem;
    justify-content: center;
  }
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  /* Texto contenido y ordenado bajo el logo del banner vertical */
  .hero-label { margin-bottom: 0.7rem; }
  .hero-title { font-size: 2.7rem; margin-bottom: 0.9rem; }
  .hero-sub {
    font-size: 1rem;
    margin-bottom: 1rem;          /* menos espacio antes del botón */
  }
  .hero-sub br { display: none; } /* el subtítulo fluye natural, sin cortes forzados */
}

.hero-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6B4A22;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  display: block;
}

/* Título hero - grande, serif, dos líneas */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7.5vw, 6.2rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--sp-md);
  overflow: hidden;
}

/* Animación por palabras - inicia invisible */
.word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(55px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.word-italic,
.palabra-acento {
  color: var(--ocre);
  font-weight: 500;
}
/* Clase disparada por JS al cargar */
.hero-loaded .word-reveal {
  opacity: 1;
  transform: translateY(0);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  font-weight: 400;
  color: #4A3526;
  line-height: 1.75;
  margin-bottom: var(--sp-lg);
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 900px) {
  .hero-sub { margin-left: 0; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  align-items: center;
  justify-content: center;
}
@media (min-width: 900px) {
  .hero-actions { justify-content: flex-start; }
}

/* reveal-up - animación CSS para elementos hero */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}
.hero-loaded .reveal-up {
  opacity: 1;
  transform: translateY(0);
}

/* Indicador de scroll - centrado (Cambio 2) */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.scroll-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250,247,240,0.4);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(250,247,240,0.45), rgba(250,247,240,0));
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* =============================================
   SECCIÓN ECOPRINT - fondo lino
   Foto izquierda + texto + 3 ítems numerados
============================================= */
.section-ecoprint {
  padding: var(--sp-2xl) 0;
  background: transparent;
  background-blend-mode: normal;
}

.ecoprint-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  align-items: stretch;
}
@media (min-width: 768px) {
  .ecoprint-inner {
    grid-template-columns: 1fr 1.15fr;
    gap: var(--sp-2xl);
  }
}

/* Foto izquierda con sombra suave */
.ecoprint-foto {
  position: relative;
}
.ecoprint-foto img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
/* Desktop: la foto llena todo el alto de la columna (sin huecos) */
@media (min-width: 768px) {
  .ecoprint-foto {
    height: 100%;
    min-height: 100%;
  }
  .ecoprint-foto img {
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
  }
}

/* Texto derecha */
.ecoprint-texto {
  padding-top: 0;
}
@media (min-width: 768px) {
  .ecoprint-texto {
    padding-top: 3rem;
  }
}

/* 3 ítems numerados */
.ecoprint-items {
  margin-top: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ecoprint-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: var(--sp-md) 0;
  border-top: 1px solid var(--border);
}
.ecoprint-item:last-child {
  border-bottom: 1px solid var(--border);
}

.item-num {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocre);
  flex-shrink: 0;
  width: 2rem;
  padding-top: 0.2rem;
}

.item-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.item-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 38ch;
}

/* =============================================
   SECCIÓN PROCESO - fondo pergamino
   Foto artesana sticky izquierda + 4 pasos derecha
============================================= */
.section-proceso {
  background: transparent;
  background-blend-mode: normal;
  position: relative;
  /* Un pequeño tramo de tela evita que la fotografía asome como una raya
     mientras el rollo cruza el cambio de capítulo. */
  padding-top: clamp(2.5rem, 6vh, 4.5rem);
}

.proceso-sticky-wrap {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .proceso-sticky-wrap {
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
  }
}

/* Imagen sticky en desktop */
.proceso-imagen-sticky {
  position: relative;
  overflow: hidden;
  height: 55vw;
  min-height: 300px;
}
@media (min-width: 768px) {
  .proceso-imagen-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: unset;
  }
}

.proceso-imagen-sticky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Velo sutil derecha para fusionar con fondo pergamino */
.proceso-imagen-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(237,229,208,0) 60%,
    rgba(237,229,208,0.5) 100%
  );
}
@media (max-width: 767px) {
  .proceso-imagen-overlay { display: none; }
}

/* Columna pasos */
.proceso-pasos {
  padding: var(--sp-xl) var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .proceso-pasos {
    padding: var(--sp-2xl) var(--sp-xl) var(--sp-2xl) var(--sp-lg);
    gap: 2.5rem;
  }
}

.proceso-header {
  margin-bottom: var(--sp-sm);
}

.proceso-subtitulo {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 42ch;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Paso individual */
.paso {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--border);
}
.paso:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.paso-num {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocre);
  flex-shrink: 0;
  width: 2.5rem;
  padding-top: 0.35rem;
}

.paso-contenido {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.paso-titulo {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.paso-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 40ch;
}

/* =============================================
   SECCIÓN GALERÍA - fondo lino
   Carrusel Swiper (Cambio 3)
============================================= */
.section-galeria {
  padding: var(--sp-2xl) 0 var(--sp-xl);
  background: transparent;
  background-blend-mode: normal;
}

.section-galeria .container {
  padding-bottom: var(--sp-lg);
}

/* Contenedor del carrusel con espacio para flechas */
.galeria-carrusel {
  position: relative;
  padding: 0 3.5rem; /* espacio lateral para flechas */
}
@media (max-width: 767px) {
  .galeria-carrusel {
    padding: 0 2rem;
  }
}

/* Cada slide - altura fija proporcional */
.galeria-slide {
  height: 420px;
}
@media (min-width: 768px) {
  .galeria-slide {
    height: 480px;
  }
}
@media (max-width: 480px) {
  .galeria-slide {
    height: 360px;
  }
}

/* Imagen dentro del slide */
.galeria-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-alt);
  border-radius: var(--r-sm);
}

/* =============================================
   LIGHTBOX
============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(28,16,6,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  transform: scale(0.95);
  transition: transform 0.32s var(--ease-out);
}
.lightbox.is-open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(250,247,240,0.14);
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(250,247,240,0.28); }

.galeria-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out);
}
.galeria-img-wrap:hover img {
  transform: scale(1.06);
}

/* Overlay hover con CTA WhatsApp */
.galeria-hover {
  position: absolute;
  inset: 0;
  background: rgba(44, 26, 14, 0.62);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--r-sm);
}
.galeria-img-wrap:hover .galeria-hover {
  opacity: 1;
}
/* En táctil: overlay gradiente siempre visible */
@media (hover: none) {
  .galeria-hover {
    opacity: 1;
    background: linear-gradient(to top, rgba(44,26,14,0.7) 0%, rgba(44,26,14,0) 55%);
    align-items: flex-end;
  }
}

.galeria-wa-btn {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.65rem 1.3rem;
  border-radius: var(--r-btn);
  transition: background 0.2s ease, border-color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.galeria-wa-btn:hover {
  background: var(--ocre);
  border-color: var(--ocre);
}

/* Flechas del carrusel - estilo editorial */
.galeria-prev,
.galeria-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  /* Sobreescribe estilos de Swiper */
  --swiper-navigation-size: 1rem;
}
.galeria-prev { left: 0; }
.galeria-next { right: 0; }
/* Chevron fino dibujado (reemplaza el glyph default de Swiper) */
.galeria-prev::after,
.galeria-next::after {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-top: 1.6px solid var(--text);
  border-right: 1.6px solid var(--text);
  border-radius: 1px;
}
.galeria-next::after {
  transform: rotate(45deg);
  margin-left: -3px;   /* apunta a la derecha, centrado óptico */
}
.galeria-prev::after {
  transform: rotate(-135deg);
  margin-right: -3px;  /* apunta a la izquierda */
}
.galeria-prev:hover,
.galeria-next:hover {
  background: var(--bg-alt);
  box-shadow: var(--shadow-md);
}

/* Puntos de paginación - estilo fino */
.galeria-pagination {
  margin-top: 1.5rem;
  position: static !important; /* saca la paginación del interior del swiper */
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}
.galeria-pagination .swiper-pagination-bullet {
  background: var(--text-muted);
  opacity: 0.3;
  width: 6px;
  height: 6px;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.galeria-pagination .swiper-pagination-bullet-active {
  background: var(--ocre);
  opacity: 1;
}

/* CTA bajo galería */
.galeria-cta {
  text-align: center;
  padding-top: var(--sp-xl);
  padding-bottom: var(--sp-sm);
}

/* =============================================
   SECCIÓN ARTESANA - fondo pergamino
   Foto izquierda con cita superpuesta + texto derecha
============================================= */
.section-artesana {
  padding: var(--sp-2xl) 0;
  background: transparent;
  background-blend-mode: normal;
  overflow: hidden;
}

.artesana-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  align-items: center;
}
@media (min-width: 768px) {
  .artesana-inner {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--sp-2xl);
  }
}

/* Foto con tarjeta de cita superpuesta */
.artesana-foto-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.artesana-foto-wrap img {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

/* Tarjeta de cita superpuesta, esquina inferior izquierda */
.artesana-cita {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  z-index: 2;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  max-width: 240px;
  box-shadow: var(--shadow-md);
}
.artesana-cita p {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}
@media (max-width: 767px) {
  .artesana-cita {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
    right: auto;
    bottom: auto;
  }
}

/* Texto artesana */
.artesana-texto {
  display: flex;
  flex-direction: column;
}
.artesana-texto .section-title {
  margin-bottom: var(--sp-lg);
}

/* Nombre de la artesana - título sobre la imagen */
.artesana-nombre {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  text-align: center;
}
.artesana-nombre .n-nombre { color: var(--text); font-weight: 600; }
.artesana-nombre .n-apellido { color: #C4851C; font-weight: 600; }
@media (min-width: 768px) {
  .artesana-nombre { text-align: left; }
}

/* Caja de la imagen (ancla del título superpuesto) */
.artesana-img-box { position: relative; }
/* Título superpuesto sobre la foto - solo móvil */
.artesana-overlay { display: none; }
@media (max-width: 767px) {
  .artesana-overlay {
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 2.5rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(28,16,6,0.86) 0%, rgba(28,16,6,0.5) 55%, transparent 100%);
    border-radius: 0 0 var(--r-md) var(--r-md);
    z-index: 2;
  }
  .artesana-overlay .chapter-label--light {
    margin-bottom: 0.45rem;
    color: rgba(250,247,240,0.78);
  }
  .artesana-overlay-title {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.05;
    color: #FBF8F1;
    text-shadow: 0 2px 14px rgba(20,12,4,0.55);
  }
  .artesana-overlay-title em { color: var(--ocre-pale); }
  /* El título/label del bloque de texto se ocultan (ya van sobre la foto) */
  .artesana-texto .chapter-label,
  .artesana-texto .section-title { display: none; }
}

/* =============================================
   SECCIÓN CTA OSCURA + FOOTER
============================================= */
.section-contacto {
  /* velo sobre el lienzo: la tela sigue viendose, en sombra */
  background: linear-gradient(to bottom,
      rgba(61, 43, 26, 0) 0,
      rgba(61, 43, 26, .06) 60px,
      rgba(61, 43, 26, .18) 130px,
      rgba(61, 43, 26, .38) 215px,
      rgba(61, 43, 26, .60) 300px,
      rgba(61, 43, 26, .78) 380px,
      rgba(58, 40, 24, .90) 470px,
      rgba(48, 30, 16, .94) 620px,
      rgba(44, 26, 14, .95) 100%);
  position: relative;
  padding: calc(var(--sp-xl) + 300px) 0 0;
}

.section-contacto .container {
  text-align: center;
  padding-bottom: var(--sp-xl);
}
.section-contacto .container .chapter-label--light {
  margin-bottom: 1.5rem;
}

.contacto-sub {
  font-size: 0.95rem;
  color: rgba(250,247,240,0.62);
  line-height: 1.85;
  max-width: 72ch;
  margin: 0 auto var(--sp-lg);
}

.contacto-botones {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  justify-content: center;
  margin-bottom: var(--sp-lg);
}

.contacto-datos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  justify-content: center;
  font-size: 0.82rem;
  color: rgba(250,247,240,0.78);
  letter-spacing: 0.04em;
}
.contacto-datos a {
  color: #fff;
  border-bottom: 1px solid rgba(250,247,240,0.4);
  transition: color 0.2s ease;
}
.contacto-datos a:hover { color: var(--ocre-pale); }

.dato-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--ocre-pale);
  margin-right: 0.4rem;
}

/* =============================================
   FOOTER
============================================= */
.footer {
  border-top: 1px solid rgba(250, 247, 240, .14);
  padding: 2.5rem 0;
  background: rgba(30, 18, 9, .95);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md) 3rem;
}

.footer-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.footer-cols {
  display: flex;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6B4A22;
  margin-bottom: 0.25rem;
}

.footer-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}
.footer-link:hover { color: var(--ocre-dim); }

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.7;
  align-self: center;
}

@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column;
    gap: var(--sp-md);
  }
  .footer-copy { align-self: flex-start; }
}

/* =============================================
   BOTÓN WHATSAPP FLOTANTE
============================================= */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(37,211,102,0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* Oculto inicialmente: GSAP lo muestra al pasar el hero */
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.wa-float.visible {
  pointer-events: auto;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37,211,102,0.48);
}

/* =============================================
   ANIMACIONES REVEAL - estado inicial CSS
   GSAP sobreescribe; si JS falla, no hay flash
============================================= */
/* Oraciones del mismo bloque: se separan como un salto de linea, no como dos
   bloques distintos. El ultimo parrafo conserva su margen grande. */
.hero-sub:has(+ .hero-sub),
.body-text:has(+ .body-text),
.section-sub:has(+ .section-sub) { margin-bottom: 12px; }

.item-desc + .item-desc,
.paso-desc + .paso-desc { margin-top: 10px; }

/* Si el navegador es viejo y no entiende lo de arriba, al menos no se apilan */
.body-text + .body-text,
.section-sub + .section-sub { margin-top: 0; }

.js-rev .js-reveal {
  opacity: 0;
  transform: translateY(26px);
}

/* =============================================
   PREFERS-REDUCED-MOTION
============================================= */
@media (prefers-reduced-motion: reduce) {
  .js-reveal,
  .word-reveal,
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .scroll-line {
    animation: none !important;
  }
  .hero-video {
    display: none; /* Sin movimiento: se muestra el poster */
  }
  .hero-media {
    background: url("../assets/img/hero-poster.jpg") center/cover no-repeat;
  }
}

/* =============================================
   FOCUS ACCESIBLE
============================================= */
:focus-visible {
  outline: 2px solid var(--ocre);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Títulos que en móvil van antes de la imagen (ocultos en desktop) */
.seccion-mtitle { display: none; }
.seccion-mtitle .section-title { margin-bottom: 0; }

/* =============================================
   AJUSTES MÓVIL EXTRA
============================================= */
@media (max-width: 767px) {
  .proceso-sticky-wrap { display: block; }

  /* Orden móvil: título → imagen → texto descriptivo */
  .seccion-mtitle { display: block; }

  /* ECOPRINT */
  .ecoprint-inner { gap: var(--sp-md); }
  .ecoprint-texto > .chapter-label,
  .ecoprint-texto > .section-title { display: none; }
  /* Números de ítems más grandes (como el proceso) */
  .ecoprint-item { align-items: center; }
  .item-num {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 500;
    letter-spacing: 0;
    width: 2.6rem;
    padding-top: 0;
  }

  /* GALERÍA - menos espacio antes del carrusel */
  .section-galeria .container { padding-bottom: var(--sp-md); }
  .section-galeria .section-sub { margin-bottom: var(--sp-sm); }

  /* PROCESO */
  .proceso-header { display: none; }
  .proceso-mtitle { padding: var(--sp-lg) var(--sp-md) var(--sp-md); }
  /* Números de paso más grandes y centrados verticalmente */
  .paso { align-items: center; }
  .paso-num {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 500;
    letter-spacing: 0;
    width: 2.6rem;
    padding-top: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center; /* mantiene centrado en móvil (Cambio 2) */
  }

  .contacto-datos {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  /* Menos separación vertical entre secciones en móvil */
  .section-ecoprint,
  .section-galeria,
  .section-artesana {
    padding-top: var(--sp-lg);
    padding-bottom: var(--sp-lg);
  }
  .section-contacto { padding-top: var(--sp-lg); }
  .proceso-pasos {
    padding-top: var(--sp-lg);
    padding-bottom: var(--sp-lg);
  }
  .galeria-cta { padding-top: var(--sp-lg); }
}

/* =============================================
   HERO MÓVIL - tipografía (debe ir al final para
   ganar a las reglas base de .hero-title/sub)
============================================= */
@media (max-width: 899px) {
  .hero-label { font-size: 0.74rem; margin-bottom: 0.7rem; }
  .hero-title { font-size: 2.7rem; margin-bottom: 0.9rem; }
  .hero-sub {
    font-size: 1rem;
    margin-bottom: 1rem;          /* menos espacio antes del botón */
  }
  .hero-sub br { display: none; } /* subtítulo fluye natural */
}


/* =============================================
   CÓMO SE PIDE UNA PIEZA
============================================= */
.section-encargo {
  background: transparent;
  padding: var(--sp-2xl, 6rem) 0;
}
/* tres columnas de 211px dejaban el texto en tiras: el bloque necesita mas ancho */
.section-encargo .container--narrow { max-width: 1040px; }
.encargo-pasos {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}
.encargo-pasos li {
  border-top: 1px solid rgba(26, 16, 8, .18);
  padding-top: 1.1rem;
}
.encargo-pasos h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 500;
  margin-bottom: .5rem;
}
.encargo-pasos p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.65;
  max-width: 46ch;
}
.encargo-pasos p + p { margin-top: .7rem; }
@media (min-width: 900px) {
  .encargo-pasos { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}







/* Texto sobre la tela: la tinta oscura, porque el gris claro se pierde entre
   las hojas del estampado. */
.section-ecoprint .body-text,
.section-ecoprint .item-desc,
.section-ecoprint .section-sub,
.section-proceso .paso-desc,
.section-proceso .proceso-subtitulo,
.section-galeria .section-sub,
.section-artesana .body-text,
.section-encargo .section-sub,
.section-encargo .encargo-pasos p {
  color: var(--text);
}
.section-ecoprint .item-label {
  color: var(--text);
}
.section-ecoprint .section-title .palabra-acento,
.section-proceso .section-title .palabra-acento,
.section-galeria .section-title .palabra-acento,
.section-artesana .section-title .palabra-acento,
.section-encargo .section-title .palabra-acento {
  color: var(--ocre);
}


/* =============================================
   EL LIENZO
   La pagina entera se lee sobre una sola pieza de tela de Belkis. Arranca
   donde termina la portada y baja sin cortarse ni repetirse.
============================================= */
body {
  background: url("../assets/img/lienzo-escritorio.webp") center 100vh / 100% auto no-repeat, var(--bg);
}
@media (max-width: 899px) {
  body {
    background-image: url("../assets/img/lienzo-movil.webp");
    background-position: center 100svh;
  }
}


/* El pie ahora es oscuro, asi que su texto va en claro */
.footer-col-title { color: var(--ocre-pale, #E0B160); }
.footer-link { color: rgba(250, 247, 240, .78); }
.footer-link:hover { color: #E0B160; }
.footer-copy { color: rgba(250, 247, 240, .58); }
.footer-logo img { filter: brightness(0) invert(1); opacity: .85; }


@media (max-width: 899px) {
  /* el boton flotante se montaba sobre la ultima linea del pie */
  .footer { padding-bottom: 6rem; }
}


/* el boton flotante se retiro: los enlaces del cierre y la cabecera bastan */
.wa-float { display: none !important; }


@media (max-width: 899px) {
  /* en telefono la pantalla es corta: la sombra tiene que estar puesta antes
     de que llegue el titular, o el texto claro cae sobre tela clara */
  .section-contacto {
    background: linear-gradient(to bottom,
        rgba(61, 43, 26, 0) 0,
        rgba(61, 43, 26, .28) 55px,
        rgba(61, 43, 26, .62) 115px,
        rgba(58, 40, 24, .86) 180px,
        rgba(50, 32, 18, .94) 260px,
        rgba(44, 26, 14, .95) 100%);
    padding-top: calc(var(--sp-xl) + 150px);
  }
}


/* El logo de la portada es un elemento propio y no parte de la foto: asi su
   tamano y su sitio no dependen de como recorte el navegador el fondo, que es
   lo que hacia que en algunos telefonos se montara con el titular. */
@media (max-width: 899px) {
  .hero { align-items: center; }
  .hero-grid { padding-top: 5rem; padding-bottom: 3rem; }
}


@media (max-width: 899px) and (max-height: 660px) {
  /* pantalla corta: el bloque se aprieta para que los botones entren */
  .hero-grid { padding-top: calc(58vw + .4rem); padding-bottom: 1.4rem; }
  .hero-title { font-size: 2.2rem; margin-bottom: .6rem; }
  .hero-sub { font-size: .92rem; margin-bottom: .5rem; }
  .hero-sub--2 { margin-bottom: .9rem; }
}


@media (max-width: 899px) {
  /* el logo viene dentro de Banner 3 y acaba a 0,64 anchos de pantalla desde
     arriba, asi que el texto arranca ahi y se mueve con el, no con el alto */
    .hero-grid {
    padding-top: calc(64vw + 1.5rem);
    padding-bottom: 2.5rem;
  }
  .hero { align-items: flex-start; }
}


/* La portada de computadora se pone desde aqui: asi el telefono no descarga una
   imagen de 296 KB que no llega a ver, y no queda ningun archivo pedido de mas. */
@media (min-width: 900px) {
  .hero {
    background-image: url("../assets/img/banner.webp?v=14");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
  }
}


@media (max-width: 767px) {
  /* en telefono la cabecera tambien lleva su boton: es el unico acceso a
     WhatsApp durante la mitad de la pagina */
  .btn-wa-header {
    display: inline-flex;
    font-size: .62rem;
    padding: .5rem .8rem;
    letter-spacing: .08em;
  }
  .header-controls { gap: .6rem; }
  /* el pie tenia reservado el hueco del boton flotante, que ya no esta */
  .footer { padding-bottom: 2.5rem; }
}



/* =============================================
   LA WEB ES EL ROLLO
   Una única lámina de lino revela toda la página al pasar por el borde físico.
============================================= */
:root {
  --global-roll-y: -70px;
  --global-roll-height: clamp(86px, 8vw, 118px);
  --global-roll-scale: 1;
  --global-roll-opacity: 1;
  --global-roll-turn: 0px;
  --global-roll-wobble: 0px;
  --global-roll-rotation: 0deg;
  --global-roll-veil-opacity: 1;
  --site-cloth-compensation: 0px;
  --site-cloth-tail: 0px;
}

.site-cloth {
  position: relative;
  transform: translate3d(0, var(--site-cloth-compensation), 0);
  will-change: transform;
}

.site-cloth-tail {
  height: var(--site-cloth-tail);
  pointer-events: none;
}

.global-roll {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
}

.roll-ready .global-roll {
  display: block;
}

.global-roll-veil {
  position: absolute;
  z-index: 1;
  top: var(--global-roll-y);
  right: 0;
  bottom: -2px;
  left: 0;
  opacity: var(--global-roll-veil-opacity);
  background:
    linear-gradient(90deg, rgba(91,65,33,.025), transparent 14%, rgba(255,255,255,.11) 49%, transparent 73%, rgba(77,50,22,.025)),
    repeating-linear-gradient(89deg, rgba(73,51,25,.028) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(1deg, rgba(255,255,255,.1) 0 1px, transparent 1px 5px),
    #f6f0e3;
  background-position: center, center, 0 var(--global-roll-turn), center;
  box-shadow: inset 0 14px 26px rgba(72,46,19,.05);
  will-change: top, opacity, background-position;
  overflow: hidden;
}

.global-roll-body {
  position: absolute;
  z-index: 4;
  top: var(--global-roll-y);
  left: -8vw;
  width: 116vw;
  height: var(--global-roll-height);
  overflow: hidden;
  border-radius: 48% / 14%;
  opacity: var(--global-roll-opacity);
  transform:
    translate3d(0, calc(-50% + var(--global-roll-wobble)), 0)
    scaleY(var(--global-roll-scale));
  transform-origin: center bottom;
  box-shadow:
    0 calc(var(--global-roll-height) * .25) calc(var(--global-roll-height) * .34) rgba(45,28,10,.25),
    0 calc(var(--global-roll-height) * .08) calc(var(--global-roll-height) * .09) rgba(45,27,8,.2);
  will-change: top, transform, opacity;
}

.global-roll-photo,
.global-roll-turn,
.global-roll-highlight,
.global-roll-lip {
  position: absolute;
  inset: 0;
}

.global-roll-photo {
  background: url("../assets/img/roll-global/linen-roll-crop.webp") center / 100% 100% no-repeat;
  filter: saturate(.88) contrast(1.02);
}

.global-roll-turn {
  background:
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(78,48,20,.12) 7px, transparent 9px 18px),
    url("../assets/img/linen.png") center var(--global-roll-turn) / 420px auto repeat;
  opacity: .18;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 84%, transparent);
}

.global-roll-highlight {
  background:
    linear-gradient(to bottom,
      rgba(255,255,255,.34) 0,
      rgba(255,255,255,.13) 20%,
      transparent 43%,
      rgba(70,43,16,.05) 66%,
      rgba(49,28,8,.24) 100%),
    linear-gradient(90deg,
      rgba(66,42,18,.06), transparent 8%,
      rgba(255,255,255,.1) 47%, transparent 72%,
      rgba(61,38,15,.07));
  mix-blend-mode: multiply;
}

.global-roll-lip {
  top: auto;
  bottom: 0;
  height: 18%;
  background:
    linear-gradient(to bottom, rgba(55,33,11,.18), transparent 35%),
    repeating-linear-gradient(92deg, rgba(53,34,13,.12) 0 1px, transparent 1px 5px);
  clip-path: polygon(0 33%, 7% 23%, 14% 39%, 23% 18%, 31% 34%, 40% 20%, 50% 38%, 60% 17%, 69% 35%, 79% 22%, 89% 38%, 100% 25%, 100% 100%, 0 100%);
  opacity: .62;
}

.global-roll-shadow {
  position: absolute;
  z-index: 3;
  top: calc(var(--global-roll-y) + var(--global-roll-height) * .08);
  left: -4vw;
  width: 108vw;
  height: calc(var(--global-roll-height) * .48);
  opacity: var(--global-roll-opacity);
  transform: translateY(var(--global-roll-wobble));
  background: radial-gradient(ellipse at center top, rgba(44,26,8,.28), rgba(44,26,8,.09) 43%, transparent 72%);
  filter: blur(7px);
  will-change: top, opacity, transform;
}

@media (max-width: 767px) {
  :root {
    --global-roll-height: clamp(68px, 20vw, 82px);
  }
  .global-roll-body {
    left: -16vw;
    width: 132vw;
    border-radius: 46% / 12%;
  }
  .global-roll-shadow {
    left: -10vw;
    width: 120vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-roll { display: none !important; }
  .site-cloth { transform: none !important; }
  .site-cloth-tail { display: none; }
}


/* =============================================
   V3 — MESA REAL + TELA DE LA PIEZA 9
============================================= */
html {
  background: #8e6946 url("../assets/img/roll-global/wood-table-painted-logo-strong-v3.webp") center center / cover fixed;
}

body {
  background:
    linear-gradient(rgba(247,239,223,.13), rgba(247,239,223,.13)),
    url("../assets/img/roll-global/wood-table-painted-logo-strong-v3.webp") center center / cover fixed;
}

/* Un solo paño inmóvil detrás de toda la página. Al vivir en el viewport —y
   no dentro del contenedor transformado— conserva el detalle y nunca reinicia
   el dibujo entre secciones. */
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(rgba(244,235,218,.26), rgba(244,235,218,.26)),
    url("../assets/img/roll-global/fabric-9-continuous-v1.webp") center var(--cloth-texture-y, 0px) / var(--cloth-texture-width, auto) var(--cloth-texture-height, auto) repeat-y,
    #d8c3a5;
  pointer-events: none;
}

.site-cloth {
  position: relative;
  z-index: 1;
  background: rgba(244,235,218,.24);
  box-shadow:
    0 0 0 1px rgba(91,59,29,.16),
    0 20px 35px rgba(46,25,8,.22);
}

.site-cloth::before {
  display: none !important;
}

/* El rollo ya es el mecanismo de revelado. Los fades antiguos duplicaban el
   efecto y reducían demasiado el contraste sobre el ecoprint. */
.site-cloth .js-reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* La tela de la pieza es el fondo verdadero: anulamos velos propios de
   secciones para que no parezcan tarjetas colocadas encima. */
.site-cloth > section:not(.hero):not(.section-contacto) {
  background-color: transparent;
  background-image: none;
}

.site-cloth .hero {
  background: transparent !important;
  min-height: 100svh;
}

.site-cloth .hero::before,
.site-cloth .hero::after {
  display: none !important;
}

.site-cloth .hero-grid {
  max-width: 1180px;
  margin-inline: auto;
  justify-content: center;
  align-items: center;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 3rem;
}

.site-cloth .hero-content {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 5vw, 5rem);
  border: 1px solid rgba(86,55,26,.15);
  background: rgba(246,239,224,.22);
  backdrop-filter: blur(1.5px);
  box-shadow: 0 20px 50px rgba(61,35,13,.08);
}

.section-ecoprint,
.section-proceso,
.section-galeria,
.section-artesana,
.section-encargo {
  background: transparent !important;
}

.site-cloth .section-contacto,
.site-cloth .footer {
  background: transparent !important;
  color: var(--text) !important;
}

/* Una única tela continua. Se eliminan velos y divisiones que creaban
   rectángulos visibles al cambiar de sección. */
.site-cloth > section,
.site-cloth .section-ecoprint,
.site-cloth .section-proceso,
.site-cloth .section-galeria,
.site-cloth .section-artesana,
.site-cloth .section-encargo,
.site-cloth .section-contacto,
.site-cloth .footer {
  background-color: transparent !important;
  background-image: none !important;
  border-top-color: transparent !important;
  border-bottom-color: transparent !important;
}

.site-cloth .artesana-foto,
.site-cloth .artesana-foto-wrap,
.site-cloth .artesana-img-box {
  transform: none !important;
  translate: none !important;
}

.site-cloth .artesana-foto-wrap {
  overflow: visible;
  isolation: auto;
}

.site-cloth .artesana-img-box {
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-md);
}

.site-cloth .artesana-foto {
  display: block;
  position: relative;
  inset: auto;
  opacity: 1 !important;
  will-change: auto !important;
}

/* La imagen del taller también queda físicamente fija dentro de su ventana.
   El parallax anterior dejaba asomar el borde superior antes de tiempo. */
.site-cloth .proceso-imagen-sticky {
  overflow: hidden;
  isolation: isolate;
}

.site-cloth .proceso-imagen-sticky img {
  transform: none !important;
  translate: none !important;
  inset: auto !important;
  opacity: 1 !important;
  will-change: auto !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* La foto del proceso se comporta como la de Belkis: una pieza normal del
   lienzo, completamente cargada y sin sticky, máscara ni revelado propio. */
@media (min-width: 768px) {
  .site-cloth .proceso-imagen-sticky {
    position: relative;
    top: auto;
    align-self: start;
    height: min(78vh, 760px);
    margin-top: var(--sp-2xl);
    margin-bottom: var(--sp-2xl);
  }

  .site-cloth .proceso-imagen-sticky img,
  .site-cloth .proceso-imagen-sticky .proceso-imagen-overlay {
    clip-path: none !important;
  }
}

.site-cloth .section-contacto {
  padding-top: var(--sp-2xl);
}

.site-cloth .section-title--light,
.site-cloth .contacto-sub,
.site-cloth .contacto-datos,
.site-cloth .contacto-datos a,
.site-cloth .footer-col-title,
.site-cloth .footer-link,
.site-cloth .footer-copy {
  color: var(--text) !important;
}

.site-cloth .footer-logo img {
  filter: none;
  opacity: 1;
}

.site-cloth .btn-ghost-light {
  color: var(--text);
  border-color: rgba(63,40,18,.45);
}

.site-cloth .contacto-datos {
  border-color: rgba(63,40,18,.25);
}

.global-roll-veil {
  background:
    linear-gradient(rgba(246,237,219,.18), rgba(246,237,219,.18)),
    url("../assets/img/roll-global/wood-table-painted-logo-strong-v3.webp") center center / cover fixed;
  box-shadow: inset 0 16px 26px rgba(48,25,8,.1);
}

.global-roll-body {
  left: 50%;
  width: 112vw;
  height: calc(var(--global-roll-height) * 2.35);
  overflow: visible;
  border-radius: 0;
  transform:
    translate3d(-50%, calc(-50% + var(--global-roll-wobble)), 0)
    scaleY(1);
  box-shadow: none;
}

.global-roll-canvas {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  display: block;
  width: 100%;
  height: 74%;
  opacity: 0;
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
  filter: none;
  pointer-events: none;
}

.global-roll.roll-surface-ready .global-roll-canvas {
  opacity: 1;
}

.global-roll-neutral-detail {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 74%;
  object-fit: fill;
  opacity: 1;
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
  filter: none;
  pointer-events: none;
}

.global-roll.roll-surface-ready .global-roll-neutral-detail {
  opacity: 0;
}

/* La fotografía del rollo es la representación visual principal. Si WebGL no
   puede iniciar (algo normal al abrir el HTML directamente como file://), el
   contenedor debe conservar exactamente la misma geometría. La versión
   anterior lo reducía de 2.35x a 1x y dejaba visibles dos bandas sintéticas. */
.global-roll-fallback .global-roll-body {
  height: calc(var(--global-roll-height) * 2.35);
  overflow: visible;
  border-radius: 0;
  background: none;
}

.global-roll-fallback .global-roll-canvas {
  visibility: hidden;
}

.global-roll-fallback .global-roll-neutral-detail { opacity: 1; }

.global-roll-contact-lip {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -2px;
  left: 0;
  height: clamp(5px, 8%, 10px);
  background:
    linear-gradient(to bottom, rgba(60,35,12,.28), transparent 40%),
    url("../assets/img/roll-global/fabric-9-flat.webp?v=2") center var(--global-roll-turn) / 100vw auto repeat-y;
  clip-path: polygon(0 28%, 6% 12%, 14% 36%, 22% 17%, 31% 39%, 40% 19%, 49% 34%, 58% 14%, 67% 37%, 76% 20%, 85% 39%, 93% 16%, 100% 28%, 100% 100%, 0 100%);
  display: none;
}

.global-roll-photo,
.global-roll-turn,
.global-roll-highlight,
.global-roll-lip {
  display: none;
}

.global-roll-shadow {
  left: 50%;
  width: min(88vw, 1470px);
  top: calc(var(--global-roll-y) + var(--global-roll-height) * .36);
  height: calc(var(--global-roll-height) * .08);
  transform: translate(-50%, var(--global-roll-wobble));
  background: radial-gradient(ellipse at center, rgba(38,19,5,.14), rgba(38,19,5,.035) 50%, transparent 76%);
  filter: blur(4px);
}

/* Todos los textos destacados comparten un único mostaza. El resto conserva
   el negro editorial para asegurar contraste. */
.palabra-acento,
.word-italic,
.section-title em,
.chapter-label,
.item-num,
.paso-num,
.artesana-overlay-title em,
.footer-col-title {
  color: var(--ocre) !important;
}


/* Legibilidad editorial sobre la pieza 9 sin ocultar su material. */
.site-cloth .ecoprint-texto,
.site-cloth .proceso-pasos,
.site-cloth .artesana-texto,
.site-cloth .section-encargo .container {
  text-shadow: 0 1px 0 rgba(250,246,237,.65);
}

@media (max-width: 767px) {
  .global-roll-body {
    width: 124vw;
  }
  .global-roll-shadow {
    width: 91vw;
  }
  .site-cloth {
    background: rgba(244,235,218,.24);
  }
  body::before { position: fixed; }
  .site-cloth .hero-grid {
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 2rem;
  }
  .site-cloth .hero-content {
    padding: 1.5rem 1.1rem;
  }
}

/* Ajuste editorial v48: el contenido se integra en la tela sin perder
   contraste ni el tono sereno y artesanal de la marca. */
.site-cloth {
  --text-muted: #514033;
}

.site-cloth .hero-title {
  font-size: clamp(3.35rem, 6.4vw, 5.45rem);
  line-height: .94;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.site-cloth .hero-sub {
  max-width: 46ch;
  margin-inline: auto;
  color: #3f3025;
  font-size: clamp(.98rem, 1.25vw, 1.08rem);
  line-height: 1.65;
}

.site-cloth .hero-sub--2 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.65vw, 1.35rem);
  font-style: italic;
  color: #322218;
}

.site-cloth .section-title {
  font-size: clamp(2.55rem, 4.75vw, 4rem);
  line-height: 1.02;
  text-wrap: balance;
}

.site-cloth .body-text,
.site-cloth .section-sub,
.site-cloth .item-desc,
.site-cloth .paso-desc,
.site-cloth .proceso-subtitulo,
.site-cloth .contacto-sub,
.site-cloth .encargo-pasos p {
  color: #46362a;
  font-size: clamp(.96rem, 1.05vw, 1.04rem);
  line-height: 1.75;
}

.site-cloth .ecoprint-texto,
.site-cloth .proceso-pasos,
.site-cloth .artesana-texto,
.site-cloth .section-encargo .container {
  text-shadow: 0 1px 0 rgba(255,250,240,.82);
}

.site-cloth .artesana-cita {
  bottom: -1.85rem;
  right: -1.4rem;
  max-width: 270px;
  padding: 1.45rem 1.7rem;
  background: rgba(250,247,240,.97);
  border-color: rgba(80,52,29,.14);
  box-shadow: 0 14px 36px rgba(49,30,15,.16);
}

.site-cloth .artesana-cita p {
  font-size: 1.08rem;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .site-cloth .artesana-foto-wrap {
    padding-right: 1.5rem;
    padding-bottom: 1.85rem;
  }
}

@media (max-width: 767px) {
  .site-cloth .hero-title {
    font-size: clamp(2.85rem, 13vw, 4.25rem);
  }

  .site-cloth .section-title {
    font-size: clamp(2.35rem, 11vw, 3.25rem);
  }

  .site-cloth .artesana-cita {
    max-width: 100%;
    margin-top: .8rem;
  }
}

/* Corrección v49: contraste, cuadrícula sintética y fotografías sin recorte. */
.palabra-acento,
.word-italic,
.section-title em,
.chapter-label,
.item-num,
.paso-num,
.artesana-overlay-title em,
.footer-col-title,
.artesana-nombre .n-apellido,
.dato-label {
  color: var(--ocre) !important;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255,248,231,.72);
}

.site-cloth .ecoprint-inner {
  align-items: start;
}

.site-cloth .ecoprint-foto {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--r-md);
  background: rgba(244,237,224,.72);
  box-shadow: var(--shadow-lg);
}

.site-cloth .ecoprint-foto img {
  width: 100%;
  height: 100% !important;
  max-width: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}

.site-cloth .proceso-sticky-wrap {
  align-items: center;
}

.site-cloth .proceso-pasos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: clamp(1rem, 2.2vw, 1.7rem);
  padding: clamp(2rem, 5vw, 5rem) clamp(1.25rem, 4vw, 4rem);
}

.site-cloth .proceso-header {
  grid-column: 1 / -1;
  margin-bottom: clamp(.35rem, 1vw, .8rem);
}

.site-cloth .paso {
  min-width: 0;
  min-height: clamp(150px, 14vw, 185px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem;
  align-content: start;
  padding: clamp(1rem, 2vw, 1.45rem);
  border: 1px solid rgba(92,61,29,.20);
  border-radius: var(--r-md);
  background: rgba(250,246,237,.24);
  box-shadow: 0 8px 25px rgba(62,38,16,.05);
}

.site-cloth .paso:last-child {
  border: 1px solid rgba(92,61,29,.20);
  padding: clamp(1rem, 2vw, 1.45rem);
}

.site-cloth .paso-num {
  width: auto;
  padding-top: .15rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.site-cloth .paso-contenido {
  gap: .45rem;
}

.site-cloth .paso-titulo {
  font-size: clamp(1.45rem, 2.15vw, 1.9rem);
  line-height: 1.05;
}

.site-cloth .paso-desc {
  max-width: 27ch;
  font-size: clamp(.88rem, 1vw, .98rem);
  line-height: 1.55;
}

.site-cloth .proceso-imagen-sticky {
  position: relative !important;
  top: auto !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 5;
  margin: 0 !important;
  overflow: hidden;
}

.site-cloth .proceso-imagen-sticky img {
  width: 100%;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.site-cloth .proceso-imagen-overlay {
  display: none !important;
}

.site-cloth .contacto-datos {
  color: #34251b !important;
  font-size: .9rem;
  font-weight: 500;
}

.site-cloth .contacto-datos a {
  color: #34251b !important;
  border-bottom-color: rgba(52,37,27,.35);
}

.site-cloth .dato-label {
  font-size: .72rem;
  letter-spacing: .13em;
}

@media (max-width: 767px) {
  .site-cloth .proceso-pasos {
    grid-template-columns: 1fr;
    padding: 2rem var(--sp-md);
  }

  .site-cloth .proceso-header {
    display: none;
  }

  .site-cloth .paso {
    min-height: 0;
  }
}

/* Corrección v50: dos cuadrados editoriales. La foto conserva íntegra su
   proporción vertical dentro del marco; el cuadrado no recorta la imagen. */
@media (min-width: 768px) {
  .site-cloth .ecoprint-inner {
    max-width: 1320px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3.5vw, 4rem);
    align-items: center;
  }

  .site-cloth .ecoprint-foto,
  .site-cloth .ecoprint-texto {
    width: 100%;
    aspect-ratio: 1;
    min-height: 0;
  }

  .site-cloth .ecoprint-foto {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(.75rem, 1.5vw, 1.25rem);
    background: rgba(248,242,231,.38);
  }

  .site-cloth .ecoprint-foto img {
    display: block;
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: initial !important;
    object-position: initial !important;
    flex: 0 0 auto;
  }

  .site-cloth .ecoprint-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 3.5vw, 4rem);
    border: 1px solid rgba(83,54,27,.16);
    border-radius: var(--r-md);
    background: rgba(250,246,237,.32);
    box-shadow: 0 14px 38px rgba(61,37,16,.06);
  }

  .site-cloth .ecoprint-texto .section-title {
    margin-bottom: clamp(1rem, 1.8vw, 1.5rem);
  }

  .site-cloth .ecoprint-texto .body-text {
    margin-bottom: clamp(.6rem, 1vw, .9rem);
    line-height: 1.6;
  }

  .site-cloth .ecoprint-items {
    margin-top: clamp(.8rem, 1.5vw, 1.25rem);
  }

  .site-cloth .ecoprint-item {
    padding: clamp(.65rem, 1vw, .9rem) 0;
  }

}

@media (max-width: 767px) {
  .site-cloth .ecoprint-foto {
    aspect-ratio: auto;
    padding: .75rem;
  }

  .site-cloth .ecoprint-foto img {
    width: 100% !important;
    height: auto !important;
    object-fit: initial !important;
  }
}

/* Ritmo vertical v61: los dos encuentros finales comparten exactamente
   la misma separación. Cada sección aporta la mitad del espacio visible. */
.site-cloth {
  --final-section-half-gap: clamp(4.5rem, 6vw, 6.5rem);
}

.site-cloth .section-artesana {
  padding-bottom: var(--final-section-half-gap);
}

.site-cloth .section-encargo {
  padding-top: var(--final-section-half-gap);
  padding-bottom: var(--final-section-half-gap);
}

.site-cloth .section-contacto {
  padding-top: var(--final-section-half-gap);
}

/* Contacto v63: la fila ocupa el ancho útil y centra sus tres datos dentro
   de él. No usa left, traslaciones ni márgenes calculados. */
@media (min-width: 768px) {
  .site-cloth .section-contacto .contacto-datos {
    position: static !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transform: none !important;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: repeat(3, max-content) !important;
    align-items: baseline;
    justify-content: center !important;
    column-gap: clamp(1rem, 2.5vw, 3rem) !important;
    white-space: nowrap;
  }
}

/* Contacto v62: centrado real, sin desplazamientos heredados ni recorte. */
.site-cloth .section-contacto > .container {
  width: 100%;
  max-width: 1280px;
  box-sizing: border-box;
  padding-inline: clamp(1.5rem, 4vw, 4rem);
}

@media (min-width: 768px) {
  .site-cloth .contacto-datos {
    position: static;
    left: auto;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    transform: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2.5vw, 3rem);
    white-space: nowrap;
    font-size: clamp(.72rem, .88vw, .9rem);
  }

  .site-cloth .contacto-datos > span {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
  }
}

@media (min-width: 768px) and (max-width: 1050px) {
  .site-cloth .contacto-datos {
    gap: .85rem;
    font-size: .7rem;
  }

  .site-cloth .contacto-datos .dato-label {
    margin-right: .25rem;
    font-size: .54rem;
  }
}

@media (max-width: 767px) {
  .site-cloth .contacto-datos {
    width: 100%;
    margin-inline: 0;
    transform: none;
  }
}

@media (max-width: 767px) {
  .site-cloth {
    --final-section-half-gap: 3.25rem;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .site-cloth .contacto-datos {
    font-size: .78rem;
    column-gap: 1rem;
  }

  .site-cloth .contacto-datos .dato-label {
    font-size: .58rem;
    margin-right: .25rem;
  }
}

/* Regla de copy v57: después de un punto final, párrafo nuevo y una línea
   completa de aire. Se impone sobre los márgenes compactos históricos. */
.site-cloth .body-text:has(+ .body-text),
.site-cloth .contacto-sub:has(+ .contacto-sub),
.site-cloth .artesana-cita p:has(+ p) {
  margin-bottom: 0 !important;
}

.site-cloth .body-text + .body-text,
.site-cloth .contacto-sub + .contacto-sub,
.site-cloth .artesana-cita p + p {
  margin-top: 1.72em !important;
}

.site-cloth .contacto-sub + .contacto-sub {
  margin-bottom: var(--sp-lg);
}

/* Señal inicial de scroll v58. Es informativa, no interactiva, y desaparece
   al primer gesto para no competir con el rollo ni con el contenido. */
.scroll-discovery {
  position: fixed;
  z-index: 125;
  left: 50%;
  bottom: clamp(1.25rem, 3vh, 2rem);
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .45s ease;
}

.scroll-discovery.is-ready {
  opacity: 1;
  transform: translate(-50%, 0);
}

.scroll-discovery.is-dismissed {
  opacity: 0;
  transform: translate(-50%, 12px);
}

.scroll-discovery-desktop,
.scroll-discovery-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
}

.scroll-discovery-mobile { display: none; }

.scroll-discovery-copy {
  padding: .5rem .9rem;
  border: 1px solid rgba(52,34,19,.22);
  border-radius: 999px;
  background: rgba(244,232,210,.86);
  box-shadow: 0 8px 22px rgba(42,24,10,.12);
  color: #2c1a0e;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(5px);
}

.mouse-cue {
  position: relative;
  width: 27px;
  height: 43px;
  border: 2px solid #2c1a0e;
  border-radius: 16px;
  background: rgba(244,232,210,.68);
  box-shadow: 0 5px 18px rgba(42,24,10,.13);
}

.mouse-wheel {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--ocre);
  transform: translateX(-50%);
  animation: mouse-wheel-scroll 1.45s ease-in-out infinite;
}

@keyframes mouse-wheel-scroll {
  0% { opacity: 0; transform: translate(-50%, -1px); }
  30% { opacity: 1; }
  75% { opacity: 1; transform: translate(-50%, 12px); }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

@media (max-width: 767px) {
  .scroll-discovery {
    bottom: max(1.15rem, env(safe-area-inset-bottom));
  }

  .scroll-discovery-desktop { display: none; }
  .scroll-discovery-mobile { display: flex; }

  .scroll-discovery-copy {
    font-size: .68rem;
    padding: .48rem .82rem;
  }

  .finger-cue {
    position: relative;
    width: 38px;
    height: 54px;
  }

  .finger-hand {
    position: absolute;
    left: 13px;
    bottom: 2px;
    width: 14px;
    height: 30px;
    border: 2px solid #2c1a0e;
    border-radius: 9px 9px 7px 7px;
    background: rgba(244,232,210,.76);
    animation: finger-swipe 1.6s ease-in-out infinite;
  }

  .finger-hand::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: -2px;
    width: 12px;
    height: 14px;
    border: 2px solid #2c1a0e;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: rgba(244,232,210,.76);
  }

  .finger-trail {
    position: absolute;
    top: 1px;
    left: 50%;
    width: 2px;
    height: 19px;
    background: linear-gradient(to top, var(--ocre), transparent);
    transform: translateX(-50%);
    animation: finger-trail 1.6s ease-in-out infinite;
  }

  .finger-trail::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -3px;
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--ocre);
    border-left: 2px solid var(--ocre);
    transform: rotate(45deg);
  }

  @keyframes finger-swipe {
    0%, 18% { transform: translateY(9px); }
    64% { transform: translateY(-5px); }
    100% { transform: translateY(9px); }
  }

  @keyframes finger-trail {
    0%, 20% { opacity: 0; transform: translate(-50%, 8px) scaleY(.55); }
    50% { opacity: 1; }
    80%, 100% { opacity: 0; transform: translate(-50%, -4px) scaleY(1); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .mouse-wheel,
  .finger-hand,
  .finger-trail {
    animation: none !important;
  }
}

/* Corrección v51: contenido directamente sobre la tela, sin paneles glass. */
.site-cloth .ecoprint-foto,
.site-cloth .ecoprint-texto {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.site-cloth .ecoprint-foto {
  padding: 0 !important;
  overflow: visible;
}

.site-cloth .ecoprint-foto img {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Ajuste v52: lectura y ritmo general. */
.site-cloth .container,
.site-cloth .ecoprint-inner,
.site-cloth .artesana-inner {
  max-width: 1240px;
  padding-inline: clamp(1.5rem, 4vw, 4rem);
}

.site-cloth .section-ecoprint,
.site-cloth .section-galeria,
.site-cloth .section-artesana,
.site-cloth .section-encargo {
  padding-top: clamp(5rem, 8vw, 7.5rem);
  padding-bottom: clamp(5rem, 8vw, 7.5rem);
}

.site-cloth .section-galeria .container {
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.site-cloth .section-title {
  margin-bottom: clamp(1.25rem, 2.2vw, 2rem);
}

.site-cloth .body-text,
.site-cloth .section-sub,
.site-cloth .item-desc,
.site-cloth .paso-desc,
.site-cloth .proceso-subtitulo,
.site-cloth .contacto-sub,
.site-cloth .encargo-pasos p {
  font-size: clamp(1.08rem, 1.25vw, 1.2rem);
  line-height: 1.72;
  letter-spacing: .005em;
}

.site-cloth .hero-sub {
  font-size: clamp(1.08rem, 1.3vw, 1.2rem);
  line-height: 1.65;
}

.site-cloth .item-label,
.site-cloth .chapter-label {
  font-size: clamp(.76rem, .82vw, .86rem);
}

.site-cloth .artesana-cita p {
  font-size: clamp(1.12rem, 1.3vw, 1.24rem);
}

.site-cloth .contacto-datos {
  font-size: clamp(.84rem, 1vw, .98rem);
}

.site-cloth .footer-link {
  font-size: clamp(.88rem, 1vw, 1rem);
  line-height: 1.6;
}

.site-cloth .footer-copy {
  font-size: clamp(.82rem, .92vw, .94rem);
}

.site-cloth .section-sub {
  max-width: 72ch;
  margin-bottom: .8rem;
}

.site-cloth .section-sub:last-of-type {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.site-cloth .body-text {
  margin-bottom: clamp(.9rem, 1.5vw, 1.25rem);
}

.site-cloth .ecoprint-items {
  margin-top: clamp(1rem, 2vw, 1.75rem);
}

@media (max-width: 767px) {
  .site-cloth .container,
  .site-cloth .ecoprint-inner,
  .site-cloth .artesana-inner {
    padding-inline: 1.25rem;
  }

  .site-cloth .section-ecoprint,
  .site-cloth .section-galeria,
  .site-cloth .section-artesana,
  .site-cloth .section-encargo {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Ajuste v53: el velo de la portada adopta una silueta de hoja. La forma vive
   detrás del contenido para no recortar titulares, párrafos ni botones. */
.site-cloth .hero-content {
  position: relative;
  isolation: isolate;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.site-cloth .hero-content::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: clamp(-1rem, -1.5vw, -.35rem) clamp(-3.2rem, -4vw, -1.4rem);
  background: rgba(246,239,224,.34);
  border: 1px solid rgba(86,55,26,.13);
  border-radius: 62% 8% 62% 8% / 52% 8% 52% 8%;
  transform: rotate(-2deg);
  box-shadow: 0 22px 55px rgba(61,35,13,.08);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  pointer-events: none;
}

.site-cloth .hero-content::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(104,73,42,.13) 18%, rgba(104,73,42,.13) 82%, transparent);
  transform: translateX(-50%) rotate(-13deg);
  transform-origin: center;
  pointer-events: none;
}

@media (max-width: 767px) {
  .site-cloth .hero-content::before {
    inset: -.75rem -.35rem;
    border-radius: 58% 7% 58% 7% / 48% 7% 48% 7%;
    transform: rotate(-1deg);
  }

  .site-cloth .hero-content::after {
    opacity: .65;
  }
}

/* Corrección v54: se recupera el ritmo vertical después del aumento de texto.
   Las secciones crecen con su contenido; ninguna caja fuerza el desbordamiento. */
.site-cloth .section-ecoprint {
  padding-top: clamp(7rem, 11vw, 11rem);
  padding-bottom: clamp(8rem, 12vw, 12rem);
}

.site-cloth .ecoprint-texto {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
}

@media (min-width: 768px) and (max-width: 999px) {
  .site-cloth .ecoprint-inner {
    max-width: 720px;
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .site-cloth .ecoprint-foto {
    width: min(100%, 560px);
    justify-self: center;
  }

  .site-cloth .ecoprint-texto {
    padding: 0;
  }
}

@media (min-width: 1000px) {
  .site-cloth .ecoprint-inner {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(4rem, 7vw, 8rem);
    align-items: center;
  }

  .site-cloth .ecoprint-foto {
    align-self: center;
    aspect-ratio: 1;
  }

  .site-cloth .ecoprint-texto {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    justify-content: flex-start;
    padding: clamp(1rem, 2vw, 2rem) 0;
  }

  .site-cloth .ecoprint-texto .section-title {
    max-width: none;
    font-size: clamp(3.5rem, 4.8vw, 5.25rem);
    line-height: .94;
    margin-bottom: clamp(2rem, 3vw, 3rem);
  }

  .site-cloth .ecoprint-title-line {
    display: block;
  }

  .site-cloth .ecoprint-title-line.palabra-acento {
    white-space: nowrap;
  }

  .site-cloth .ecoprint-texto .body-text {
    max-width: 49ch;
    margin-bottom: 1.15rem;
  }

  .site-cloth .ecoprint-items {
    margin-top: clamp(1.75rem, 3vw, 2.75rem);
  }

  .site-cloth .ecoprint-item {
    padding: clamp(1.15rem, 1.7vw, 1.55rem) 0;
  }
}

.site-cloth .section-proceso {
  padding-top: clamp(7rem, 10vw, 10rem);
  padding-bottom: clamp(7rem, 10vw, 10rem);
}

.site-cloth .section-galeria {
  padding-top: clamp(8rem, 11vw, 11rem);
  padding-bottom: clamp(7rem, 9vw, 9rem);
}

.site-cloth .section-artesana,
.site-cloth .section-encargo {
  padding-top: clamp(8rem, 11vw, 11rem);
  padding-bottom: clamp(8rem, 11vw, 11rem);
}

.site-cloth .section-galeria .container {
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.site-cloth .section-galeria .section-title {
  margin-bottom: clamp(2rem, 3vw, 3rem);
}

.site-cloth .section-galeria .section-sub {
  margin-bottom: 1rem;
}

.site-cloth .section-galeria .section-sub:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .site-cloth .section-ecoprint,
  .site-cloth .section-proceso,
  .site-cloth .section-galeria,
  .site-cloth .section-artesana,
  .site-cloth .section-encargo {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .site-cloth .ecoprint-title-line {
    display: inline;
  }
}

/* Ajuste v55: la introducción usa el mismo lenguaje de panel visual amplio
   que la sección de proceso, con la imagen extendida en su columna izquierda. */
@media (min-width: 1000px) {
  .site-cloth .section-ecoprint {
    padding-top: clamp(8rem, 11vw, 11rem);
    padding-bottom: clamp(9rem, 12vw, 12rem);
  }

  .site-cloth .ecoprint-inner {
    max-width: none;
    padding-inline: 0;
    grid-template-columns: minmax(0, 1.08fr) minmax(480px, .92fr);
    gap: clamp(4rem, 6vw, 7rem);
    align-items: center;
  }

  .site-cloth .ecoprint-foto {
    width: 100%;
    height: clamp(650px, 68vw, 920px) !important;
    aspect-ratio: auto;
    justify-self: stretch;
    align-self: center;
    overflow: hidden;
  }

  .site-cloth .ecoprint-foto img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .site-cloth .ecoprint-texto {
    max-width: 610px;
    padding-right: clamp(2rem, 5vw, 6rem);
  }

  .site-cloth .ecoprint-texto .section-title {
    font-size: clamp(3.65rem, 4.65vw, 5rem);
  }
}

@media (min-width: 768px) and (max-width: 999px) {
  .site-cloth .ecoprint-foto {
    width: 100%;
    aspect-ratio: 3 / 2;
  }

  .site-cloth .ecoprint-foto img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}

@media (max-width: 767px) {
  .site-cloth .ecoprint-foto {
    width: calc(100% + 2.5rem);
    margin-left: -1.25rem;
    aspect-ratio: 3 / 2;
    overflow: hidden;
  }

  .site-cloth .ecoprint-foto img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}

/* Prioridad final del ritmo v61 frente a ajustes históricos anteriores. */
.site-cloth .section-artesana {
  padding-bottom: var(--final-section-half-gap);
}

.site-cloth .section-encargo {
  padding-top: var(--final-section-half-gap);
  padding-bottom: var(--final-section-half-gap);
}

.site-cloth .section-contacto {
  padding-top: var(--final-section-half-gap);
}
