:root {
  --bg: #FFFFFF;
  --surface: #FAFAFA;
  --surface-card: #FFFFFF;
  --ink: #282D2A;
  --ink-muted: rgba(40,45,42,0.72);
  --accent: #D74D00;
  --accent-soft: rgba(215, 77, 0, 0.08);
  --border: rgba(40,45,42,0.12);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(40,45,42,0.03);
  --shadow-md: 0 8px 24px rgba(40,45,42,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-bottom: 5rem;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--ink); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2.5rem); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: .95rem 1.8rem; border-radius: 99px;
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  cursor: pointer; transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-solid { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(215,77,0,.2); }
.btn-solid:hover { background: #b84200; border-color: #b84200; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(215,77,0,.28); }
.btn-arrow { font-size: 1.1rem; transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--accent); background: var(--accent-soft); padding: .4rem .9rem; border-radius: 99px;
  margin-bottom: 1rem;
}

.section-header { text-align: left; max-width: 720px; margin-bottom: 3rem; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.01em; margin-bottom: .8rem; color: var(--ink); }
.section-subtitle { font-size: 1.05rem; color: var(--ink-muted); }

.text-italic { font-style: italic; }

/* Encabezados de página (dentro de main) — scrollean normalmente */
.page-header {
  margin-bottom: 3rem;
  max-width: 700px;
  position: static;
}
.page-header h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.page-header p {
  font-size: 1.1rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* Header y Navegación */
header { position: sticky; top: 0; z-index: 100; padding: 0.8rem 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative; }

.brand-mark { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--ink); display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand-mark em { font-style: italic; color: var(--accent); }
.brand-img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; display: inline-block; }

.main-nav { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.main-nav > li > a { font-weight: 500; font-size: .92rem; color: var(--ink-muted); transition: color .2s; }
.main-nav > li > a:hover, .main-nav > li > a.active { color: var(--accent); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.nav-cta { font-weight: 600; font-size: .88rem; color: var(--ink); border: 1px solid var(--border); padding: .5rem 1.2rem; border-radius: 99px; transition: all .2s; white-space: nowrap; cursor: pointer; background: transparent; }
.nav-cta:hover { border-color: var(--accent); color: var(--accent); }

/* Botón hamburguesa (solo celular) */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border);
  border-radius: 10px; padding: .35rem .6rem;
  font-size: 1.35rem; line-height: 1; color: var(--ink);
  cursor: pointer; transition: border-color .2s, color .2s;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Menú desplegable "Recursos" */
.has-dropdown { position: relative; }

.dropdown-toggle {
  font-family: var(--font-body); font-weight: 500; font-size: .92rem;
  color: var(--ink-muted); background: transparent; border: none;
  cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: .3rem;
  transition: color .2s;
}
.dropdown-toggle:hover,
.has-dropdown.open .dropdown-toggle { color: var(--accent); font-weight: 600; }

.dropdown-toggle .caret {
  display: inline-block; transform: rotate(90deg);
  transition: transform .2s ease; font-size: 1rem;
}
.has-dropdown.open .caret { transform: rotate(-90deg); }

.dropdown-menu {
  position: absolute; top: calc(100% + .6rem); right: 0;
  min-width: 220px; list-style: none;
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-md);
  padding: .5rem; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .2s ease; z-index: 200;
}
.has-dropdown.open .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: block; padding: .65rem .9rem; border-radius: 9px;
  font-size: .9rem; font-weight: 500; color: var(--ink);
  transition: background .15s, color .15s; white-space: nowrap;
}
.dropdown-menu a:hover,
.dropdown-menu a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ===== Vista celular: el menú pasa a botón hamburguesa ===== */
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.9rem);
    left: clamp(1.25rem, 5vw, 2.5rem);
    right: clamp(1.25rem, 5vw, 2.5rem);
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: .6rem;
    z-index: 300;
  }
  .main-nav.open { display: flex; }

  .main-nav > li { width: 100%; }

  .main-nav > li > a,
  .dropdown-toggle {
    display: flex; width: 100%;
    padding: .8rem .9rem; border-radius: 10px;
    font-size: .98rem; color: var(--ink);
  }
  .main-nav > li > a:hover,
  .main-nav > li > a.active { background: var(--accent-soft); }

  .dropdown-toggle { justify-content: space-between; }

  /* Submenú de Recursos: se muestra adentro del panel, indentado */
  .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    display: none;
    background: transparent; border: none; box-shadow: none;
    min-width: 0; padding: .1rem 0 .3rem 0; margin: 0;
  }
  .has-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { padding: .6rem .9rem .6rem 1.7rem; font-size: .92rem; white-space: normal; }

  .nav-cta { display: none; }
}

