/* ==========================================================================
   ESTILOS GENERALES Y FONDO LUMINOSO BASE BLANCA
   ========================================================================== */

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

body {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.82)),
                url('../assets/servicios.png') no-repeat center center fixed;
    background-size: cover;
    color: #0f172a;
    min-height: 100vh;
    padding: 130px 20px 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* --- 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 #e2e8f0;
    border-radius: 60px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.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.25);
}

.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: #dc2626;
    letter-spacing: 0.5px;
}

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

.btn-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    color: #334155;
    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: #f1f5f9;
    color: #0f172a;
}

.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.3);
    transition: all 0.3s ease;
}

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

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

.menu-toggle-btn:hover {
    background: #f1f5f9;
    color: #dc2626;
    border-color: #fee2e2;
}

/* --- MENÚ DESPLEGABLE --- */
.dropdown-menu-card {
    position: absolute;
    top: 70px;
    right: 0;
    width: 320px;
    background: #ffffff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    border: 1px solid #f1f5f9;
    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: #334155;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

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

.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;
    font-weight: 700;
}

.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 #fee2e2;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #dc2626;
    font-size: 0.88rem;
}

/* ==========================================================================
   CONTENEDOR DE SERVICIOS Y ENCABEZADO
   ========================================================================== */

.services-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-header {
    text-align: center;
    margin-bottom: 50px;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(217, 37, 37, 0.08);
    color: #d92525;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(217, 37, 37, 0.2);
    margin-bottom: 14px;
}

.services-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1.2px;
    line-height: 1.15;
    margin-bottom: 10px;
}

.services-title .highlight {
    color: #d92525;
}

.services-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 580px;
    margin: 0 auto;
    font-weight: 500;
}

/* ==========================================================================
   DISEÑO EN BURBUJAS / MOLÉCULAS DE GAS
   ========================================================================== */

.gas-molecules-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: relative;
    padding: 20px 0;
}

/* Esfera/Burbuja Traslúcida Base */
.bubble-item {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05),
                inset 0 0 20px rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Efecto Flotante estilo Gas */
.bubble-item:nth-child(1) { animation: float 6s ease-in-out infinite; }
.bubble-item:nth-child(2) { animation: float 7s ease-in-out infinite 1s; }
.bubble-item:nth-child(3) { animation: float 6.5s ease-in-out infinite 0.5s; }
.bubble-item:nth-child(4) { animation: float 8s ease-in-out infinite 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.bubble-item:hover {
    transform: scale(1.08) translateY(-8px) !important;
    background: #ffffff;
    box-shadow: 0 25px 50px rgba(217, 37, 37, 0.15),
                inset 0 0 25px rgba(255, 255, 255, 1);
    border-color: rgba(217, 37, 37, 0.3);
    z-index: 10;
}

/* Burbuja destacada */
.bubble-item.featured {
    width: 290px;
    height: 290px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(217, 37, 37, 0.5);
    box-shadow: 0 20px 45px rgba(217, 37, 37, 0.12);
}

.badge-featured {
    position: absolute;
    top: 20px;
    background: #d92525;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.item-number {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #cbd5e1;
}

/* Icono Esférico */
.icon-bubble {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d92525, #ff5252);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 12px;
    box-shadow: 0 8px 18px rgba(217, 37, 37, 0.3);
}

.bubble-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.bubble-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.35;
    margin-bottom: 14px;
    max-width: 85%;
}

/* Enlace / Botón */
.bubble-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.bubble-item:hover .bubble-btn {
    background: #d92525;
    width: 110px;
    border-radius: 20px;
    gap: 6px;
}

.bubble-btn span {
    display: none;
    font-size: 0.75rem;
    font-weight: 700;
}

.bubble-item:hover .bubble-btn span {
    display: inline;
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .bubble-item, .bubble-item.featured {
        width: 250px;
        height: 250px;
    }
}

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

    .services-title {
        font-size: 2.2rem;
    }
    
    .bubble-item, .bubble-item.featured {
        width: 280px;
        height: 280px;
    }
}

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

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