/* ===================================================================
   LA TÉCNICA INVISIBLE — Landing Page Styles
   Brand: Lizguther Academy
   Design System + All Sections
   =================================================================== */

/* ─── GOOGLE FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Montserrat:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;0,800;1,400;1,700&display=swap');

/* ─── CSS CUSTOM PROPERTIES (Design Tokens) ─── */
:root {
  /* Colors */
  --noche: #2e2a39;
  --noche-rgb: 46, 42, 57;
  --crema: #feeeee;
  --crema-rgb: 254, 238, 238;
  --purpura: #b848c9;
  --purpura-rgb: 184, 72, 201;
  --blanco: #ffffff;
  --blanco-rgb: 255, 255, 255;
  --dorado: #D4AF37;
  --dorado-rgb: 212, 175, 55;

  /* Extended palette */
  --noche-light: #3d384d;
  --purpura-dark: #8f359c;
  --purpura-light: #cd76dc;
  --dorado-light: #F9E596;
  --dorado-glow: rgba(212, 175, 55, 0.3);
  --dorado-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
  --gris-suave: #3a3648;
  --gris-claro: #4a4658;
  --fondo-alterno: #f9f5f5;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;

  --text-xs: 1.05rem;
  --text-sm: 1.1875rem;
  --text-base: 1.3125rem;
  --text-lg: 1.5rem;
  --text-xl: 1.6875rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.25rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.25rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 600ms;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.2);
  --shadow-glow-dorado: 0 0 30px rgba(173, 170, 107, 0.25);
  --shadow-glow-purpura: 0 0 30px rgba(110, 46, 120, 0.25);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.015em;
  color: var(--noche);
  background-color: var(--blanco);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  margin-bottom: 1.25rem;
}
p:last-child {
  margin-bottom: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── TYPOGRAPHY UTILITIES ─── */
.font-display {
  font-family: var(--font-display);
}

.font-accent {
  font-family: var(--font-accent);
}

.font-body {
  font-family: var(--font-body);
}

.text-dorado {
  color: var(--dorado);
}

.text-blanco {
  color: var(--blanco);
}

.text-crema {
  color: var(--crema);
}

.text-purpura {
  color: var(--purpura);
}

/* ─── TEXT UNDERLINE EMPHASIS ─── */
.text-highlight, 
.text-highlight--gold, 
.text-highlight--strong {
  display: inline;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-skip-ink: auto;
}

.text-highlight {
  text-decoration-color: var(--purpura);
  text-decoration-thickness: 2px;
}

.text-highlight--gold {
  text-decoration-color: var(--dorado);
  text-decoration-thickness: 2px;
}

.text-highlight--strong {
  text-decoration-thickness: 3px;
  text-decoration-color: var(--purpura);
}

/* ─── LAYOUT UTILITIES ─── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section-padding {
  padding: var(--space-3xl) 0;
}

/* ─── SCROLL REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0ms; }
.stagger-2 { transition-delay: 100ms; }
.stagger-3 { transition-delay: 200ms; }
.stagger-4 { transition-delay: 300ms; }
.stagger-5 { transition-delay: 400ms; }
.stagger-6 { transition-delay: 500ms; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 18px 40px;
  background: var(--purpura);
  color: var(--blanco);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--purpura-light), var(--purpura));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-purpura), var(--shadow-md);
  color: var(--dorado-light);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Pulse animation for CTAs */
.btn-pulse {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(110, 46, 120, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(110, 46, 120, 0);
  }
}

.btn-small {
  padding: 12px 28px;
  font-size: var(--text-sm);
  letter-spacing: 1px;
}

/* ─── WAVE DIVIDERS ─── */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -2px;
  margin-bottom: -2px;
  z-index: 2;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 60px;
  position: relative;
  transform: scale(1.02);
  transform-origin: top center;
}

.wave-divider--flip {
  transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: transform var(--duration-normal) var(--ease-out),
              background var(--duration-normal) var(--ease-out);
}

