/* =====================================================
   CALCULADORA NOTARIAL — Landing Page
   Dark Gold Theme · Marketing · Desktop + Mobile
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* ─── Variables ─────────────────────────────────────── */
:root {
  --bg:          #090d18;
  --bg-card:     #111827;
  --bg-input:    #1a2235;
  --gold:        #c9a227;
  --gold-light:  #f0c040;
  --gold-dark:   #96771a;
  --gold-glow:   rgba(201,162,39,0.15);
  --gold-border: rgba(201,162,39,0.28);
  --green:       #10b981;
  --red:         #ef4444;
  --blue:        #3b82f6;
  --text:        #f1f5f9;
  --text-2:      #94a3b8;
  --text-muted:  #64748b;
  --border:      rgba(255,255,255,0.07);
  --radius:      16px;
  --radius-sm:   10px;
  --transition:  all 0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Container ─────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Header ─────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,13,24,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-border);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo { font-size: 24px; }

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.brand-sub {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }

/* ─── Botones ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-outline:hover { border-color: var(--gold-border); color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}

.btn-ghost:hover { color: var(--text); }

.btn-play {
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 32px;
  border: 1px solid rgba(255,255,255,0.15);
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: var(--transition);
}

.btn-play:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.5);
}

.contacto-soporte {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

.contacto-soporte a {
  color: var(--gold);
  opacity: 0.8;
  text-decoration: none;
}

.contacto-soporte a:hover { opacity: 1; }

.btn-cta-sm {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
}

.btn-cta-sm:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-full { width: 100%; }

.btn-lg {
  font-size: 16px;
  padding: 15px 28px;
}

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(201,162,39,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(201,162,39,0.1);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero-titulo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

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

.hero-desc {
  font-size: 17px;
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── Sections comunes ─────────────────────────────────── */
.section-badge {
  display: inline-block;
  background: rgba(201,162,39,0.08);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.section-titulo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 48px;
}

/* ─── PLANES ─────────────────────────────────────────────── */
.planes-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(201,162,39,0.03) 100%);
  text-align: center;
}

.planes-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plan-pro {
  border-color: var(--gold-border);
  box-shadow: 0 0 40px rgba(201,162,39,0.1);
}

.plan-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 99px;
  white-space: nowrap;
}

.plan-nombre {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

/* Precio simple (Free) */
.plan-precio {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.precio-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.precio-periodo {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-periodo {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -8px;
}

/* ── Precios duales (Mensual ó Anual) ── */
.plan-launch-badge {
  display: inline-block;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.plan-precio-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.plan-precio-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.plan-precio-sep {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.plan-precio-regular {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.plan-precio-regular strong {
  color: var(--text-2);
}

.plan-ahorro {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

/* Lista de features */
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.4;
}

.feature.ok { color: var(--text-2); }
.feature.no { color: var(--text-muted); opacity: 0.6; }

/* Actuaciones Free */
.plan-actuaciones-free {
  background: rgba(201,162,39,0.04);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.free-acts-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 8px;
}

.free-acts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.free-acts-list span {
  font-size: 11px;
  background: rgba(201,162,39,0.08);
  border: 1px solid var(--gold-border);
  color: var(--text-2);
  padding: 3px 9px;
  border-radius: 99px;
}

.plan-nota {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ─── CÓMO FUNCIONA ─────────────────────────────────────── */
.como-section {
  padding: 80px 0;
  text-align: center;
}

.pasos-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.paso {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  width: 170px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paso-num {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000;
  font-size: 18px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.paso-titulo {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.paso-desc {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.paso-arrow {
  font-size: 20px;
  color: var(--text-muted);
  padding-top: 36px;
  flex-shrink: 0;
}

/* ─── FAQ ───────────────────────────────────────────────── */
.faq-section {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(201,162,39,0.03) 0%, transparent 100%);
  text-align: center;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--gold-border);
}

.faq-item summary {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ─── CONTACTO ──────────────────────────────────────────── */
.contacto-section {
  padding: 80px 0;
  text-align: center;
}

.contacto-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 24px;
  padding: 60px 40px;
  overflow: hidden;
}

.contacto-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(201,162,39,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.contacto-content { position: relative; z-index: 1; }

.contacto-titulo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.contacto-desc {
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 32px;
}

.contacto-actions { margin-bottom: 20px; }

.contacto-precio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.contacto-precio em {
  font-style: normal;
  color: var(--text-muted);
  opacity: 0.75;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 10px;
}

.footer-legal {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 8px;
  line-height: 1.6;
}

.footer-links {
  margin: 10px 0;
}

.footer-links a {
  font-size: 13px;
  color: var(--gold);
  opacity: 0.75;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 1; }

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 680px) {
  .planes-grid {
    grid-template-columns: 1fr;
  }

  .pasos-grid {
    flex-direction: column;
    align-items: center;
  }

  .paso { width: 100%; max-width: 320px; }

  .paso-arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }

  .contacto-card { padding: 40px 20px; }

  .header-nav .nav-link { display: none; }
}
