﻿:root {
    --bg: #0b0f1a;
    --section-light: #f8fafc;
    --surface: #1f2937;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --gold: #ffd700;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text-white);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVEGACIÓN --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1f2937;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.logo-icon {
    background: var(--primary);
    color: white;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

    .nav-links a {
        text-decoration: none;
        color: var(--text-white);
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        transition: 0.3s;
    }

        .nav-links a:hover {
            color: var(--primary);
        }

.btn-login, .btn-login-mobile {
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
}

    .btn-login:hover {
        background: var(--primary);
        color: white !important;
    }

/* --- RESPONSIVE NAV (Hamburguesa Izquierda, Logo Centro) --- */
.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: white;
    cursor: pointer;
    padding: 10px;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        order: 1;
        width: 50px;
    }

    .logo {
        order: 2;
        margin: 0 auto;
        font-size: 1.5rem;
    }

    nav::after {
        content: "";
        order: 3;
        width: 50px;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #0b0f1a;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        border-bottom: 0px solid var(--primary);
    }

        .nav-links.active {
            max-height: 500px;
            border-bottom: 2px solid var(--primary);
            padding-bottom: 20px;
        }

        .nav-links li {
            width: 100%;
            text-align: center;
        }

            .nav-links li a {
                display: block;
                padding: 18px;
                border-bottom: 1px solid rgba(255,255,255,0.05);
            }

    .btn-login-mobile {
        background: var(--primary) !important;
        color: white !important;
        margin: 20px auto;
        width: 80%;
        border: none;
        padding: 12px !important;
    }
}

/* --- SLIDER HERO (CINEMÁTICO: FADE + ZOOM) --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    background: #000;
}

.slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeZoomLoop 18s infinite;
}

    .slide::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 1;
    }

    .slide:nth-child(1) {
        animation-delay: 0s;
    }

    .slide:nth-child(2) {
        animation-delay: 6s;
    }

    .slide:nth-child(3) {
        animation-delay: 12s;
    }

@keyframes fadeZoomLoop {
    0% {
        opacity: 0;
        transform: scale(1.15);
    }

    10% {
        opacity: 1;
    }

    33.33% {
        opacity: 1;
    }

    43.33% {
        opacity: 0;
        transform: scale(1);
    }

    100% {
        opacity: 0;
    }
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
}

    .hero-content h1 {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: clamp(2.5rem, 8vw, 5.5rem);
        line-height: 0.9;
        margin-bottom: 1rem;
    }

        .hero-content h1 span {
            color: var(--primary);
        }

/* --- SECCIONES FUNCIONES --- */
.features-section {
    background: var(--section-light);
    color: #1e293b;
    padding: 80px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

    .section-title h2 {
        font-family: 'Barlow Condensed';
        font-size: clamp(2rem, 5vw, 3rem);
        text-transform: uppercase;
    }

    .section-title .line {
        width: 80px;
        height: 5px;
        background: var(--primary);
        margin: 15px auto;
    }

.feature-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

    .feature-row:nth-child(even) {
        flex-direction: row-reverse;
    }

.feature-text {
    flex: 1;
    min-width: 300px;
}

    .feature-text h3 {
        font-size: 2rem;
        font-family: 'Barlow Condensed';
        color: var(--primary);
        margin-bottom: 15px;
    }

    .feature-text ul {
        list-style: none;
    }

        .feature-text ul li {
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 12px;
            color: #475569;
            font-weight: 500;
        }

            .feature-text ul li i {
                color: var(--success);
            }

.feature-image {
    flex: 1.4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border: 1px solid #cbd5e1;
    width: 100%;
    min-width: 280px;
}

    .feature-image img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

@media (max-width: 992px) {
    .feature-row {
        flex-direction: column !important;
        text-align: center;
    }

    .feature-image {
        min-width: 100%;
    }

    .feature-text ul li {
        justify-content: center;
    }
}

/* --- PLANES --- */
.pricing-section {
    padding: 80px 5%;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    align-items: stretch;
}

.price-card {
    background: var(--surface);
    padding: 30px 15px;
    border-radius: 15px;
    border: 1px solid #374151;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

    .price-card:hover {
        border-color: var(--primary);
        transform: translateY(-5px);
    }

    /* PLAN PRO DORADO */
    .price-card.featured {
        position: relative;
        border: 2px solid var(--gold) !important;
        transform: scale(1.02);
        z-index: 5;
    }

.pro-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    color: #1a1a1a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.3);
}

    .pro-badge i {
        color: #1a1a1a;
    }

.price-card.featured h4 {
    color: var(--gold);
}

.price-card h4 {
    font-family: 'Barlow Condensed';
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.price-card .capacity {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
}

.price-card .price {
    font-size: 2.2rem;
    font-family: 'Barlow Condensed';
    font-weight: 800;
    margin-bottom: 15px;
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
    flex-grow: 1;
}

    .price-card ul li {
        font-size: 0.8rem;
        color: var(--text-muted);
        margin-bottom: 8px;
        display: flex;
        gap: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        padding-bottom: 4px;
    }

        .price-card ul li i {
            color: var(--primary);
            margin-top: 3px;
        }

.btn-plan {
    display: block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    font-size: 0.85rem;
    transition: 0.3s;
}

/* --- CONTACTO --- */
.contact-section {
    padding: 80px 5%;
    background: #080d14;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #1f2937;
    background: #111827;
    color: white;
    outline: none;
    font-family: inherit;
}

.btn-send {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

/* --- FOOTER ALINEADO --- */
footer {
    background: #05080f;
    padding: 60px 5%;
    text-align: center;
    border-top: 1px solid #1f2937;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

    .footer-links a {
        color: white;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
        transition: 0.3s;
    }

        .footer-links a:hover {
            color: var(--primary);
        }

.btn-cta {
    display: inline-block;
    padding: 15px 35px;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
    animation: pulse 2s infinite;
    font-size: 0.9rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255,255,255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255,255,255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255,255,255, 0);
    }
}

/* --- MEDIA QUERIES FINALES --- */
@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 650px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        height: 60vh;
    }

    .hero-content {
        margin-top: 35px;
    }

    .pro-badge {
        font-size: 0.65rem;
        padding: 4px 12px;
    }

    .footer-links {
        gap: 15px;
    }
}
