/* =========================================
   UI/UX PRO MAX & FRONTEND DESIGN VARIABLES
   ========================================= */
:root {
  /* Colors */
  --primary: #00B4D8; /* Playful soft blue */
  --primary-hover: #0096C7;
  --secondary: #FFD166; /* Vibrant Yellow/Orange */
  --secondary-hover: #FFC300;
  --accent: #EF476F; /* Fun red/pink */
  
  --bg-color: #F8F9FA; /* Off-white for eye comfort */
  --text-dark: #2B2D42;
  --text-light: #5C677D;
  --white: #FFFFFF;
  
  /* Typography */
  --font-display: 'Fredoka', cursive;
  --font-body: 'Quicksand', sans-serif;
  
  /* Spacing */
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  
  /* UI / Visuals */
  --radius: 24px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-pop: 0 20px 40px rgba(0, 180, 216, 0.2);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   RESET & BASICS
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; 
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

.text-center { text-align: center; }
.color-white { color: var(--white); }
.highlight-text { color: var(--primary); }

.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

/* =========================================
   BUTTONS & UI COMPONENTS
   ========================================= */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  padding: 18px 36px;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
  box-shadow: 0 8px 0px rgba(0,0,0,0.1); /* Tactile 3D feel */
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 0px #0077b6;
}

.btn-primary:active {
  transform: translateY(6px);
  box-shadow: 0 0px 0px #0077b6;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-dark);
  box-shadow: 0 6px 0px #e0a800;
}

.btn-secondary:active {
  transform: translateY(6px);
  box-shadow: 0 0px 0px #e0a800;
}

.btn-large {
  font-size: 1.3rem;
  padding: 24px 48px;
}

.btn-huge {
  font-size: 1.5rem;
  padding: 24px 64px;
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 4px solid white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: var(--space-lg);
}

.pop-on-hover:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-pop);
}

.wiggle-on-hover:hover {
  animation: wiggle 1s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* =========================================
   1. HERO SECTION
   ========================================= */
.hero {
  background: linear-gradient(135deg, #E0FBFC 0%, #F4F8FB 100%);
  position: relative;
  padding-top: 120px;
  padding-bottom: 0px;
}

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

.badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 10px rgba(239, 71, 111, 0.3);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
}

.hero .subheadline {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
}

.hero-cta { display: flex; flex-direction: column; gap: var(--space-sm); align-items: flex-start; }
.microcopy { font-size: 0.85rem; color: var(--text-light); margin-left: var(--space-md); }

.hero-image {
  position: relative;
}

.floating-bubble {
  position: absolute;
  background: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-display);
  box-shadow: var(--shadow-soft);
  animation: float 4s ease-in-out infinite;
}

