/* Arte en Madera — estilos de la landing */

:root {
  --terra: #B14730;
  --terra-dark: #8E3824;
  --crema: #F9F4EA;
  --cafe: #5E3B27;
  --tinta: #1F1915;
  --texto-2: #4A3F37;
  --texto-3: #6B5D52;
  --linea: #E4D9C6;
  --linea-2: #CBBBA6;
  --rosa: #E9A58C;

  --f-display: 'Italiana', 'Times New Roman', serif;
  --f-label: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'Jost', system-ui, sans-serif;

  --gutter: 24px;
  --max: 1320px;
  --section: clamp(72px, 10vw, 120px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
p { margin: 0; }
a { color: var(--terra); }
a:hover { color: var(--terra-dark); }

:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--tinta); color: var(--crema); padding: 12px 16px; text-decoration: none;
}
.skip-link:focus { top: 16px; }
.skip-link:hover { color: var(--crema); }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tight-bottom { padding-bottom: 0; }

/* Tipografía */

.display { font-family: var(--f-display); font-weight: 400; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.h2 { font-size: clamp(38px, 4vw, 60px); line-height: 1.05; margin-bottom: 0; }
.h2-wide { max-width: 760px; margin-bottom: 64px; }
.h2-sm { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.1; margin-bottom: 14px; }
.h2-lg { font-size: clamp(42px, 4.6vw, 68px); line-height: 1.02; }
.h3 { font-size: 38px; line-height: 1.1; }
.h4 { font-size: 28px; line-height: 1.15; }

/* Botones */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-family: var(--f-label); font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 13px; }
.btn-terra { background: var(--terra); color: var(--crema); }
.btn-terra:hover { background: var(--terra-dark); color: var(--crema); }
.btn-outline { border-color: var(--tinta); color: var(--tinta); }
.btn-outline:hover { background: var(--tinta); color: var(--crema); }
.btn-ink { background: var(--tinta); color: var(--crema); }
.btn-ink:hover { background: var(--cafe); color: var(--crema); }
.btn-cream { background: var(--crema); color: var(--terra); min-height: 56px; font-size: 15px; }
.btn-cream:hover { background: #fff; color: var(--terra-dark); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Encabezado */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--crema);
  transition: box-shadow 200ms ease;
}
/* Solo flota (y lleva sombra) cuando ya hay contenido debajo */
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(31, 25, 21, 0.35); } /* taste-skill-ignore: barra fija sobre el contenido */
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-block: 14px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 30px; width: auto; }

.site-nav {
  display: flex; align-items: center; gap: 8px 28px;
  font-family: var(--f-label); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
}
.site-nav a:not(.btn) { color: var(--tinta); text-decoration: none; padding-block: 12px; }
.site-nav a:not(.btn):hover { color: var(--terra); }
/* Sección actual: el enlace se pone en terracota y aparece una línea debajo */
.site-nav a:not(.btn) { position: relative; transition: color 200ms ease; }
.site-nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: var(--terra); transform: scaleX(0); transform-origin: left center;
  transition: transform 300ms cubic-bezier(0.65, 0, 0.35, 1);
}
.site-nav a[aria-current="true"] { color: var(--terra); }
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--tinta);
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ''; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--crema);
    box-shadow: 0 16px 24px -16px rgba(31, 25, 21, 0.3); /* taste-skill-ignore: menú desplegado */
    padding: 8px var(--gutter) 24px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding-block: 14px; font-size: 16px; }
  .site-nav a:not(.btn)::after { right: auto; width: 24px; bottom: 10px; }
  .site-nav .btn { margin-top: 16px; }
  .brand img { height: 22px; }
}

/* Hero */

