:root {
    --primary: #6366f1;
    --primary-alt: #4f46e5;
    --accent: #ff00c1;
    --dark-bg: #02040a;
    --dark-alt: #0a0f1e;
    --glass: rgba(10, 15, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* BACKGROUND VISUALS */
.bg-visuals {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05), transparent 40%),
        linear-gradient(to bottom, #02040a, #050a18);
    z-index: -2;
}

/* NAVBAR: PROFESSIONAL TOP BAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    background: rgba(2, 4, 10, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo-mega img {
    height: 38px;
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    color: var(--text-main);
}

.glow-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    top: -200px;
    right: -100px;
    background: var(--primary);
    animation: float 15s infinite alternate;
}

.orb-2 {
    bottom: -200px;
    left: -100px;
    background: #8b5cf6;
    animation: float 18s infinite alternate-reverse;
}

@keyframes float {
    to {
        transform: translate(50px, 50px) scale(1.1);
        opacity: 0.3;
    }
}

/* NAVBAR: PROFESSIONAL TOP BAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 8%;
    background: rgba(2, 4, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo-mega {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-mega img {
    height: 42px;
    transition: transform 0.3s ease;
}

.logo-mega:hover img {
    transform: scale(1.05);
}

.logo-badge {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 900;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* HERO SECTION: RELAXED PROFESSIONALISM */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 60px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    /* Reducido para balance */
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 2rem;
    letter-spacing: -3px;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    background: linear-gradient(to right, #00d2ff, #ff00c1);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-logo-container {
    margin: 1.5rem 0 2.5rem;
}

.hero-logo {
    max-width: 250px;
    /* Agrandado como se pidió */
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.2));
}

.slogan {
    font-family: 'Outfit', sans-serif;
    font-size: 2.0rem;
    /* Moderna y grande */
    font-weight: 700;
    max-width: 800px;
    margin-bottom: 2rem;
    color: #fff;
    line-height: 1.1;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 650px;
    margin-bottom: 3rem;
}

/* BUTTONS */
.btn {
    padding: 12px 40px;
    border-radius: 16px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.btn-main-text {
    font-size: 1.1rem;
    font-weight: 800;
}

.btn-sub-text {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: #D952D9;
    color: #fff;
    border: none;
    box-shadow: 0 10px 25px rgba(217, 82, 217, 0.3);
}

.btn-secondary:hover {
    background: #fff;
    color: #D952D9;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(217, 82, 217, 0.4);
}

/* SECTIONS */
.section {
    padding: 120px 8%;
    max-width: 1400px;
    margin: 0 auto;
}

.dark-alt {
    background: var(--dark-alt);
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 120px 8%;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.tag-label {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section-header p {
    color: var(--text-dim);
    font-size: 1.2rem;
}

/* GRIDS & CARDS */
.item-grid,
.desktop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.glass-premium {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* STATUS BADGES */
.card-status {
    position: absolute;
    top: 20px;
    right: -35px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.status-online {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary);
}

/* AVAILABLE STATE */
.card-available {
    border-color: var(--primary) !important;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.available:hover {
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.2);
}

/* SOON STATE */
.soon {
    opacity: 0.7;
    filter: grayscale(0.5);
}

.soon:hover {
    filter: grayscale(0.2);
    opacity: 0.9;
}

.soon .btn-primary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    box-shadow: none;
    cursor: not-allowed;
}

.soon .card-icon i {
    color: var(--text-dim);
}

.glass-premium:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.glass-premium h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.glass-premium p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.feat-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.feat-list li {
    margin-bottom: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.feat-list i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.popular-badge {
    background: var(--primary);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.price {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.price span {
    font-size: 1.2rem;
    color: var(--text-dim);
}

/* WHATSAPP UI */
.wa-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: 0.3s;
}

.wa-bubble:hover {
    transform: scale(1.1);
}

.wa-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: var(--dark-alt);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.wa-chat-window.active {
    display: flex;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chat-header {
    background: #075e54;
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chat-body {
    height: 350px;
    padding: 20px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg {
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 85%;
}

.msg-agent {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    color: white;
    border-bottom-left-radius: 2px;
}

.msg-user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.chat-link:hover {
    color: #fff;
}

.chat-footer {
    padding: 15px;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.1);
}

.chat-footer input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 15px;
    color: white;
    outline: none;
}

/* TOAST */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    padding: 16px 32px;
    border-radius: 99px;
    border: 1px solid var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    transition: var(--transition);
    font-weight: 600;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.toast.show {
    bottom: 40px;
}

/* ADMIN MODAL */
.admin-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10005;
}

.admin-content {
    max-width: 500px;
    width: 90%;
    padding: 2.5rem;
    border-radius: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.result-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 1px dashed var(--primary);
}

.result-box code {
    font-family: monospace;
    font-size: 1.2rem;
    color: #fff;
}

/* MOBILE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .slogan {
        font-size: 1.6rem;
    }

    .nav-links {
        display: none;
    }

    nav {
        padding: 1rem 5%;
    }
}