/* ============================================
   CatastrosChile Landing Page — CSS
   ============================================ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
    --shadow-xl: 0 25px 60px rgba(0,0,0,.15);
    --font: 'Inter', -apple-system, sans-serif;
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
}

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- NAVBAR ---- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    transition: all .3s;
    background: transparent;
}
.navbar.scrolled {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: var(--shadow);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-size: 1.25rem; }
.navbar.scrolled .nav-brand { color: var(--secondary); }
.nav-logo {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--gradient); display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.navbar.scrolled .nav-links a { color: var(--text-muted); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.btn-nav-secondary {
    padding: 8px 18px; border-radius: 8px; text-decoration: none;
    color: rgba(255,255,255,.9); font-size: .875rem; font-weight: 500;
    border: 1px solid rgba(255,255,255,.3); transition: all .2s;
}
.btn-nav-secondary:hover { background: rgba(255,255,255,.15); }
.navbar.scrolled .btn-nav-secondary { color: var(--text); border-color: var(--border); }
.navbar.scrolled .btn-nav-secondary:hover { background: var(--bg-alt); }
.btn-nav-primary {
    padding: 8px 20px; border-radius: 8px; text-decoration: none;
    background: #fff; color: var(--primary-dark); font-size: .875rem; font-weight: 600;
    transition: all .2s;
}
.btn-nav-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,.3); }
.navbar.scrolled .btn-nav-primary { background: var(--primary); color: #fff; }
.nav-mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
.navbar.scrolled .nav-mobile-toggle { color: var(--text); }
.nav-mobile-auth { display: none; }

/* ---- HERO ---- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0 80px; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 70%, #3730a3 100%);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(99,102,241,.25) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(139,92,246,.15) 0%, transparent 50%);
}
.hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 1;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(180deg, rgba(15,23,42,.75) 0%, rgba(15,23,42,.82) 50%, rgba(15,23,42,.95) 100%);
}
.hero-content { position: relative; z-index: 3; text-align: center; color: #fff; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    border-radius: 100px; font-size: .8rem; font-weight: 500; margin-bottom: 24px;
    backdrop-filter: blur(4px);
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.gradient-text {
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { font-size: 1.15rem; color: rgba(255,255,255,.7); max-width: 640px; margin: 0 auto 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; flex-wrap: wrap; }
.btn-hero-primary {
    padding: 14px 32px; border-radius: 12px; text-decoration: none;
    background: var(--gradient); color: #fff; font-weight: 600; font-size: 1rem;
    display: inline-flex; align-items: center; gap: 10px;
    transition: all .3s; box-shadow: 0 4px 20px rgba(99,102,241,.4);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,.5); }
.btn-hero-secondary {
    padding: 14px 32px; border-radius: 12px; text-decoration: none;
    background: rgba(255,255,255,.1); color: #fff; font-weight: 500; font-size: 1rem;
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid rgba(255,255,255,.2); transition: all .3s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.2); }
.hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 700px; margin: 0 auto;
}
.hero-stat { text-align: center; }
.stat-number { font-size: 1.75rem; font-weight: 800; margin-bottom: 4px; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .5px; }

/* ---- LOGOS TRUST BAR ---- */
.logos-section {
    padding: 44px 0;
    background: #07091a;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
    overflow: hidden;
}
.logos-title {
    text-align: center;
    font-size: .68rem;
    color: rgba(255,255,255,.3);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 28px;
    padding: 0 24px;
}
.logos-track-wrapper {
    position: relative;
    overflow: hidden;
}
.logos-track-wrapper::before,
.logos-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.logos-track-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #07091a, transparent);
}
.logos-track-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #07091a, transparent);
}
.logos-track {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    animation: logoScroll 34s linear infinite;
    padding: 4px 6px;
}
.logos-track:hover { animation-play-state: paused; }
@keyframes logoScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.logo-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.04);
    white-space: nowrap;
    transition: border-color .3s, background .3s;
    cursor: default;
    flex-shrink: 0;
}
.logo-pill:hover {
    border-color: var(--c);
    background: rgba(255,255,255,.08);
}
.logo-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 8px var(--c);
    flex-shrink: 0;
}
.logo-name {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,.72);
}

/* ---- FEATURES ---- */
.features { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-block; padding: 4px 14px; background: rgba(99,102,241,.1);
    color: var(--primary); border-radius: 100px; font-size: .8rem; font-weight: 600;
    margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border);
    background: #fff; transition: all .3s; position: relative;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card.featured { border-color: rgba(99,102,241,.3); background: linear-gradient(135deg, rgba(99,102,241,.03), rgba(139,92,246,.03)); }
