/* ==========================================================================
   ESTILOS GLOBALES - SMART UNLIMITED SOLUTIONS
   ========================================================================== */

/* Variables de Color Globales y Fuentes */
:root {
    --cloud-dancer: #F0F2F5;   /* Blanco roto para fondos limpios */
    --gris-carbon: #2D3142;    /* Oscuro elegante para textos principales */
    --ciruela: #4F2746;        /* Tono complementario elegante */
    --neo-mint: #48E5C2;       /* Verde menta tecnológico para CTAs */
    --whatsapp-green: #25D366;  /* Color oficial de WhatsApp */
    
    --fuente-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reseteo Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-principal);
    background-color: var(--cloud-dancer);
    color: var(--gris-carbon);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Componente: Botón Flotante de WhatsApp */
.btn-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

/* Utilidades de Diseño (Responsive Base) */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
/* ==========================================================================
   ESTILOS DEL HEADER RESPONSIVE (Añadir al final de principal.css)
   ========================================================================== */
.sitio-header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 15px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo strong {
    color: var(--gris-carbon);
    font-size: 1.5rem;
}

.logo span {
    color: var(--ciruela);
    font-weight: 300;
    font-size: 1.5rem;
}

/* Menú de Navegación */
.navegacion {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navegacion a {
    color: var(--gris-carbon);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navegacion a:hover {
    color: var(--ciruela);
}

.btn-contacto-nav {
    background-color: var(--gris-carbon);
    color: #FFF !important;
    padding: 8px 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease !important;
}

.btn-contacto-nav:hover {
    background-color: var(--ciruela);
}

/* Mecanismo del Menú Móvil sin JS */
#menu-bar {
    display: none;
}

.menu-icono {
    font-size: 28px;
    cursor: pointer;
    display: none;
    color: var(--gris-carbon);
}

/* Responsive para Header (Móviles) */
@media (max-width: 768px) {
    .menu-icono {
        display: block;
    }
    
    .navegacion {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-top: 1px solid #EEE;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        display: none;
    }
    
    /* Cuando el checkbox está activo, muestra el menú */
    #menu-bar:checked ~ .navegacion {
        display: flex;
    }
}
/* ==========================================================================
   ESTILOS DEL FOOTER GLOBAL PREMIUM (Añadir al final de principal.css)
   ========================================================================== */

.sitio-footer-premium {
    background-color: #07080a; /* Variación un poco más profunda para marcar separación */
    padding: 80px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-column h3 {
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: -0.3px;
}

/* Columna de Marca */
.footer-logo strong {
    color: #FFFFFF;
    font-size: 1.4rem;
}
.footer-logo span {
    color: #4F2746; /* Tu Ciruela elegante */
    font-weight: 300;
    font-size: 1.4rem;
}
.footer-slogan {
    color: #4D57FF; /* Azul digital vibrante */
    font-size: 0.9rem;
    font-weight: 600;
    margin: 8px 0 15px 0;
}
.footer-description {
    color: #8A8F9E;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Listas de Enlaces y Contacto */
.footer-links, .footer-contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #8A8F9E;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-contact-details li {
    color: #8A8F9E;
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact-details a {
    color: #8A8F9E;
    transition: color 0.2s;
}

.footer-contact-details a:hover {
    color: #FFFFFF;
}

.footer-icon {
    font-size: 1rem;
}

/* Columna Redes Sociales Estilo Pill */
.footer-social-text {
    color: #8A8F9E;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.footer-social-flex {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 200px;
}

.social-pill-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 50px;
    background-color: #16171A;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #8A8F9E;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-pill-link svg {
    transition: transform 0.3s ease;
}

.social-pill-link:hover {
    color: #FFFFFF;
    transform: translateX(3px);
}

.social-pill-link:hover svg {
    transform: scale(1.15);
}

/* Colores Hover Personalizados para Redes */
.tik-tok-color:hover { background-color: #000000; border-color: rgba(255,255,255,0.2); }
.instagram-color:hover { background-color: #E1306C; border-color: #E1306C; }
.whatsapp-color:hover { background-color: #25D366; border-color: #25D366; }

/* Barra Inferior de Créditos */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 25px 0;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #626673;
    font-size: 0.85rem;
}

.brand-signature {
    font-style: italic;
    font-weight: 300;
    opacity: 0.7;
}

/* ==========================================================================
   RESPONSIVE FOOTER
   ========================================================================== */
@media (max-width: 992px) {
    .footer-grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .sitio-footer-premium {
        padding: 60px 0 0 0;
    }
    .footer-grid-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .footer-column h3 {
        margin-bottom: 15px;
    }
    .bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
/* Posicionamiento del contenedor del dropdown */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

/* El Mega Menú oculto inicialmente */
.mega-menu {
    position: absolute;
    top: 100%;
    left: -50%; /* Ajusta según sea necesario */
    transform: translateX(-50%);
    background: #16171A; /* Color oscuro premium */
    width: 600px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 15px;
}

/* Mostrar al hacer hover */
.nav-item-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

/* Grid del menú */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Tarjeta interna del menú */
.menu-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 10px;
    transition: background 0.2s;
}

.menu-service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.menu-service-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.menu-service-card span {
    font-size: 0.85rem;
    text-align: center;
}
/* ==========================================================================
   ADAPTACIÓN DEL MEGA MENÚ PARA MÓVILES
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Resetear el posicionamiento para que no se salga de la pantalla */
    .mega-menu {
        position: static !important; /* Ahora el menú fluye dentro del documento */
        width: 100% !important;
        background: transparent !important; /* Fondo transparente o igual al nav */
        border: none !important;
        margin-top: 10px !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none; /* Oculto hasta que se toque */
    }

    /* Mostrar al abrir el menú móvil */
    #menu-bar:checked ~ .navegacion .mega-menu {
        display: block;
    }

    /* 2. Cambiar la rejilla de 3 columnas a una lista vertical */
    .mega-menu-grid {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
    }

    /* 3. Estilo de tarjetas para móvil (más fácil de tocar) */
    .menu-service-card {
        flex-direction: row !important; /* Imagen a la izquierda, texto a la derecha */
        justify-content: flex-start !important;
        padding: 12px !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .menu-service-card img {
        width: 40px !important; /* Más pequeño para móvil */
        height: 40px !important;
        margin-bottom: 0 !important;
        margin-right: 15px !important;
    }

    .menu-service-card span {
        font-size: 1rem !important;
        text-align: left !important;
    }
}