:root {
  --teal: #0F5C5B;
  --teal-light: #DCEFE9;
  --coral: #F4795B;
  --cream: #FBF8F3;
  --charcoal: #2B2B2B;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); text-align: center; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid #e9e1d4;
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal);
}
.logo span { color: var(--coral); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--charcoal); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.nav-cta {
  background: var(--coral);
  color: white !important;
  padding: 8px 18px;
  border-radius: 30px;
}

/* HERO */
.hero { background: var(--teal); color: white; padding: 80px 24px 0; }
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--teal-light);
  font-weight: 600;
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); color: white; }
.hero-sub { color: #E9F4F1; font-size: 1.08rem; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0 18px; justify-content: center; }
.hero-trust { font-size: 0.85rem; color: #BFE0DA; }

.hero-stats {
  max-width: 700px;
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-stat {
  text-align: center;
  padding: 22px 16px 28px;
  border-left: 1px solid rgba(255,255,255,0.18);
}
.hero-stat:first-child { border-left: none; }
.hero-stat strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--coral);
}
.hero-stat span { font-size: 0.85rem; color: #BFE0DA; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--coral); color: white; }
.btn-primary:hover { background: #e0633f; text-decoration: none; }
.btn-secondary { background: white; color: var(--teal); }
.btn-secondary:hover { background: var(--teal-light); text-decoration: none; }

/* Sections */
.section { max-width: 1180px; margin: 0 auto; padding: 80px 24px; }
.section.alt { background: var(--teal-light); max-width: 100%; padding: 80px 24px; }
.section.alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-lead { text-align: center; max-width: 700px; margin: 0 auto 40px; color: #4a4a4a; }
.sub-h { margin-top: 50px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

.card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.card .icon { font-size: 1.8rem; margin-bottom: 10px; }

.signal-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.signal-card span { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.signal-card p { margin: 0; font-size: 0.95rem; }

.banner {
  background: white;
  border-left: 5px solid var(--coral);
  border-radius: 10px;
  padding: 18px 22px;
  margin-top: 30px;
  font-size: 0.95rem;
}

/* Split sections */
.split { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 50px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.split-visual { display: flex; justify-content: center; }
.doc-mock {
  width: 160px; height: 210px;
  background: white;
  border-radius: 8px;
  border: 2px dashed var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--teal);
  font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.doc-mock-alt { border-color: var(--coral); color: var(--coral); }

/* Directorio */
.country-block { margin-bottom: 44px; }
.country-block h3 { margin-bottom: 16px; }
.center-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.center-card .meta { color: #777; font-size: 0.85rem; margin-bottom: 8px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: white;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin-top: 10px; }

.biblio { max-width: 760px; margin: 0 auto; padding-left: 20px; font-size: 0.95rem; color: #555; }
.biblio li { margin-bottom: 10px; }

/* Fondo */
.fondo { background: white; border-top: 1px solid #e9e1d4; border-bottom: 1px solid #e9e1d4; }
.fondo-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; margin-top: 40px; }
.fondo-counter { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-self: start; }
.counter-card {
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.counter-num {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--teal);
}
.counter-label { font-size: 0.85rem; color: #4a4a4a; }

/* Transparencia */
.transparencia-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: white; border-radius: var(--radius); overflow: hidden; }
.transparencia-table th, .transparencia-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #eee; font-size: 0.95rem; }
.transparencia-table th { background: var(--teal); color: white; }
.transparencia-note { font-size: 0.85rem; color: #777; margin-top: 14px; }

/* Newsletter */
.newsletter { background: var(--teal); color: white; text-align: center; }
.newsletter h2, .newsletter .section-lead { color: white; }
.newsletter-form { max-width: 560px; margin: 0 auto; }
.radio-group { display: flex; justify-content: center; gap: 24px; margin-bottom: 18px; font-size: 0.95rem; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.form-row input[type=email] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
}

/* Footer */
.footer { background: var(--charcoal); color: #ccc; padding: 50px 24px 24px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-logo { font-size: 1.1rem; color: white; margin-bottom: 8px; }
.footer-logo span { color: var(--coral); }
.footer-tag { font-size: 0.9rem; color: #aaa; max-width: 320px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #ccc; font-size: 0.9rem; }
.footer-credits { max-width: 1180px; margin: 26px auto 0; font-size: 0.82rem; color: #999; }
.footer-credits a { color: #ccc; }
.footer-legal { max-width: 1180px; margin: 14px auto 0; font-size: 0.78rem; color: #888; border-top: 1px solid #444; padding-top: 18px; }

/* Guide page */
.guide-hero { background: var(--teal); color: white; padding: 50px 24px; text-align: center; }
.guide-hero .eyebrow { color: var(--teal-light); }
.guide-hero h1 { color: white; font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 820px; margin: 0 auto 14px; }
.back-link { color: #BFE0DA; font-size: 0.9rem; }
.guide-disclaimer {
  max-width: 820px; margin: 24px auto 0;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.92rem;
  text-align: left;
}
.guide-toc { max-width: 820px; margin: 0 auto 60px; background: white; border-radius: var(--radius); padding: 24px 28px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.guide-toc h2 { text-align: left; font-size: 1.2rem; margin-bottom: 14px; }
.guide-toc ol { columns: 2; column-gap: 30px; padding-left: 20px; margin: 0; font-size: 0.92rem; }
.guide-toc li { margin-bottom: 6px; }

.guide-article { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; }
.guide-article h2 { text-align: left; font-size: 1.6rem; margin-top: 64px; scroll-margin-top: 90px; }
.guide-article h3 { margin-top: 28px; }
.guide-article p, .guide-article li { font-size: 1.02rem; color: #333; }
.guide-article blockquote {
  border-left: 4px solid var(--coral);
  background: var(--teal-light);
  margin: 20px 0;
  padding: 14px 20px;
  border-radius: 0 10px 10px 0;
}
.guide-article blockquote p:last-child { margin-bottom: 0; }
.guide-table-wrap { overflow-x: auto; margin: 20px 0; }
.guide-table { width: 100%; border-collapse: collapse; background: white; border-radius: 10px; overflow: hidden; font-size: 0.92rem; }
.guide-table th, .guide-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #eee; }
.guide-table th { background: var(--teal); color: white; }
.guide-article .check-list { margin-bottom: 18px; }
.guide-article hr { border: none; border-top: 1px solid #e9e1d4; margin: 50px 0; }
.guide-pre {
  background: var(--teal);
  color: #E9F4F1;
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.5;
}
.guide-back-top { display: inline-block; margin-top: 14px; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 880px) {
  .split, .split.reverse, .fondo-grid { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 12px; font-size: 0.85rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.18); }
  .hero-stat:first-child { border-top: none; }
  .guide-toc ol { columns: 1; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .fondo-counter { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  body { font-size: 16.5px; }
}
