:root {
    --primary: #7f54b3;
    --primary-dark: #674399;
    --primary-light: #f3e8ff;
    --secondary: #0e7490;
    --secondary-light: #ecfeff;
    --accent: #00a32a;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;

    --gray-50: #f6f8fa;
    --gray-100: #eaeef2;
    --gray-200: #d0d7de;
    --gray-300: #afb8c1;
    --gray-400: #8c959f;
    --gray-500: #6e7781;
    --gray-600: #57606a;
    --gray-700: #424a53;
    --gray-800: #32383f;
    --gray-900: #24292f;

    --white: #ffffff;
    --black: #0d1117;

    --gradient-primary: linear-gradient(135deg, #7f54b3 0%, #0e7490 100%);
    --gradient-hero: linear-gradient(135deg, #7f54b3 0%, #0e7490 100%);
    --gradient-text: linear-gradient(135deg, #7f54b3 0%, #0e7490 100%);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--gray-800); line-height: 1.6; background: var(--white); -webkit-font-smoothing: antialiased; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: var(--transition); font-size: 0.95rem; }
.btn-primary { background: var(--gradient-primary); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--gray-900); color: var(--white); }
.btn-secondary:hover { background: var(--gray-700); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-link { color: var(--primary); background: transparent; padding: 8px 0; }
.text-muted { color: var(--gray-500); }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gray-200); transition: var(--transition); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gray-900); }
.logo-icon { font-size: 1.6rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-weight: 800; font-size: 1.1rem; color: var(--gray-900); }
.logo-sub { font-size: 0.7rem; color: var(--gray-500); font-weight: 500; }
.nav-menu { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-menu a { text-decoration: none; color: var(--gray-700); font-weight: 500; font-size: 0.9rem; transition: var(--transition); }
.nav-menu a:hover { color: var(--primary); }
.nav-cta a { padding: 10px 18px; border-radius: var(--radius-md); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-800); transition: var(--transition); }

/* Language selector */
.lang-selector { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; background: var(--gray-100); border: none; padding: 8px 12px; border-radius: var(--radius-md); cursor: pointer; font-weight: 500; font-size: 0.85rem; }
.lang-dropdown { position: absolute; top: 100%; right: 0; margin-top: 8px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); min-width: 150px; display: none; overflow: hidden; z-index: 1001; }
.lang-dropdown.active { display: block; }
.lang-dropdown a { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; font-size: 0.9rem; color: var(--gray-800); text-decoration: none; }
.lang-dropdown a:hover { background: var(--gray-50); }
.lang-dropdown a[aria-current="true"] { background: var(--primary-light); font-weight: 700; }

/* Hero */
.hero { position: relative; padding: 140px 0 100px; overflow: hidden; background: linear-gradient(135deg, #faf8ff 0%, #ecfeff 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.gradient-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.orb-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; right: -100px; }
.orb-2 { width: 300px; height: 300px; background: var(--secondary); bottom: -50px; left: -50px; opacity: 0.3; }
.orb-3 { width: 200px; height: 200px; background: var(--accent); top: 50%; left: 30%; opacity: 0.15; }
.hero .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.badge-new { background: var(--secondary); color: var(--white); padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.badge-text { color: var(--gray-600); font-size: 0.85rem; }
.hero-title { font-size: 2.9rem; font-weight: 800; line-height: 1.1; margin-bottom: 24px; color: var(--gray-900); }
.gradient-text { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.15rem; color: var(--gray-600); margin-bottom: 32px; max-width: 560px; }
.hero-stats { display: flex; gap: 32px; margin-bottom: 32px; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--gray-500); }
.hero-cta { display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-cta .btn { flex-direction: column; align-items: flex-start; }
.hero-cta .btn small { font-size: 0.75rem; font-weight: 400; opacity: 0.9; }
.hero-cta .btn-outline { align-items: center; flex-direction: row; }
.hero-trust { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trust-text { font-size: 0.85rem; color: var(--gray-500); }
.trust-logos { display: flex; gap: 8px; flex-wrap: wrap; }
.trust-logo { background: var(--white); border: 1px solid var(--gray-200); padding: 4px 10px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; color: var(--gray-600); }

/* Invoice preview (hero visual) */
.invoice-preview { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); overflow: hidden; border: 1px solid var(--gray-200); }
.preview-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); }
.preview-dots span:nth-child(1) { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #febc2e; }
.preview-dots span:nth-child(3) { background: #28c840; }
.preview-title { font-size: 0.85rem; font-weight: 600; color: var(--gray-600); }
.preview-content { padding: 24px; }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.invoice-head strong { display: block; font-size: 0.95rem; color: var(--gray-900); }
.invoice-head span { font-size: 0.78rem; color: var(--gray-500); }
.invoice-badge { background: #dcfce7; color: #166534; font-size: 0.65rem; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-full); text-transform: uppercase; }
.invoice-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.invoice-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--gray-700); padding: 8px 10px; background: var(--gray-50); border-radius: var(--radius-sm); border: 1px solid var(--gray-100); }
.invoice-row.total { background: var(--primary-light); border-color: var(--primary-light); font-weight: 700; color: var(--gray-900); }
.invoice-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.72rem; color: var(--gray-500); flex-wrap: wrap; }
.invoice-hash { font-family: monospace; background: var(--gray-100); padding: 4px 8px; border-radius: var(--radius-sm); }

/* Sections */
section { padding: 90px 0; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.section-badge { display: inline-block; background: var(--primary-light); color: var(--primary-dark); padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.section-badge.badge-secondary { background: var(--secondary-light); color: var(--secondary); }
.section-title { font-size: 2.4rem; font-weight: 800; color: var(--gray-900); margin-bottom: 16px; line-height: 1.2; }
.section-subtitle { font-size: 1.1rem; color: var(--gray-600); }
.highlight { color: var(--primary); }

/* Pillars */
.pillars { background: var(--gray-50); }
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.pillar-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-md); }
.pillar-card h3 { font-size: 1.4rem; color: var(--gray-900); margin-bottom: 6px; }
.pillar-tag { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--secondary); margin-bottom: 18px; display: block; }
.pillar-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.pillar-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--gray-700); }
.pillar-list .pillar-icon { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); border-radius: var(--radius-md); font-size: 1.1rem; }
.pillar-list strong { color: var(--gray-900); }

/* Comparison table */
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); max-width: 900px; margin: 0 auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--white); min-width: 620px; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--gray-100); }
.compare-table thead th { background: var(--gray-900); color: var(--white); font-size: 0.95rem; }
.compare-table thead th:first-child { border-top-left-radius: 0; }
.compare-table thead .col-free { background: var(--gray-700); }
.compare-table thead .col-pro { background: var(--primary); }
.compare-table tbody tr:nth-child(even) { background: var(--gray-50); }
.compare-table .feat-group td { background: var(--primary-light); color: var(--primary-dark); font-weight: 800; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; }
.compare-table .yes { color: var(--accent); font-weight: 800; }
.compare-table .no { color: var(--gray-300); font-weight: 700; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 420px)); gap: 32px; justify-content: center; align-items: stretch; }
.pricing-card { position: relative; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 36px; transition: var(--transition); display: flex; flex-direction: column; }
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-popular { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--white); padding: 6px 16px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 800; white-space: nowrap; }
.pricing-header { text-align: center; margin-bottom: 24px; }
.pricing-header h3 { font-size: 1.4rem; margin-bottom: 8px; }
.pricing-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 8px; }
.pricing-price .price { font-size: 2.6rem; font-weight: 800; color: var(--gray-900); }
.pricing-price .period { color: var(--gray-500); font-size: 0.9rem; }
.pricing-desc { color: var(--gray-600); font-size: 0.9rem; }
.price-note { text-align: center; font-size: 0.75rem; color: var(--gray-400); margin-top: 6px; }
.pricing-features { list-style: none; margin-bottom: 28px; flex: 1; }
.pricing-features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.9rem; color: var(--gray-700); }
.pricing-features .check { color: var(--accent); font-weight: 700; }
.pricing-features .cross { color: var(--gray-400); }
.pricing-guarantee { text-align: center; margin-top: 30px; color: var(--gray-600); }

/* Cobertura europea */
.coverage { background: var(--gray-50); }
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto; align-items: stretch; }
.coverage-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.coverage-card h3 { font-size: 1.1rem; color: var(--gray-900); margin-bottom: 16px; }
.coverage-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; flex: 1; }
.coverage-card li { font-size: 0.92rem; color: var(--gray-700); padding-left: 22px; position: relative; }
.coverage-now li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.coverage-next li::before { content: "→"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.coverage-next .btn { align-self: flex-start; }

/* Requirements */
.requirements { background: var(--gray-50); }
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.req-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.req-card .req-icon { font-size: 1.8rem; margin-bottom: 10px; }
.req-card strong { display: block; color: var(--gray-900); margin-bottom: 4px; }
.req-card span { font-size: 0.85rem; color: var(--gray-500); }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.trust-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 28px; }
.trust-card .trust-icon { font-size: 1.8rem; margin-bottom: 14px; }
.trust-card h3 { font-size: 1.05rem; color: var(--gray-900); margin-bottom: 8px; }
.trust-card p { font-size: 0.9rem; color: var(--gray-600); }
.trust-card a { color: var(--primary); font-weight: 600; }

