/* ============================================
   ComoEmprender.cl — Sistema de diseño
   Versión 1.0 · Mayo 2026
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Variables ── */
:root {
  --bg:        #FAFAF9;
  --white:     #FFFFFF;
  --border:    #E8E6E1;
  --border2:   #D4D0C8;
  --text:      #1C1B18;
  --text2:     #6B6860;
  --text3:     #A8A49C;
  --green:     #2D6A4F;
  --green-l:   #E8F4EE;
  --green-m:   #52B788;
  --radius:    8px;
  --radius-lg: 12px;
  --shadow:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
}

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

/* ── Tipografía ── */
h1,h2,h3,h4 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
h1 { font-size: clamp(36px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.5vw, 36px); }
h3 { font-size: 20px; }
p  { line-height: 1.75; }
em { font-style: italic; color: var(--green); }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 4.5rem 0; }
.section-sm { padding: 2.5rem 0; }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; color: var(--green);
  letter-spacing: 0.07em; text-transform: uppercase;
  background: var(--green-l); padding: 4px 10px; border-radius: 4px;
  margin-bottom: 1rem;
}

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  padding: 10px 20px; border-radius: var(--radius); border: none;
  cursor: pointer; transition: all .15s; letter-spacing: -0.01em;
}
.btn-primary   { background: var(--text); color: var(--white); }
.btn-primary:hover { background: #2d2c29; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-secondary:hover { border-color: var(--text); }
.btn-green  { background: var(--green); color: var(--white); }
.btn-green:hover { background: #235c43; }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* ── Cards ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--green-m); box-shadow: var(--shadow-md); }

/* ── Tags ── */
.tag {
  display: inline-block; font-size: 10px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
  background: var(--green-l); color: var(--green);
}

/* ── Dividers ── */
.divider { border: none; border-top: 1px solid var(--border); }

/* ────────────────
   NAVEGACIÓN
   ──────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 58px; display: flex; align-items: center;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo {
  font-family: 'DM Serif Display', serif; font-size: 17px;
  color: var(--text); letter-spacing: -0.01em; white-space: nowrap;
}
.nav-logo em { font-style: italic; color: var(--green); }
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a {
  font-size: 13px; color: var(--text2); font-weight: 400;
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--text); color: var(--white);
  font-size: 12px; font-weight: 500; padding: 8px 16px;
  border-radius: 6px; border: none; cursor: pointer;
  letter-spacing: -0.01em; white-space: nowrap; transition: background .15s;
}
.nav-cta:hover { background: #2d2c29; }
.nav-mobile-btn { display: none; background: none; border: none; cursor: pointer; padding: 6px; }

/* ────────────────
   HERO
   ──────────────── */
.hero {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 5.5rem 0 4.5rem;
}
.hero-inner { max-width: 680px; }
.hero h1 { margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 16px; color: var(--text2); max-width: 500px;
  line-height: 1.8; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero-note { font-size: 12px; color: var(--text3); margin-left: 2px; }

/* ────────────────
   LOGOS STRIP
   ──────────────── */
.logos-strip {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.logos-strip .container { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.logos-label { font-size: 10px; color: var(--text3); font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; }
.logos-sep { width: 1px; height: 14px; background: var(--border2); }
.logo-item { font-size: 12px; font-weight: 500; color: var(--text3); white-space: nowrap; }

/* ────────────────
   STATS
   ──────────────── */
.stats-bar {
  background: var(--white); border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(3,1fr);
}
.stat-item {
  padding: 2rem 2.5rem; border-right: 1px solid var(--border);
  text-align: left;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'DM Serif Display', serif; font-size: 42px;
  font-weight: 400; letter-spacing: -0.04em; line-height: 1;
  color: var(--text); margin-bottom: 4px;
}
.stat-num em { font-style: italic; color: var(--green); }
.stat-label { font-size: 13px; color: var(--text2); }

/* ────────────────
   PASOS
   ──────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.step-item {
  background: var(--white); padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
}
.step-item:last-child { border-right: none; }
.step-num { font-size: 10px; font-weight: 500; color: var(--text3); letter-spacing: 0.08em; margin-bottom: 1.25rem; }
.step-icon {
  width: 40px; height: 40px; background: var(--green-l);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 18px; margin-bottom: 1rem;
}
.step-title { font-family: 'DM Sans',sans-serif; font-size: 15px; font-weight: 500; margin-bottom: 6px; letter-spacing: -0.01em; }
.step-body  { font-size: 13px; color: var(--text2); line-height: 1.65; }

/* ────────────────
   FEATURES GRID
   ──────────────── */
.feat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.feat-item { background: var(--white); padding: 2rem 2.25rem; }
.feat-icon {
  width: 38px; height: 38px; background: var(--green-l);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 17px; margin-bottom: 1.25rem;
}
.feat-title { font-family: 'DM Sans',sans-serif; font-size: 15px; font-weight: 500; margin-bottom: 6px; letter-spacing: -0.01em; }
.feat-body  { font-size: 13px; color: var(--text2); line-height: 1.65; }
.feat-link  { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--green); margin-top: 10px; font-weight: 500; transition: gap .15s; }
.feat-link:hover { gap: 7px; }

/* ────────────────
   TOOLS GRID
   ──────────────── */
.tools-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.tool-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; cursor: pointer;
  transition: border-color .15s, box-shadow .15s; text-decoration: none; display: block;
}
.tool-card:hover { border-color: var(--green-m); box-shadow: var(--shadow-md); }
.tool-icon { font-size: 24px; margin-bottom: .875rem; }
.tool-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; letter-spacing: -0.01em; color: var(--text); }
.tool-desc  { font-size: 12px; color: var(--text2); line-height: 1.55; }
.tool-cta   { font-size: 11px; color: var(--green); font-weight: 500; margin-top: 10px; display: inline-flex; align-items: center; gap: 3px; }

/* ────────────────
   NOTAS / ARTÍCULOS
   ──────────────── */
.notas-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.nota-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .15s, box-shadow .15s; display: flex; flex-direction: column;
  text-decoration: none; color: var(--text);
}
.nota-card:hover { border-color: var(--green-m); box-shadow: var(--shadow-md); }
.nota-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  background: var(--green-l); display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.nota-img-placeholder {
  width: 100%; aspect-ratio: 16/9; background: var(--green-l);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}
.nota-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.nota-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 0.75rem; }
.nota-date { font-size: 11px; color: var(--text3); }
.nota-title { font-family: 'DM Serif Display', serif; font-size: 17px; font-weight: 400; line-height: 1.3; margin-bottom: 8px; letter-spacing: -0.02em; }
.nota-excerpt { font-size: 13px; color: var(--text2); line-height: 1.6; flex: 1; }
.nota-footer { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; }
.nota-read { font-size: 11px; color: var(--text3); }
.nota-cta { font-size: 11px; color: var(--green); font-weight: 500; }

