/* =========================================================
   CONFIGURACIÓN GLOBAL
========================================================= */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Segoe UI, Arial, sans-serif;
    color: #222;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0D2B52;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #FFFFFF;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

    .nav-links a {
        color: #FFFFFF;
        text-decoration: none;
        font-weight: 600;
        transition: .25s;
    }

        .nav-links a:hover {
            color: #D9E7FF;
        }

/* =========================================================
   HERO
========================================================= */

.hero {
    margin-top: 80px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #f5f7fb;
}

    .hero h1 {
        font-size: 60px;
        color: #1c2d5a;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 22px;
        color: #666;
    }

/* =========================================================
   CATEGORÍAS (CARRUSEL)
========================================================= */

.categories {
    padding: 80px 0;
    background: white;
}

.categories-title {
    text-align: center;
    margin-bottom: 40px;
}

    .categories-title h2 {
        font-size: 34px;
        color: #1c2d5a;
    }

/* slider */
.categories-slider {
    width: 92%;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.categories-wrapper {
    overflow: hidden;
    flex: 1;
}

.categories-track {
    display: flex;
    transition: transform 0.4s ease;
}

/* cada item */
.category {
    flex: 0 0 20%;
    text-align: center;
    /* Espacio para que el círculo pueda subir sin cortarse */
    padding-top: 15px;
}

/* circulos */
.circle {
    width: 175px;
    height: 175px;
    margin: auto;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #ECECEC;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: transform .30s ease, box-shadow .30s ease, border-color .30s ease;
}

/* =========================================================
   EFECTO HOVER EN MARCAS
========================================================= */

.category:hover .circle {
    transform: translateY(-10px);
    background: #FFFFFF;
    border: 2px solid #0D2B52;
    box-shadow: 0 15px 35px rgba(13, 43, 82, 0.20);
}

.category h3 {
    margin-top: 12px;
    font-size: 16px;
}

/* botones flotantes */
.cat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(13, 43, 82, 0.25);
    backdrop-filter: blur(12px);
    color: white;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.25s ease;
}

    .cat-btn:hover {
        background: #0d2b52;
        transform: scale(1.12);
    }

/* dots */
.dots {
    text-align: center;
    margin-top: 25px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    border-radius: 50%;
    background: #bbb;
    cursor: pointer;
}

    .dot.active {
        background: #0d2b52;
        transform: scale(1.3);
    }

/* =========================================================
   ABOUT US
========================================================= */

.about-split {
    display: flex;
    min-height: 520px;
    width: 100%;
}

.about-left {
    flex: 1;
    background: #FFFFFF;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px;
}

    .about-left h2 {
        color: #0D2B52;
        font-size: 34px;
        margin-bottom: 20px;
    }

    .about-left p {
        color: #444;
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 18px;
    }