.feature-icon {
    width: 50px; height: 50px; border-radius: 12px;
    background: var(--gradient); display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }
.feature-tag {
    display: inline-block; margin-top: 16px; padding: 3px 10px; border-radius: 100px;
    font-size: .7rem; font-weight: 600; background: rgba(99,102,241,.1); color: var(--primary);
}
.feature-tag.ia { background: rgba(139,92,246,.1); color: #7c3aed; }
.feature-tag.pro { background: rgba(245,158,11,.1); color: #d97706; }

/* ---- HOW IT WORKS ---- */
.how-it-works { padding: 100px 0; background: var(--bg-alt); }
.steps-grid { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.step {
    flex: 1; min-width: 220px; max-width: 300px; text-align: center; padding: 32px;
    background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.step-number {
    width: 48px; height: 48px; border-radius: 50%; background: var(--gradient);
    color: #fff; font-weight: 800; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: .85rem; color: var(--text-muted); }
.step-arrow { color: var(--primary-light); font-size: 1.5rem; }

/* ---- PRICING ---- */
.pricing { padding: 100px 0; }
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 48px; }
.toggle-label { font-size: .9rem; color: var(--text-light); font-weight: 500; cursor: pointer; transition: color .2s; }
.toggle-label.active { color: var(--text); font-weight: 600; }
.save-badge { display: inline-block; padding: 2px 8px; background: rgba(16,185,129,.1); color: var(--success); border-radius: 100px; font-size: .7rem; font-weight: 700; }
.toggle-switch { position: relative; width: 48px; height: 26px; cursor: pointer; }
.toggle-switch input { display: none; }
.toggle-slider {
    position: absolute; inset: 0; background: var(--border); border-radius: 100px;
    transition: .3s;
}
.toggle-slider::before {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px; border-radius: 50%; background: #fff;
    transition: .3s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pricing-card {
    padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border);
    background: #fff; position: relative; transition: all .3s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.popular {
    border-color: var(--primary); box-shadow: 0 8px 40px rgba(99,102,241,.15);
    transform: scale(1.04);
}
.pricing-card.popular:hover { transform: scale(1.04) translateY(-4px); }
.popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: 4px 16px; background: var(--gradient); color: #fff;
    border-radius: 100px; font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.pricing-card.enterprise { background: var(--bg-dark); color: #fff; border-color: transparent; }
.pricing-header { margin-bottom: 20px; }
.pricing-header h3 { font-size: 1.25rem; font-weight: 700; }
.pricing-desc { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }
.pricing-card.enterprise .pricing-desc { color: rgba(255,255,255,.5); }
.pricing-price { margin-bottom: 24px; }
.price-amount { font-size: 2.5rem; font-weight: 800; }
.price-period { font-size: .8rem; color: var(--text-light); }
.pricing-card.enterprise .price-period { color: rgba(255,255,255,.5); }

.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
    padding: 6px 0; font-size: .85rem; display: flex; align-items: center; gap: 8px;
}
.pricing-features li i { font-size: .75rem; color: var(--success); width: 16px; text-align: center; }
.pricing-features li.disabled { color: var(--text-light); }
.pricing-features li.disabled i { color: var(--text-light); }
.pricing-card.enterprise .pricing-features li i { color: #6ee7b7; }

.btn-pricing {
    display: block; text-align: center; padding: 12px 24px; border-radius: 10px;
    text-decoration: none; font-weight: 600; font-size: .9rem; transition: all .2s;
    border: 1px solid var(--border); color: var(--text); background: #fff;
}
.btn-pricing:hover { background: var(--bg-alt); }
.btn-pricing.primary {
    background: var(--gradient); color: #fff; border-color: transparent;
    box-shadow: 0 4px 15px rgba(99,102,241,.3);
}
.btn-pricing.primary:hover { box-shadow: 0 6px 20px rgba(99,102,241,.4); transform: translateY(-1px); }
.btn-pricing.enterprise {
    background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2);
}
.btn-pricing.enterprise:hover { background: rgba(255,255,255,.2); }

/* ---- TESTIMONIALS ---- */
.testimonials { padding: 100px 0; background: var(--bg-alt); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    padding: 32px; border-radius: var(--radius-lg); background: #fff;
    border: 1px solid var(--border); transition: all .3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-stars { margin-bottom: 16px; color: var(--accent); font-size: .85rem; display: flex; gap: 2px; }
.testimonial-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700;
    flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .9rem; }
.testimonial-author span { font-size: .75rem; color: var(--text-light); }

/* ---- FAQ ---- */
.faq { padding: 100px 0; }
.faq-grid { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; background: none; border: none; cursor: pointer;
    font-size: 1rem; font-weight: 600; color: var(--text); text-align: left;
    font-family: var(--font);
}
.faq-question i { transition: transform .3s; color: var(--text-light); font-size: .8rem; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding-bottom: 20px; font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* ---- CTA FINAL ---- */
.cta-final {
    padding: 100px 0; text-align: center;
    background: linear-gradient(135deg, #0f172a, #1e1b4b, #312e81);
    color: #fff;
}
.cta-final h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 12px; }
.cta-final p { color: rgba(255,255,255,.6); font-size: 1.05rem; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.footer { padding: 60px 0 32px; background: var(--bg-dark); color: rgba(255,255,255,.6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { margin-top: 16px; font-size: .85rem; line-height: 1.6; }
.footer-brand .nav-brand { color: #fff; }
.footer-links h4 { color: #fff; font-size: .85rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-links a { display: block; padding: 4px 0; font-size: .85rem; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: .8rem; }

/* ---- DATA SECTION ---- */
.data-section { padding: 100px 0; background: var(--bg-alt); }
.data-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.data-card {
    padding: 28px; border-radius: var(--radius-lg); background: #fff;
    border: 1px solid var(--border); transition: all .3s;
}
.data-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.data-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(99,102,241,.08); display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.1rem; margin-bottom: 16px;
}
.data-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.data-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* ---- DEMO MAP ---- */
.demo-map-section { padding: 100px 0; background: #fff; }
.demo-map-section .section-header { color: var(--text-dark); }
.demo-map-section .section-header h2 { color: var(--text-dark); }
.demo-map-section .section-header p { color: var(--text-muted); }
.demo-map-wrapper {
    display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start;
}
#demoMap {
    width: 100%; height: 520px; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
.demo-map-legend {
    background: #f8fafc; border: 1px solid var(--border);
    border-radius: 16px; padding: 24px;
}
.legend-title {
    font-size: .8rem; font-weight: 700; color: var(--text-light);
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px;
}
.legend-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 0;
    font-size: .9rem; color: var(--text-dark);
}
.legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.legend-count {
    margin-left: auto; font-size: .8rem; font-weight: 600;
    color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.legend-sep { height: 1px; background: var(--border); margin: 16px 0; }
.legend-note {
    font-size: .75rem; color: var(--text-light); line-height: 1.6;
    display: flex; align-items: flex-start; gap: 8px;
}
.legend-note i { margin-top: 2px; font-size: .7rem; }
.legend-cta {
    display: block; margin-top: 16px; padding: 10px 16px; border-radius: 10px;
    background: var(--gradient); color: #fff; text-decoration: none;
    font-size: .85rem; font-weight: 600; text-align: center;
    transition: all .2s; box-shadow: 0 4px 15px rgba(99,102,241,.3);
}
.legend-cta:hover { box-shadow: 0 6px 20px rgba(99,102,241,.4); transform: translateY(-1px); }
.demo-popup .leaflet-popup-content-wrapper {
    background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.demo-popup .leaflet-popup-tip { background: #fff; }

/* ---- CERTIFICADAS BANNER ---- */
.certificadas-banner {
    margin-top: 24px; background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #bbf7d0; border-radius: 16px; padding: 32px; text-align: center;
}
.certificadas-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #dcfce7; padding: 6px 16px; border-radius: 20px; margin-bottom: 16px;
}
.certificadas-badge i { color: #16a34a; }
.certificadas-badge span { font-size: 13px; font-weight: 700; color: #166534; }
.certificadas-banner h3 { font-size: 20px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; }
.certificadas-banner p { color: #4b5563; max-width: 600px; margin: 0 auto 20px; font-size: 14px; }
.certificadas-tipos { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.certificadas-tipos span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #166534; }

/* ---- BOLETINES BANNER ---- */
.boletines-banner {
    margin-top: 48px; background: linear-gradient(135deg, #eff6ff, #eef2ff);
    border: 1px solid #bfdbfe; border-radius: 16px; padding: 32px; text-align: center;
}
.boletines-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #dbeafe; padding: 6px 16px; border-radius: 20px; margin-bottom: 16px;
}
.boletines-badge i { color: #2563eb; }
.boletines-badge span { font-size: 13px; font-weight: 700; color: #1e40af; }
.boletines-banner h3 { font-size: 20px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; }
.boletines-banner p { color: #4b5563; max-width: 600px; margin: 0 auto 20px; font-size: 14px; }
.boletines-tipos { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.boletines-tipos span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #1e40af; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.enterprise { grid-column: 1 / -1; max-width: 400px; margin: 0 auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .data-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-map-wrapper { grid-template-columns: 1fr; }
    .demo-map-legend { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .legend-title { grid-column: 1 / -1; }
    .legend-sep { grid-column: 1 / -1; }
    .legend-note { grid-column: 1 / -1; }
    .legend-cta { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: rgba(15,23,42,.98); flex-direction: column; padding: 24px; gap: 16px; border-radius: 0 0 12px 12px; }
    .nav-links.show { display: flex; }
    .nav-links a { color: rgba(255,255,255,.8) !important; }
    .nav-actions { display: none; }
    .nav-mobile-toggle { display: block; }
    /* Mobile auth buttons inside hamburger menu */
    .nav-mobile-auth {
        display: flex; flex-direction: column; gap: 10px;
        margin-top: 12px; padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,.15);
    }
    .nav-mobile-auth a {
        text-align: center; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: .9rem; text-decoration: none;
    }
    .nav-mobile-auth .btn-nav-secondary { background: rgba(255,255,255,.1); color: #fff !important; border: 1px solid rgba(255,255,255,.2); }
    .nav-mobile-auth .btn-nav-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff !important; }
    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero h1 { font-size: 1.85rem; }
    .hero-desc { font-size: .95rem; margin-bottom: 24px; }
    .hero-actions { gap: 12px; }
    .btn-hero-primary, .btn-hero-secondary { padding: 12px 24px; font-size: .9rem; width: 100%; justify-content: center; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-number { font-size: 1.4rem; }
    .stat-label { font-size: .7rem; }
    .logos-title { font-size: .6rem; letter-spacing: 2px; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 1.5rem; }
    .section-header p { font-size: .9rem; }
    .features, .pricing, .testimonials, .faq, .how-it-works, .data-section, .demo-map-section { padding: 60px 0; }
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 24px; }
    .data-grid { grid-template-columns: 1fr; }
    .data-card { padding: 24px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .pricing-card { padding: 28px; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-4px); }
    .pricing-card.enterprise { max-width: none; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card { padding: 24px; }
    .steps-grid { flex-direction: column; }
    .step { min-width: auto; max-width: none; width: 100%; padding: 24px; }
    .step-arrow { transform: rotate(90deg); }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .certificadas-banner, .boletines-banner { padding: 24px; }
    .certificadas-tipos, .boletines-tipos { flex-direction: column; align-items: center; gap: 12px; }
    #demoMap { height: 320px; }
    .demo-map-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
    .legend-title, .legend-sep, .legend-note, .legend-cta { width: 100%; }
    .legend-sep { margin: 8px 0; }
    .faq-question { font-size: .9rem; padding: 16px 0; }
    .cta-final { padding: 60px 0; }
    .cta-final h2 { font-size: 1.5rem; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn-hero-primary, .cta-actions .btn-hero-secondary { width: 100%; max-width: 320px; justify-content: center; }
    .footer { padding: 40px 0 24px; }
}
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero { padding: 90px 0 48px; }
    .hero h1 { font-size: 1.55rem; }
    .hero-desc { font-size: .85rem; line-height: 1.6; }
    .hero-stats { gap: 12px; }
    .stat-number { font-size: 1.2rem; }
    .section-header h2 { font-size: 1.3rem; }
    .pricing-toggle { gap: 8px; }
    .toggle-label { font-size: .8rem; }
    .price-amount { font-size: 2rem; }
    .pricing-features li { font-size: .8rem; }
    .btn-pricing { padding: 11px 20px; font-size: .85rem; }
    .certificadas-banner h3, .boletines-banner h3 { font-size: 17px; }
    .certificadas-banner p, .boletines-banner p { font-size: 13px; }
    .testimonial-card p { font-size: .85rem; }
    .faq-question span { font-size: .85rem; }
    .footer-brand p { font-size: .8rem; }
    .footer-links a { font-size: .8rem; }
    .logos-section { padding: 32px 0; }
    #demoMap { height: 260px; }
}
