/* ==========================================================================
   BODYSHOP Beauty & Health — Premium landing styles
   Palette (propuesta terracota) as CSS variables
   ========================================================================== */
:root {
  --terra-light: #B1857C;   /* recuadro 1 · color principal */
  --terra-medium: #7B4242;  /* recuadro 2 · color secundario */
  --terra-deep: #6A2F2D;    /* recuadro 3 · color oscuro */
  --cream: #F7F2EE;
  --sand: #EFE7E1;
  --white: #ffffff;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }

/* ---- Brand typography ---------------------------------------------------- */
.brand-logo {
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
}
.brand-serif {
  font-family: "Cormorant Garamond", serif;
}

/* Serif for all section headings (Tailwind `brand-serif` class already used) */

/* ==========================================================================
   HEADER
   ========================================================================== */
/* Invisible marker at the top of the page; when it scrolls out of view the
   header switches to its solid state (see IntersectionObserver in main.js). */
#top-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 40px;
  pointer-events: none;
}
#site-header .nav-link,
#site-header .brand-logo,
#site-header .brand-logo + span {
  color: #fff;
  transition: color 0.4s var(--ease);
}
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -12px rgba(106, 47, 45, 0.18);
}
#site-header.scrolled .nav-link,
#site-header.scrolled .brand-logo,
#site-header.scrolled .brand-logo + span { color: var(--terra-deep); }
#site-header.scrolled .btn-outline-header { border-color: var(--terra-medium); color: var(--terra-medium); }
#site-header.scrolled .burger-line { background: var(--terra-deep); }
#site-header.scrolled .lang-btn { color: var(--terra-deep); border-color: rgba(123,66,66,0.3); }

/* ---- Language switcher --------------------------------------------------- */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 9999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: #fff;
  transition: all 0.4s var(--ease);
}
.lang-btn:hover { background: rgba(255,255,255,0.14); }
#site-header.scrolled .lang-btn:hover { background: rgba(123,66,66,0.08); }

.lang-menu {
  position: absolute;
  right: 0; top: calc(100% + 0.7rem);
  min-width: 168px;
  border-radius: 1rem;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 45px -20px rgba(106,47,45,0.35);
  padding: 0.5rem;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  pointer-events: none;
  transition: all 0.35s var(--ease);
  z-index: 60;
}
.lang-menu.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.lang-opt {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  border-radius: 0.7rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--terra-deep);
  transition: background 0.3s var(--ease);
}
.lang-opt:hover { background: var(--cream); }
.lang-opt.is-active { background: var(--cream); color: var(--terra-medium); font-weight: 500; }
.lang-flag { font-size: 1rem; line-height: 1; }

/* mobile language chips */
.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(123,66,66,0.25);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--terra-medium);
  transition: all 0.35s var(--ease);
}
.lang-chip.is-active { background: var(--terra-medium); border-color: var(--terra-medium); color: #fff; }

.nav-link {
  position: relative;
  transition: opacity 0.3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 1px; width: 0;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { opacity: 0.85; }

.burger-line {
  display: block;
  height: 1.5px; width: 26px;
  background: #fff;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), background 0.4s var(--ease);
}
#burger.open .burger-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
#burger.open .burger-line:nth-child(2) { opacity: 0; }
#burger.open .burger-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

#mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-link { position: relative; transition: color 0.3s var(--ease); }
.mobile-link:hover { color: var(--terra-light); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary,
.btn-ghost,
.btn-outline-header,
.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 400;
  letter-spacing: 0.12em;
  transition: all 0.45s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--terra-light);
  color: #fff;
  padding: 0.95rem 2.4rem;
  font-size: 0.8rem;
  box-shadow: 0 12px 28px -12px rgba(177, 133, 124, 0.7);
}
.btn-primary:hover {
  background: var(--terra-medium);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -14px rgba(123, 66, 66, 0.6);
}

.btn-primary-dark {
  background: var(--terra-medium);
  color: #fff;
  padding: 0.95rem 2.4rem;
  font-size: 0.8rem;
  box-shadow: 0 12px 28px -12px rgba(123, 66, 66, 0.6);
}
.btn-primary-dark:hover {
  background: var(--terra-deep);
  transform: translateY(-3px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  padding: 0.95rem 2.4rem;
  font-size: 0.8rem;
  backdrop-filter: blur(2px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.btn-outline-header {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  padding: 0.6rem 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}
.btn-outline-header:hover { background: rgba(255,255,255,0.15); }

/* Hero scroll dot */
.scroll-dot {
  display: block;
  width: 3px; height: 7px;
  margin: 6px auto 0;
  border-radius: 9999px;
  background: currentColor;
  animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translateY(-3px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(9px); }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.filter-btn {
  border-radius: 9999px;
  border: 1px solid rgba(123, 66, 66, 0.25);
  padding: 0.5rem 1.4rem;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--terra-medium);
  transition: all 0.4s var(--ease);
}
.filter-btn:hover { border-color: var(--terra-medium); }
.filter-btn.is-active {
  background: var(--terra-medium);
  border-color: var(--terra-medium);
  color: #fff;
}

/* ---- INFOGRAPHIC TIMELINE ----------------------------------------------- */
.info-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}
/* central vertical spine (desktop only) */
.info-timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, rgba(177,133,124,0.45) 8%, rgba(123,66,66,0.45) 92%, transparent);
}
@media (max-width: 900px) {
  .info-timeline { gap: 2.5rem; }
  .info-timeline::before { left: 26px; }
}

/* each step */
.info-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2.5rem;
}
.info-step.is-hidden { display: none; }

