
/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
========================================= */
:root {
    --azul-corenet: #2A9DF4;
    --gris-oscuro: #1A2530;
    --blanco: #FFFFFF;
    --texto: #333333;
    --verde-stock: #25D366;
}

html {
    scroll-behavior: smooth;
    /* PARACHOQUES INVISIBLE: Evita que el header tape los títulos al navegar */
    scroll-padding-top: 120px; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Montserrat', sans-serif; 
}

body { 
    color: var(--texto); 
    line-height: 1.6; 
    background-color: #f8fafc;
}

h1, h2, h3 { color: var(--gris-oscuro); }
a { text-decoration: none; }

/* =========================================
   2. HEADER Y NAVEGACIÓN (FIXED)
========================================= */
header {
    background-color: var(--blanco);
    height: 70px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo-principal {
    height: 220px; 
    width: auto;
    object-fit: contain;
    margin-top: -30px; 
    margin-left: -110px; 
    margin-bottom: -50px;
    transition: transform 0.3s ease;
}

.logo-principal:hover { transform: scale(1.05); }

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a { 
    color: var(--gris-oscuro); 
    font-weight: 600; 
    transition: color 0.3s;
    font-size: 0.95rem;
}

nav a:hover, nav a.activo { color: var(--azul-corenet); }

/* =========================================
   3. FRANJA DE MARCAS
========================================= */
.marcas-franja {
    background-color: #f8fafc;
    padding: 15px 5%;
    margin-top: 70px; /* Empuja la franja debajo del header fijo */
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.75rem;
    position: relative;
    z-index: 900;
}

/* =========================================
   4. SECCIÓN HERO (PÁGINA PRINCIPAL)
========================================= */
.hero { 
    background: linear-gradient(rgba(26, 37, 48, 0.85), rgba(26, 37, 48, 0.95)), 
                url('fondo-rack.jpg') center/cover no-repeat;
    color: var(--blanco); 
    padding: 160px 5% 180px; 
    text-align: center; 
}

.hero h1 { color: white; font-size: 2.8rem; margin-bottom: 15px; }
.hero-slogan { font-size: 1.2rem; max-width: 800px; margin: 0 auto 35px; color: #cbd5e1; }

.hero-botones { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.btn {
    padding: 14px 35px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primario { background: var(--azul-corenet); color: white; border: 2px solid var(--azul-corenet); }
.btn-secundario { background: transparent; color: white; border: 2px solid white; }
.btn-secundario:hover { background: white; color: var(--gris-oscuro); }

/* =========================================
   5. SERVICIOS (TARJETAS FLOTANTES)
========================================= */
.servicios.flotantes { padding: 0 5% 80px; }
.grid-servicios { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 25px; 
    margin-top: -80px; 
    position: relative;
    z-index: 10;
}

.tarjeta-servicio { 
    background: white; 
    padding: 35px 25px; 
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s;
    border-top: 4px solid transparent;
}

.tarjeta-servicio:hover { transform: translateY(-10px); border-top-color: var(--azul-corenet); }
.tarjeta-servicio i { font-size: 2.5rem; color: var(--azul-corenet); margin-bottom: 20px; }

/* =========================================
   6. CATÁLOGO DE EQUIPOS Y SLIDER
========================================= */
.stock-equipos { padding: 80px 5%; background: white; text-align: center; }

.slider-wrapper {
    position: relative;
    max-width: 1200px; 
    margin: 40px auto;
    padding: 0 70px; /* ESPACIO PARA LAS FLECHAS */
    overflow: visible; 
}

.grid-productos-slider {
    display: flex;
    gap: 25px;
    padding: 20px 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.grid-productos-slider::-webkit-scrollbar { display: none; }

.tarjeta-producto {
    position: relative;
    min-width: 280px;
    max-width: 280px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 450px; 
    flex-shrink: 0;
}

.tarjeta-producto img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: #f8fafc;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 1. Ajuste de Botones en la Tarjeta */
.botones-producto {
    display: flex;
    gap: 10px;
    margin-top: auto; /* Empuja los botones al final de la tarjeta */
}

.btn-cotizar, .btn-detalle {
    flex: 1;
    padding: 10px 5px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    transition: 0.3s;
}

.btn-cotizar {
    background: var(--azul-corenet);
    color: white;
    border: 2px solid var(--azul-corenet);
}

.btn-detalle {
    background: transparent;
    color: var(--gris-oscuro);
    border: 2px solid #ddd;
}

.btn-detalle:hover {
    background: #f1f5f9;
    border-color: var(--gris-oscuro);
}

.btn-cotizar:hover {
    background: #1a82d1;
    transform: translateY(-2px);
}

/* 2. Sección Pedido Especial */
.pedido-especial {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 15px;
}

.contenido-especial {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: left;
}

.contenido-especial i {
    font-size: 2.5rem;
    color: var(--azul-corenet);
}

.contenido-especial h3 { margin-bottom: 5px; color: var(--gris-oscuro); }
.contenido-especial p { color: #64748b; font-size: 0.95rem; }

.btn-especial {
    background: var(--gris-oscuro);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
    transition: 0.3s;
}

.btn-especial:hover {
    background: var(--azul-corenet);
    transform: scale(1.05);
}

/* 3. Ocultar la etiqueta de stock vieja */
.etiqueta-stock { display: none !important; }

/* Responsive para la sección especial */
@media (max-width: 768px) {
    .contenido-especial {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* FLECHAS DEL SLIDER */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 50px;
    height: 50px;
    background: var(--azul-corenet);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.prev { left: 10px; }
.next { right: 10px; }

.slide-arrow.disabled { background: #cbd5e1 !important; cursor: not-allowed; opacity: 0.6; }

@media (min-width: 1400px) {
    .prev { left: -60px; }
    .next { right: -60px; }
}

/* FILTROS */
.filtros-container { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn { padding: 8px 18px; border: 1px solid #ddd; border-radius: 25px; cursor: pointer; background: white; transition: 0.3s; }
.filter-btn.active { background: var(--azul-corenet); color: white; border-color: var(--azul-corenet); }
.hide { display: none !important; }

/* =========================================
   7. PÁGINA CONÓCENOS (MODO AZUL PREMIUM - 4 TARJETAS)
========================================= */

/* 1. Hero con tinte azulado fuerte */
.hero-conocenos {
    background: linear-gradient(rgba(10, 37, 64, 0.85), rgba(10, 37, 64, 0.95)), 
                url('fondo-rack.jpg') center/cover no-repeat;
    color: var(--blanco);
    padding: 200px 5% 100px;
    text-align: center;
    border-bottom: 5px solid #60A5FA;
}

.hero-conocenos h1 { color: white; font-size: 3rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 2px; }

/* 2. Sección Historia */
.historia-corenet { padding: 100px 5%; background: #0B1B3D; }
.contenedor-historia { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 60px; }
.texto-historia { flex: 1.2; }
.texto-historia h2 { font-size: 2.5rem; color: var(--azul-corenet); margin-bottom: 20px; }
.texto-historia p { font-size: 1.1rem; color: #E2E8F0; margin-bottom: 20px; line-height: 1.8; }

/* Stats Glassmorphism */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.stat-item { 
    background: rgba(42, 157, 244, 0.08);
    padding: 20px; 
    border-radius: 10px; 
    border-left: 4px solid var(--azul-corenet); 
    backdrop-filter: blur(5px);
}
.stat-item i { font-size: 2.2rem; color: var(--azul-corenet); margin-bottom: 10px; }
.stat-item h4 { font-size: 1.2rem; color: white; margin-bottom: 5px; }
.stat-item p { color: #94A3B8; font-size: 0.95rem; }

.imagen-historia { flex: 1; position: relative; }
.imagen-historia img { width: 100%; border-radius: 20px; box-shadow: 20px 20px 0px var(--azul-corenet); transition: 0.5s; }
.imagen-historia:hover img { transform: translate(5px, 5px); box-shadow: 10px 10px 0px var(--azul-corenet); }

/* 3. Filosofía (REPARACIÓN DE SIMETRÍA 4 TARJETAS) */
.filosofia { padding: 100px 5%; background: var(--azul-corenet); text-align: center; }
.filosofia h2 { color: white; font-size: 2.5rem; margin-bottom: 50px; }

.grid-filosofia { 
    display: grid; 
    /* Bajamos a 250px para que las 4 quepan en una fila en Laptops */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
    max-width: 1300px; 
    margin: 0 auto; 
}

.tarjeta-filosofia { 
    background: white; 
    padding: 40px 25px; 
    border-radius: 15px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); 
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tarjeta-filosofia:hover { transform: translateY(-15px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.tarjeta-filosofia i { font-size: 3rem; color: var(--azul-corenet); margin-bottom: 20px; }
.tarjeta-filosofia h3 { color: var(--gris-oscuro); font-size: 1.3rem; margin-bottom: 15px;}
.tarjeta-filosofia p { color: #475569; font-size: 0.95rem; line-height: 1.6; }

/* Ajustes de Responsividad Específicos */

/* Tablets y Laptops pequeñas: Formato 2x2 */
@media (max-width: 1100px) {
    .grid-filosofia {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móviles y Tablets verticales */
@media (max-width: 992px) {
    .contenedor-historia { flex-direction: column; text-align: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .imagen-historia img { box-shadow: 10px 10px 0px var(--azul-corenet); }
}

/* Celulares: 1 por fila */
/* Tablets y Laptops pequeñas: Formato 2x2 */
@media (max-width: 1100px) {
    .grid-filosofia {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets medianas: Ajuste de historia */
@media (max-width: 992px) {
    .contenedor-historia { flex-direction: column; text-align: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .imagen-historia img { box-shadow: 10px 10px 0px var(--azul-corenet); }
}

/* CELULARES: ACTIVACIÓN DEL SLIDER HORIZONTAL */
@media (max-width: 768px) {
    .filosofia {
        padding: 60px 0 !important; /* Quitamos padding lateral para que el slider llegue al borde */
    }

    .filosofia h2 {
        padding: 0 5%;
        font-size: 1.8rem;
    }

    .grid-filosofia {
        display: flex !important; /* Cambiamos de Grid a Flex para el slider */
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important; /* Habilita el scroll horizontal */
        gap: 20px !important;
        padding: 20px !important;
        scroll-snap-type: x mandatory; /* Ajuste automático al deslizar */
        -webkit-overflow-scrolling: touch; /* Suavidad en iPhone */
    }

    /* Ocultar barra de scroll para estética limpia */
    .grid-filosofia::-webkit-scrollbar {
        display: none;
    }

    .tarjeta-filosofia {
        min-width: 85% !important; /* Permite ver un pedazo de la siguiente tarjeta */
        max-width: 85% !important;
        flex-shrink: 0 !important;
        scroll-snap-align: center;
        padding: 30px 20px !important;
        text-align: center;
        white-space: normal !important; /* IMPORTANTE: Para que el texto no se estire */
    }

    .tarjeta-filosofia i {
        font-size: 2.5rem;
    }

    .hero-conocenos {
        padding: 150px 5% 80px;
    }

    .hero-conocenos h1 {
        font-size: 2rem;
    }
}
/* =========================================
   8. CONTACTO, WHATSAPP Y FOOTER
========================================= */
.contacto { padding: 80px 5%; text-align: center; }
form { max-width: 600px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 15px; }
input, textarea { padding: 15px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; }

.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--verde-stock);
    color: white;
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-whatsapp i { font-size: 2.2rem; }
.btn-whatsapp:hover { transform: scale(1.1) translateY(-5px); }

footer { background: var(--gris-oscuro); color: white; text-align: center; padding: 40px 5%; }

/* =========================================
   9. RESPONSIVE MÓVIL Y REGLAS GLOBALES
========================================= */

/* --- REGLA GLOBAL: Ocultar controles móviles en PC --- */
.menu-toggle, .menu-close, .header-spacer {
    display: none;
}

/* --- REPARACIÓN PARA CELULARES --- */
@media (max-width: 768px) {
    
    /* 1. HEADER: Hamburguesa (Izquierda), Logo (Centro) */
    header {
        height: 100px !important; 
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important; 
        align-items: center !important;
        padding: 0 15px !important;
        position: fixed !important;
        width: 100% !important;
        top: 0 !important;
        background: white !important;
        z-index: 1000 !important;
    }

    .menu-toggle {
        display: block !important; 
        font-size: 2.5rem !important;
        color: var(--azul-corenet) !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
        order: 1 !important; /* Izquierda */
        z-index: 1001 !important;
    }

    .logo {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        order: 2 !important; /* Centro */
        flex: 1 !important;
    }

    .logo-principal {
        height: 250px !important; /* Tamaño Gigante */
        width: auto !important;
        object-fit: contain !important;
        margin-left: -20px !important; /* Ajuste centro visual */
        margin-right: auto !important;
        margin-top: -65px !important;
        margin-bottom: -70px !important;
    }
    
    .header-spacer {
        display: block !important;
        width: 40px !important; /* Equilibra el ancho del menú */
        height: 1px !important;
        visibility: hidden !important;
        order: 3 !important; /* Derecha */
    }

    /* 2. FRANJA DE MARCAS */
    .marcas-franja {
        margin-top: 100px !important; 
        padding: 12px 5% !important;
        display: flex !important;
        justify-content: center !important;
        gap: 12px !important;
        background: #f8fafc !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .marcas-franja span { font-size: 0.6rem !important; }

    /* 3. MENÚ LATERAL DESPLEGABLE (Sale de la Izquierda) */
    nav {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important; /* Empieza fuera de pantalla a la izquierda */
        right: auto !important;
        width: 80% !important;
        height: 100vh !important;
        background: var(--gris-oscuro) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important; /* Centra el menú verticalmente */
        padding: 40px !important;
        transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1) !important; /* Animación fluida */
        z-index: 2000 !important;
    }

    nav.active {
        left: 0 !important; /* Entra a la pantalla */
    }

    nav ul {
        flex-direction: column !important;
        gap: 30px !important;
        align-items: center !important; /* Centra los links de texto */
    }

    nav a {
        color: white !important; 
        font-size: 1.5rem !important; /* Texto grande para móvil */
        font-weight: bold !important;
    }

    .menu-close {
        display: block !important;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 3.5rem !important; /* X muy visible */
        color: white !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
    }

    /* 4. SLIDERS: Servicios y Productos */
    .grid-servicios, 
    .grid-productos-slider {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; 
        overflow-x: auto !important; 
        gap: 15px !important; /* Poco espacio entre tarjetas */
        padding: 15px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    /* --- CORRECCIÓN DE TEXTO (WRAPPING) --- */
    .tarjeta-servicio, 
    .tarjeta-producto {
        min-width: 85% !important; 
        max-width: 85% !important;
        width: 85% !important; /* Forza el límite del ancho */
        scroll-snap-align: center;
        flex-shrink: 0 !important;
        white-space: normal !important; /* El comando clave para que el texto salte de línea */
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }

    /* Comando de respaldo para los textos internos de la tarjeta */
    .tarjeta-servicio *, 
    .tarjeta-producto * {
        white-space: normal !important;
    }

    .slide-arrow { display: none !important; }

    /* 5. OTROS AJUSTES MÓVILES */
    .hero { padding: 80px 5% 100px !important; }
    .hero h1 { font-size: 1.6rem !important; }
    .btn-whatsapp { width: 60px !important; height: 60px !important; padding: 0 !important; justify-content: center !important; border-radius: 50% !important; }
    .btn-whatsapp span { display: none !important; }
}

/* =========================================
   FOOTER CORENET: FUSIÓN DE COLOR TOTAL
========================================= */
.footer-corenet {
    /* Este es el color exacto del fondo de tu imagen CoreNet2.png */
    background-color: #263741!important; 
    color: #E2E8F0 !important;
    padding: 60px 5% 0 !important; 
    font-size: 0.95rem !important;
}

/* También debemos asegurar que la barra de copyright tenga el mismo color */
.footer-bottom {
    background-color: #263741!important; 
    text-align: center !important;
    padding: 40px 0 !important;
    color: #72849A !important;
    font-size: 0.85rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.footer-container {
    max-width: 1200px !important; 
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr !important; 
    gap: 60px !important;
    padding-bottom: 60px !important;
}

.footer-logo {
    height: 250px !important; 
    width: auto !important;
    object-fit: contain !important;
    margin-bottom: 10px !important;
    margin-left: -10px !important;
    /* Eliminamos cualquier filtro que pueda alterar el color */
    mix-blend-mode: normal !important; 
}

/* Mantenemos la alineación a la izquierda que corregimos antes */
.brand-col, .footer-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.footer-col h3::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 40px !important;
    height: 3px !important;
    background: #3B99D4 !important; 
}
.redes-sociales {
    display: flex !important;
    gap: 15px !important;
    justify-content: flex-start !important; /* Asegura que los círculos queden a la izquierda */
}

.redes-sociales a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 42px !important;
    height: 42px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    border-radius: 50% !important;
    transition: 0.3s ease !important;
}

.redes-sociales a:hover {
    background: #3B99D4 !important; 
    transform: translateY(-5px) !important;
}

/* REPARACIÓN: Todas las columnas alineadas estrictamente a la izquierda */
.footer-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.footer-col h3 {
    color: white !important;
    font-size: 1.3rem !important;
    margin-bottom: 25px !important;
    position: relative !important;
    padding-bottom: 10px !important;
    width: 100% !important;
}

/* La línea azul ahora calza perfectamente con el inicio del texto */
.footer-col h3::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 40px !important;
    height: 3px !important;
    background: #3B99D4 !important; 
    border-radius: 2px !important;
}

/* Listas de enlaces y texto alineadas */
.footer-col ul {
    list-style: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    align-items: flex-start !important; /* Fuerza todo a la izquierda */
    width: 100% !important;
}

.footer-col ul li {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #9AA7B8 !important;
}

.footer-col ul li i {
    color: #3B99D4 !important; 
    font-size: 1.1rem !important;
    width: 20px !important; 
    text-align: center !important;
}

.footer-col ul a {
    color: #9AA7B8 !important;
    transition: 0.3s !important;
}

.footer-col ul a:hover {
    color: #3B99D4 !important;
    padding-left: 5px !important; 
}

/* Botón de reclamaciones */
.reclamaciones-section {
    margin-top: 35px !important;
    width: 100% !important;
    text-align: left !important;
}

.btn-reclamaciones {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: white !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 10px 15px !important;
    border-radius: 5px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
}

.btn-reclamaciones i { color: #3B99D4 !important; }
.btn-reclamaciones:hover { background: #3B99D4 !important; border-color: #3B99D4 !important; }

/* Barra final */
.footer-bottom {
    text-align: center !important;
    padding: 25px 0 !important;
    color: #72849A !important;
    font-size: 0.85rem !important;
}

/* =========================================
   ADAPTACIÓN PARA CELULARES (FOOTER)
========================================= */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr !important; 
        gap: 40px !important;
    }
    
    /* En móvil sí centramos todo para que se vea como columna ordenada */
    .footer-col, .brand-col, .footer-col h3, .footer-col ul, .reclamaciones-section {
        align-items: center !important;
        text-align: center !important;
    }

    .redes-sociales { justify-content: center !important; }
    
    .footer-col h3::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .footer-col ul li { justify-content: center !important; }
    .footer-logo { margin-left: 0 !important; }
}


/* =========================================
   PÁGINA DE DETALLES DE PRODUCTO
========================================= */
.detalle-producto-container {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 5%;
}

.seccion-principal-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

.galeria-producto img {
    width: 100%;
    border-radius: 15px;
    background: white;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.categoria-tag {
    color: var(--azul-corenet);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.info-tecnica-compra h1 {
    font-size: 2.5rem;
    margin: 10px 0 20px;
}

.puntos-clave ul {
    list-style: none;
    margin: 30px 0;
}

.puntos-clave li {
    margin-bottom: 12px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
}

.puntos-clave i { color: var(--azul-corenet); }

.btn-cotizar-grande {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: #25D366; /* Color WhatsApp */
    color: white;
    padding: 20px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: 0.3s;
}

.btn-cotizar-grande:hover { transform: scale(1.02); background: #1eb956; }

/* Tabla de Especificaciones */
.especificaciones-tecnicas h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--azul-corenet);
    display: inline-block;
    padding-bottom: 5px;
}

.tabla-specs {
    width: 100%;
    border-collapse: collapse;
}

.tabla-specs td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.tabla-specs tr td:first-child {
    font-weight: bold;
    background: #f8fafc;
    width: 30%;
}

@media (max-width: 768px) {
    .seccion-principal-detalle { grid-template-columns: 1fr; }
}
/* --- SECCIÓN CONTACTO AMIGABLE --- */
.contacto-premium {
    padding: 100px 5%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    justify-content: center;
}

.contenedor-contacto {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.info-contacto-texto h2 {
    font-size: 2.2rem;
    color: var(--azul-corenet);
    margin-bottom: 20px;
}

.info-contacto-texto p {
    color: #475569;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.items-contacto .item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #1e293b;
    font-weight: 600;
}

.items-contacto i {
    color: var(--azul-corenet);
    font-size: 1.2rem;
}

/* Tarjeta del Formulario */
.tarjeta-formulario {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.grupo-input {
    position: relative;
    margin-bottom: 20px;
}

.grupo-input i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.grupo-input textarea + i {
    top: 25px; /* Ajuste para el icono en el textarea */
}

.grupo-input input, .grupo-input textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    transition: 0.3s;
    background: #fdfdfd;
}

.grupo-input input:focus, .grupo-input textarea:focus {
    border-color: var(--azul-corenet);
    box-shadow: 0 0 0 4px rgba(42, 157, 244, 0.1);
    outline: none;
}

.btn-enviar-moderno {
    width: 100%;
    padding: 18px;
    background: var(--azul-corenet);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-enviar-moderno:hover {
    background: #1a82d1;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(42, 157, 244, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
    .contenedor-contacto {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .items-contacto .item {
        justify-content: center;
    }
}

.acordeon-contenedor {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.acordeon-item {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}

.acordeon-header {
    width: 100%;
    padding: 20px;
    background: #fff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #003366;
    text-align: left;
    transition: background 0.3s;
}

.acordeon-header:hover {
    background: #f0f7ff;
}

.acordeon-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fafafa;
}

.acordeon-body p {
    padding: 20px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Clase para rotar el icono cuando está abierto */
.acordeon-item.active .acordeon-header i {
    transform: rotate(180deg);
}

.acordeon-item.active .acordeon-body {
    max-height: 200px; /* Ajusta según el largo del texto */
}

/* --- Estilos para Soporte Externo --- */
.soporte-externo {
    background: linear-gradient(135deg, #003366 0%, #001f3f 100%); /* Azul oscuro corporativo CoreNet */
    padding: 50px 20px;
    margin: 40px 0;
}

.contenedor-soporte {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.icono-soporte {
    font-size: 4rem;
    color: #00a8e8; /* Azul claro para resaltar */
}

.texto-soporte {
    flex: 1;
    min-width: 300px;
}

.texto-soporte h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.texto-soporte p {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

.texto-soporte strong {
    color: #ffffff;
}

.boton-soporte {
    flex-shrink: 0;
}

.btn-soporte-outline {
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid #00a8e8;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-soporte-outline:hover {
    background: #00a8e8;
    color: #001f3f;
    box-shadow: 0 5px 15px rgba(0, 168, 232, 0.4);
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .contenedor-soporte {
        text-align: center;
        flex-direction: column;
    }
}

/* --- Integración de WhatsApp en el Formulario --- */

.separador-formulario {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.separador-formulario::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}

.separador-formulario span {
    background: #ffffff;
    padding: 0 15px;
    color: #888888;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.btn-whatsapp-formulario {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #25D366; /* Verde oficial de WhatsApp */
    color: #ffffff;
    text-align: center;
    border-radius: 8px; /* Mismo radio que tus inputs */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-formulario:hover {
    background-color: #1ebe5d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-formulario i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* --- Notificaciones de envío --- */
.alerta-flotante {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.5s ease forwards;
}

.alerta-success { background-color: #28a745; }
.alerta-error { background-color: #dc3545; }

@keyframes slideIn {
    from { transform: translateX(120%); }
    to { transform: translateX(0); }
}