.hero {
  display: flex; flex-wrap: wrap; gap: 56px; align-items: stretch;
  padding-top: 56px; padding-bottom: 96px;
}
.hero-copy {
  flex: 1 1 480px; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.hero-title { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.04; max-width: 620px; text-wrap: balance; }
.hero-lead { max-width: 520px; font-size: 18px; }
.hero-media { flex: 1 1 440px; min-width: 0; position: relative; }
.hero-media .slider { height: 660px; }
.hero-seal {
  position: absolute; left: -48px; bottom: 40px;
  width: 150px; height: 150px; background: var(--terra);
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 760px) {
  .hero { padding-top: 32px; padding-bottom: 72px; gap: 40px; }
  .hero-copy { flex-basis: 100%; }
  .hero-media .slider { height: 440px; }
  .hero-seal { left: 16px; bottom: 16px; width: 96px; height: 96px; }
  .hero-seal img { width: 86px; height: 86px; }
}

/* Slider */

.slider { position: relative; overflow: hidden; background: var(--tinta); }
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, center);
  opacity: 0; transform: scale(1.06);
  transition: opacity 1000ms ease, transform 8000ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* La foto activa se acerca muy despacio mientras está en pantalla */
.slide.is-active { opacity: 1; transform: scale(1); }
.slider-controls {
  position: absolute; right: 20px; bottom: 20px; z-index: 2;
  display: flex; align-items: center; gap: 4px;
  background: var(--crema); padding: 0 4px;
}
.slider-controls button {
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--tinta);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.slider-controls button:hover { color: var(--terra); }


/* Bandas de color */

.band-terra { background: var(--terra); color: var(--crema); }
.band-cafe { background: var(--cafe); color: var(--crema); }

/* Manifiesto */

.manifesto {
  display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: center;
  padding-block: clamp(80px, 10vw, 112px);
}
.manifesto-quote { flex: 2 1 560px; min-width: 0; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; max-width: 30ch; }
.manifesto-side { flex: 1 1 300px; min-width: 0; }

/* Servicios */

.section-head {
  display: flex; flex-wrap: wrap; gap: 24px 64px;
  justify-content: space-between; align-items: flex-end; margin-bottom: 56px;
}
.section-intro { max-width: 420px; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px 96px; }
.service {
  display: flex; flex-direction: column; gap: 14px;
}
.service-tags {
  list-style: none; margin: 4px 0 0 -6px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  font-size: 15px; color: var(--texto-3);
}
.service-tags li { position: relative; padding: 2px 6px; }
/* El punto va al final de cada elemento, centrado en el hueco: si la línea se corta, nunca abre un renglón */
.service-tags li:not(:last-child)::after { content: '·'; position: absolute; right: -7px; color: var(--texto-3); }
/* Resaltado que barre cada elemento, como una selección de texto: entra por la izquierda y sale por la derecha */
.service-tags li {
  background: linear-gradient(var(--terra), var(--terra)) no-repeat right center / 0% 100%; /* taste-skill-ignore: color plano, se usa como franja animable */
  transition: background-size 450ms cubic-bezier(0.65, 0, 0.35, 1), color 0ms linear 230ms;
}
.service-tags li.is-on {
  color: var(--crema);
  background-position: left center; background-size: 100% 100%;
  transition-delay: 0ms, 120ms;
}

/* Tira de fotos */

.strip { display: flex; flex-wrap: wrap; }
.strip-cell { flex: 1 1 340px; min-width: 0; height: 680px; }
.strip-wide { flex: 1.6 1 520px; }
.strip-caption {
  position: absolute; left: 32px; bottom: 28px; z-index: 2;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1;
  color: var(--crema); background: var(--tinta); padding: 12px 18px 14px;
}
@media (max-width: 760px) {
  .strip-cell { height: 420px; }
  .strip-caption { left: 16px; bottom: 16px; }
}

/* Experiencia */

.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px 56px; }
.promise { display: flex; flex-direction: column; gap: 10px; }
.diamond {
  display: block; width: 9px; height: 9px; margin-bottom: 8px;
  background: var(--terra); transform: rotate(45deg);
}

/* Proceso */

