/* ==========================================================================
   Tokens (colores y tipografías medidos en el sitio original)
   ========================================================================== */
:root {
  color-scheme: light;
  --bg: #f2f0ef;
  --ink: #000;
  --ink-soft: #1f1f1f;
  --ink-muted: #3a3a3a;
  --muted: #7a7a7a;
  --link: #0099ff;
  --card: #525252;
  --card-ink: #eae4e1;
  --card-text: #fffcfc;
  --chip: #fff;
  --chip-ink: #1f1f1f;
  --chip-active: #525252;
  --chip-active-ink: #fff;
  --faq-bg: #eee;
  --faq-icon: #666;
  --field-bg: #fff;
  --field-border: #ddd;
  --button: #525252;
  --button-hover: #3d3d3d;
  --button-ink: #fff;
  --polaroid: #fff;
  --polaroid-ink: #444;
  --cta: #ffbd66;
  --cta-ink: #322f33;

  /* Providence Sans es una fuente comercial: si la tienes con licencia,
     instálala o añade su @font-face y se usará automáticamente. */
  --font-hand: "Providence Sans", "Providence Sans Regular", "Patrick Hand", cursive;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-inter: "Inter", system-ui, sans-serif;
  --font-glacial: "Glacial Indifference", "Questrial", sans-serif;
  --font-logo: "Fraunces", Georgia, serif;

  --radius-lg: 20px;
  --container: 1000px;
}

/* Modo noche (el script del <head> pone data-theme según la elección guardada o el sistema) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131211;
  --ink: #f2f0ef;
  --ink-soft: #e4e0dd;
  --ink-muted: #b9b4b0;
  --muted: #8f8a86;
  --link: #4db8ff;
  --card: #262423;
  --card-ink: #d9d3cf;
  --card-text: #f5f2f0;
  --chip: #262423;
  --chip-ink: #e4e0dd;
  --chip-active: #f2f0ef;
  --chip-active-ink: #131211;
  --faq-bg: #1e1d1c;
  --faq-icon: #9a9592;
  --field-bg: #1e1d1c;
  --field-border: #3a3836;
  --button: #f2f0ef;
  --button-hover: #d9d5d2;
  --button-ink: #131211;
  --polaroid: #ece8e3;
  --polaroid-ink: #3a3836;
}

body,
.testimonial,
.tab,
.faq__item,
.newsletter__input,
.newsletter__button,
.polaroid {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}

/* ==========================================================================
   Controles fijos: idioma + tema
   ========================================================================== */