.site-header.scrolled {
  background: rgba(var(--blanco-rgb), 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(var(--purpura-rgb), 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo-img {
  height: 75px;
  width: auto;
  display: block;
}

.header-logo .logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--noche);
  letter-spacing: 0.5px;
}

.site-header.scrolled .header-logo .logo-text {
  color: var(--noche);
}

.header-logo .logo-accent {
  color: var(--dorado);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   S1: HERO — SCROLL EXPANSION
   ═══════════════════════════════════════════════════════════════════ */

.hero-expand {
  position: relative;
  width: 100%;
  background: var(--blanco);
  overflow: hidden;
}

.hero-expand-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  gap: var(--space-lg);
  padding: 14vh var(--space-md) var(--space-4xl);
}

/* Apple iPhone Glass Background */
.hero-glass-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* Subtle gradient orbs (decorative) */
.hero-expand::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--purpura-rgb), 0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-expand::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(var(--dorado-rgb), 0.05), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Top Text: slides up on scroll */
.hero-top-text {
  position: relative;
  z-index: 10;
  text-align: center;
  flex-shrink: 0;
  margin-bottom: var(--space-md);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 20px;
  background: rgba(var(--purpura-rgb), 0.08);
  border: 1px solid rgba(var(--purpura-rgb), 0.2);
  border-radius: var(--radius-full);
  color: var(--purpura);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-3xl);
  line-height: 1.2;
  color: var(--noche);
  margin: 0;
}

.hero-title em {
  color: var(--purpura);
  font-style: italic;
}

/* Hand-Drawn SVG Wrapping Effect */
.hand-drawn-wrapper {
  position: relative;
  display: inline-block;
  white-space: normal;
  margin-top: var(--space-sm);
}

.hand-drawn-wrapper .text-highlight--strong {
  text-decoration: none;
}

.hand-drawn-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 135%;
  height: 190%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  color: var(--purpura);
}

.hand-drawn-wrapper em {
  position: relative;
  z-index: 2;
}

.hand-drawn-svg path {
  stroke-dasharray: 4000;
  stroke-dashoffset: 4000;
  animation: drawLine 3.5s cubic-bezier(0.43, 0.13, 0.23, 0.96) forwards;
  animation-delay: 0.5s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Central Media: expands on scroll */
.hero-media {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  will-change: width, height, border-radius;
  width: 260px;
  height: 180px;
}

.hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bottom Text: slides down on scroll */
.hero-bottom-text {
  position: relative;
  z-index: 10;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--gris-suave);
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}

.hero-microcopy {
  font-size: var(--text-sm);
  color: var(--purpura);
  font-weight: 600;
  opacity: 0.9;
  margin: 0;
}

/* Scroll Indicator */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--gris-claro);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  will-change: opacity;
}

.scroll-hint-arrow {
  display: flex;
  animation: scroll-arrow-bounce 2s ease-in-out infinite;
}

@keyframes scroll-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ═══════════════════════════════════════════════════════════════════
   S2: PRUEBA VISUAL
   ═══════════════════════════════════════════════════════════════════ */

.prueba-visual {
  background: var(--fondo-alterno);
  position: relative;
}

/* Subtle paper texture */
.prueba-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.prueba-visual .section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-3xl);
  line-height: 1.3;
  color: var(--noche);
  margin-bottom: var(--space-sm);
}

.section-title h2.text-blanco {
  color: var(--blanco);
}

.section-title p {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  color: var(--gris-suave);
  max-width: 600px;
  margin: 0 auto;
}

