/* ==========================================================================
   CONFIGURACIÓN GLOBAL Y ESCENA BASE CLARA
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    min-height: 100vh;
    background-color: #f8fafc;
    color: #0f172a;
    overflow-x: hidden;
    position: relative;
    padding-top: 130px;
    padding-bottom: 60px;
    display: flex;
    justify-content: center;
}

/* Imagen de fondo con capa blanca clara */
.bg-image-layer {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: url('../assets/ventajas.png') no-repeat center center;
    background-size: cover;
    z-index: -3;
    transition: transform 0.2s cubic-bezier(0.1, 0.5, 0.1, 1);
}

/* Filtro blanco luminoso para asegurar contraste de texto */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 245, 249, 0.88) 100%);
    z-index: -2;
}

/* Canvas para partículas */
#gasParticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- BARRA SUPERIOR BLANCA Y FLOTANTE --- */
.top-nav-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1280px;
    z-index: 9999;
}

.top-navbar {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 60px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-logo-img {
    height: 42px;
    width: auto;
    max-height: 46px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 10px rgba(220, 38, 38, 0.25));
}


.logo-icon-wrapper {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.brand-title strong {
    color: #dc2626;
}

.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 800;
    color: #b91c1c;
    letter-spacing: 0.5px;
}

.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-phone:hover {
    background: #e2e8f0;
    color: #000000;
}

.btn-order-now {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #dc2626;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
    transition: all 0.3s ease;
}

.btn-order-now:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
}

.menu-toggle-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* --- MENÚ DESPLEGABLE CON MÁXIMO CONTRASTE --- */
.dropdown-menu-card {
    position: absolute;
    top: 70px;
    right: 0;
    width: 320px;
    background: #ffffff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    border: 1px solid #e2e8f0;
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 10000;
}

.dropdown-menu-card.active {
    display: flex;
}

.dropdown-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.dropdown-links a i:first-child {
    width: 24px;
    color: #475569;
}

.dropdown-links a span {
    flex-grow: 1;
    margin-left: 8px;
}

.dropdown-links a .arrow {
    font-size: 0.75rem;
    color: #dc2626;
    transition: transform 0.2s ease;
}

.dropdown-links a:hover, .dropdown-links a.active {
    background: #fef2f2;
    color: #dc2626;
}

.dropdown-links a:hover i:first-child, .dropdown-links a.active i:first-child {
    color: #dc2626;
}

.dropdown-links a:hover .arrow {
    transform: translateX(4px);
}

.dropdown-direct-call {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #b91c1c;
    font-weight: 700;
    font-size: 0.88rem;
}

/* ==========================================================================
   ESCENA PRINCIPAL Y ENCABEZADO
   ========================================================================== */

.orbit-scene {
    max-width: 1200px;
    width: 100%;
    padding: 20px 20px 0;
    position: relative;
}

.organic-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    color: #b91c1c;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 2px;
    border: 1px solid #fca5a5;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -1.2px;
    line-height: 1.1;
    text-transform: uppercase;
    color: #0f172a;
}

.hero-title .highlight {
    color: #dc2626;
}

.hero-subtitle {
    font-size: 1.08rem;
    color: #334155;
    max-width: 580px;
    margin: 16px auto 0;
    font-weight: 600;
}

/* ==========================================================================
   CONTENEDOR DE TARJETAS (NODOS DE VENTAJAS)
   ========================================================================== */

.nodes-container {
    position: relative;
    min-height: 480px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

/* Líneas conectoras con mayor visibilidad */
.energy-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.track-path {
    fill: none;
    stroke: #cbd5e1;
    stroke-width: 3;
    stroke-dasharray: 8 8;
}

.track-glow {
    fill: none;
    stroke: rgba(220, 38, 38, 0.4);
    stroke-width: 2;
}

.orbit-node {
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.node-1 { transform: translateY(0px) rotate(-1deg); }
.node-2 { transform: translateY(30px) rotate(1deg); }
.node-3 { transform: translateY(-15px) rotate(1deg); }
.node-4 { transform: translateY(15px) rotate(-1deg); }

.node-glass-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.node-glass-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(254, 242, 242, 0.6), transparent);
    transition: 0.5s;
}

.orbit-node:hover .node-glass-pill::before {
    left: 100%;
}

.orbit-node:hover {
    transform: translateY(-8px) scale(1.02);
}

.orbit-node:hover .node-glass-pill {
    background: #ffffff;
    border-color: #fca5a5;
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.15);
}

.node-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* Números más oscuros para lectura perfecta */
.node-num {
    font-size: 2rem;
    font-weight: 900;
    color: #94a3b8;
    letter-spacing: -1px;
}

.node-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

.node-body h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #0f172a;
}

.node-body p {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.55;
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 900px) {
    .nodes-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .node-1, .node-2, .node-3, .node-4 {
        transform: none !important;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .energy-track {
        display: none;
    }
}

@media (max-width: 600px) {
    .btn-phone span {
        display: none;
    }
}

@media (max-width: 768px) {
    .brand-logo-img {
        height: 34px;
        max-width: 170px;
    }
}

@media (max-width: 480px) {
    .brand-logo-img {
        height: 28px;
        max-width: 135px;
    }
}