.band-cafe .h2 { margin-bottom: 72px; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px 32px;
}
.step { background: rgba(249, 244, 234, 0.07); padding: 28px 24px 32px; }
.step-icon { display: block; width: 44px; height: 44px; color: var(--rosa); margin-bottom: 20px; }
/* Proceso: las fases entran una por una y su ícono se dibuja al llegar */
.js .step-icon path,
.js .step-icon rect {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 900ms cubic-bezier(0.65, 0, 0.35, 1) calc(var(--d, 0ms) + 350ms);
}
.js .step.is-in .step-icon path,
.js .step.is-in .step-icon rect { stroke-dashoffset: 0; }
.step-title {
  margin: 0 0 8px;
  font-family: var(--f-label); font-weight: 500; font-size: 16px; letter-spacing: 0.05em; text-transform: uppercase;
}
.step p:last-child { font-size: 16px; color: #EADFD3; }

/* Restauración */

.restore { display: flex; flex-wrap: wrap; background: var(--tinta); color: var(--crema); }
.restore-media { flex: 1 1 520px; min-width: 0; height: 760px; }
.restore-copy {
  flex: 1 1 520px; min-width: 0;
  padding: clamp(64px, 8vw, 96px) clamp(24px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.restore-copy .h2 { font-size: clamp(38px, 3.8vw, 56px); line-height: 1.08; }
.restore-copy .btn { align-self: flex-start; margin-top: 8px; }
.muted-light { color: #D9CFC4; }

.checklist {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px;
  font-size: 16px;
}
.checklist li { display: flex; gap: 14px; align-items: center; }
.checklist li::before {
  content: ''; flex: none; width: 7px; height: 7px; background: var(--rosa); transform: rotate(45deg);
}
@media (max-width: 760px) {
  .restore-media { height: 440px; }
}

/* Para proyectos */

.pro-box {
  background: #EFE5D3; padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px);
  display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; justify-content: space-between;
}
.pro-copy { flex: 1 1 520px; min-width: 0; }
.pro-copy p:last-child { max-width: 620px; }

/* Maderas */

.woods {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  font-family: var(--f-display); font-size: clamp(34px, 4.4vw, 64px); line-height: 1.1;
}
.woods li { display: flex; align-items: center; gap: 28px; }
.woods li + li::before {
  content: ''; width: 10px; height: 10px; background: var(--terra); transform: rotate(45deg);
}
.note { margin-top: 24px; font-size: 16px; color: var(--texto-3); }

/* Preguntas */

.faq-wrap { background: #F3EBDD; }
.faq-grid { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.faq-grid > :first-child { flex: 1 1 300px; min-width: 0; }
.faq { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--crema); padding: 20px 24px; }
.faq summary {
  cursor: pointer; list-style: none; font-size: 20px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--terra); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 14px; max-width: 62ch; }

/* Contacto */

.contact { display: flex; flex-wrap: wrap; gap: 56px 80px; align-items: flex-start; }
.contact-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-copy p { max-width: 440px; }
.contact-copy .btn { align-self: flex-start; }
.contact-mail a { color: var(--crema); text-underline-offset: 3px; }
.contact-mail a:hover { color: #fff; }
.contact-seal { width: 140px; height: 140px; margin-left: -10px; }

.contact-form {
  flex: 1.2 1 440px; min-width: 0;
  background: var(--crema); color: var(--tinta);
  padding: clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; }
.field input,
.field select,
.field textarea {
  min-height: 46px; border: 0; border-bottom: 1px solid var(--tinta); border-radius: 0;
  background: transparent; padding: 8px 2px; font: inherit; color: inherit;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom: 2px solid var(--terra); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-error { color: var(--terra-dark); font-size: 15px; }

/* Pie */

.site-footer { background: var(--cafe); color: var(--crema); }
.footer-inner {
  padding-block: 72px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center;
}
.lockup { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lockup-name { width: min(480px, 100%); height: auto; }
.lockup-tagline {
  font-family: var(--f-label); font-weight: 500; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase;
}
.lockup-place {
  display: flex; align-items: center; gap: 22px; margin-top: 10px;
  font-family: var(--f-label); font-weight: 500; font-size: 14px; letter-spacing: 0.16em;
}
.lockup-oval {
  width: 64px; height: 80px; border: 1.5px solid var(--crema); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lockup-oval img { width: 34px; height: auto; }
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
  font-family: var(--f-label); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
}
.footer-nav a { color: var(--crema); text-decoration: none; padding-block: 12px; }
.footer-nav a:hover { color: var(--rosa); }
.footer-nav .footer-mail { font-family: var(--f-body); font-size: 15px; letter-spacing: 0; text-transform: none; }
.footer-legal { font-size: 14px; color: #E2D3C4; }

@media (max-width: 560px) {
  .lockup-tagline { font-size: 13px; letter-spacing: 0.06em; }
}

/* Promo: mes de la restauración */
.promo {
  width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; background: var(--crema); color: var(--tinta);
  display: none; overflow: auto;
}
.promo[open] { display: flex; flex-wrap: wrap; }
.promo::backdrop { background: rgba(31, 25, 21, 0.6); }
.promo-media { flex: 1 1 320px; min-width: 0; min-height: 260px; position: relative; overflow: hidden; background: var(--tinta); }
.promo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-body {
  flex: 1.2 1 360px; min-width: 0; position: relative;
  padding: clamp(28px, 5vw, 48px);
  display: flex; flex-direction: column; gap: 18px;
}
.promo-title { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.05; padding-right: 32px; }
.promo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.promo-list li { display: flex; gap: 14px; align-items: center; }
.promo-list li::before { content: ''; flex: none; width: 8px; height: 8px; background: var(--terra); transform: rotate(45deg); }
.promo-terms { font-size: 15px; color: var(--texto-3); }
.promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 6px; }
.promo-later {
  min-height: 44px; padding: 0 4px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 16px; color: var(--tinta); text-decoration: underline; text-underline-offset: 4px;
}
.promo-later:hover { color: var(--terra); }
.promo-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  border: 0; background: transparent; color: var(--tinta); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.promo-close:hover { color: var(--terra); }

/* Entrada: la foto se descubre de arriba abajo, como la compuerta; el texto sube después */
.promo[open] { animation: promo-in 500ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.promo[open] .promo-media img { animation: promo-gate 1000ms cubic-bezier(0.77, 0, 0.18, 1) 150ms both; }
.promo[open] .promo-body > * { animation: promo-rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.promo[open] .promo-body > :nth-child(2) { animation-delay: 300ms; }
.promo[open] .promo-body > :nth-child(3) { animation-delay: 380ms; }
.promo[open] .promo-body > :nth-child(4) { animation-delay: 460ms; }
.promo[open] .promo-body > :nth-child(5) { animation-delay: 540ms; }
.promo[open] .promo-body > :nth-child(6) { animation-delay: 620ms; }
.promo.is-closing { animation: promo-out 250ms ease both; }
@keyframes promo-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes promo-gate { from { clip-path: inset(0 0 100% 0); scale: 1.15; } }
@keyframes promo-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes promo-out { to { opacity: 0; transform: translateY(12px); } }

@media (max-width: 760px) {
  .promo-media { flex-basis: 100%; min-height: 180px; height: 28vh; }
}

/* Regalo de cumpleaños: usa la misma caja que la promo */
.gift-media img { object-position: 50% 45%; }
.gift-sign { font-size: 30px; line-height: 1.1; color: var(--terra); }
/* Rombos de la marca que caen sobre la foto al abrir */
.gift-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.gift-confetti i {
  position: absolute; top: -12px; left: var(--x); width: 10px; height: 10px;
  background: var(--crema); transform: rotate(45deg);
}
.gift-confetti i:nth-child(3n) { background: var(--terra); }
.gift-confetti i:nth-child(4n) { background: var(--rosa); width: 7px; height: 7px; }
.gift[open] .gift-confetti i { animation: gift-fall 2600ms cubic-bezier(0.33, 0, 0.67, 1) var(--t) both; }
@keyframes gift-fall {
  from { transform: translateY(0) rotate(45deg); opacity: 1; }
  to { transform: translateY(520px) rotate(calc(45deg + var(--r) * 6)); opacity: 0; }
}

/* Pantalla de carga: compuerta de dos hojas con el sello como cerradura */
.loader { display: none; }
.js .loader { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.js:not(.is-ready) body { overflow: hidden; }
.loader-half {
  position: absolute; left: 0; right: 0; height: 50%; overflow: hidden;
  background: var(--terra);
  transition: transform 1100ms cubic-bezier(0.77, 0, 0.18, 1);
}
.loader-top { top: 0; }
.loader-bottom { bottom: 0; }
/* Cada hoja lleva media cerradura: al abrirse, el sello se parte por la mitad */
.lock { position: absolute; left: 50%; width: 220px; height: 220px; margin-left: -110px; }
.loader-top .lock { bottom: -110px; }
.loader-bottom .lock { top: -110px; }
.lock-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.lock-mono { position: absolute; left: 50%; top: 50%; width: 52px; height: auto; transform: translate(-50%, -50%); }
.lock-ring, .lock-mono { animation: lock-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.lock-mono { animation-delay: 150ms; }
@keyframes lock-in { from { opacity: 0; scale: 0.85; } }
/* Girar la llave */
.loader.is-unlocking .lock-ring { transform: rotate(-180deg); transition: transform 750ms cubic-bezier(0.65, 0, 0.35, 1); }
.loader.is-unlocking .lock { animation: lock-click 250ms ease 650ms; }
@keyframes lock-click { 50% { scale: 0.94; } }
/* Abrir la compuerta */
.loader.is-open .loader-top { transform: translateY(-100%); }
.loader.is-open .loader-bottom { transform: translateY(100%); }

/* Entrada del hero, en cuanto se abre la compuerta */
.js .hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.js .hero-title .w > span {
  display: inline-block; transform: translateY(110%);
  transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1) var(--wd, 0ms);
}
.js .hero-lead,
.js .hero .actions {
  opacity: 0; transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.js .hero-lead { transition-delay: 650ms; }
.js .hero .actions { transition-delay: 800ms; }
.js .hero-media .slider {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1300ms cubic-bezier(0.77, 0, 0.18, 1) 150ms;
}
.js:not(.is-loaded) .hero-media .slide.is-active { transform: scale(1.25); }
/* El sello aparece de izquierda a derecha, con un borde degradado que lo va descubriendo */
.js .hero-seal {
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%); /* taste-skill-ignore: máscara de revelado, no se ve como degradado */
          mask-image: linear-gradient(90deg, #000 40%, transparent 60%); /* taste-skill-ignore: máscara de revelado, no se ve como degradado */
  -webkit-mask-size: 250% 100%; mask-size: 250% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 1200ms cubic-bezier(0.65, 0, 0.35, 1) 1100ms, mask-position 1200ms cubic-bezier(0.65, 0, 0.35, 1) 1100ms;
}
.js.is-loaded .hero-seal { -webkit-mask-position: 0 0; mask-position: 0 0; }
.js .slider-controls { opacity: 0; transition: opacity 600ms ease 1500ms; }
.js.is-loaded .hero-title .w > span,
.js.is-loaded .hero-lead,
.js.is-loaded .hero .actions { opacity: 1; transform: none; }
.js.is-loaded .hero-media .slider { clip-path: inset(0 0 0 0); }
.js.is-loaded .slider-controls { opacity: 1; }

/* Entradas: título, texto y foto de cada sección, escalonados. Sin JS todo queda visible. */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.btn:active { transform: translateY(1px); }

::selection { background: var(--terra); color: var(--crema); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transform: none; transition: opacity 400ms linear; }
  .js .reveal { transform: none; transition: opacity 400ms linear; }
  .js .step-icon path, .js .step-icon rect { stroke-dashoffset: 0; transition: none; }
  .loader-half { transition: opacity 400ms linear; }
  .loader.is-open .loader-top, .loader.is-open .loader-bottom { transform: none; opacity: 0; }
  .loader.is-unlocking .lock-ring { transform: none; }
  .js .hero-title .w > span { transform: none; transition: opacity 400ms linear; }
  .js .hero-seal { -webkit-mask-image: none; mask-image: none; }
  .promo[open], .promo[open] .promo-media img, .promo[open] .promo-body > * { animation: none; }
  .gift-confetti { display: none; }
  .js .hero-media .slider { clip-path: none; transition: none; }
}