.section-title p.text-light {
  color: rgba(var(--blanco-rgb), 0.8);
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.ba-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ba-side {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.ba-side .ba-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ba-side--before .ba-placeholder {
  background: rgba(var(--noche-rgb), 0.08);
  color: var(--gris-suave);
}

.ba-side--after .ba-placeholder {
  background: rgba(var(--dorado-rgb), 0.1);
  color: var(--dorado);
  border: 2px solid rgba(var(--dorado-rgb), 0.2);
}

.ba-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.ba-side--before .ba-label {
  background: rgba(var(--noche-rgb), 0.7);
  color: var(--blanco);
}

.ba-side--after .ba-label {
  background: rgba(var(--dorado-rgb), 0.9);
  color: var(--noche);
}

.ba-caption {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--gris-suave);
  margin-top: var(--space-xs);
  font-style: italic;
  font-family: var(--font-accent);
}

.prueba-text {
  text-align: center;
  margin-top: var(--space-2xl);
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  color: var(--noche);
  font-style: italic;
}

.prueba-text strong {
  color: var(--purpura);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   S3: EL PROBLEMA
   ═══════════════════════════════════════════════════════════════════ */

.el-problema {
  background: var(--blanco);
  position: relative;
}

.problema-intro {
  text-align: center;
  margin-bottom: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.lottie-decoration {
  position: absolute;
  top: -100px;
  left: -10px;
  width: 160px;
  height: 160px;
  transform: rotate(-12deg);
  opacity: 0.9;
  z-index: -1;
  pointer-events: none;
}

.lottie-decoration dotlottie-wc {
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .lottie-decoration {
    top: -140px;
    left: 2%;
    width: 320px;
    height: 320px;
    transform: rotate(-25deg);
  }
}

.problema-intro h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-3xl);
  color: var(--noche);
  margin-bottom: var(--space-md);
}

.problema-intro .lead {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  color: var(--gris-suave);
}

.problema-intro .lead strong {
  color: var(--purpura);
}

.problema-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.problema-col {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}

.problema-col--generic {
  background: var(--fondo-alterno);
  border: 1px solid rgba(var(--noche-rgb), 0.06);
}

.problema-col--unique {
  background: rgba(var(--purpura-rgb), 0.05);
  border: 1px solid rgba(var(--purpura-rgb), 0.15);
}

.problema-col h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.problema-col--generic h3 {
  color: var(--gris-claro);
}

.problema-col--unique h3 {
  color: var(--purpura);
}

.problema-col li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
  font-size: var(--text-base);
  line-height: 1.6;
}

.problema-col--generic li {
  color: var(--gris-claro);
}

.problema-col--generic li::before {
  content: '✕';
  color: rgba(var(--noche-rgb), 0.25);
  font-weight: 700;
  flex-shrink: 0;
}

.problema-col--unique li {
  color: var(--noche);
}

.problema-col--unique li::before {
  content: '✓';
  color: var(--purpura);
  font-weight: 700;
  flex-shrink: 0;
}

.problema-cierre {
  text-align: center;
  position: relative;
  z-index: 2;
}

.problema-cierre p {
  font-family: var(--font-accent);
  font-size: var(--text-2xl);
  color: var(--noche);
  font-style: italic;
}

.problema-cierre .highlight-contrast {
  display: inline-block;
  margin-top: var(--space-xs);
}

.problema-cierre .faded {
  color: var(--gris-claro);
}

.problema-cierre .golden {
  color: var(--purpura);
  font-weight: 600;
}

/* Cutout overlap image */
.cutout-overlap {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-top: var(--space-lg);
  margin-bottom: -80px;
}

.cutout-overlap img {
  max-height: 350px;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.cutout-placeholder {
  width: 200px;
  height: 300px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(var(--purpura-rgb), 0.3), rgba(var(--dorado-rgb), 0.2));
  border-radius: 100px 100px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gris-suave);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
  padding: var(--space-sm);
  border: 2px dashed rgba(var(--dorado-rgb), 0.3);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* ═══════════════════════════════════════════════════════════════════
   S4: LA HISTORIA
   ═══════════════════════════════════════════════════════════════════ */

.la-historia {
  background: var(--fondo-alterno);
  position: relative;
  padding-top: calc(var(--space-3xl) + 80px); /* Extra space for cutout overlap */
}

.la-historia::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
}

.historia-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.historia-text {
  position: relative;
}

.historia-text h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-3xl);
  color: var(--noche);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.historia-quote {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  color: var(--noche);
  line-height: 1.8;
  position: relative;
  padding-left: var(--space-lg);
  border-left: 3px solid var(--dorado);
}

.historia-quote p {
  margin-bottom: var(--space-md);
}