/* the media side */
.info-media {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: 1.75rem;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 30px 60px -34px rgba(106,47,45,0.55);
}
.info-media img {
  display: block;
  width: 100%; height: auto;      /* imagen completa, sin recortes */
  object-fit: contain;
  transition: transform 0.9s var(--ease);
}
.info-step:hover .info-media img { transform: scale(1.06); }
.info-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(106,47,45,0.28), transparent 60%);
}
.info-media .info-price {
  position: absolute;
  bottom: 1rem; right: 1rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--terra-medium);
  box-shadow: 0 8px 20px -10px rgba(106,47,45,0.5);
}

/* the central node with big number */
.info-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px; height: 76px;
  flex: none;
  border-radius: 9999px;
  background: #fff;
  border: 1.5px solid var(--cat-color, var(--terra-light));
  box-shadow: 0 12px 30px -12px rgba(106,47,45,0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.info-step:hover .info-node { transform: scale(1.08); box-shadow: 0 18px 38px -14px rgba(106,47,45,0.5); }
.info-node .info-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
  color: var(--cat-color, var(--terra-medium));
}
.info-node .info-icon { font-size: 1.15rem; line-height: 1; margin-top: 1px; }

/* connector dot on the spine glow */
.info-node::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background: var(--cat-color, var(--terra-light));
  opacity: 0.14;
  z-index: -1;
}

/* the content side */
.info-content { max-width: 460px; }
.info-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--cat-color, var(--terra-light)) 14%, white);
  padding: 0.32rem 0.9rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cat-color, var(--terra-medium));
}
.info-cat::before {
  content: "";
  width: 7px; height: 7px; border-radius: 9999px;
  background: var(--cat-color, var(--terra-light));
}
.info-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.95rem;
  font-weight: 400;
  line-height: 1.12;
  color: var(--terra-medium);
  margin-top: 0.85rem;
}
.info-desc {
  margin-top: 0.75rem;
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(106,47,45,0.74);
}
.info-book {
  margin-top: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 9999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--cat-color, var(--terra-medium));
  box-shadow: 0 12px 26px -14px var(--cat-color, rgba(123,66,66,0.6));
  transition: transform 0.4s var(--ease), gap 0.4s var(--ease), filter 0.4s var(--ease);
}
.info-book:hover { transform: translateY(-3px); gap: 0.85rem; filter: brightness(0.94); }
.info-book svg { transition: transform 0.4s var(--ease); }

/* alternate sides (odd = image left; even = image right) */
.info-step:nth-child(even) .info-media   { grid-column: 3; justify-self: start; }
.info-step:nth-child(even) .info-content { grid-column: 1; text-align: right; justify-self: end; }
.info-step:nth-child(even) .info-node    { grid-column: 2; }
.info-step:nth-child(even) .info-cat     { flex-direction: row-reverse; }
.info-step:nth-child(even) .info-cat::before { order: 2; }
.info-step:nth-child(even) .info-content .info-book { flex-direction: row-reverse; }

