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

:root {
  --verde: #0F6E56;
  --verde-claro: #E1F5EE;
  --verde-medio: #1D9E75;
  --dorado: #BA7517;
  --dorado-claro: #FAEEDA;
  --dorado-medio: #EF9F27;
  --gris-claro: #F1EFE8;
  --texto: #2C2C2A;
  --texto-suave: #5F5E5A;
  --blanco: #ffffff;
  --acento: #3B6D11;
  --header-h: 68px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
  overflow-x: hidden;
}

a:focus-visible, summary:focus-visible { outline: 3px solid var(--dorado-medio); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--verde); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* ── ENCABEZADO FIJO ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8e6de;
}
.header-inner {
  max-width: 1100px; margin: 0 auto; min-height: var(--header-h);
  padding: .5rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.brand-name { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.1rem; color: var(--verde); line-height: 1.15; }
.brand-name small { display: block; font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-suave); }
.main-nav { display: flex; gap: 1.5rem; }
.main-nav a { color: var(--texto); text-decoration: none; font-size: .93rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--verde); color: var(--verde); }

/* ── BOTONES ── */
.btn {
  display: inline-block; background: var(--verde); color: #fff;
  padding: .95rem 2rem; border-radius: 100px; border: 1.5px solid var(--verde);
  font-size: 1rem; font-weight: 500; text-decoration: none; text-align: center;
  transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--verde-medio); border-color: var(--verde-medio); transform: translateY(-2px); }
.btn-small { padding: .55rem 1.3rem; font-size: .9rem; white-space: nowrap; }
.btn-outline { background: transparent; color: var(--texto); border-color: rgba(44,44,42,.25); }
.btn-outline:hover { background: var(--verde-claro); border-color: var(--verde); }
.btn-block { display: block; width: 100%; border-radius: 14px; }
.btn-claro { background: #fff; color: var(--verde); border-color: #fff; }
.btn-claro:hover { background: var(--verde-claro); border-color: var(--verde-claro); }

/* ── GENERALES ── */
section { padding: 4.5rem 1.5rem; }
.container { max-width: 980px; margin: 0 auto; }
.container-angosto { max-width: 760px; }
.centro { text-align: center; }
.centro .section-desc { margin-left: auto; margin-right: auto; }
.section-tag {
  display: inline-block; background: var(--verde-claro); color: var(--verde);
  font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 100px; margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.2;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 1rem;
}
.section-title em { font-style: italic; font-weight: 400; color: var(--verde); }
.section-desc { font-size: 1.05rem; color: var(--texto-suave); max-width: 620px; line-height: 1.75; }
.section-cta { margin-top: 2rem; text-align: center; }

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, #f8f6ef 0%, #edf7f2 60%, #e1f5ee 100%);
  text-align: center; padding: 5rem 1.5rem 4.5rem;
}
.hero h1 {
  font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.12;
  font-size: clamp(1.9rem, 5.2vw, 3.2rem); max-width: 780px; margin: 0 auto 1.25rem;
}
.hero-subtitle { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--verde); margin-bottom: .75rem; }
.hero-text { max-width: 640px; margin: 0 auto 2rem; font-size: 1.08rem; color: var(--texto-suave); line-height: 1.75; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-top: 1.75rem; font-size: .9rem; color: var(--texto-suave); }
.hero-facts li::before { content: '✓'; color: var(--verde-medio); font-weight: 700; margin-right: .4rem; }

/* ── PARA QUIÉN ── */
.para-quien { background: var(--blanco); }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.25rem; }
.card { background: #fff; border-radius: 18px; padding: 1.6rem; border: 1px solid rgba(0,0,0,.08); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.card-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-icon.verde { background: var(--verde-claro); } .card-icon.verde svg { stroke: var(--verde); }
.card-icon.dorado { background: var(--dorado-claro); } .card-icon.dorado svg { stroke: var(--dorado); }
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.08rem; font-weight: 700; margin-bottom: .5rem; }
.card p { font-size: .92rem; color: var(--texto-suave); line-height: 1.65; }

