/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - LOS SECRETOS DEL MAQUILLAJE RESISTENTE
   ========================================================================== */
:root {
    --color-bg: #F2E6E1; /* Soft glowing rose gold/champagne pink background */
    --color-bg-card: rgba(255, 255, 255, 0.72); /* Elegant light glassmorphism card */
    --color-cream: #251A1C; /* Dark burgundy-cocoa for primary text */
    --color-beige-light: #70595C; /* Dusty rose / burgundy medium gray for secondary text */
    --color-gold: #A86B75; /* Burgundy/rose gold accent */
    --color-gold-dark: #7C4952; /* Darker burgundy/rose color for buttons and borders */
    --color-burgundy: #7C4952;
    
    --color-border: rgba(168, 107, 117, 0.18);
    --color-border-glow: rgba(168, 107, 117, 0.4);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    color-scheme: light;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    
    --shadow-gold: 0 4px 24px rgba(221, 167, 123, 0.15);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; font-size: 16px; background-color: var(--color-bg); color: var(--color-cream); overflow-x: hidden; }

body { font-family: var(--font-body); line-height: 1.6; letter-spacing: 0.02em; -webkit-font-smoothing: antialiased; position: relative; overflow-x: hidden; }

.container { width: 90%; max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
section { padding: 5rem 0; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
.section-title { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--color-cream); margin-bottom: 1rem; }
.section-tag { font-size: 0.85rem; font-weight: 700; color: var(--color-gold); letter-spacing: 0.2em; text-transform: uppercase; display: block; margin-bottom: 0.8rem; }
.section-subtitle { font-size: 1.1rem; color: var(--color-beige-light); max-width: 600px; margin: 0 auto; }
.text-center { text-align: center; }

.highlight { 
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-beige-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; 
}

/* ==========================================================================
   NOTICE BAR
   ========================================================================== */
.notice-bar {
  background: linear-gradient(90deg, var(--color-burgundy), var(--color-gold-dark), var(--color-burgundy));
  background-size: 200% 100%;
  animation: noticePan 8s linear infinite;
  color: #F2E6E1;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 10px 16px;
  line-height: 1.4;
}

@keyframes noticePan {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #F2E6E1; text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.05em;
    padding: 1.2rem 2.5rem; border-radius: var(--radius-pill); border: none;
    box-shadow: 0 8px 25px rgba(168, 107, 117, 0.3); cursor: pointer; transition: var(--transition-smooth);
    width: 100%; max-width: 400px; margin: 0 auto;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(168, 107, 117, 0.5); }

.btn-checkout {
    display: block; width: 100%; max-width: 500px; margin: 2rem auto;
    background: linear-gradient(135deg, var(--color-gold) 0%, #D8A5B0 50%, var(--color-gold) 100%);
    background-size: 200% 200%; color: #140E10; padding: 1.2rem 2rem;
    font-size: clamp(1.1rem, 4vw, 1.3rem); font-weight: 900; border-radius: var(--radius-pill);
    box-shadow: 0 6px 32px rgba(168, 107, 117, 0.3); animation: shimmerBtn 3s ease infinite; text-align: center; border: none;
}
.btn-checkout:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 40px rgba(168, 107, 117, 0.5); }
@keyframes shimmerBtn { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ==========================================================================
   GLASS CARDS
   ========================================================================== */
.glass-card {
    background: var(--color-bg-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border); border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08); transition: var(--transition-smooth); padding: 2rem;
}
.glass-card:hover { border-color: var(--color-border-glow); box-shadow: 0 12px 40px rgba(168, 107, 117, 0.15); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 4rem 0 6rem; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.6) 0%, var(--color-bg) 70%); }
.hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.hero-book { max-width: 300px; width: 100%; border-radius: var(--radius-md); box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 4px 20px rgba(168, 107, 117, 0.15); margin: 1rem 0; }
.hero-guarantee { font-size: 0.9rem; color: var(--color-beige-light); display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1rem; }

/* ==========================================================================
   PROBLEM SECTION
   ========================================================================== */
.problem { background: var(--color-bg); }
.problem-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
.problem-img { width: 100%; max-width: 450px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.problem-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.problem-item { display: flex; gap: 1rem; align-items: flex-start; }
.problem-icon { color: var(--color-burgundy); font-size: 1.2rem; }

/* ==========================================================================
   WHAT YOU LEARN (CARDS)
   ========================================================================== */
.learn { background: linear-gradient(180deg, var(--color-bg) 0%, rgba(255, 255, 255, 0.5) 100%); }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.learn-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--color-gold); }
.learn-card p { font-size: 0.95rem; color: var(--color-beige-light); }

/* ==========================================================================
   FOR WHOM
   ========================================================================== */