.site-controls {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(20, 19, 18, .45);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}
.lang-switch { display: flex; gap: 2px; }
.lang-switch a,
.theme-toggle {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-switch a:hover,
.theme-toggle:hover { background: rgba(255, 255, 255, .18); }
.lang-switch a[aria-current="page"] { background: #fff; color: #131211; }
.lang-switch a:focus-visible,
.theme-toggle:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.theme-toggle { padding: 0; width: 30px; min-width: 30px; }
.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Muestra el icono del modo al que vas a cambiar */
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.container {
  width: min(var(--container), 100% - 32px);
  margin-inline: auto;
}

.section-title {
  margin: 0 0 32px;
  font-family: var(--font-hand);
  font-size: clamp(34px, 5vw, 45px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
}
.section-title--xl { font-size: clamp(38px, 6vw, 52px); margin-bottom: 14px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__media--zoom { animation: kenburns 24s ease-in-out infinite alternate; }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.55) 100%);
}
.hero__logo {
  position: absolute;
  top: 28px;
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.hero__headline {
  margin: 0;
  padding: 0 16px;
  font-family: var(--font-hand);
  font-size: clamp(30px, 4.2vw, 40px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero__headline span { display: block; }
.hero__hint {
  position: absolute;
  bottom: 24px;
  margin: 0;
  font-size: 14px;
  opacity: .85;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes kenburns { from { scale: 1; } to { scale: 1.08; } }
@keyframes bob { 50% { translate: 0 6px; } }

/* ==========================================================================
   Intro
   ========================================================================== */
.intro {
  padding: 64px 0 0;
  text-align: center;
}
.intro__title {
  max-width: 680px;
  margin: 0 auto 36px;
  font-family: var(--font-hand);
  font-size: clamp(28px, 3.6vw, 37px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.intro__text {
  margin: 0 0 24px;
  font-family: var(--font-inter);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.intro__quote {
  margin: 40px 0 0;
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Botón principal "Join the fam" */
.cta-wrap { padding: 45px 0; text-align: center; }
.cta {
  display: inline-block;
  padding: 20px 30px;
  border-radius: var(--radius-lg);
  background: var(--cta);
  color: var(--cta-ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 20px rgba(255,189,102,.45); }

/* ==========================================================================
   Experiencias: anillo 3D de polaroids
   ========================================================================== */
.experiences { padding: 8px 0 24px; }

.polaroid {
  margin: 0;
  padding: 6% 6% 0;
  background: var(--polaroid);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  user-select: none;
}
.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e7e3e0;
  pointer-events: none;
}
.polaroid figcaption {
  height: 2.2em;
  display: grid;
  place-items: center;
  font-family: var(--font-hand);
  font-size: clamp(11px, 1.2vw, 15px);
  color: var(--polaroid-ink);
}

/* Fallback sin JS: tira horizontal con scroll */
.ring {
  display: flex;
  gap: 24px;
  padding: 40px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.ring .polaroid { flex: 0 0 220px; scroll-snap-align: center; }
.ring .polaroid:nth-child(odd) { rotate: -3deg; }
.ring .polaroid:nth-child(even) { rotate: 2deg; }

/* Estado 3D (cylinder-ring.js añade .is-3d) */
.ring.is-3d {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.ring.is-3d.is-dragging { cursor: grabbing; }
.ring__tilt,
.ring__drum { transform-style: preserve-3d; will-change: transform; }
.ring__drum { position: relative; }
.ring.is-3d .polaroid {
  position: absolute;
  inset: 0;
  rotate: none;
  backface-visibility: visible;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,.18), 0 8px 10px -6px rgba(0,0,0,.08);
  transition: opacity .4s ease;
}
.ring.is-3d .polaroid.is-back { opacity: .55; }
.ring.is-3d .polaroid.is-back figcaption { visibility: hidden; }

/* ==========================================================================
   How we move (pestañas)
   ========================================================================== */
.how { padding: 56px 0 24px; text-align: center; }
.how__subtitle {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.how__subtitle a { color: var(--link); text-decoration: none; }
.how__subtitle a:hover { text-decoration: underline; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 18px;
}
.tab {
  padding: 6px 16px;
  border: 0;
  border-radius: 24px;
  background: var(--chip);
  color: var(--chip-ink);
  font-family: var(--font-hand);
  font-size: 16px;
  line-height: 27px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .2s ease;
}
.tab:hover { transform: translateY(-1px); }
.tab.is-active { background: var(--chip-active); color: var(--chip-active-ink); }
.tab:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  text-align: center;
}
.panel[hidden] { display: none; }
.panel.is-active { animation: fade-in .45s ease; }
.panel__image {
  width: 100%;
  aspect-ratio: 503 / 400;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.panel__text {
  max-width: 340px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink-soft);
}

@keyframes fade-in { from { opacity: 0; translate: 0 8px; } }

/* ==========================================================================
   Meet the Family (testimonios en movimiento de derecha a izquierda)
   ========================================================================== */
.family { padding: 56px 0 0; }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  animation: marquee var(--marquee-duration, 50s) linear infinite;
}
/* Pausa al pasar el ratón o al navegar con teclado */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

/* La lista está 3 veces: al desplazar 1/3 vuelve a quedar igual que al principio */
@keyframes marquee { to { transform: translateX(-33.3333%); } }

.testimonial {
  flex: 0 0 min(360px, 86vw);
  margin-right: 10px; /* margen y no gap, para que el bucle encaje exacto */
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 281px;
  padding: 20px 27px 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
}
.testimonial__head { display: flex; align-items: center; gap: 14px; }
.testimonial__avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}
.testimonial__who {
  display: flex;
  flex-direction: column;
  font-family: var(--font-glacial);
  font-size: 17px;
  line-height: 1.3;
  color: var(--card-ink);
}
.testimonial__who small { font-size: 11px; letter-spacing: .05em; }
.testimonial__quote {
  margin: 0;
  font-family: var(--font-inter);
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.02em;
  color: var(--card-text);
}

.newsletter__button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: 30px 0 40px; }
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 880px;
  margin-inline: auto;
}
.faq__col { display: flex; flex-direction: column; gap: 5px; }
.faq__item { border-radius: 10px; background: var(--faq-bg); }
.faq__item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 7px 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--faq-icon);
  transition: rotate .25s ease;
}
.faq__item[open] summary::before { rotate: 45deg; }
.faq__answer { padding: 0 16px 14px 40px; }
.faq__answer p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-muted);
}
.faq__item[open] .faq__answer { animation: fade-in .3s ease; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: 20px 0 48px; text-align: center; }

.newsletter {
  display: grid;
  gap: 12px;
  justify-items: start;
  max-width: 700px;
  margin: 0 auto 32px;
  padding: 0 8px;
  text-align: left;
}
.newsletter__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.newsletter__input {
  width: 100%;
  max-width: 690px;
  padding: 10px 12px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  background: var(--field-bg);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.newsletter__input:focus { outline: 2px solid var(--button); outline-offset: 1px; }
.newsletter__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--button);
  color: var(--button-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.newsletter__button:hover { background: var(--button-hover); }
.newsletter__button svg { width: 16px; height: 16px; }
.newsletter__msg { min-height: 1.2em; margin: 0; font-size: 14px; color: var(--ink-muted); }
.newsletter__msg.is-error { color: #c0392b; }

.social { margin: 0 0 8px; padding: 0; list-style: none; }
.social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-hand);
  font-size: 24px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-decoration: none;
}
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.icon .fill { fill: currentColor; stroke: none; }
.icon--yt rect { fill: #e62117; stroke: none; }
.icon--yt path { fill: #fff; stroke: none; }

.footer__email {
  font-family: var(--font-hand);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
}
.footer__email:hover { color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 760px) {
  .panel { grid-template-columns: 1fr; gap: 20px; }
  .faq__grid { grid-template-columns: 1fr; }
  .intro__text br { display: none; }
  .site-controls { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  /* Sin animación, los testimonios se recorren con scroll horizontal */
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track .testimonial[aria-hidden="true"] { display: none; }
}
