/* ================================================================
   PRONTAS ESTUDIO — Estilos Principales
   Paleta: Dorado (#C6A43F) + Nude + Blanco
   ================================================================ */

:root {
  --gold: #C6A43F;
  --gold-light: #E6D3A3;
  --gold-dark: #A0812E;
  --rose: #E8D0D0;
  --nude: #F5F0EB;
  --charcoal: #2C2C2C;
  --dark: #1A1A1A;
  --white: #FFFFFF;
  --grey: #8A8A8A;
  --border: rgba(0,0,0,0.08);
  --red-glow: rgba(198,164,63,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%; max-width: 1280px;
  margin: 0 auto; padding: 0 24px;
}

.gold { color: var(--gold); }

/* Ripple effect */
.ripple-btn { position: relative; overflow: hidden; }
.ripple-circle {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.3);
  animation: rippleAnim .65s ease-out forwards;
}
@keyframes rippleAnim { from { transform: scale(0); opacity: 1; } to { transform: scale(1); opacity: 0; } }

/* ===== NAV ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

/* ===== HERO ===== */
#hero {
  min-height: 90vh;
  display: flex; align-items: center;
  padding: 120px 20px 80px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FFF9F5 0%, #FFF0E6 100%);
}

/* ===== PROBLEMAS ===== */
#problemas { padding: 80px 0; background: white; }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.pain-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.pain-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.pain-card.active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-light); }

/* ===== SOLUTION PANEL ===== */
.solution-panel {
  background: #F9F6F2;
  overflow: hidden;
  max-height: 0;
  transition: max-height .5s cubic-bezier(.22,1,.36,1), opacity .4s;
  opacity: 0;
}
.solution-panel:not(.hidden) { max-height: 800px; opacity: 1; padding: 20px 0; }
.solution-panel.hidden { max-height: 0; opacity: 0; }
.sp-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.sp-emoji { font-size: 44px; }
.sp-header h3 { font-family: 'Cormorant Garamond', serif; font-size: 28px; margin-bottom: 4px; }
.sp-header p { color: var(--grey); font-size: 14px; }
.sp-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .sp-grid { grid-template-columns: 1fr 280px; } }
.sp-grid ul { list-style: none; padding: 0; }
.sp-grid li { padding: 6px 0; font-size: 14px; }
.sp-price-box {
  background: white; border-radius: 16px; padding: 20px;
  text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.sp-price-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 700; color: var(--gold);
  margin-bottom: 8px;
}
.btn-sp-book {
  width: 100%; background: var(--gold); color: white;
  padding: 12px; border-radius: 40px; font-weight: 600;
  border: none; cursor: pointer; margin-top: 16px;
  transition: background .2s;
}
.btn-sp-book:hover { background: var(--gold-dark); }

/* ===== FAQ ===== */
.faq-item {
  background: var(--nude);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.faq-icon { font-size: 24px; color: var(--gold); transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  font-size: 14px;
  color: var(--grey);
  line-height: 1.7;
}
.faq-item.open .faq-a { padding: 0 24px 20px; max-height: 400px; }

/* ===== STICKY CTA ===== */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 12px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.4s;
}
@media (max-width: 767px) { .sticky-cta { display: block; } }
.sticky-cta.visible { transform: translateY(0); }

/* ===== WHATSAPP FLOAT ===== */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 700;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s;
}
.wa-fab:hover { transform: scale(1.1); }

/* ===== REVEAL ===== */
.reveal-up { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.2,0.9,0.4,1.1); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--nude); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }

/* ================================================================
   🎯 RESPONSIVE MÓVIL (TABLET Y MÓVIL)
   ================================================================ */
@media (max-width: 900px) {
  /* HERO: las dos columnas pasan a apiladas */
  #hero .container {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    text-align: center;
  }
  .hero-visual,
  #hero > div:last-child {
    min-height: 380px !important;
    max-width: 320px;
    margin: 0 auto;
  }
  /* Tarjetas flotantes del hero */
  #hero .hero-visual > div,
  #hero > .container > div:last-child > div {
    position: relative !important;
    transform: none !important;
    margin-bottom: 12px;
    width: 100% !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    right: auto !important;
  }
  /* Trust badges en línea */
  #hero .hero-trust,
  #hero > .container > div:first-child > div:last-child {
    justify-content: center;
  }
  /* Botones del hero */
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Nav: ocultar el contador de cupos para no apretar */
  #navbar .nav-inner > div:last-child > span:first-child,
  #navbar span[style*="cupos"] {
    display: none;
  }
  /* Padding general más compacto */
  .container { padding: 0 16px; }
  /* Hero: padding menor arriba */
  #hero { padding: 100px 16px 60px !important; }
  /* H1 más pequeño */
  h1, #hero h1 { font-size: clamp(32px, 8vw, 48px) !important; }
  /* Secciones con menos padding */
  #problemas, #precios, #testimonios, #cta-final,
  section { padding: 60px 0 !important; }
  /* Pain cards en 1 columna */
  .pain-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  /* Precios en 1 columna */
  #precios > .container > div:last-child {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* Card destacada sin scale (rompe en móvil) */
  #precios .price-card--featured,
  #precios > .container > div > div:nth-child(2) {
    transform: none !important;
  }
  /* Urgencia: stack vertical */
  #urgencia .urgency-box,
  #urgencia > .container > div {
    flex-direction: column !important;
    text-align: center;
    gap: 20px !important;
  }
  /* CTA final más compacto */
  #cta-final .final-box,
  #cta-final > .container > div {
    padding: 40px 24px !important;
  }
  /* Botones a ancho completo */
  .btn-primary, .btn-hero {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  /* Footer en columnas */
  footer > .container,
  footer > div:first-child {
    flex-direction: column !important;
    gap: 28px !important;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Aún más ajustado en móvil pequeño */
  h1, #hero h1 { font-size: 32px !important; }
  .container { padding: 0 14px; }
  #hero { padding: 90px 14px 50px !important; }
  /* Trust badges en columna en pantallas muy pequeñas */
  #hero .hero-trust,
  #hero > .container > div:first-child > div:last-child {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px !important;
    justify-content: center;
  }
}
