/* ── Variables ─────────────────────────────────────────── */
:root {
  --rose-gold: #C9A87C;
  --rose-dark: #A8885A;
  --charcoal: #1E1A18;
  --charcoal-light: #2D2824;
  --rose-pale: #FAF4EE;
  --rose-mid: #F0E4D4;
  --white: #FFFFFF;
  --text: #2D2824;
  --text-muted: #7A6E68;
  --border: #E8DDD4;
  --radius: 1rem;
  --radius-sm: .6rem;
  --shadow: 0 4px 24px rgba(30,26,24,.08);
  --shadow-lg: 0 12px 48px rgba(30,26,24,.14);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --nav-h: 72px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── NAV ───────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .75rem;
}
.nav-logo img { height: 40px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--charcoal);
}
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--charcoal); }
.nav-cta { display: flex; gap: .75rem; align-items: center; }
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer; padding: .5rem;
}

/* ── BOTONES ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: 2rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--rose-gold);
  color: var(--white);
  border-color: var(--rose-gold);
}
.btn-primary:hover { background: var(--rose-dark); border-color: var(--rose-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(169,136,90,.35); }
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .8rem; }

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--charcoal);
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,168,124,.18) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 6rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201,168,124,.15);
  border: 1px solid rgba(201,168,124,.3);
  color: var(--rose-gold);
  padding: .35rem .9rem;
  border-radius: 2rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--rose-gold);
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--rose-gold);
  display: block;
}
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.5); }
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-mockup {
  width: 100%;
  max-width: 480px;
  background: var(--charcoal-light);
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(201,168,124,.12);
}
.hero-mockup-bar {
  background: rgba(255,255,255,.04);
  padding: .75rem 1rem;
  display: flex; gap: .4rem; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-mockup-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.hero-mockup-body { padding: 1.5rem; }
.hero-mockup-stat {
  background: rgba(201,168,124,.1);
  border: 1px solid rgba(201,168,124,.2);
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
.hero-mockup-stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--rose-gold);
}
.hero-mockup-stat-label { font-size: .72rem; color: rgba(255,255,255,.4); }
.hero-mockup-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: .75rem;
}
.hero-mockup-mini {
  background: rgba(255,255,255,.04);
  border-radius: .6rem;
  padding: .75rem 1rem;
  font-size: .72rem;
  color: rgba(255,255,255,.4);
}
.hero-mockup-mini strong { display: block; font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: .2rem; }

/* ── SECCIONES GENERALES ───────────────────────────────── */
.section { padding: 6rem 0; }
.section-alt { background: var(--rose-pale); }
.section-dark { background: var(--charcoal); color: var(--white); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-tag {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--rose-gold); display: block; margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.section-header { margin-bottom: 4rem; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }

/* ── FEATURES GRID ─────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--rose-pale);
  border-radius: .875rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.feature-title { font-weight: 600; font-size: 1.05rem; margin-bottom: .5rem; }
.feature-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

/* ── BLOG GRID ─────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  background: var(--white);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-img {
  height: 200px;
  background: var(--rose-mid);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card-cat {
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--rose-gold); margin-bottom: .5rem; display: block;
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: .5rem;
  color: var(--charcoal);
}
.blog-card-title:hover { color: var(--rose-gold); }
.blog-card-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.blog-card-meta { font-size: .75rem; color: var(--text-muted); }

/* ── PRODUCTO / PRICING ────────────────────────────────── */
.planes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 800px; margin: 0 auto; }
.plan-card {
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 2px solid var(--border);
  position: relative;
}
.plan-card.destacado {
  border-color: var(--rose-gold);
  background: var(--charcoal);
  color: var(--white);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--rose-gold); color: var(--white);
  padding: .25rem .9rem; border-radius: 2rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  white-space: nowrap;
}
.plan-nombre { font-weight: 700; font-size: 1.1rem; margin-bottom: .5rem; }
.plan-precio {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 500;
  color: var(--rose-gold); line-height: 1;
  margin-bottom: .25rem;
}
.plan-precio-desc { font-size: .8rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li {
  padding: .4rem 0;
  font-size: .875rem;
  display: flex; align-items: center; gap: .6rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.plan-card.destacado .plan-features li { border-color: rgba(255,255,255,.06); }
.plan-features li::before { content: '✓'; color: var(--rose-gold); font-weight: 700; flex-shrink: 0; }

/* ── FORMULARIOS ───────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--charcoal); }
.form-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.form-input:focus { border-color: var(--rose-gold); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.6);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--white); margin-bottom: .5rem;
}
.footer-brand-desc { font-size: .85rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-heading {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--white); margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { font-size: .875rem; transition: color .2s; }
.footer-links a:hover { color: var(--rose-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem;
}
.footer-bottom a:hover { color: var(--rose-gold); }

/* ── ARTICULO DETALLE ──────────────────────────────────── */
.articulo-hero {
  background: var(--charcoal);
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  color: var(--white);
}
.articulo-body { max-width: 740px; margin: 0 auto; padding: 4rem 2rem; }
.articulo-body h2, .articulo-body h3 { font-family: var(--font-display); margin: 2rem 0 .75rem; }
.articulo-body p { margin-bottom: 1.25rem; line-height: 1.8; color: var(--text); }
.articulo-body ul, .articulo-body ol { margin: 1rem 0 1.25rem 1.5rem; }
.articulo-body li { margin-bottom: .4rem; line-height: 1.7; }

/* ── ALERTS ────────────────────────────────────────────── */
.alert {
  padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  margin-bottom: 1.5rem; font-size: .9rem;
}
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }

/* ── PAGE HERO (interno) ───────────────────────────────── */
.page-hero {
  background: var(--charcoal);
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  text-align: center;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--white); font-weight: 400;
}
.page-hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.55); margin-top: .75rem; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .planes-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}
