/* ============================================================
   RAIZ — Funnel VSL "Sin Tanto Ruido"
   Subdominio: descubre.viveraiz.es
   ============================================================ */

/* ---- Variables ---- */
:root {
  --bg:        #1a1a2e;
  --bg-card:   #252542;
  --text:      #f5f0e8;
  --muted:     #a0a0b0;
  --accent:    #c4956a;
  --accent-hover: #a87a52;
  --border:    rgba(196,149,106,0.3);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
}

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

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Logo ---- */
.logo-wrap {
  text-align: center;
  padding: 48px 0 40px;
}

.logo-wrap img {
  height: 36px;
  width: auto;
  margin: 0 auto;
  opacity: 0.9;
}

/* ---- Typography ---- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.18;
  color: var(--text);
  letter-spacing: -0.01em;
}

.display--sm {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.3;
  color: var(--text);
}

.display--italic {
  font-style: italic;
}

.body-text {
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text);
  line-height: 1.75;
}

.body-muted {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--muted);
  line-height: 1.7;
}

.body-small {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.text-center { text-align: center; }
.text-accent  { color: var(--accent); }

/* ---- Divider ---- */
.divider {
  width: 48px;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
}

/* ---- Sections ---- */
.section {
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

/* ---- Form (opt-in) ---- */
.opt-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.opt-form input[type="text"],
.opt-form input[type="email"] {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.opt-form input[type="text"]::placeholder,
.opt-form input[type="email"]::placeholder { color: var(--muted); }
.opt-form input[type="text"]:focus,
.opt-form input[type="email"]:focus { border-color: var(--accent); }

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 17px 32px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.01em;
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }

.btn-primary--auto { width: auto; padding: 17px 48px; }

.trust-note {
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

/* ---- Video player ---- */
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom controls */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 20px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-wrap:hover .video-controls,
.video-wrap.paused .video-controls { opacity: 1; }

.video-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Barra de progreso: el ancho lo controla JS con un ritmo no lineal
   (avanza más rápido al principio, se ajusta al tiempo real hacia el
   final), no representa el % exacto transcurrido en todo momento. */
.video-progress {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  overflow: hidden;
}

.video-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
}

.btn-play-pause {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-play-pause svg { width: 36px; height: 36px; }

.video-time {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn-mute {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0;
  display: flex;
  align-items: center;
}

.btn-mute svg { width: 22px; height: 22px; }

/* Botón de subtítulos */
.btn-cc {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 4px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 3px 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}

.btn-cc:hover { color: #fff; border-color: #fff; }

.btn-cc[aria-pressed="true"] {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

/* Estilo de los subtítulos sobre el vídeo */
#vsl-video::cue {
  font-family: var(--font-body);
  font-size: 17px;
  background: rgba(20,20,38,0.75);
  color: var(--text);
  padding: 2px 4px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

/* Big play overlay */
.video-overlay-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  cursor: pointer;
  transition: background 0.2s;
}

.video-overlay-play:hover { background: rgba(0,0,0,0.35); }

.video-overlay-play svg {
  width: 72px;
  height: 72px;
  color: rgba(255,255,255,0.9);
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}

.video-overlay-play.hidden { display: none; }

/* Aviso de "continuar donde lo dejó" */
.video-resume-prompt {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  padding: 24px;
  text-align: center;
}

.video-resume-prompt.visible { display: flex; }

.video-resume-card { max-width: 300px; width: 100%; }

.video-resume-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  margin-bottom: 20px;
}

.video-resume-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-resume-restart {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px;
}

.video-resume-restart:hover { color: var(--text); }

/* ---- VSL page header ---- */
.vsl-intro {
  text-align: center;
  padding: 56px 0 28px;
}

/* ---- Mini-landing (hidden until video ends) ---- */
.mini-landing {
  display: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.mini-landing.visible {
  display: block;
}

.mini-landing.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Two columns ---- */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.col-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
}

.col-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 14px;
}

/* ---- Weeks grid ---- */
.weeks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.week-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}

.week-card__num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.week-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.week-card__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- Testimonial ---- */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px 36px;
  position: relative;
  text-align: center;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--text);
  line-height: 1.55;
}