.bubble-1 { top: 10%; left: -20px; animation-delay: 0s; }
.bubble-2 { bottom: 20%; right: -20px; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-wave { margin-top: -20px; width: 100%; display: block; }
.hero-wave svg { display: block; width: 100%; height: auto; }

/* =========================================
   2. AUDIENCE SECTION
   ========================================= */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.audience .card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

/* =========================================
   3. FRUSTRATION SECTION
   ========================================= */
.frustration { background-color: #EEF2F6; }
.frustration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.pain-points { list-style: none; margin: var(--space-md) 0; }
.pain-points li {
  display: flex;
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
  font-weight: 500;
}
.pain-points .icon { margin-right: 10px; }

.frustration-conclusion {
  font-style: italic;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: var(--space-md);
  border-left: 4px solid var(--accent);
  padding-left: var(--space-sm);
}

/* =========================================
   3.5 & 4. SOLUTION & COLLECTION SECTION
   ========================================= */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.solution-perks {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.perk {
  background: white;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.perk-icon { margin-right: 15px; font-size: 1.5rem; }

.magic-pill-graphic {
  position: relative;
  width: 300px;
  height: 300px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: var(--shadow-pop);
  z-index: 2;
}

.huge-emoji {
  font-size: 8rem;
  z-index: 2;
}

.glow-ring {
  position: absolute;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,0.3) 0%, rgba(255,209,102,0.1) 70%, transparent 100%);
  z-index: 1;
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 1; }
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.book-card {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.book-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.book-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

/* =========================================
   5. BENEFITS SECTION
   ========================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.benefits-visual {
  max-width: 600px;
  margin: 0 auto;
}

.benefit-item {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.benefit-item:hover { transform: translateY(-5px); }
.benefit-icon { font-size: 2.5rem; margin-bottom: var(--space-sm); }

/* =========================================
   6. FEATURES SECTION
   ========================================= */
.features .section-title {
  margin-bottom: var(--space-xl);
}

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

.feature-card {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.feature-card .icon { font-size: 2rem; }

.float-anim { animation: float 6s ease-in-out infinite; }

/* =========================================
   7. OFFER SECTION
   ========================================= */
.bg-primary { background-color: var(--primary); }

.offer .section-title {
  margin-bottom: 20px;
}

.offer-subtitle {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 80px auto;
  line-height: 1.6;
}

.pricing-card {
  background: white;
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  border-radius: 40px;
  padding: 70px 40px 50px;
  box-shadow: 0 30px 60px rgba(0, 50, 80, 0.4);
  border: 8px solid var(--secondary);
  transition: transform 0.3s ease;
}

.ribbon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-family: var(--font-display);
  padding: 10px 30px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(239, 71, 111, 0.4);
  white-space: nowrap;
  letter-spacing: 1px;
}

.price-container { 
  margin: 30px 0; 
  background: #FFF9E6;
  padding: 20px;
  border-radius: 20px;
  display: inline-block;
}
.old-price { text-decoration: line-through; color: var(--text-light); font-size: 1.5rem; margin-right: 15px;}
.new-price { font-size: 4.5rem; font-family: var(--font-display); color: var(--accent); line-height: 1; }

.offer-includes { 
  list-style: none; 
  text-align: left; 
  margin: 30px auto; 
  max-width: 400px; 
}
.offer-includes li { 
  margin-bottom: 15px; 
  font-weight: 600; 
  font-size: 1.1rem;
  padding-left: 35px;
  position: relative;
}
.offer-includes li::before {
  content: '🌟';
  position: absolute;
  left: 0;
  top: 0;
}
.secure-checkout { font-size: 0.9rem; color: var(--text-light); margin-top: 25px; font-weight: 600; }

/* =========================================
   8. TESTIMONIALS SECTION
   ========================================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.testimonial-card {
  text-align: left;
}

.quote { font-size: 1.1rem; font-style: italic; margin: var(--space-sm) 0 var(--space-md); }
.author { display: flex; align-items: center; gap: 15px; }
.author-avatar { width: 50px; height: 50px; background: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.2rem; }
.author-info { display: flex; flex-direction: column; }
.verified { color: #4CAF50; font-size: 0.8rem; font-weight: bold; }

/* =========================================
   9. GUARANTEE SECTION
   ========================================= */
.border-gold { border-color: var(--secondary); }
.guarantee-box { max-width: 700px; margin: 0 auto; }
.guarantee-icon { font-size: 4rem; margin-bottom: var(--space-md); }
.badges { margin-top: var(--space-md); display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;}
.badge-mini { background: #EEF2F6; padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }

/* =========================================
   10. PROCESS SECTION
   ========================================= */
.process-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: var(--space-xl);
}

.step { flex: 1; position: relative; }
.step-number { width: 60px; height: 60px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-family: var(--font-display); margin: 0 auto var(--space-md); z-index: 2; position: relative; }
.step-connector { flex: 1; height: 4px; background: #E0E0E0; margin-top: 30px; position: relative; z-index: 1; border-radius: 2px;}

/* =========================================
   11. FAQ SECTION (Accordion)
   ========================================= */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { background: white; border-radius: var(--radius-sm); margin-bottom: 10px; box-shadow: var(--shadow-soft); overflow: hidden; }
.accordion-header { width: 100%; border: none; background: transparent; padding: 20px; text-align: left; font-family: var(--font-display); font-size: 1.1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.accordion-content { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.accordion-header.active { color: var(--primary); }
.accordion-header .icon { transition: transform 0.3s ease; }
.accordion-header.active .icon { transform: rotate(45deg); }

/* =========================================
   12. FINAL CTA & FOOTER
   ========================================= */
.final-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #FF8A00 100%);
}

.footer { padding: 40px 0; background: #2B2D42; color: #8D99AE; }
.footer small { font-size: 0.75rem; }

/* =========================================
   13. NEWSLETTER SECTION
   ========================================= */
.newsletter {
  background: linear-gradient(0deg, #F8F9FA 0%, rgba(248,249,250,0) 100%);
}

.newsletter-card {
  max-width: 750px;
  margin: 0 auto;
  border: 4px solid var(--primary);
  background: white;
  padding: 60px 50px;
  position: relative;
  z-index: 2;
}

.newsletter-form {
  display: flex;
  gap: 15px;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  padding: 15px 30px;
  border-radius: 50px;
  border: 2px solid #E0E0E0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  outline: none;
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.newsletter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.2);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 900px) {
  .hero-grid, .frustration-grid, .features-split, .solution-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; align-items: center; gap: 30px; }
  .step-connector { display: none; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .collection-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .audience-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .benefits-grid, .collection-grid { grid-template-columns: 1fr; }
  .hero-cta { width: 100%; }
  .btn { width: 100%; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-card { padding: 40px 20px; }
}

/* =========================================
   ANIMATIONS STATE
   ========================================= */
[data-animate] {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: transform, opacity;
}

[data-animate="fade-up"] { transform: translateY(40px); }
[data-animate="slide-left"] { transform: translateX(40px); }
[data-animate="slide-right"] { transform: translateX(-40px); }
[data-animate="zoom-in"] { transform: scale(0.9); }

.is-visible {
  opacity: 1 !important;
  transform: translate(0) scale(1) !important;
}

/* =========================================
   FLOATING TOYS BACKGROUND
   ========================================= */
.floating-toy {
    position: absolute;
    font-size: 4rem;
    z-index: 0;
    opacity: 0.25; /* Suave para el fondo */
    pointer-events: none;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.1));
}

.toy-1 { animation: float-toy 7s ease-in-out infinite; }
.toy-2 { animation: float-toy 9s ease-in-out infinite reverse; }
.toy-3 { animation: float-toy 12s linear infinite; }

@keyframes float-toy {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-25px) rotate(15deg); }
    66% { transform: translateY(15px) rotate(-15deg); }
}
