/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green-50: #f0faf5; --green-100: #d4f0e3; --green-400: #2eaa72;
  --green-500: #1d9e65; --green-600: #157a4e; --green-900: #0a3d27;
  --gray-50: #f8f8f6; --gray-100: #eeede9; --gray-200: #dddcda;
  --gray-400: #8a8880; --gray-700: #3d3d3a; --gray-900: #1a1a18;
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: white; color: var(--gray-900); line-height: 1.6; overflow-x: hidden; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.15s; border: none; font-family: 'DM Sans', sans-serif; white-space: nowrap; }
.btn-primary { background: var(--green-500); color: white; }
.btn-primary:hover { background: var(--green-600); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--green-600); border: 1.5px solid var(--green-400); }
.btn-outline:hover { background: var(--green-50); }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 28px; font-size: 16px; border-radius: 12px; }

/* ── NAV ── */
nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-100); padding: 0 2rem; display: flex; align-items: center; height: 64px; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 36px; height: 36px; background: var(--green-500); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; }
.logo-text { font-size: 17px; font-weight: 700; color: var(--gray-900); line-height: 1; }
.logo-text span { color: var(--green-500); }
.logo-sub { font-size: 10px; color: var(--gray-400); font-weight: 400; display: block; margin-top: 1px; }
.nav-links { display: flex; gap: 1.8rem; align-items: center; list-style: none; flex: 1; }
.nav-links a { font-size: 14px; color: var(--gray-700); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--green-500); }
.nav-actions { display: flex; gap: 10px; margin-left: auto; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--gray-700); margin-left: auto; }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--gray-100); padding: 12px 1.5rem 20px; flex-direction: column; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; color: var(--gray-900); text-decoration: none; font-weight: 500; padding: 11px 0; border-bottom: 1px solid var(--gray-100); }
.mobile-menu-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

/* ── HERO ── */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 72px 2rem 60px; gap: 48px; }
.hero-text { max-width: 520px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-600); font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; }
.hero-badge-dot { width: 7px; height: 7px; background: var(--green-400); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.75)} }
.hero-text h1 { font-family: 'DM Serif Display', serif; font-size: clamp(32px, 4vw, 50px); line-height: 1.1; color: var(--gray-900); margin-bottom: 18px; letter-spacing: -0.5px; }
.hero-text h1 span { color: var(--green-500); }
.hero-sub { font-size: 16px; color: var(--gray-400); line-height: 1.7; margin-bottom: 32px; max-width: 420px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-trust { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-400); margin-bottom: 20px; }
.hero-trust svg { color: var(--green-500); flex-shrink: 0; }
.whatsapp-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--green-500); color: white; padding: 11px 20px; border-radius: 50px; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 4px 20px rgba(29,158,101,0.35); transition: all 0.2s; }
.whatsapp-btn:hover { background: var(--green-600); transform: translateY(-2px); }
.hero-img { border-radius: 20px; overflow: hidden; height: 460px; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── STATS ── */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; background: white; border: 1px solid var(--gray-100); border-radius: 18px; max-width: 900px; margin: 0 auto 0; padding: 28px 32px; box-shadow: 0 4px 32px rgba(0,0,0,0.06); position: relative; z-index: 10; }
.stat { display: flex; align-items: center; gap: 14px; padding: 0 20px; border-right: 1px solid var(--gray-100); }
.stat:last-child { border-right: none; }
.stat-icon { width: 44px; height: 44px; background: var(--green-50); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--green-500); }
.stat strong { font-family: 'DM Serif Display', serif; font-size: 28px; color: var(--gray-900); display: block; line-height: 1; }
.stat p { font-size: 12px; color: var(--gray-400); margin-top: 3px; }

/* ── BÚSQUEDA ── */
.search-section { background: var(--gray-50); padding: 48px 2rem; border-bottom: 1px solid var(--gray-100); }
.search-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.search-inner h2 { font-family: 'DM Serif Display', serif; font-size: 26px; margin-bottom: 6px; }
.search-inner > p { font-size: 14px; color: var(--gray-400); margin-bottom: 24px; }
.search-box { background: white; border: 1.5px solid var(--gray-200); border-radius: 20px; padding: 8px; display: flex; align-items: center; box-shadow: 0 4px 24px rgba(0,0,0,0.06); position: relative; }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 16px; position: relative; color: var(--green-500); }
.search-field + .search-field::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--gray-200); }
.search-field-inner { flex: 1; position: relative; }
.search-label { font-size: 11px; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 2px; }
.search-field input { width: 100%; border: none; outline: none; font-size: 15px; font-family: 'DM Sans', sans-serif; color: var(--gray-900); background: transparent; font-weight: 500; }
.search-field input::placeholder { color: var(--gray-400); font-weight: 400; }
.search-btn { background: var(--green-500); color: white; border: none; border-radius: 14px; padding: 14px 28px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; transition: all 0.2s; flex-shrink: 0; }
.search-btn:hover { background: var(--green-600); }
#spec-dropdown { display: none; position: absolute; top: calc(100% + 8px); left: -46px; right: 0; background: white; border: 1.5px solid var(--gray-200); border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); z-index: 200; max-height: 280px; overflow-y: auto; padding: 6px; text-align: left; }
.search-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; align-items: center; font-size: 13px; color: var(--gray-400); }
.search-tags a { background: white; color: var(--green-600); border: 1px solid var(--green-100); font-size: 13px; padding: 5px 14px; border-radius: 20px; text-decoration: none; transition: all 0.15s; }
.search-tags a:hover { background: var(--green-50); }