.for-whom-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; max-width: 700px; margin-inline: auto; }
.for-whom-item { display: flex; align-items: center; gap: 1rem; background: rgba(255,255,255,0.4); padding: 1rem 1.5rem; border-radius: var(--radius-md); border-left: 4px solid var(--color-gold); }
.for-whom-item p { font-weight: 500; }

/* ==========================================================================
   CHAPTERS
   ========================================================================== */
.chapters { padding: 5rem 0; }
.chapters-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 700px; margin: 3rem auto 0; }
.chapter-row { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.chapter-num { font-size: 1.5rem; font-weight: 900; color: rgba(168, 107, 117, 0.4); font-family: var(--font-heading); }
.chapter-info h3 { font-size: 1.1rem; color: var(--color-gold); margin-bottom: 0.2rem; }
.chapter-info p { font-size: 0.9rem; color: var(--color-beige-light); }

/* ==========================================================================
   AUTHOR
   ========================================================================== */
.author-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .author-grid { grid-template-columns: 1fr 1fr; } }
.author-img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: 0 4px 24px rgba(168, 107, 117, 0.15); }
.author-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.stat-box { background: rgba(255,255,255,0.4); padding: 1rem; border-radius: var(--radius-md); text-align: center; border: 1px solid var(--color-border); }
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--color-gold); }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-beige-light); }

/* ==========================================================================
   TESTIMONIALS CAROUSEL
   ========================================================================== */
.testimonials { padding: 4rem 0; background: var(--color-bg); }
.carousel-container { position: relative; max-width: 600px; margin: 3rem auto 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: 0 10px 40px rgba(168, 107, 117, 0.15); border: 1px solid var(--color-border); background: var(--color-bg-card); }
.carousel-track { display: flex; transition: transform 0.4s ease-in-out; }
.carousel-slide { min-width: 100%; box-sizing: border-box; display: flex; justify-content: center; align-items: center; padding: 1rem; }
.carousel-slide img { width: 100%; max-width: 450px; height: auto; border-radius: var(--radius-md); box-shadow: 0 4px 12px rgba(0,0,0,0.1); object-fit: contain; }

.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(168, 107, 117, 0.8); color: #F2E6E1; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.carousel-btn:hover { background: var(--color-gold-dark); }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 1.5rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(168, 107, 117, 0.3); cursor: pointer; transition: background 0.3s; }
.dot.active { background: var(--color-gold-dark); transform: scale(1.2); }

/* ==========================================================================
   OFFER SECTION
   ========================================================================== */
.offer { padding: 4rem 0; }
.offer-card { max-width: 600px; margin: 0 auto; text-align: center; border: 2px solid var(--color-gold); background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, var(--color-bg-card) 100%); position: relative; overflow: hidden; }
.offer-badge { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: var(--color-gold); color: #F2E6E1; padding: 0.5rem 1.5rem; font-size: 0.85rem; font-weight: 800; border-radius: 0 0 var(--radius-md) var(--radius-md); letter-spacing: 0.1em; }
.price-anchor { margin: 2rem 0; }
.price-old { font-size: 1.2rem; color: var(--color-beige-light); text-decoration: line-through; }
.price-current { font-size: 4rem; font-weight: 900; color: var(--color-cream); line-height: 1; margin: 0.5rem 0; display: flex; justify-content: center; align-items: flex-start; gap: 0.2rem; }
.price-currency { font-size: 1.5rem; margin-top: 0.5rem; color: var(--color-gold); }
.offer-includes { text-align: left; margin: 2rem auto; display: inline-block; }
.offer-includes li { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; font-size: 1rem; }
.offer-includes i { color: #25D366; }
.security-stamps { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; font-size: 0.85rem; color: var(--color-beige-light); flex-wrap: wrap; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 800px; margin: 3rem auto 0; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-question { padding: 1.5rem; font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--color-cream); }
.faq-question::-webkit-details-marker { display: none; }
.faq-answer { padding: 0 1.5rem 1.5rem; color: var(--color-beige-light); font-size: 0.95rem; line-height: 1.6; }
details[open] .faq-question { color: var(--color-gold); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { padding: 3rem 0; text-align: center; border-top: 1px solid rgba(168, 107, 117, 0.2); margin-bottom: 70px; }
.footer-text { font-size: 0.85rem; color: var(--color-beige-light); margin-bottom: 0.5rem; }

/* ==========================================================================
   STICKY BAR
   ========================================================================== */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #1A1114 0%, #251A1C 50%, #1A1114 100%);
  border-top: 2px solid var(--color-gold);
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.sticky-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sticky-bar-text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sticky-bar-urgency {
  font-size: 0.85rem;
  color: var(--color-beige-light);
  white-space: nowrap;
}

.sticky-bar-timer {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}