/* Activation steps */
.activation { background: var(--gray-50); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto 32px; counter-reset: step; }
.step-card { position: relative; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 32px 24px 24px; }
.step-number { position: absolute; top: -18px; left: 24px; width: 36px; height: 36px; border-radius: 50%; background: var(--gradient-primary); color: var(--white); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step-card h3 { font-size: 1.05rem; color: var(--gray-900); margin-bottom: 8px; margin-top: 8px; }
.step-card p { font-size: 0.88rem; color: var(--gray-600); }
.step-card code { background: var(--gray-100); padding: 2px 6px; border-radius: var(--radius-sm); font-size: 0.82rem; }
.envato-note { max-width: 760px; margin: 0 auto; text-align: center; font-size: 0.9rem; color: var(--gray-600); background: var(--white); border: 1px dashed var(--gray-300); border-radius: var(--radius-lg); padding: 18px 24px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; background: none; border: none; text-align: left; font-size: 1rem; font-weight: 600; color: var(--gray-900); cursor: pointer; }
.faq-icon { font-size: 1.3rem; color: var(--primary); transition: var(--transition); flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 400px; }
.faq-answer p { padding: 0 24px 20px; color: var(--gray-600); }

/* CTA */
.cta-section { padding: 60px 0; }
.cta-box { background: var(--gradient-hero); border-radius: var(--radius-xl); padding: 60px; text-align: center; color: var(--white); }
.cta-box h2 { font-size: 2.2rem; margin-bottom: 16px; }
.cta-subtitle { font-size: 1.1rem; opacity: 0.95; margin-bottom: 28px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.cta-box .btn-outline { border-color: var(--white); color: var(--white); }
.cta-box .btn-outline:hover { background: rgba(255,255,255,0.15); }
.cta-note { font-size: 0.85rem; opacity: 0.85; }

/* Footer */
.footer { background: var(--gray-900); color: var(--gray-300); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-main { color: var(--white); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-links h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--gray-400); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--gray-800); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: var(--gray-500); }
.footer-bottom a { color: var(--gray-400); }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--gray-900); color: var(--white); padding: 16px 24px; z-index: 100000; transform: translateY(100%); transition: transform 0.4s ease; }
.cookie-banner.active { transform: translateY(0); }
.cookie-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-content p { font-size: 0.9rem; }
.cookie-content a { color: var(--primary-light); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn-outline { border-color: var(--white); color: var(--white); }
.cookie-banner .btn-outline:hover { background: rgba(255,255,255,0.15); }

/* Cookie preferences modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); padding: 20px; }
.cookie-modal.show { opacity: 1; visibility: visible; }
.cookie-modal-content { background: var(--white); color: var(--gray-800); border-radius: var(--radius-xl); padding: 32px; width: 100%; max-width: 480px; position: relative; box-shadow: var(--shadow-xl); max-height: 90vh; overflow-y: auto; }
.cookie-modal-content h2 { font-size: 1.3rem; color: var(--gray-900); margin-bottom: 8px; }
.cookie-modal-content > p { font-size: 0.88rem; color: var(--gray-600); margin-bottom: 20px; }
.cookie-pref-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.cookie-pref-row strong { display: block; font-size: 0.95rem; color: var(--gray-900); }
.cookie-pref-row small { font-size: 0.78rem; color: var(--gray-500); }
.cookie-modal-buttons { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.cookie-modal-buttons .btn { flex: 1; min-width: 120px; }

/* Legal pages */
.legal-page { max-width: 900px; margin: 0 auto; padding: 120px 24px 80px; }
.legal-page h1 { margin-bottom: 16px; color: var(--gray-900); }
.legal-page h2 { margin-top: 40px; margin-bottom: 16px; color: var(--primary); }
.legal-page p, .legal-page li { color: var(--gray-600); line-height: 1.7; }
.legal-page ul, .legal-page ol { margin-left: 24px; margin-bottom: 16px; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--primary); font-weight: 600; text-decoration: none; }