.hero { padding: clamp(4rem, 10vw, 6.5rem) 0 clamp(3.5rem, 8vw, 5.5rem); background: var(--bg); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); letter-spacing: -.02em; margin-bottom: 1.2rem; color: var(--ink); }
.hero-aside { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink-muted); margin-bottom: 2rem; font-style: italic; font-weight: 400; line-height: 1.4; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.hero-card {
  background: var(--surface-card); border: 1px solid var(--border); border-radius: 20px;
  padding: 2rem; box-shadow: var(--shadow-md); position: relative;
}
.hero-card h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--ink); }
.hero-list { list-style: none; display: flex; flex-direction: column; gap: .8rem; font-size: .95rem; }
.hero-list li { display: flex; align-items: center; gap: .6rem; color: var(--ink-muted); }
.hero-list li::before { content: "✓"; color: var(--accent); font-weight: 700; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.letter { padding: 5rem 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.letter-card {
  background: var(--surface-card); border: 1px solid var(--border); border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem); box-shadow: var(--shadow-sm); max-width: 840px; margin: 0 auto;
}
.letter-card h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); margin-bottom: 1.5rem; color: var(--ink); }
.letter-card p { margin-bottom: 1.2rem; font-size: 1.05rem; color: var(--ink-muted); line-height: 1.7; }

.quote-box {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 1.25rem 1.5rem;
  margin: 1.8rem 0;
  border-radius: 0 12px 12px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.6;
}

.bible-verse {
  display: block;
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border-radius: 12px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.6;
}

.signature-box {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.signature-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.signature-motto {
  font-size: .9rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: .2rem;
}

.feelings { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.feelings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.feeling-card { background: var(--surface-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.8rem; position: relative; }
.feeling-badge { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; margin-bottom: .8rem; }
.feeling-card h3 { font-size: 1.15rem; margin-bottom: .6rem; color: var(--ink); }
.feeling-card p { font-size: .95rem; color: var(--ink-muted); }
@media (max-width: 680px) { .feelings-grid { grid-template-columns: 1fr; } }

.roadmap { padding: 5rem 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.roadmap-list { display: flex; flex-direction: column; gap: 1.5rem; }
.roadmap-item { background: var(--surface-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.8rem; display: flex; gap: 1.5rem; align-items: flex-start; }
.roadmap-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.roadmap-text h3 { font-size: 1.2rem; margin-bottom: .4rem; color: var(--ink); }
.roadmap-text p { font-size: .95rem; color: var(--ink-muted); }

.faq { padding: 5rem 0; }
.faq-wrapper { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-card); overflow: hidden; }
.faq-item[open] { border-color: rgba(215,77,0,0.4); }
.faq-summary { padding: 1.2rem 1.5rem; font-weight: 600; font-size: 1.02rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); transition: transform .2s; }
.faq-item[open] .faq-summary::after { transform: rotate(45deg); }
.faq-content { padding: 0 1.5rem 1.2rem; font-size: .95rem; color: var(--ink-muted); border-top: 1px solid rgba(0,0,0,0.04); padding-top: 1rem; }

footer {
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 22px 36px 22px;
  text-align: center;
  font-family: var(--font-body);
  line-height: 1.6;
}
.footer-container {
  max-width: 820px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
.footer-title em {
  font-style: italic;
  color: var(--accent);
}
.footer-motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--accent);
  margin: 0 0 16px 0;
  letter-spacing: 0.01em;
}
.footer-disclaimer {
  font-size: 0.82rem;
  color: var(--ink-muted);
  max-width: 680px;
  margin: 0 auto 12px auto;
  line-height: 1.5;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(40, 45, 42, 0.45);
  margin: 0;
}

.bottombar { 
  position: fixed; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  width: 100%;
  z-index: 999; 
  background: var(--ink); 
  padding: .8rem 1rem; 
  display: flex; 
  justify-content: center; 
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}
.bottombar .btn { width: 100%; max-width: 26rem; text-align: center; }

/* ESTILOS DEL MODAL DE WHATSAPP */
.modal-backdrop {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(40, 45, 42, 0.6); backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .3s ease;
  padding: 1rem;
}
.modal-backdrop.active { opacity: 1; visibility: visible; }

.modal-box {
  background: var(--surface-card); border-radius: 20px;
  padding: 2.2rem; max-width: 440px; width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  position: relative; transform: translateY(20px); transition: transform .3s ease;
  border: 1px solid var(--border);
}
.modal-backdrop.active .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute; top: 1rem; right: 1.2rem;
  border: none; background: transparent; font-size: 1.5rem;
  color: var(--ink-muted); cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--ink); }

.modal-title { font-size: 1.5rem; margin-bottom: .5rem; }
.modal-subtitle { font-size: .92rem; color: var(--ink-muted); margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-group { margin-bottom: 1.2rem; text-align: left; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.form-group input {
  width: 100%; padding: .8rem 1rem; border-radius: 12px;
  border: 1px solid var(--border); font-family: var(--font-body);
  font-size: .95rem; outline: none; transition: border-color .2s;
}
.form-group input:focus { border-color: var(--accent); }

@media (max-width: 400px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}