.historia-quote .arrow-item {
  color: var(--purpura);
  font-weight: 500;
}

.historia-punch {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--purpura);
  margin-top: var(--space-lg);
  font-style: italic;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
  background: rgba(var(--noche-rgb), 0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--dorado-rgb), 0.2);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--dorado);
  display: block;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--noche);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.historia-image {
  position: relative;
}

.historia-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--dorado-rgb), 0.3);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(var(--dorado-rgb), 0.1);
  display: block;
}

.historia-img-placeholder {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--purpura-rgb), 0.1), rgba(var(--dorado-rgb), 0.1));
  border: 2px dashed rgba(var(--dorado-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gris-suave);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════════════
   S5: MÉTODO 5D
   ═══════════════════════════════════════════════════════════════════ */

.metodo-5d {
  background: var(--blanco);
  position: relative;
}

/* Scratch Wrapper */
.scratch-wrapper {
  position: relative;
  margin-top: var(--space-2xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.scratch-overlay {
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  z-index: 10;
  pointer-events: auto;
  transition: opacity 0.8s var(--ease-out);
}

.scratch-overlay.cleared {
  opacity: 0;
  pointer-events: none;
}

.scratch-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.scratch-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(var(--noche-rgb), 0.95);
  color: var(--blanco);
  padding: 16px 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-glow-dorado);
  border: 1px solid rgba(var(--dorado-rgb), 0.5);
  pointer-events: none;
  animation: pulse-cta 2.5s infinite ease-in-out;
  transition: opacity 0.4s ease;
  z-index: 20;
  text-align: center;
  width: max-content;
  max-width: 90%;
}

.scratch-cta.hidden {
  opacity: 0;
}

@keyframes pulse-cta {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 20px rgba(173, 170, 107, 0.4); }
  50% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 45px rgba(173, 170, 107, 0.9); }
}

.scratch-icon {
  font-size: 1.5rem;
  animation: swipe-hand 2s infinite ease-in-out;
}

@keyframes swipe-hand {
  0%, 100% { transform: translateX(0) rotate(-10deg); }
  50% { transform: translateX(10px) rotate(15deg); }
}

.scratch-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.5px;
}

.metodo-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.metodo-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--noche);
  border: 1px solid rgba(var(--dorado-rgb), 0.2);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
}

.metodo-card:hover {
  background: var(--purpura);
  border-color: var(--dorado-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-purpura);
}

.metodo-card-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-4xl);
  color: var(--dorado);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.9;
  transition: color var(--duration-normal) var(--ease-out);
}

.metodo-card:hover .metodo-card-number {
  color: var(--blanco);
}

.metodo-card-content h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--blanco);
  margin-bottom: var(--space-xs);
  transition: color var(--duration-normal) var(--ease-out);
}

.metodo-card:hover .metodo-card-content h3 {
  color: var(--dorado-light);
}

.metodo-card-content p {
  color: rgba(var(--blanco-rgb), 0.75);
  font-size: var(--text-base);
  line-height: 1.6;
  margin: 0;
  transition: color var(--duration-normal) var(--ease-out);
}

.metodo-card:hover .metodo-card-content p {
  color: rgba(var(--blanco-rgb), 0.95);
}

.metodo-cierre {
  text-align: center;
  margin-top: var(--space-2xl);
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  color: var(--gris-suave);
  font-style: italic;
}

.metodo-cierre strong {
  color: var(--purpura);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   S6: QUÉ INCLUYE (Stack de valor)
   ═══════════════════════════════════════════════════════════════════ */

.stack-valor {
  background: var(--fondo-alterno);
  position: relative;
}

.stack-list {
  max-width: 700px;
  margin: 0 auto;
}

.stack-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(var(--noche-rgb), 0.08);
}

.stack-item:last-child {
  border-bottom: none;
}

.stack-item-left {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  flex: 1;
}

.stack-check {
  width: 24px;
  height: 24px;
  background: var(--dorado-gradient);
  box-shadow: 0 2px 8px var(--dorado-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.stack-check svg {
  width: 14px;
  height: 14px;
  stroke: var(--noche);
  stroke-width: 3;
  fill: none;
}

.stack-item-name {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--noche);
}

.stack-item-name small {
  display: block;
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--gris-claro);
  margin-top: 2px;
}