/* Thanks page */
.thanks-page { max-width: 760px; margin: 0 auto; padding: 130px 24px 80px; }
.thanks-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 48px; box-shadow: var(--shadow-xl); text-align: center; }
.thanks-icon { font-size: 4rem; margin-bottom: 20px; }
.thanks-card h1 { margin-bottom: 16px; color: var(--gray-900); }
.thanks-card > p { color: var(--gray-600); margin-bottom: 24px; }
.next-steps { text-align: left; background: var(--gray-50); padding: 24px; border-radius: var(--radius-lg); margin: 24px 0; border: 1px solid var(--gray-200); }
.next-steps li { margin-bottom: 10px; color: var(--gray-700); }
.next-steps code { background: var(--gray-100); padding: 2px 6px; border-radius: var(--radius-sm); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-visual { order: -1; }
    .pillars-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu { position: fixed; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 24px; gap: 16px; box-shadow: var(--shadow-lg); transform: translateY(-150%); transition: transform 0.3s ease; align-items: flex-start; }
    .nav-menu.active { transform: translateY(0); }
    .nav-cta { margin-top: 10px; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 40px 24px; }
    .cta-box h2 { font-size: 1.6rem; }
    .cookie-content { flex-direction: column; text-align: center; }
    .thanks-card { padding: 32px 24px; }
    .coverage-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Iteración diseño — banderas SVG, orbes flotantes, tarjeta
   flotante, scroll reveal, hovers y CTA shine
   ============================================================ */

/* Banderas SVG del selector de idioma */
.flag-svg { display: block; width: 18px; height: 13px; border-radius: 3px; box-shadow: 0 1px 2px rgba(13,17,23,0.25); flex-shrink: 0; }
.lang-btn .flag-svg { width: 20px; height: 14px; }

/* Orbes flotantes del hero (duraciones desfasadas) */
.gradient-orb { will-change: transform; }
.orb-1 { animation: orb-float 14s ease-in-out infinite; }
.orb-2 { animation: orb-float 18s ease-in-out -6s infinite; }
.orb-3 { animation: orb-float 11s ease-in-out -3s infinite; }
@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, -30px) scale(1.08); }
}

/* Tarjeta flotante "factura" del hero (solo desktop; la levitación
   va en el wrapper y el tilt 3D en la tarjeta para no chocar) */
@media (min-width: 1024px) {
    .hero-visual { animation: card-levitate 7s ease-in-out infinite; will-change: transform; }
    .invoice-preview {
        transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
        transition: transform 0.18s ease-out;
    }
}
@keyframes card-levitate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* QR decorativo de la factura */
.invoice-qr { display: inline-flex; align-items: center; }
.invoice-qr svg { display: block; border-radius: 3px; box-shadow: var(--shadow-sm); }

/* Scroll reveal (las clases las añade main.js; el hero no se anima) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.revealed { opacity: 1; transform: none; }

/* Hover en cards: elevación + borde con degradado de la marca */
.pillar-card, .trust-card, .pricing-card, .coverage-card, .req-card, .step-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pillar-card:hover, .trust-card:hover, .coverage-card:hover, .req-card:hover, .step-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box, var(--gradient-primary) border-box;
    box-shadow: 0 16px 34px -12px rgba(127, 84, 179, 0.35);
}
.pricing-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box, var(--gradient-primary) border-box;
    box-shadow: 0 20px 40px -14px rgba(127, 84, 179, 0.4);
}

/* Brillo animado en el CTA principal del hero */
.hero-cta .btn-primary { position: relative; overflow: hidden; }
.hero-cta .btn-primary::after {
    content: "";
    position: absolute;
    top: -50%;
    bottom: -50%;
    left: 0;
    width: 40%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-140%) skewX(-18deg);
    animation: cta-shine 2.8s ease-in-out infinite;
    pointer-events: none;
}
.hero-cta .btn-primary:hover::after { animation-play-state: paused; }
@keyframes cta-shine {
    0% { transform: translateX(-140%) skewX(-18deg); }
    55%, 100% { transform: translateX(360%) skewX(-18deg); }
}

/* Accesibilidad: desactivar todas las animaciones nuevas si el
   usuario pide movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .gradient-orb, .hero-visual, .hero-cta .btn-primary::after { animation: none !important; }
    .hero-cta .btn-primary::after { display: none; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .invoice-preview { transform: none !important; transition: none !important; }
}
