/* =========================================
   ESTILOS PERSONALIZADOS - INVERSIONES HASBUN
   ========================================= */

:root {
    --primary: #ff4b3a; /* Rojo corporativo */
}
/* Para que el menú fio no tape el banner principal */
body {
    padding-top: 110px; /* Esto empuja el contenido hacia abajo */
}

@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }
}
/* Tipografía General */
body {
    font-family: 'Poppins', Arial, sans-serif;
}

/* Efecto hover para enlaces blancos */
.hover-primary:hover {
    color: var(--primary) !important;
    transition: 0.3s;
}

.hover-white:hover {
    color: #fff !important;
    padding-left: 5px;
    transition: 0.3s;
}

/* Ajustes del Menú Activo */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

/* =========================================
   HERO SLIDER (BANNER PRINCIPAL)
   ========================================= */
.hero-slider {
    width: 100%;
    height: 450px; /* Altura fija para PC */
    background-color: #f8f9fa; /* Opcional: Color de fondo para los espacios vacíos */
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* <--Muestra TODA la imagen */
}

/* En celular el banner es más bajito */
@media (max-width: 768px) {
    .hero-slider {
        height: 250px;
    }
}

/* =========================================
   TARJETAS PERSONALIZADAS
   ========================================= */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    border-color: var(--primary) !important;
}

/* Tarjetas de "Necesidad" (Empresa/Gamer/Estudiante) */
.card-need {
    height: 250px;
    position: relative;
    text-decoration: none;
}

.card-need .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 2;
}

.card-need:hover img {
    transform: scale(1.1);
    transition: 0.5s;
}

/* =========================================
   AJUSTES FINOS
   ========================================= */
/* Obligar al logo a no crecer, por si acaso */
.navbar-brand img {
    max-width: none !important;
}

/* Botón flotante whatsapp */
.whatsapp-float:hover {
    background-color: #1ebc59 !important; /* Verde un poco más oscuro */
    transform: scale(1.05);
}

/* =========================================
   ESTILOS PARA EQUIPOS (Categorías)
   ========================================= */
.icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    transition: 0.3s;
}

/* Efecto al pasar el mouse sobre la tarjeta */
.category-card:hover .icon-circle {
    background-color: var(--primary) !important; /* Se vuelve rojo */
    color: #fff !important; /* Icono blanco */
    transform: scale(1.1); /* Crece un poquito */
}

/* Ajuste de imagen dentro del círculo al hacer hover */
.category-card:hover .icon-circle img {
    filter: brightness(0) invert(1); /* Vuelve la imagen blanca (solo si es PNG transparente) */
}

/* =========================================
   ESTILOS PARA SEGURIDAD
   ========================================= */
.security-icon {
    transition: 0.3s ease;
}

/* Animación al pasar el mouse sobre la tarjeta */
.hover-card:hover .security-icon {
    transform: rotateY(360deg); /* El icono gira */
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4); /* Sombra roja suave */
}

/* =========================================
   ESTILOS PARA SERVICIOS TÉCNICOS
   ========================================= */
.checklist li {
    display: flex;
    align-items: start;
}
/* Esto asegura que el botón del footer de la tarjeta siempre quede abajo */
.card-footer {
    background: transparent;
}

/* =========================================
   ESTILOS PARA MARKETING (PRECIOS)
   ========================================= */
/* Hace que el plan destacado sea un poco más grande en PC */
@media (min-width: 768px) {
    .transform-scale {
        transform: scale(1.05);
        z-index: 2;
    }
}

/* =========================================
   ESTILOS PARA DISEÑO (PROCESO)
   ========================================= */

/* Solo dibuja la línea en pantallas grandes */
@media (min-width: 768px) {
    .process-line::before {
        content: '';
        position: absolute;
        top: 45px; /* Ajusta la altura para que pase por detrás de los círculos */
        left: 15%;
        width: 70%;
        height: 2px;
        background-color: #dee2e6; /* Color gris suave */
        z-index: 0;
    }
}

/* Efecto suave en las cajas creativas */
.creative-box {
    background-color: #fff;
    transition: 0.3s;
}

.creative-box:hover {
    background-color: #fff5f5; /* Fondo rojizo muy suave */
}

/* =========================================
   ESTILOS PARA CATÁLOGO (LAPTOPS)
   ========================================= */

/* Pestañas de filtro (Nav Pills) */
.nav-pills .nav-link {
    color: var(--dark); /* Color texto inactivo */
    background-color: #fff;
    border: 1px solid #eee;
}

.nav-pills .nav-link.active {
    background-color: var(--primary) !important; /* Rojo al activar */
    color: #fff !important;
    border-color: var(--primary);
}

/* Lista de especificaciones (Iconos alineados) */
.spec-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.spec-list li i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* =========================================
   ARREGLO FINAL PARA EL LOGO (IMPORTANTE)
   ========================================= */
.navbar-brand img {
    height: 45px !important;   /* Fuerza la altura a 45px */
    width: auto !important;    /* Deja que el ancho se ajuste solo */
    max-width: none !important; /* Evita que otras reglas lo estiren */
}

/* Línea divisoria para catálogo de laptops */
@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid #dee2e6;
    }
}

/* =========================================
   ESTILOS ZONA GAMER
   ========================================= */
/* Pestañas inactivas: Texto rojo, fondo blanco */
#pills-tab .nav-link {
    color: var(--primary);
    background-color: #fff;
    border-color: var(--primary);
}

/* Pestañas activas: Fondo rojo intenso, texto blanco */
#pills-tab .nav-link.active {
    background-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
}

/* =========================================
   ESTILOS TIPO REVISTA (Impresoras)
   ========================================= */

/* Fuente elegante para títulos */
.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Banner principal con imagen de fondo */
.magazine-hero {
    /* El '../' es necesario para salir de la carpeta css y entrar a img */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/fondo_impresora.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
}

/* Fondo oscuro de respaldo por si no carga la imagen */
.bg-editorial {
    background-color: #212529;
}

/* Tarjeta del producto principal */
.cover-product {
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}

.cover-product:hover {
    transform: scale(1.01); /* Efecto leve de zoom al pasar el mouse */
}

/* Estilo del precio grande */
.price-tag {
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc3545;
}