/* =============================================
   style.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Open+Sans:wght@400;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Lora', serif;
  background: #fff;
  color: #222;
  font-size: 15px;
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- TOPBAR ---- */
.topbar {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  font-family: 'Open Sans', sans-serif;
  font-size: 10px;
  color: #888;
  text-align: center;
  padding: 5px 16px;
  line-height: 1.4;
}

/* ---- NAVBAR ---- */
.navbar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Lora', serif;
  font-size: 30px;
  font-weight: 900;
  color: #141414;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo span { color: #3526C3; }

.nav-dnrpa {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.nav-dnrpa-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 10px;
  color: #999;
  line-height: 1;
}

.nav-dnrpa-img {
  height: 28px;
  width: auto;
  display: block;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 52px 0;
  border-top: 4px solid #E7BA61;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/img/hero-bg.webp') center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,20,40,0.72);
}

.hero-content { position: relative; width: 100%; text-align: center; }
.hero-content .btn-cta {
  width: auto;
  display: inline-block;
  padding: 15px 48px;
}
.hero-badges { justify-content: center; }

.hero h1 {
  font-family: 'Lora', serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-valid {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #ccc;
  margin-bottom: 24px;
}

.btn-cta {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 25px;
  padding: 15px 36px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  width: 100%;
  text-align: center;
  transition: background 0.2s;
}

.btn-cta:hover { background: #388e3c; }

.hero-badges { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: #ddd;
  font-weight: 600;
}

/* ---- SECCIONES ---- */
.section-white { background: #fff; padding: 56px 0; }

.section-gray {
  background: #f7f8fa;
  padding: 56px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.sec-title {
  font-family: 'Lora', serif;
  font-size: 35px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 10px;
}

.sec-sub {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #777;
  text-align: center;
  margin-bottom: 32px;
}

/* ---- STEPS ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.step-card {
  background: #f7f8fa;
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
}

.step-icon {
  width: 64px;
  height: 64px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.step-card h3 {
  font-family: 'Lora', serif;
  font-size: 25px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.step-card p {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #666;
}

/* ---- INCLUDES ---- */
.includes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.inc-card {
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
}

.inc-icon {
  width: 56px;
  height: 56px;
  background: #e8f0fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.inc-card h3 {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.inc-card p {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: #777;
}

/* ---- CTA INTERMEDIO ---- */
.section-cta-mid {
  background: #1a1a2e;
  padding: 52px 0;
  text-align: center;
}

.cta-mid-inner h2 {
  font-family: 'Lora', serif;
  font-size: 35px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.cta-mid-inner p {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #aab0c0;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-mid-inner .btn-cta {
  width: auto;
  display: inline-block;
  padding: 15px 44px;
  margin-bottom: 10px;
}

.cta-note {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: #4a90d9;
  font-weight: 600;
  margin-top: 8px;
  cursor: pointer;
}

/* ---- FAQ ---- */
.faq {
  margin-top: 28px;
  border: 1px solid #e4e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.faq-item { border-bottom: 1px solid #e4e8f0; }
.faq-item:last-child { border: none; }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  background: #fff;
  transition: background 0.15s;
  gap: 12px;
}

.faq-q:hover { background: #f7f8fa; }

.faq-q span {
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
}

.faq-icon { flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 12px 20px 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  background: #fff;
}

.faq-item.open .faq-a { display: block; }

/* ---- FOOTER ---- */
.footer {
  background: #111;
  padding: 22px 0;
  text-align: center;
}

.footer p {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-links a {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  color: #777;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: #bbb; }
.footer-links span { color: #444; font-size: 11px; }

/* ---- MODALES ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.activo { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 10px;
  max-width: 580px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px 28px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: #888;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: #333; }

.modal-body h3 {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 18px;
}

.modal-body h4 {
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 16px 0 6px;
}

.modal-body p {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 700px) {
  .hero h1 { font-size: 24px; }
  .steps-grid { grid-template-columns: 1fr; }
  .includes-grid { grid-template-columns: 1fr 1fr; }
  .sec-title { font-size: 22px; }
  .cta-mid-inner h2 { font-size: 22px; }
  .logo { font-size: clamp(14px, 4.5vw, 22px); }
}

@media (max-width: 440px) {
  .includes-grid { grid-template-columns: 1fr; }
}