/* ─ Artículo individual ─ */
.article-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 3.5rem 0 3rem; }
.article-header .tag { margin-bottom: 1rem; }
.article-header h1 { max-width: 720px; }
.article-header .article-meta { font-size: 13px; color: var(--text2); margin-top: 1.25rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.article-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg); margin: 2.5rem 0; background: var(--green-l); display:flex;align-items:center;justify-content:center;font-size:3rem; }
.article-body { max-width: 720px; }
.article-body h2 { font-size: 24px; margin: 2.5rem 0 1rem; }
.article-body h3 { font-family: 'DM Sans',sans-serif; font-size: 16px; font-weight: 600; margin: 2rem 0 0.75rem; letter-spacing: -0.01em; }
.article-body p  { margin-bottom: 1.25rem; color: var(--text); }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 6px; font-size: 15px; line-height: 1.7; color: var(--text); }
.article-body a  { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.tip-box {
  background: var(--green-l); border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.tip-box strong { font-size: 12px; font-weight: 600; color: var(--green); letter-spacing: 0.05em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.tip-box p { margin: 0; font-size: 14px; color: var(--green); }
.warning-box {
  background: #FEF9EC; border-left: 3px solid #D4A017;
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.warning-box strong { font-size: 12px; font-weight: 600; color: #8B6914; letter-spacing: 0.05em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.warning-box p { margin: 0; font-size: 14px; color: #6B5010; }
.step-list { counter-reset: steps; list-style: none; padding: 0; margin: 1.5rem 0; }
.step-list li { counter-increment: steps; display: flex; gap: 14px; margin-bottom: 1rem; align-items: flex-start; }
.step-list li::before {
  content: counter(steps); min-width: 28px; height: 28px;
  background: var(--green); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; flex-shrink: 0; margin-top: 2px;
}

/* ────────────────
   DIAGNÓSTICO BLOQUE
   ──────────────── */
.diag-block {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.diag-left { padding: 2.5rem; background: var(--green); color: white; }
.diag-left .eyebrow { background: rgba(255,255,255,.2); color: white; }
.diag-left h2 { color: white; }
.diag-left p { color: rgba(255,255,255,.82); font-size: 14px; margin: 1rem 0 1.75rem; line-height: 1.75; }
.diag-bullets { display: flex; flex-direction: column; gap: 8px; }
.diag-bullet { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.88); }
.diag-bullet::before { content: ''; width: 5px; height: 5px; background: rgba(255,255,255,.6); border-radius: 50%; flex-shrink: 0; }
.diag-right { background: var(--white); padding: 2.5rem; }
.diag-progress { display: flex; gap: 4px; margin-bottom: 4px; }
.diag-progress span { height: 2px; flex: 1; background: var(--border); border-radius: 2px; }
.diag-progress span.on { background: var(--green); }
.diag-step-label { font-size: 11px; color: var(--text3); margin-bottom: 1.25rem; }
.diag-question { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 1.25rem; }
.diag-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.5rem; }
.diag-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; color: var(--text2); cursor: pointer; transition: all .15s; background: none; width: 100%; text-align: left;
}
.diag-option:hover, .diag-option.selected { border-color: var(--green); color: var(--text); background: var(--green-l); }
.diag-option::before { content: ''; width: 16px; height: 16px; border: 1.5px solid var(--border2); border-radius: 50%; flex-shrink: 0; transition: all .15s; }
.diag-option.selected::before { background: var(--green); border-color: var(--green); }
.diag-btn-row { display: flex; gap: 8px; }

/* ────────────────
   NEWSLETTER
   ──────────────── */
.nl-section {
  background: var(--white); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 3.5rem 0;
}
.nl-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.nl-title { margin-bottom: .5rem; }
.nl-sub { font-size: 14px; color: var(--text2); }
.nl-form { display: flex; }
.nl-input {
  flex: 1; background: var(--bg); border: 1px solid var(--border2); border-right: none;
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 13px;
  padding: 11px 14px; border-radius: 7px 0 0 7px; outline: none; transition: border-color .15s;
}
.nl-input:focus { border-color: var(--green); }
.nl-input::placeholder { color: var(--text3); }
.nl-submit {
  background: var(--text); color: white; font-size: 13px; font-weight: 500;
  padding: 11px 18px; border: none; border-radius: 0 7px 7px 0;
  cursor: pointer; white-space: nowrap; transition: background .15s;
}
.nl-submit:hover { background: #2d2c29; }
.nl-note { font-size: 11px; color: var(--text3); margin-top: 8px; }

/* ────────────────
   FOOTER
   ──────────────── */
.footer { background: var(--white); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-logo { font-family: 'DM Serif Display', serif; font-size: 16px; margin-bottom: 6px; }
.footer-desc { font-size: 12px; color: var(--text3); line-height: 1.65; max-width: 210px; }
.footer-col-title { font-size: 10px; font-weight: 600; color: var(--text); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 13px; color: var(--text2); margin-bottom: 7px; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 12px; color: var(--text3); }
.footer-lofwork { font-size: 12px; color: var(--text3); }
.footer-lofwork a { color: var(--green); font-weight: 500; }

/* ────────────────
   PÁGINA INTERNA: GUÍAS
   ──────────────── */
.page-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 3.5rem 0 3rem; }
.page-header h1 { margin-bottom: .75rem; }
.page-header p { font-size: 15px; color: var(--text2); max-width: 520px; }
.guias-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.guia-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; display: flex; flex-direction: column; gap: .5rem;
  text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.guia-card:hover { border-color: var(--green-m); box-shadow: var(--shadow-md); }
.guia-card-icon { font-size: 26px; margin-bottom: .25rem; }
.guia-card-title { font-family: 'DM Serif Display', serif; font-size: 18px; letter-spacing: -0.02em; }
.guia-card-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }
.guia-card-meta { font-size: 11px; color: var(--text3); margin-top: .5rem; }

/* ────────────────
   HERRAMIENTA CALCULADORA
   ──────────────── */
.calc-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; max-width: 680px; }
.calc-row { margin-bottom: 1.25rem; }
.calc-label { font-size: 13px; font-weight: 500; margin-bottom: 5px; display: block; }
.calc-select, .calc-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border2); border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text); background: var(--bg);
  outline: none; transition: border-color .15s;
}
.calc-select:focus, .calc-input:focus { border-color: var(--green); }
.calc-result {
  background: var(--green-l); border: 1px solid rgba(45,106,79,.2);
  border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 1.5rem; display: none;
}
.calc-result.visible { display: block; }
.calc-result-title { font-size: 11px; font-weight: 600; color: var(--green); letter-spacing: .07em; text-transform: uppercase; margin-bottom: .75rem; }
.calc-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-result-item { }
.calc-result-label { font-size: 12px; color: var(--green); margin-bottom: 2px; }
.calc-result-value { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--green); font-weight: 400; }

/* ────────────────
   RESPONSIVE
   ──────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .notas-grid  { grid-template-columns: 1fr 1fr; }
  .tools-grid  { grid-template-columns: 1fr 1fr; }
  .guias-grid  { grid-template-columns: 1fr 1fr; }
  .feat-grid   { grid-template-columns: 1fr; }
  .diag-block  { grid-template-columns: 1fr; }
  .nl-inner    { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar   { grid-template-columns: 1fr; }
  .stat-item   { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 3.5rem 0 3rem; }
  h1 { font-size: 34px; }
  .notas-grid  { grid-template-columns: 1fr; }
  .tools-grid  { grid-template-columns: 1fr 1fr; }
  .guias-grid  { grid-template-columns: 1fr; }
  .steps-grid  { grid-template-columns: 1fr; }
  .step-item   { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .diag-left, .diag-right { padding: 1.75rem; }
}

/* ── Nav mobile menu ── */
.nav-mobile-open .nav-links {
  display: flex; flex-direction: column; position: absolute;
  top: 58px; left: 0; right: 0; background: var(--white);
  border-bottom: 1px solid var(--border); padding: 1.25rem 1.5rem;
  gap: 1rem; z-index: 99;
}
