/* ═══════════════════════════════════════
   Beauty Immersion — Landing
   ═══════════════════════════════════════ */

/* --- Tokens --- */
:root {
  --dark: #3A383A;
  --dark-soft: #4a484a;
  --light: #EAE9E5;
  --light-warm: #F5F4F0;
  --teal: #3E5D58;
  --teal-light: #4d7a73;
  --coral: #E0684B;
  --coral-dark: #c9553b;
  --red: #E5554F;
  --blue: #5A85D7;

  --bg: #EAE9E5;
  --text: #3A383A;
  --text-muted: #7a777a;

  --serif: 'STIX Two Text', 'Georgia', serif;
  --sans: 'Inter', system-ui, sans-serif;

  --container: 900px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-gap: clamp(3.5rem, 7vw, 6rem);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body {
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

/* ═══════════════════════════════════════
   NAV
   ═══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.5rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(234, 233, 229, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(58, 56, 58, 0.06);
  box-shadow: 0 1px 24px rgba(58, 56, 58, 0.06);
  max-width: 100vw;
  overflow: hidden;
}
.nav__logo-img { height: 40px; width: auto; flex-shrink: 0; }

/* ═══════════════════════════════════════
   LOGO SLIDER (inside nav)
   ═══════════════════════════════════════ */
.logo-slider {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
  mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent);
}
.logo-slider__track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.logo-slider__track.is-ready {
  animation: logo-scroll var(--scroll-duration, 60s) linear infinite;
}
.logo-slider__item {
  flex-shrink: 0;
  height: 28px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.55) contrast(1.1);
  opacity: 0.5;
}
@keyframes logo-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(var(--scroll-distance, -50%), 0, 0); }
}

/* --- Container --- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ═══════════════════════════════════════
   HERO — Hook (persuasion copy)
   ═══════════════════════════════════════ */
.hero__hook {
  font-family: var(--serif);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75em;
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 5rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

.hero__date-pill {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--coral);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(224, 104, 75, 0.08);
  padding: 0.45rem 1rem;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 2.5rem;
}
.hero__meta {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.hero__date-pill .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: pulse-live 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(229, 85, 79, 0.4);
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(229, 85, 79, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(229, 85, 79, 0); }
}

.hero__headline {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.8rem + 3vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 780px;
  letter-spacing: -0.02em;
}
.hero__headline em {
  font-style: normal;
  color: var(--coral);
}
.hero__event-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.6em;
  font-weight: 700;
  font-style: italic;
  line-height: 0.85;
  color: var(--coral);
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}

.hero__sub {
  font-family: var(--sans);
  font-size: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 600px;
  margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════
   VSL — Video container
   ═══════════════════════════════════════ */
.vsl {
  margin: 3rem 0;
}
.vsl__wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 8px;
  overflow: hidden;
  background: var(--dark);
  box-shadow: 0 12px 48px rgba(58, 56, 58, 0.15);
}
.vsl__wrapper iframe,
.vsl__wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.vsl__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(234, 233, 229, 0.4);
  font-size: 0.85rem;
  font-style: italic;
}

/* ═══════════════════════════════════════
   PROGRAM SECTION
   ═══════════════════════════════════════ */
.program-section {
  padding-block: var(--section-gap);
  overflow: hidden;
}
.section--dark {
  background: var(--dark);
  color: var(--light);
}
.program-section__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════
   PROGRAM SLIDER
   ═══════════════════════════════════════ */
.program-slider {
  margin-top: 2.5rem;
  overflow: hidden;
}
.program-slider__viewport {
  width: 100%;
  overflow: hidden;
}
.program-slider__track {
  display: flex;
  gap: 0;
  will-change: transform;
  padding-inline: 40px;
  position: relative;
  cursor: grab;
}
/* Horizontal timeline line — positioned by JS between first and last dot */
.timeline__line {
  position: absolute;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

/* ═══════════════════════════════════════
   TIMELINE NODE + ITEM WRAPPER
   ═══════════════════════════════════════ */
.prog-item {
  flex-shrink: 0;
  width: 300px;
  margin-right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 24px;
}
.prog-item:last-child {
  padding-right: 40px;
}
.timeline__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}
.timeline__time {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(234, 233, 229, 0.5);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}
.timeline__dot {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(234, 233, 229, 0.5);
}
.timeline__dot svg {
  display: block;
}
.timeline__stem {
  width: 2px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════
   PROGRAM CARD
   ═══════════════════════════════════════ */
.prog-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  flex-grow: 1;
  overflow: hidden;
}
.prog-card--accent {
  background: rgba(224, 104, 75, 0.12);
  border-color: rgba(224, 104, 75, 0.25);
}

/* Card image — full width 16:9 */
.prog-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.prog-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}
.prog-card__img--panel { background: rgba(90, 133, 215, 0.2); }
.prog-card__img--demo { background: rgba(224, 104, 75, 0.15); }

/* Card body — text below image */
.prog-card__body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

/* Meta: name + type */
.prog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Name */
.prog-card__name {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(234, 233, 229, 0.85);
}

