/* ══════════════════════════════════════════
   Mi Editor Literario — landing.css
   Estilos de la página de venta
   ══════════════════════════════════════════ */

:root {
  --burg:      #6b1d2e;
  --burg2:     #8b2a3f;
  --burg-dim:  rgba(107,29,46,0.08);
  --gold:      #9c6b35;
  --gold2:     #c8a96e;
  --gold-dim:  rgba(156,107,53,0.12);
  --bg:        #faf8f5;
  --bg2:       #ffffff;
  --bg3:       #f4f0eb;
  --border:    #e2dbd2;
  --text:      #1c1814;
  --text2:     #4a3f35;
  --text3:     #8a7d72;
  --r:         16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; background: var(--bg); color: var(--text); }

/* ── NAV ── */
nav {
  background: var(--burg);
  padding: 0 2.5rem;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(107,29,46,0.3);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.nav-logo em { font-style: italic; color: #e8c9a0; }

.nav-links { display: flex; align-items: center; gap: 2rem; }

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.18s;
}

.nav-links a:hover { color: #fff; }

.nav-cta {
  background: var(--gold) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 8px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--gold2) !important; }

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--burg) 0%, #3d0f1a 100%);
  padding: 7rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '✦';
  position: absolute;
  font-size: 30rem;
  color: rgba(255,255,255,0.02);
  top: -8rem;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  background: rgba(200,169,110,0.2);
  border: 1px solid rgba(200,169,110,0.4);
  color: #e8c9a0;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero h1 em { font-style: italic; color: #e8c9a0; }

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--gold);
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(156,107,53,0.35);
  font-family: 'Jost', sans-serif;
  display: inline-block;
}

.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.85);
  padding: 0.9rem 2.2rem;
  border-radius: 10px;
  font-weight: 400;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: all 0.2s;
  font-family: 'Jost', sans-serif;
  display: inline-block;
}

.btn-secondary:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

/* ── SECTIONS ── */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title em { font-style: italic; color: var(--burg); }

.section-sub {
  font-size: 0.95rem;
  color: var(--text3);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ── STEPS ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem 1.75rem;
}

.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--burg);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.step p { font-size: 0.88rem; color: var(--text3); line-height: 1.7; }

/* ── FEATURES ── */
#funcionalidades { background: var(--bg3); }

.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.feature {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--burg-dim);
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.feature h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.feature p { font-size: 0.84rem; color: var(--text3); line-height: 1.6; }

/* ── TESTIMONIALS ── */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.testimonial {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
}

.t-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

.t-author { font-size: 0.82rem; font-weight: 600; color: var(--burg); }
.t-role { font-size: 0.78rem; color: var(--text3); margin-top: 2px; }

/* ── PRICING — SINGLE PLAN ── */
#planes { background: linear-gradient(180deg, var(--bg) 0%, #fff 100%); }

.plan-single {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg2);
  border: 2px solid var(--burg);
  border-radius: var(--r);
  padding: 3rem 2.5rem;
  box-shadow: 0 12px 48px rgba(107,29,46,0.15);
  position: relative;
  text-align: center;
}

.plan-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--burg);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 20px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.plan-desc { font-size: 0.9rem; color: var(--text3); margin-bottom: 2rem; line-height: 1.6; }

.launch-offer {
  background: linear-gradient(135deg, rgba(107,29,46,0.06) 0%, rgba(156,107,53,0.08) 100%);
  border: 1px solid rgba(156,107,53,0.3);
  border-radius: var(--r);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

.launch-offer p { font-size: 0.88rem; color: var(--text2); line-height: 1.6; }
.launch-offer strong { color: var(--burg); }

.plan-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 600;
  color: var(--burg);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.plan-currency { font-size: 1.5rem; vertical-align: super; }
.plan-period { font-size: 0.85rem; color: var(--text3); margin-bottom: 2.5rem; }

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.plan-features li {
  font-size: 0.9rem;
  color: var(--text2);
  padding: 0.55rem 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.plan-features li:last-child { border-bottom: none; }

.plan-features li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.65rem;
  flex-shrink: 0;
}

.plan-btn {
  width: 100%;
  padding: 1rem;
  border-radius: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--burg);
  color: #fff;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.plan-btn:hover { background: var(--burg2); box-shadow: 0 4px 20px rgba(107,29,46,0.3); transform: translateY(-1px); }
.plan-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.plan-btn.loading {
  position: relative;
  color: transparent;
}

.plan-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.pricing-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text3);
  margin-top: 1.5rem;
}

.pricing-note a { color: var(--burg); text-decoration: none; }

/* ── FAQ ── */
#faq { background: var(--bg3); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.25rem 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q:hover { color: var(--burg); }
.faq-icon { font-size: 1.2rem; color: var(--gold); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  font-size: 0.88rem;
  color: var(--text3);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
}

.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.25rem; }

/* ── CTA BOTTOM ── */
.cta-bottom {
  background: linear-gradient(135deg, var(--burg) 0%, #3d0f1a 100%);
  padding: 5rem 2rem;
  text-align: center;
}

.cta-bottom h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-bottom h2 em { font-style: italic; color: #e8c9a0; }
.cta-bottom p { color: rgba(255,255,255,0.65); font-size: 0.95rem; margin-bottom: 2.5rem; }

/* ── FOOTER ── */
footer { background: var(--text); padding: 2.5rem; text-align: center; }

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.footer-logo em { font-style: italic; color: #e8c9a0; }

.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.18s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.25); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-size: 0.88rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transform: translateY(120%);
  transition: transform 0.3s ease;
  z-index: 999;
  max-width: 320px;
}

.toast.show { transform: translateY(0); }
.toast.error { background: #8b2a2a; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .plan-single { padding: 2rem 1.5rem; }
}