/* ── MÓDULOS ── */
.modulos { background: var(--gris-claro); }
.modulos-layout { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.25rem; }
.modulo-item { display: flex; gap: 1rem; padding: 1.5rem; border-radius: 16px; background: #fff; border: 1px solid rgba(0,0,0,.06); }
.modulo-num { width: 38px; height: 38px; border-radius: 50%; background: var(--verde); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 500; flex-shrink: 0; }
.modulo-content h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; line-height: 1.3; }
.modulo-content p { font-size: .93rem; color: var(--texto-suave); line-height: 1.65; }
.modulo-temas { margin: .7rem 0 0 1.1rem; font-size: .9rem; color: var(--texto-suave); }
.modulo-temas li { margin-bottom: .25rem; }

/* ── METODOLOGÍA ── */
.metodologia { background: var(--blanco); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.25rem; }
.step { background: var(--gris-claro); border-radius: 18px; padding: 1.6rem; }
.step-num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: rgba(15,110,86,.3); line-height: 1; margin-bottom: .6rem; }
.step h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.step p { font-size: .92rem; color: var(--texto-suave); line-height: 1.65; }

/* ── QUIÉN SOY ── */
.quien-soy { background: linear-gradient(140deg, var(--verde) 0%, var(--acento) 100%); color: #fff; }
.quien-layout { display: flex; gap: 3rem; align-items: center; }
.quien-foto { width: 260px; height: 260px; object-fit: cover; border-radius: 50%; border: 5px solid rgba(255,255,255,.3); flex-shrink: 0; }
.quien-soy .section-tag { background: rgba(255,255,255,.18); color: #fff; }
.quien-soy .section-title { color: #fff; }
.quien-texto { font-size: 1.05rem; line-height: 1.75; max-width: 680px; opacity: .95; }
.quien-lista { list-style: none; margin-top: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 2rem; max-width: 760px; }
.quien-lista li { position: relative; padding-left: 1.6rem; font-size: .95rem; }
.quien-lista li::before { content: '✓'; position: absolute; left: 0; color: var(--dorado-medio); font-weight: 700; }

/* ── PRECIO ── */
.precio-section { background: var(--gris-claro); }
.precio-card { max-width: 420px; margin: 2.25rem auto 0; border: 1px solid rgba(15,110,86,.18); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 32px rgba(15,110,86,.12); background: #fff; }
.precio-header { background: linear-gradient(140deg, var(--verde) 0%, var(--acento) 100%); color: #fff; padding: 1.75rem 1.25rem 1.4rem; }
.precio-nombre { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.precio-monto { font-size: 3.2rem; font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.precio-monto sup { font-size: 1.3rem; vertical-align: top; margin-top: .45rem; display: inline-block; }
.precio-moneda { font-size: .95rem; font-weight: 500; margin-left: .35rem; opacity: .9; letter-spacing: .05em; }
.precio-nota { font-size: .85rem; opacity: .9; margin-top: .6rem; }
.precio-body { padding: 1.6rem 1.5rem 1.5rem; }
.precio-lista { list-style: none; margin-bottom: 1.4rem; text-align: left; }
.precio-lista li { display: flex; align-items: flex-start; gap: .65rem; padding: .6rem 0; font-size: .93rem; border-bottom: 1px solid rgba(0,0,0,.06); }
.precio-lista li:last-child { border-bottom: none; }
.check-verde { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--verde-claro); color: var(--verde); font-size: .7rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.precio-pie { margin-top: .9rem; font-size: .82rem; color: var(--texto-suave); }

/* ── PREGUNTAS FRECUENTES ── */
.faq { background: var(--blanco); }
.faq details { border-bottom: 1px solid #e3e0d6; }
.faq details:first-of-type { margin-top: 1.5rem; border-top: 1px solid #e3e0d6; }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.25rem 1.15rem 0; font-weight: 500; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--verde); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 2rem 1.25rem 0; color: var(--texto-suave); line-height: 1.75; }

/* ── CTA FINAL ── */
.cta-final { background: linear-gradient(135deg, #2C2C2A 0%, #444441 100%); padding: 5rem 1.5rem; }
.cta-final h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 1rem; }
.cta-final h2 em { color: var(--dorado-medio); font-style: italic; font-weight: 400; }
.cta-final p { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 520px; margin: 0 auto 2rem; line-height: 1.7; }

/* ── FOOTER ── */
footer { background: var(--texto); color: rgba(255,255,255,.75); text-align: center; padding: 2.25rem 1.5rem; font-size: .85rem; line-height: 1.7; }
footer p { max-width: 760px; margin: 0 auto .6rem; }
footer a { color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .cards-grid, .steps { grid-template-columns: 1fr 1fr; }
  .quien-layout { flex-direction: column; text-align: left; gap: 2rem; }
}
@media (max-width: 600px) {
  section { padding: 3.5rem 1.25rem; }
  .hero { padding: 3rem 1.25rem; }
  .brand-name small { display: none; }
  .brand img { height: 40px; }
  .cards-grid, .steps, .modulos-layout, .quien-lista { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .quien-foto { width: 180px; height: 180px; }
}

/* ── ENLACES EN TEXTO Y PÁGINAS LEGALES ── */
.faq details p a { color: var(--verde); }
.footer-links { line-height: 2.1; }
.legal { padding: 3.5rem 1.5rem 4.5rem; }
.legal h1 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; margin-bottom: .5rem; }
.legal .legal-fecha { color: var(--texto-suave); font-size: .9rem; margin-bottom: 2rem; }
.legal h2 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal p, .legal li { color: var(--texto); line-height: 1.75; margin-bottom: .75rem; }
.legal ul { margin: 0 0 .75rem 1.25rem; }
.legal a { color: var(--verde); }
.legal, footer, .faq details p { overflow-wrap: anywhere; }
@media (max-width: 1020px) { .main-nav { display: none; } }
.brand { min-width: 0; }
@media (max-width: 420px) {
  .header-inner { padding: .5rem .9rem; gap: .5rem; }
  .brand-name { font-size: .95rem; }
  .btn-small { padding: .5rem .85rem; font-size: .82rem; }
}

/* ── v4: BLOG ── */
.hero h1, .section-title, .legal h1, .post-card h2 { text-wrap: balance; }
@media (max-width: 1100px) { .main-nav { display: none; } }
.blog-intro { color: var(--texto-suave); font-size: 1.05rem; margin-bottom: 2rem; }
.post-list { list-style: none; margin: 0 !important; display: grid; gap: 1.25rem; }
.post-card { border: 1px solid rgba(0,0,0,.08); border-radius: 18px; padding: 1.6rem; transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.08); transform: translateY(-3px); }
.post-card h2 { margin: 0 0 .5rem; font-size: 1.35rem; line-height: 1.3; }
.post-card h2 a { color: var(--texto); text-decoration: none; }
.post-card h2 a:hover { color: var(--verde); }
.post-card p { color: var(--texto-suave); margin-bottom: .5rem; }
.post-meta { font-size: .85rem; color: var(--texto-suave); }
.migas { font-size: .85rem; color: var(--texto-suave); margin-bottom: 1.25rem; }
.post .entradilla { font-size: 1.12rem; color: var(--texto-suave); }
.post h3 { font-family: 'Playfair Display', serif; font-size: 1.08rem; margin: 1.4rem 0 .4rem; }
.post ol { margin: 0 0 .75rem 1.25rem; }
.post-cta { margin-top: 2.5rem; padding: 1.75rem; border-radius: 18px; background: var(--verde-claro); }
.post-cta h2 { margin-top: 0; }
.post-cta .btn { color: #fff; text-decoration: none; margin-top: .5rem; }
.post-aviso { margin-top: 2rem; font-size: .85rem; color: var(--texto-suave) !important; }