.info-step:nth-child(odd) .info-media   { grid-column: 1; justify-self: end; }
.info-step:nth-child(odd) .info-content { grid-column: 3; justify-self: start; }
.info-step:nth-child(odd) .info-node    { grid-column: 2; }

/* ---- responsive: stack into single left-rail column --------------------- */
@media (max-width: 900px) {
  .info-step {
    grid-template-columns: 52px 1fr;
    gap: 1.1rem 1.4rem;
    align-items: start;
  }
  .info-step .info-media,
  .info-step:nth-child(even) .info-media,
  .info-step:nth-child(odd) .info-media {
    grid-column: 2; grid-row: 2; justify-self: stretch; max-width: none; margin-top: 0.5rem;
  }
  .info-step .info-content,
  .info-step:nth-child(even) .info-content,
  .info-step:nth-child(odd) .info-content {
    grid-column: 2; grid-row: 1; text-align: left; justify-self: start; max-width: none;
  }
  .info-step:nth-child(even) .info-cat { flex-direction: row; }
  .info-step:nth-child(even) .info-cat::before { order: 0; }
  .info-step:nth-child(even) .info-content .info-book { flex-direction: row; }
  .info-node,
  .info-step:nth-child(even) .info-node,
  .info-step:nth-child(odd) .info-node {
    grid-column: 1; grid-row: 1; width: 52px; height: 52px; align-self: start;
  }
  .info-node .info-num { font-size: 1.3rem; }
  .info-title { font-size: 1.6rem; }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testi-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
.testi-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.testi-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.55;
  font-weight: 300;
  color: var(--terra-deep);
}
@media (min-width: 640px) { .testi-quote { font-size: 1.85rem; } }
.testi-stars { color: var(--terra-light); letter-spacing: 0.2em; }
.testi-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  margin-inline: auto;
  border-radius: 9999px;
  background: var(--cream);
  border: 1px solid var(--terra-light);
  color: var(--terra-medium);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 20px -10px rgba(106,47,45,0.5);
}
.testi-dot {
  height: 8px; width: 8px;
  border-radius: 9999px;
  background: rgba(123, 66, 66, 0.25);
  transition: all 0.4s var(--ease);
}
.testi-dot.active { width: 26px; background: var(--terra-medium); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(106, 47, 45, 0.65);
}
.form-input {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid rgba(123, 66, 66, 0.18);
  background: var(--cream);
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--terra-deep);
  transition: border 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-input:focus {
  outline: none;
  border-color: var(--terra-light);
  box-shadow: 0 0 0 3px rgba(177, 133, 124, 0.18);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
a.contact-row { transition: transform 0.3s var(--ease); }
a.contact-row:hover { transform: translateX(4px); }
.contact-ico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px; width: 44px;
  border-radius: 9999px;
  background: var(--cream);
  color: var(--terra-medium);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
a.contact-row:hover .contact-ico { background: var(--terra-medium); color: #fff; }
.contact-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(106, 47, 45, 0.55);
}
.contact-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--terra-deep);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-link { transition: color 0.3s var(--ease); color: rgba(247, 242, 238, 0.8); }
.footer-link:hover { color: var(--terra-light); }
.social-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px; width: 40px;
  border-radius: 9999px;
  border: 1px solid rgba(247, 242, 238, 0.2);
  color: var(--cream);
  transition: all 0.4s var(--ease);
}
.social-ico:hover {
  background: var(--terra-light);
  border-color: var(--terra-light);
  transform: translateY(-3px);
}

/* ==========================================================================
   ANIMATION HELPERS (fallback before GSAP runs)
   ========================================================================== */