.stack-item-value {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--gris-suave);
  text-decoration: line-through;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Highlight items */
.stack-item--highlight {
  background: rgba(var(--purpura-rgb), 0.05);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin: var(--space-xs) calc(-1 * var(--space-md));
  border-bottom: none;
  border: 1px solid rgba(var(--purpura-rgb), 0.1);
}

.stack-item--scarcity {
  position: relative;
}

.scarcity-badge {
  display: inline-block;
  padding: 2px 10px;
  background: var(--purpura);
  color: var(--blanco);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  margin-left: var(--space-xs);
  text-transform: uppercase;
}

/* Price box */
.price-box {
  text-align: center;
  margin-top: var(--space-2xl);
  padding: var(--space-2xl);
  background: var(--noche);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.price-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--dorado), var(--purpura), var(--dorado));
}

.price-original {
  display: block;
  font-size: var(--text-3xl);
  color: #ff4d4d;
  text-decoration: line-through;
  font-weight: 600;
  margin: 0 auto var(--space-xs) auto;
}

.price-current {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-5xl);
  color: var(--dorado);
  display: block;
  margin: var(--space-xs) 0;
  text-shadow: 0 0 25px rgba(255, 248, 200, 0.7), 0 0 50px rgba(var(--dorado-rgb), 0.5);
}

.price-comparison {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  color: rgba(var(--blanco-rgb), 0.85);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.price-duration {
  font-size: var(--text-sm);
  color: var(--dorado);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════════════
   S7: TESTIMONIOS
   ═══════════════════════════════════════════════════════════════════ */

.testimonios {
  background: var(--blanco);
  position: relative;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

/* Torn paper effect */
.testimonio-card {
  background: var(--blanco);
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  position: relative;
  box-shadow: var(--shadow-md);
  /* Torn paper edges */
  clip-path: polygon(
    0% 3%, 4% 0%, 8% 2%, 12% 0%, 16% 3%, 20% 1%, 24% 2%, 28% 0%, 
    32% 3%, 36% 1%, 40% 2%, 44% 0%, 48% 3%, 52% 1%, 56% 0%, 60% 2%, 
    64% 0%, 68% 3%, 72% 1%, 76% 2%, 80% 0%, 84% 3%, 88% 1%, 92% 2%, 
    96% 0%, 100% 3%,
    100% 97%, 96% 100%, 92% 98%, 88% 100%, 84% 97%, 80% 100%, 76% 98%, 
    72% 100%, 68% 97%, 64% 100%, 60% 98%, 56% 100%, 52% 97%, 48% 100%, 
    44% 98%, 40% 100%, 36% 97%, 32% 100%, 28% 98%, 24% 100%, 20% 97%, 
    16% 100%, 12% 98%, 8% 100%, 4% 97%, 0% 100%
  );
}

.testimonio-card::before {
  content: '"';
  position: absolute;
  top: 15px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 60px;
  color: rgba(var(--dorado-rgb), 0.2);
  line-height: 1;
}

.testimonio-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.testimonio-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--purpura-rgb), 0.2), rgba(var(--dorado-rgb), 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purpura);
  font-weight: 700;
  font-size: var(--text-lg);
  flex-shrink: 0;
  border: 2px solid rgba(var(--dorado-rgb), 0.3);
}

.testimonio-info h4 {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--noche);
}

.testimonio-info span {
  font-size: var(--text-sm);
  color: var(--gris-suave);
}

.testimonio-text {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  color: var(--noche);
  font-style: italic;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════
   S8: OBJECIONES (FAQ)
   ═══════════════════════════════════════════════════════════════════ */

.objeciones {
  background: var(--fondo-alterno);
}

.faq-list {
  max-width: 700px;
  margin: var(--space-2xl) auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(var(--noche-rgb), 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--noche);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}

.faq-question:hover {
  color: var(--purpura);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(var(--purpura-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out),
              background var(--duration-normal) var(--ease-out);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--purpura);
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--purpura);
  stroke-width: 2.5;
  fill: none;
}