/* ── SECCIONES ── */
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label { font-size: 13px; font-weight: 600; color: var(--green-500); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.section-label.light { color: #9FE1CB; }
h2 { font-family: 'DM Serif Display', serif; font-size: clamp(26px, 3.5vw, 38px); line-height: 1.2; color: var(--gray-900); }
h2 span { color: var(--green-500); }
h2.light { color: white; }

/* ── FEATURES ── */
.features { padding: 80px 2rem; }
.cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.card { background: white; border: 1px solid var(--gray-100); border-radius: 16px; padding: 28px 22px; text-align: center; transition: all 0.2s; }
.card:hover { border-color: var(--green-400); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(29,158,101,0.08); }
.card-icon { width: 56px; height: 56px; background: var(--green-50); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--green-500); }
.card h3 { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.card p { font-size: 13px; color: var(--gray-400); line-height: 1.6; }

/* ── CÓMO FUNCIONA ── */
.how { background: var(--green-900); padding: 80px 2rem; }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 0; align-items: start; margin-top: 48px; }
.step { text-align: center; }
.step-arrow { color: rgba(255,255,255,0.3); font-size: 24px; padding: 0 8px; margin-top: 12px; }
.step-circle { width: 56px; height: 56px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: white; }
.step-num { font-size: 11px; font-weight: 600; color: #9FE1CB; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.step h3 { font-size: 14px; font-weight: 600; color: white; margin-bottom: 6px; }
.step p { font-size: 12px; color: #9FE1CB; line-height: 1.6; }

/* ── VERIFICACIÓN + CTA ── */
.bottom { background: var(--gray-50); padding: 72px 2rem; border-top: 1px solid var(--gray-100); }
.bottom-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.verification { display: flex; flex-direction: column; gap: 0; }
.verif-icon { width: 56px; height: 56px; background: var(--green-50); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--green-500); margin-bottom: 14px; }
.verification h3 { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--green-600); margin-bottom: 10px; }
.verification p { font-size: 14px; color: var(--gray-400); line-height: 1.7; margin-bottom: 16px; }
.verification ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.verification ul li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gray-700); }
.verification ul li::before { content: '✓'; color: var(--green-500); font-weight: 700; flex-shrink: 0; }
.cta-box { background: white; border-radius: 20px; padding: 40px; text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,0.06); border: 1px solid var(--gray-100); }
.cta-box h2 { font-size: 26px; margin-bottom: 12px; }
.cta-box p { font-size: 15px; color: var(--gray-400); margin-bottom: 28px; line-height: 1.7; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: var(--gray-900); padding: 52px 2rem 28px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-desc { font-size: 14px; color: #8a8880; line-height: 1.7; max-width: 280px; margin-top: 12px; }
.footer-email { font-size: 13px; color: #5f5e5a; margin-top: 10px; }
.footer-col-title { font-size: 12px; font-weight: 600; color: #5f5e5a; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #8a8880; text-decoration: none; margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: var(--green-400); }
.footer-bottom { border-top: 1px solid #2c2c2a; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 13px; color: #5f5e5a; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-img { height: 300px; }
  .cards { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .step-arrow { display: none; }
  .bottom-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 0 1rem; gap: 0; overflow: hidden; }
  .nav-actions { display: none !important; }
  .nav-links { display: none !important; }
  #nav-auth { display: none !important; }
  #nav-no-auth { display: none !important; }
  nav > *:not(.logo):not(.burger) { display: none !important; }
  .burger { display: flex; margin-left: auto; }
  .nav-links, .nav-actions { display: none; }
  .burger { display: flex; }
  .stats { grid-template-columns: repeat(2,1fr); border-radius: 0; box-shadow: none; }
  .stat { border-right: none; border-bottom: 1px solid var(--gray-100); padding: 14px; }
  .stat:nth-child(3), .stat:last-child { border-bottom: none; }
  .search-box { flex-direction: column; border-radius: 16px; }
  .search-field + .search-field::before { display: none; }
  .search-field { border-top: 1px solid var(--gray-100); }
  .search-field:first-child { border-top: none; }
  .search-btn { width: 100%; border-radius: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  nav { padding: 0 1.25rem; }
  .hero { padding: 40px 1.25rem 32px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