.about-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background:
    /* Luz roja */
    radial-gradient(circle at 35% 30%, #D51319 0%, #B31217 22%, rgba(179,18,23,0.45) 42%, transparent 62%),
    /* Luz naranja */
    radial-gradient(circle at 60% 68%, rgba(255,150,0,.22) 0%, transparent 24%),
    /* Fondo negro */
    linear-gradient( 135deg, #060606 0%, #1A0305 18%, #4D080D 40%, #0A0A0A 100%);
}

    .about-right img {
        width: 100%;
        max-width: 500px;
        border-radius: 18px;
        box-shadow: 0 20px 50px rgba(0,0,0,.35);
        object-fit: cover;
    }

/* responsive */
@media (max-width: 768px) {

    .category {
        flex: 0 0 50%;
    }

    .circle {
        width: 130px;
        height: 130px;
        font-size: 45px;
    }

    .about-split {
        flex-direction: column;
    }

    .about-left,
    .about-right {
        padding: 40px;
        text-align: center;
    }

        .about-right img {
            max-width: 100%;
        }
}



/* =========================================================
   PRODUCTOS DESTACADOS
========================================================= */

.featured {
    padding: 100px 0;
    background: #f7f9fc;
    text-align: center;
}

/* TITULO */
.featured-title h2 {
    font-size: 38px;
    color: #1c2d5a;
    margin-bottom: 10px;
}

.featured-title p {
    color: #666;
    margin-bottom: 50px;
}

/* GRID 5 PRODUCTOS */
.featured-grid {
    width: 92%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* TARJETA PRODUCTO */

.product-card {
    background: white;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: .3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-8px);
    }

    /* IMAGEN */
    .product-card img {
        width: 100%;
        height: 180px;
        object-fit: contain;
        border-radius: 12px;
    }

    /* NOMBRE */
    .product-card h3 {
        margin: 18px 0;
        font-size: 16px;
        color: #1c2d5a;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

/* =========================================================
   BOTÓN CARACTERÍSTICAS
========================================================= */

.product-btn {
    margin-top: auto;
    display: inline-block;
    background: #0D2B52;
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: .3s;
}

    .product-btn:hover {
        background: #081C36;
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   CARRUSEL PRINCIPAL
========================================================= */

.hero-slider {
    position: relative;
    width: 90%;
    max-width: 1500px;
    height: 470px;
    margin: 110px auto 0 auto;
    overflow: hidden;
    background: #111;
    border-radius: 20px;
}

/* =========================
   IMÁGENES DEL CARRUSEL
========================= */

/* SLIDES */


.slide {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000; /* Fondo negro */

    opacity: 0;
    transition: opacity 1s ease;
}

    .slide.active {
        opacity: 1;
        z-index: 2;
    }

    .slide img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

/* FLECHAS */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.25);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 5;
    transition: .25s;
}

    .slider-btn:hover {
        background: #0d2b52;
    }

.prev-slide {
    left: 30px;
}

.next-slide {
    right: 30px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    background: #0D2B52;
    color: white;
    margin-top: 70px;
}

/* CONTENEDOR */

.footer-container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    padding: 45px 0;
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    gap: 45px;
    align-items: start;
}

/* LOGO */

.footer-logo h2 {
    margin: 0 0 12px;
    font-size: 30px;
}

.footer-logo p {
    color: rgba(255,255,255,.80);
    line-height: 1.6;
    max-width: 320px;
    margin: 0;
}

/* TITULOS */

.footer h3 {
    margin: 0 0 18px;
    font-size: 20px;
}

/* CONTACTO */

.footer-contact p {
    margin: 8px 0;
    color: rgba(255,255,255,.85);
    line-height: 1.5;
}

/* ENLACES */

.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
}

    .footer-links a,
    .footer-social a {
        color: rgba(255,255,255,.82);
        text-decoration: none;
        margin-bottom: 10px;
        transition: .25s;
    }

        .footer-links a:hover,
        .footer-social a:hover {
            color: white;
            padding-left: 6px;
        }

/* PARTE INFERIOR */

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 18px;
    color: rgba(255,255,255,.70);
    font-size: 14px;
}

/* =========================================================
  FOOTER  RESPONSIVE
========================================================= */

@media(max-width:900px) {

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }

    .footer-logo p {
        max-width: 100%;
    }
}

/*=========================================================
    BOTÓN CONOCER MÁS
=========================================================*/

.about-btn {
    margin-top: 25px;
    padding: 14px 28px;
    background: #B31217;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

    .about-btn:hover {
        background: #8C1014;
    }

/*=========================================================
    PANEL DESPLEGABLE
=========================================================*/

.about-extra {
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    transition: max-height .6s ease;
}

    .about-extra.show {
        max-height: 1200px;
    }

.about-extra-content {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 60px 0;
}

.about-extra h2 {
    color: #0D2B52;
    margin-top: 35px;
}

.about-extra p {
    color: #555;
    line-height: 1.8;
}


/* =========================================================
   LOGOS DE MARCAS
========================================================= */

/* Todos parten desde una configuración común */

.circle img {
    display: block;
    margin: auto;
    object-fit: contain;
    transition: .3s;
}

/* =========================================================
   AJUSTES INDIVIDUALES
========================================================= */

/* HP */

.logo-hp {
    width: 58%;
}

/* EPSON */

.logo-epson {
    width: 82%;
}

/* LOGITECH */

.logo-logitech {
    width: 92%;
}

/* LG */

.logo-lg {
    width: 60%;
}

/* WACOM */

.logo-wacom {
    width: 82%;
}

/* LOCH */

.logo-loch {
    width: 78%;
}

/* Hover */

.category:hover .circle img {
    transform: scale(1.08);
}