.faq-item.active .faq-icon svg {
  stroke: var(--blanco);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-in-out),
              padding var(--duration-normal) var(--ease-in-out);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  background: var(--blanco);
  border-radius: var(--radius-md);
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  color: var(--noche);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════
   S9: PRECIO FINAL
   ═══════════════════════════════════════════════════════════════════ */

.precio-final {
  background: var(--noche);
  text-align: center;
}

.precio-card {
  max-width: 550px;
  margin: var(--space-2xl) auto 0;
  padding: var(--space-2xl) var(--space-lg);
  background: rgba(var(--blanco-rgb), 0.03);
  border: 1px solid rgba(var(--dorado-rgb), 0.2);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.precio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--dorado), var(--purpura), var(--dorado));
}

.precio-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(var(--dorado-rgb), 0.05), transparent 50%);
  pointer-events: none;
}

.precio-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(var(--dorado-rgb), 0.15);
  border: 1px solid rgba(var(--dorado-rgb), 0.3);
  border-radius: var(--radius-full);
  color: var(--dorado);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.precio-garantias {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.garantia-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: rgba(var(--blanco-rgb), 0.85);
}

/* ═══════════════════════════════════════════════════════════════════
   S10: CIERRE EMOCIONAL
   ═══════════════════════════════════════════════════════════════════ */

.cierre {
  background: linear-gradient(180deg, var(--purpura) 0%, var(--noche) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cierre::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--dorado-rgb), 0.1), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.cierre-scarcity {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px 24px;
  background: rgba(var(--blanco-rgb), 0.1);
  border: 1px solid rgba(var(--blanco-rgb), 0.2);
  border-radius: var(--radius-full);
  color: var(--blanco);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2xl);
  backdrop-filter: blur(10px);
}

.cierre h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-3xl);
  color: var(--blanco);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.cierre .cierre-text {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  color: var(--blanco);
  margin-bottom: var(--space-xs);
  font-style: italic;
}

.cierre .cierre-accent {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--dorado);
  font-weight: 700;
  margin-bottom: var(--space-2xl);
}

.cierre-microcopy {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: rgba(var(--blanco-rgb), 0.85);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--noche);
  padding: var(--space-2xl) 0;
  border-top: 1px solid rgba(var(--dorado-rgb), 0.1);
  text-align: center;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(var(--blanco-rgb), 0.7);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
  color: var(--dorado);
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(var(--blanco-rgb), 0.5);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET & DESKTOP
   ═══════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
  :root {
    --text-xs: 1.15rem;
    --text-sm: 1.3rem;
    --text-base: 1.45rem;
    --text-lg: 1.65rem;
    --text-xl: 1.85rem;
    --text-2xl: 2.15rem;
    --text-3xl: 2.85rem;
    --text-4xl: 3.5rem;
    --text-5xl: 4.25rem;
    --text-6xl: 5.5rem;
  }

  .section-padding {
    padding: var(--space-4xl) 0;
  }

  .hero-media {
    width: 420px;
    height: 300px;
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .ba-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .problema-columns {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .historia-content {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cutout-overlap {
    margin-bottom: -120px;
  }

  .cutout-placeholder {
    width: 250px;
    height: 380px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: var(--text-4xl);
  }

  .section-title h2 {
    font-size: var(--text-4xl);
  }

  .problema-intro h2,
  .cierre h2 {
    font-size: var(--text-4xl);
  }

  .testimonios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metodo-cards {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Zigzag layout for metodo cards */
  .metodo-card:nth-child(even) {
    margin-left: 60px;
  }

  .metodo-card:nth-child(odd) {
    margin-right: 60px;
  }
}

@media (min-width: 1200px) {
  :root {
    --text-xs: 1.2rem;
    --text-sm: 1.35rem;
    --text-base: 1.5rem;
    --text-lg: 1.75rem;
    --text-xl: 2rem;
  }

  .hero-title {
    font-size: var(--text-5xl);
  }
}