[data-fade], [data-reveal] { opacity: 0; }
.no-js [data-fade], .no-js [data-reveal] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  [data-fade], [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-parallax { transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ==========================================================================
   GALERÍA — mosaico moderno (fotos/video reales del lugar)
   ========================================================================== */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1.1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 22px 50px -32px rgba(106,47,45,0.5);
  cursor: pointer;
}
.gallery-media {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}
.gallery-item:hover .gallery-media { transform: scale(1.07); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(106,47,45,0.55), transparent 55%);
  opacity: 0.85;
  transition: opacity 0.5s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-cap {
  position: absolute;
  left: 1.2rem; bottom: 1.1rem;
  z-index: 2;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.gallery-play {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.85);
  color: var(--terra-medium);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
  pointer-events: none;
}
.gallery-item:hover .gallery-play { transform: translate(-50%, -50%) scale(1.1); background: #fff; }

/* editorial mosaic spans (5 items) */
.gallery-mosaic .gi-0 { grid-column: span 2; grid-row: span 2; }
.gallery-mosaic .gi-1 { grid-column: span 2; grid-row: span 1; }
.gallery-mosaic .gi-2 { grid-column: span 1; grid-row: span 1; }
.gallery-mosaic .gi-3 { grid-column: span 1; grid-row: span 1; }
.gallery-mosaic .gi-4 { grid-column: span 2; grid-row: span 1; }

@media (max-width: 900px) {
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 0.8rem; }
  .gallery-mosaic .gi-0 { grid-column: span 2; grid-row: span 2; }
  .gallery-mosaic .gi-1 { grid-column: span 2; }
  .gallery-mosaic .gi-2 { grid-column: span 1; }
  .gallery-mosaic .gi-3 { grid-column: span 1; }
  .gallery-mosaic .gi-4 { grid-column: span 2; }
  .gallery-cap { font-size: 1.15rem; }
}

/* ==========================================================================
   EXPAND / COLLAPSE SERVICES ("Todos")
   ========================================================================== */
#services-expand.is-hidden { display: none; }

.expand-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  border-radius: 9999px;
  font-family: "Quicksand", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--terra-medium) 0%, var(--terra-deep) 100%);
  box-shadow: 0 18px 40px -16px rgba(106, 47, 45, 0.55);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.expand-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--terra-light) 0%, var(--terra-medium) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.expand-btn > * { position: relative; z-index: 1; }
.expand-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -16px rgba(106, 47, 45, 0.7);
}
.expand-btn:hover::before { opacity: 1; }
.expand-count { font-weight: 400; opacity: 0.85; letter-spacing: 0.1em; }
.expand-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.45s var(--ease);
}
.expand-btn.is-open .expand-ico { transform: rotate(180deg); }

/* ==========================================================================
   WELCOME / LANGUAGE INTRO OVERLAY
   ========================================================================== */
body.welcome-lock { overflow: hidden; }

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(160deg, var(--cream) 0%, var(--sand) 45%, #e6d7ce 100%);
  opacity: 1;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.welcome-overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.welcome-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(177, 133, 124, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 88%, rgba(106, 47, 45, 0.22) 0%, transparent 55%);
  pointer-events: none;
}

.welcome-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  text-align: center;
  color: var(--terra-deep);
  animation: welcomeRise 1.1s var(--ease) both;
}
@keyframes welcomeRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.welcome-eyebrow {
  display: block;
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--terra-light);
  margin-bottom: 1.1rem;
  padding-left: 0.5em;
}
.welcome-logo {
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  font-size: clamp(3rem, 11vw, 5.5rem);
  letter-spacing: 0.42em;
  line-height: 1;
  color: var(--terra-medium);
  padding-left: 0.42em;
}
.welcome-brand {
  display: block;
  margin-top: 0.9rem;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.05rem, 3.4vw, 1.5rem);
  letter-spacing: 0.14em;
  color: var(--terra-deep);
  opacity: 0.85;
}
.welcome-divider {
  display: block;
  width: 3.4rem;
  height: 1px;
  margin: 1.8rem auto;
  background: linear-gradient(90deg, transparent, var(--terra-light), transparent);
}
.welcome-tagline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 4vw, 1.7rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--terra-deep);
  opacity: 0.9;
}
.welcome-prompt {
  margin-top: 2.4rem;
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terra-medium);
}

.welcome-langs {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.welcome-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(123, 66, 66, 0.25);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  font-family: "Quicksand", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--terra-deep);
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
              border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
}
.welcome-lang:hover {
  transform: translateY(-3px);
  background: var(--terra-medium);
  border-color: var(--terra-medium);
  color: #fff;
  box-shadow: 0 18px 36px -16px rgba(106, 47, 45, 0.6);
}
.welcome-flag { font-size: 1.15rem; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  .welcome-inner { animation: none; }
  .welcome-overlay { transition: opacity 0.3s linear; }
}
