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

:root {
  --navy: #1e2a4a;
  --navy-dark: #141d34;
  --navy-light: #2a3a6a;
  --orange: #e07230;
  --orange-dark: #c4612a;
  --white: #ffffff;
  --bg: #f7f8fc;
  --text: #2d3748;
  --muted: #718096;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(30,42,74,0.08);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }

/* ── NAV ── */
nav { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 32px; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 36px; border-radius: 6px; }
.nav-logo span { font-weight: 700; font-size: 1.1rem; color: var(--navy); letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--navy); }
.btn-nav { background: var(--orange); color: var(--white); padding: 8px 18px; border-radius: 8px; font-weight: 600; font-size: 0.875rem; text-decoration: none; transition: background .15s; }
.btn-nav:hover { background: var(--orange-dark); color: var(--white); }

/* ── HERO ── */
.hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%); color: var(--white); padding: 80px 24px 96px; text-align: center; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-badge { display: inline-block; background: rgba(224,114,48,0.2); color: var(--orange); border: 1px solid rgba(224,114,48,0.4); padding: 4px 14px; border-radius: 99px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 24px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.03em; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 1.125rem; color: rgba(255,255,255,0.8); max-width: 580px; margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--orange); color: var(--white); padding: 14px 28px; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: background .15s, transform .1s; display: inline-block; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.35); padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: border-color .15s; display: inline-block; }
.btn-outline:hover { border-color: rgba(255,255,255,0.7); }

/* ── TRUST BAR ── */
.trust-bar { background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 24px; text-align: center; }
.trust-bar-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.trust-icon { font-size: 1.1rem; }

/* ── SECTIONS ── */
section { padding: 72px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--navy); letter-spacing: -0.03em; margin-bottom: 16px; line-height: 1.2; }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 560px; line-height: 1.7; }

/* ── FEATURES ── */
.features { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 48px; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: box-shadow .2s; }
.feature-card:hover { box-shadow: var(--shadow); }
.feature-icon { width: 44px; height: 44px; background: rgba(224,114,48,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ── CONFORMIDAD ── */
.conformidad { background: var(--navy); color: var(--white); }
.conformidad .section-title { color: var(--white); }
.conformidad .section-sub { color: rgba(255,255,255,0.75); }
.conformidad .section-label { color: var(--orange); }
.conf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; align-items: center; }
.conf-text p { color: rgba(255,255,255,0.8); line-height: 1.75; margin-bottom: 16px; }
.conf-docs { display: flex; flex-direction: column; gap: 12px; }
.doc-link { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 14px 18px; text-decoration: none; color: var(--white); font-size: 0.9rem; font-weight: 500; transition: background .15s; }
.doc-link:hover { background: rgba(255,255,255,0.14); }
.doc-flag { font-size: 1.2rem; }
.doc-arrow { margin-left: auto; opacity: 0.6; }

/* ── VERIFACTU EXPLAINER ── */
.explainer { background: var(--white); }
.explainer-box { background: linear-gradient(135deg, #f0f4ff, #fff8f3); border: 1px solid #dde6ff; border-radius: 16px; padding: 48px 40px; margin-top: 48px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.explainer-box h3 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.explainer-box p { color: var(--muted); line-height: 1.7; }
.btn-secondary { background: var(--navy); color: var(--white); padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none; white-space: nowrap; transition: background .15s; display: inline-block; }
.btn-secondary:hover { background: var(--navy-light); }

/* ── BLOG PREVIEW ── */
.blog-section { background: var(--bg); }
.blog-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s; }
.blog-card:hover { box-shadow: var(--shadow); }
.blog-card-meta { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.blog-tag { background: rgba(224,114,48,0.1); color: var(--orange); padding: 2px 8px; border-radius: 99px; font-weight: 600; font-size: 0.75rem; }
.blog-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.blog-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.blog-read-link { font-size: 0.875rem; font-weight: 600; color: var(--orange); text-decoration: none; }
.blog-read-link:hover { color: var(--orange-dark); }

/* ── CTA FINAL ── */
.cta-final { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: var(--white); text-align: center; }
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.03em; }
.cta-final h2 span { color: var(--orange); }
.cta-final p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 480px; margin: 0 auto 36px; }

/* ── FOOTER ── */
footer { background: var(--navy-dark); color: rgba(255,255,255,0.5); padding: 40px 24px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; }
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo img { height: 24px; border-radius: 4px; opacity: 0.8; }
.footer-logo span { color: rgba(255,255,255,0.7); font-weight: 600; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ── BLOG PAGE ── */
.blog-header { background: var(--navy); color: var(--white); padding: 48px 24px 56px; }
.blog-header-inner { max-width: 860px; margin: 0 auto; }
.blog-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; font-size: 0.875rem; }
.blog-nav a { color: rgba(255,255,255,0.6); text-decoration: none; }
.blog-nav a:hover { color: var(--white); }
.blog-nav span { color: rgba(255,255,255,0.3); }
.blog-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 16px; }
.blog-header-meta { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: rgba(255,255,255,0.6); flex-wrap: wrap; }
.blog-header-meta .tag { background: rgba(224,114,48,0.25); color: var(--orange); padding: 3px 10px; border-radius: 99px; font-weight: 600; }

/* ── ARTICLE ── */
.article-body { max-width: 720px; margin: 0 auto; padding: 56px 24px; }
.article-lead { font-size: 1.1rem; color: var(--muted); line-height: 1.75; border-left: 4px solid var(--orange); padding-left: 20px; margin-bottom: 40px; }
.article-body h2 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 44px 0 16px; letter-spacing: -0.02em; }
.article-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.article-body p { color: var(--text); line-height: 1.8; margin-bottom: 18px; }
.article-body strong { color: var(--navy); }
.article-body ul, .article-body ol { margin: 12px 0 20px 24px; }
.article-body li { color: var(--text); line-height: 1.75; margin-bottom: 6px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
.article-body th { background: var(--navy); color: var(--white); padding: 10px 16px; text-align: left; font-weight: 600; }
.article-body td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.article-body tr:nth-child(even) td { background: var(--bg); }
.article-body blockquote { background: #fffbf5; border-left: 4px solid var(--orange); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 24px 0; }
.article-body blockquote p { margin: 0; color: var(--navy); font-weight: 500; }
.article-cta-box { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: var(--white); border-radius: 14px; padding: 36px 32px; margin: 48px 0; text-align: center; }
.article-cta-box h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.article-cta-box p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.article-sources { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.article-sources h3 { font-size: 0.9rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.article-sources ul { list-style: none; padding: 0; margin: 0; }
.article-sources li { padding: 6px 0; }
.article-sources a { color: var(--navy); text-decoration: none; font-size: 0.875rem; }
.article-sources a:hover { color: var(--orange); text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.9rem; margin-top: 40px; }
.back-link:hover { color: var(--orange); }

/* ── BLOG INDEX ── */
.blog-index-header { background: var(--navy); color: var(--white); padding: 48px 24px; }
.blog-index-body { max-width: 860px; margin: 0 auto; padding: 48px 24px; }
.blog-index-cards { display: flex; flex-direction: column; gap: 24px; }
.blog-index-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: var(--white); transition: box-shadow .2s; }
.blog-index-card:hover { box-shadow: var(--shadow); }
.blog-index-card-meta { display: flex; gap: 10px; align-items: center; font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.blog-index-card h2 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.blog-index-card h2 a { text-decoration: none; color: inherit; }
.blog-index-card h2 a:hover { color: var(--orange); }
.blog-index-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .conf-grid { grid-template-columns: 1fr; }
  .explainer-box { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .article-body { padding: 40px 20px; }
}