/* Type label */
.prog-card__type {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  width: fit-content;
  display: inline-block;
}
.prog-card__type--keynote {
  background: rgba(62, 93, 88, 0.3);
  color: #8fbab3;
}
.prog-card__type--panel {
  background: rgba(90, 133, 215, 0.2);
  color: #8fb3e8;
}
.prog-card__type--demo {
  background: rgba(224, 104, 75, 0.2);
  color: #e8937a;
}
.prog-card__type--offer {
  background: rgba(224, 104, 75, 0.35);
  color: #fff;
}

/* Title */
.prog-card__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #fff;
  margin: 0;
}

/* Description */
.prog-card__desc {
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(234, 233, 229, 0.55);
  margin: 0;
}

/* Controls */
.program-slider__controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.prog-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.25s, transform 0.25s;
}
.prog-arrow:hover {
  color: #fff;
}
.prog-arrow--prev:hover { transform: translateX(-3px); }
.prog-arrow--next:hover { transform: translateX(3px); }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .hero__headline {
    font-size: clamp(2rem, 1.5rem + 3vw, 2.8rem);
  }
  .prog-item {
    width: 260px;
  }
}

/* ═══════════════════════════════════════
   PROPUESTA — Additional styles
   ═══════════════════════════════════════ */

/* --- Sections generic (propuesta) --- */
section { padding-block: var(--section-gap); }

.section--teal { background: var(--teal); color: var(--light); }
.section--coral { background: var(--coral); color: #fff; }

/* --- Stats section --- */
.stats-section {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,104,75,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat { position: relative; }
.stat + .stat::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(234,233,229,0.1);
}
.stat__number {
  font-family: var(--serif);
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--coral);
  letter-spacing: -0.03em;
}
.stat__label {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-size: clamp(0.8rem, 0.75rem + 0.2vw, 0.9rem);
  font-weight: 500;
  color: #a8a6a3;
  letter-spacing: 0.02em;
}

/* --- Situation cards --- */
.situation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.situation-card {
  background: rgba(234,233,229,0.08);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  border-top: 3px solid var(--coral);
  transition: transform 0.3s;
}
.situation-card:hover { transform: translateY(-4px); }
.situation-card__q {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: #fff;
}
.situation-card__a {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #a8a6a3;
  margin: 0;
}

/* --- Testimonial slider --- */
.testi-slider-section {
  padding-block: var(--section-gap);
}
.testi-slider {
  margin-top: 2.5rem;
  overflow: hidden;
}
.testi-slider__viewport {
  width: 100%;
  overflow: hidden;
}
.testi-slider__track {
  display: flex;
  gap: 1rem;
  will-change: transform;
  padding-inline: 40px;
  cursor: grab;
}
.testi-card {
  flex-shrink: 0;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}
.testi-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testi-card__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.testi-card__centro {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.testi-card__ubicacion {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(234, 233, 229, 0.55);
  letter-spacing: 0.04em;
  margin: 0;
}
.testi-card__titular {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: #fff;
  margin: 0;
}
.testi-card__video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.testi-card__video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.testi-card__frase {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(234, 233, 229, 0.85);
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--coral);
  flex-grow: 1;
}
.testi-card__nombre {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(234, 233, 229, 0.5);
  margin: 0;
}
.testi-slider__controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.testi-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.25s, transform 0.25s;
}
.testi-arrow:hover {
  color: #fff;
}
.testi-arrow--prev:hover { transform: translateX(-3px); }
.testi-arrow--next:hover { transform: translateX(3px); }

/* --- Map embed --- */
.map-embed {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(58,56,58,0.1);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 480px;
  margin-top: -60px;
}

/* --- Two-col layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

/* --- CTA mid-page --- */
.cta-mid {
  padding-block: var(--section-gap);
  background: var(--light);
}
.cta-mid h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.4rem + 2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

/* --- CTA button (propuesta) --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: clamp(0.9rem, 0.85rem + 0.15vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 1rem 2.2rem;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 24px rgba(224, 104, 75, 0.3);
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.cta-btn::after {
  content: '\2192';
  transition: transform 0.3s;
}
.cta-btn:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(224, 104, 75, 0.4);
}
.cta-btn:hover::after { transform: translateX(4px); }
.cta-btn--big {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
  padding: 1.15rem 2.8rem;
}
.cta-hint {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Registration form --- */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.register-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.register-form__field label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}
.register-form__field input {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}
.register-form__field input::placeholder {
  color: rgba(255,255,255,0.4);
}
.register-form__field input:focus {
  border-color: #fff;
  background: rgba(255,255,255,0.18);
}
.register-form__submit {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1rem 2rem;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 24px rgba(58,56,58,0.3);
  margin-top: 0.5rem;
}
.register-form__submit:hover {
  background: #2a282a;
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(58,56,58,0.4);
}
.register-form__note {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* --- Footer --- */
.footer {
  padding: 3rem var(--gutter);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(58,56,58,0.06);
}
.footer__legal {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.72rem;
}
.footer__legal a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer__legal a:hover {
  color: var(--coral);
  text-decoration: underline;
}

/* --- Propuesta responsive --- */
@media (max-width: 768px) {
  .stat-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .stat + .stat::before { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .situation-grid { grid-template-columns: 1fr; }
  .testi-card { width: 300px; }
}
@media (max-width: 480px) {
  .testi-card { width: 280px; }
  .cta-btn { width: 100%; text-align: center; justify-content: center; }
}