.testimonial::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 80px;
  color: var(--accent);
  opacity: 0.6;
  position: absolute;
  top: 8px;
  left: 24px;
  line-height: 1;
}

/* ---- Objection block ---- */
.objection {
  border-left: 2px solid var(--border);
  padding-left: 24px;
  margin: 0 0 0 8px;
}

/* ---- Price block ---- */
.price-block {
  text-align: center;
  padding: 56px 0 40px;
}

.price-stack {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-bottom: 4px;
}

.price-was {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  color: var(--muted);
  text-decoration: line-through;
  line-height: 1;
  padding-bottom: 10px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 96px);
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0;
}

.price-vat {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.price-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.price-asterisk {
  font-size: 10px;
  vertical-align: super;
}

.price-details {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
  letter-spacing: 0.04em;
}

.price-secure {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
  opacity: 0.7;
}

.price-footnote {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  max-width: 420px;
  margin: 24px auto 0;
  line-height: 1.7;
  opacity: 0.8;
}

/* ---- Emotional moments (qué pasa cuando te dices que sí) ---- */
.moments {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.moment {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.moment__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.moment__icon svg { width: 20px; height: 20px; }

.moment__text {
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text);
  line-height: 1.85;
  padding-top: 8px;
}

.moments__footnote {
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  text-align: center;
  margin-top: 48px;
}

/* ---- Author block ---- */
.author-block {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.author-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.author-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

/* ---- Guarantee block ---- */
.guarantee-block {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
}

.guarantee-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.guarantee-icon svg {
  width: 100%;
  height: 100%;
}

.guarantee-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .guarantee-block { flex-direction: column; gap: 16px; }
}

/* ---- Para quién / fit check ---- */
.fit-check {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.fit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 26px;
}

.fit-card--no { opacity: 0.85; }

.fit-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 18px;
}

.fit-card--yes .fit-card__title svg { color: var(--accent); }
.fit-card--no .fit-card__title svg { color: var(--muted); }

.fit-card__title svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.fit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fit-list li {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
}

.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
}

@media (max-width: 640px) {
  .fit-check { grid-template-columns: 1fr; }
}

/* ---- Telegram button ---- */
.btn-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 36px;
  background: #229ED9;
  color: #fff;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn-telegram:hover { background: #1a8bc4; }
.btn-telegram:active { transform: scale(0.98); }

/* ---- Mini footer ---- */
.mini-footer {
  text-align: center;
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.mini-footer img {
  height: 28px;
  width: auto;
  margin: 0 auto 12px;
  opacity: 0.5;
}

.mini-footer-legal {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.mini-footer-legal a {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  opacity: 0.6;
  text-decoration: underline;
}

.mini-footer-legal a:hover { opacity: 1; }

/* ---- Checkbox de consentimiento RGPD ---- */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  text-align: left;
}

.consent-check input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.consent-check label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  cursor: pointer;
}

.consent-check a {
  color: var(--muted);
  text-decoration: underline;
}

/* ---- Thank you ---- */
.thankyou-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

/* ---- Fade-in animation ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeUp 0.7s ease both;
}

/* ---- Stagger delays ---- */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.7s; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .cols-2  { grid-template-columns: 1fr; }
  .weeks-grid { grid-template-columns: 1fr; }
  .testimonial { padding: 36px 24px; }
  .testimonial::before { font-size: 60px; top: 4px; left: 16px; }
  .objection { margin-left: 0; }
  .section { padding: 52px 0; }
}

/* ---- Botón flotante de WhatsApp ---- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.whatsapp-inline {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.whatsapp-inline:hover {
  color: var(--accent);
}
