/* ===============================================
   AI PRIME MÉXICO — Styles
   Paleta: #0A2463 (azul profundo), #6C15E0 (violeta), #1E88E5 (azul medio)
   =============================================== */

:root {
    --deep-blue: #0A2463;
    --violet: #6C15E0;
    --violet-light: #8B3FFF;
    --mid-blue: #1E88E5;
    --accent-gradient: linear-gradient(135deg, var(--violet), var(--mid-blue));
    --white: #FFFFFF;
    --bg-light: #F5F5F7;
    --bg-dark: #0A0A1A;
    --dark-text: #1A1A2E;
    --text-muted: #6B7280;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== RESET ====== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}
.navbar.scrolled { background: rgba(255,255,255,0.95); box-shadow: 0 1px 20px rgba(0,0,0,0.08); }
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.nav-logo-ai { font-size: 22px; color: var(--violet); }
.nav-logo-prime { font-size: 22px; color: var(--deep-blue); }
.nav-logo-mx { font-size: 11px; color: var(--text-muted); letter-spacing: 2px; margin-left: 4px; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    transition: var(--transition);
}
.nav-link:hover { color: var(--deep-blue); background: rgba(10,36,99,0.05); }
.nav-link.active { color: var(--violet); }
.nav-cta-btn {
    background: var(--accent-gradient);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
}
.nav-cta-btn:hover { box-shadow: 0 4px 15px rgba(108,21,224,0.3); transform: translateY(-1px); background: var(--accent-gradient) !important; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ====== HERO ====== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0A2463 0%, #1a1a3e 40%, #0f0f2e 100%);
    color: var(--white);
    overflow: hidden;
    padding: 120px 0 80px;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(108,21,224,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108,21,224,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.hero-orb-1 { width: 500px; height: 500px; background: rgba(108,21,224,0.12); top: -200px; right: -150px; }
.hero-orb-2 { width: 400px; height: 400px; background: rgba(30,136,229,0.08); bottom: -100px; left: -100px; }
.hero-orb-3 { width: 300px; height: 300px; background: rgba(108,21,224,0.06); top: 50%; left: 50%; transform: translate(-50%,-50%); }

.hero-content { position: relative; z-index: 2; text-align: center; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108,21,224,0.15);
    border: 1px solid rgba(108,21,224,0.25);
    color: #b388ff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}
.badge-dot {
    width: 6px; height: 6px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(135deg, #6C15E0, #1E88E5, #6C15E0);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--accent-gradient);
    color: var(--white);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,21,224,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
    border-color: var(--violet);
    background: rgba(108,21,224,0.1);
}
.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ====== STATS ====== */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
}
.stat-plus, .stat-percent {
    font-size: 24px;
    font-weight: 700;
    color: var(--violet);
}
.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

/* ====== SECTIONS ====== */
.section {
    padding: 100px 0;
}
.section-dark {
    background: var(--bg-dark);
    color: var(--white);
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-tag {
    display: inline-block;
    background: rgba(108,21,224,0.1);
    color: var(--violet);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.section-dark .section-header h2 { color: var(--white); }
.section-header .section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}
.section-dark .section-desc { color: rgba(255,255,255,0.5); }

/* ====== SERVICES GRID ====== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(108,21,224,0.1);
}
.card-icon {
    width: 52px;
    height: 52px;
    background: var(--icon-bg);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 10px;
}
.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}
.card-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.card-features li {
    font-size: 13px;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}
.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--violet);
    font-weight: 700;
}

/* ====== PROCESS ====== */
.process-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.process-step {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    width: 220px;
    transition: var(--transition);
}
.process-step:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-4px);
}
.step-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}
.process-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}
.process-step p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}
.process-arrow {
    font-size: 28px;
    color: var(--violet);
    opacity: 0.5;
}

/* ====== ABOUT ====== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.about-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}
.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.about-icon {
    font-size: 40px;
    margin-bottom: 16px;
}
.about-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 10px;
}
.about-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ====== FAQ ====== */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}
.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}
.faq-answer p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.7;
}

/* ====== CTA ====== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0A2463, #1a1a3e);
}
.cta-box {
    position: relative;
    text-align: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 60px 40px;
    overflow: hidden;
}
.cta-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108,21,224,0.15), transparent);
    top: -100px;
    right: -100px;
    pointer-events: none;
}
.cta-box h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
    letter-spacing: -1px;
}
.cta-box p {
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 30px;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====== FOOTER ====== */
.footer {
    background: #050510;
    color: rgba(255,255,255,0.6);
    padding: 60px 0 30px;
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; }

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}
.footer-col h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--violet-light); }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}
.footer-made { color: var(--violet); opacity: 0.6; }

/* ====== ANIMATIONS ====== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}
[data-aos="zoom-in"] {
    transform: scale(0.95);
}
[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}
[data-aos="fade-down"] {
    transform: translateY(-15px);
}
[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="500"] { transition-delay: 0.5s; }

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-link { width: 100%; text-align: center; padding: 14px; }
    .nav-cta-btn { text-align: center; }

    .hero { padding: 100px 0 60px; }
    .hero h1 { font-size: 36px; }
    .hero-stats { gap: 20px; }
    .stat-divider { display: none; }
    .stat-number { font-size: 28px; }

    .services-grid { grid-template-columns: 1fr; }
    .process-grid { flex-direction: column; }
    .process-step { width: 100%; max-width: 300px; }
    .process-arrow { transform: rotate(90deg); }

    .cta-box { padding: 40px 20px; }
    .footer-links { gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .cta-actions { flex-direction: column; align-items: center; }
}

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }