* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================
   COLORES ICOM ELECTRIC
========================================= */
:root {

    --azul-principal: #0066cc;

    --azul-oscuro: #004a99;

    --azul-profundo: #003366;

    --azul-claro: #eaf4ff;

    --azul-muy-claro: #f4f9ff;

    --gris-fondo: #eaf4ff;

    --blanco: #ffffff;

    --gris: #666666;

    --gris-claro: #eeeeee;

    --rojo: #e53935;

}


/* =========================================
   BODY
========================================= */

body {

    font-family: Arial, Helvetica, sans-serif;

    background: #eaf4ff !important;

    color: #222;

}


/* =========================================
   HEADER
========================================= */

header {
    height: 70px;
    background: #ffffff !important; /* Fondo blanco */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}


/* LOGO */

.logo {
    font-size: 24px;

    font-weight: bold;

    color: white;

    letter-spacing: 1px;
}


/* =========================================
   NAV
========================================= */

nav {
    display: flex;

    gap: 25px;

    align-items: center;
}


nav a {
    text-decoration: none;
    color: #000000; /* Letras en negro */
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: var(--azul-principal); /* Color cuando pasas el mouse por encima */
}


/* =========================================
   BOTÓN CARRITO
========================================= */

.carrito-btn {
    border: none;

    background: var(--azul-oscuro);

    color: white;

    padding: 12px 18px;

    border-radius: 8px;

    cursor: pointer;

    font-weight: bold;

    transition: 0.3s;
}


.carrito-btn:hover {
    background: var(--azul-profundo);
}


/* CONTADOR */

#contador {
    background: white;

    color: var(--azul-principal);

    padding: 3px 7px;

    border-radius: 50%;

    margin-left: 5px;

    font-weight: bold;
}


/* =========================================
   HERO
========================================= */

.hero {

    min-height: 400px;

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

    background: linear-gradient(
        135deg,
        #0066cc,
        #004a99
    ) !important;

    color: white;

}

.hero h1 {
    font-size: 50px;

    margin-bottom: 15px;

    font-weight: 800;
}


.hero p {
    font-size: 20px;

    margin-bottom: 25px;

    color: #eaf4ff;
}


.hero button {
    background: white;

    color: var(--azul-principal);

    border: none;

    padding: 14px 25px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 16px;

    font-weight: bold;

    transition: 0.3s;
}


.hero button:hover {
    background: var(--azul-claro);

    transform: translateY(-2px);
}


/* =========================================
   PRODUCTOS
========================================= */

.productos-section {
    padding: 60px 6%;

    background: var(--gris-fondo);
}


.productos-section h2 {
    text-align: center;

    margin-bottom: 40px;

    font-size: 32px;

    color: var(--azul-oscuro);
}


/* =========================================
   GRID PRODUCTOS
========================================= */

.productos {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(240px, 1fr)
        );

    gap: 25px;
}


/* =========================================
   PRODUCT CARD
========================================= */

.card {
    background: white;

    border-radius: 15px;

    overflow: hidden;

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.10);

    transition: 0.3s;

    border: 1px solid transparent;
}


.card:hover {
    transform: translateY(-5px);

    border-color: var(--azul-principal);

    box-shadow:
        0 10px 30px
        rgba(0, 102, 204, 0.20);
}


/* =========================================
   IMAGEN PRODUCTO
========================================= */

.card-img {
    width: 100%;

    height: 200px;

    background: var(--azul-muy-claro);

    display: flex;

    justify-content: center;

    align-items: center;

    font-size: 70px;
}


/* =========================================
   CONTENIDO CARD
========================================= */

.card-content {
    padding: 20px;
}


.card-content h3 {
    margin-bottom: 10px;

    color: var(--azul-oscuro);
}


/* =========================================
   DESCRIPCIÓN
========================================= */

.descripcion {
    color: var(--gris);

    min-height: 45px;

    margin-bottom: 15px;
}


/* =========================================
   PRECIO
========================================= */

.precio {
    font-size: 24px;

    font-weight: bold;

    color: var(--azul-principal);

    margin-bottom: 10px;
}


/* =========================================
   STOCK
========================================= */

.stock {
    font-size: 14px;

    color: #777;

    margin-bottom: 15px;
}


/* =========================================
   BOTÓN PRODUCTO
========================================= */

.card button {
    width: 100%;

    padding: 12px;

    border: none;
    
    background: #0066cc;

    color: white;


    border-radius: 8px;

    cursor: pointer;

    font-weight: bold;

    transition: 0.3s;
}


.card button:hover {
    background: var(--azul-oscuro);

    transform: translateY(-1px);
}


.comprar-btn:hover {
    background: var(--azul-oscuro);
}


/* =========================================
   CARRITO
========================================= */

.carrito {
    position: fixed;

    top: 0;

    right: -420px;

    width: 400px;

    height: 100vh;

    background: white;

    box-shadow:
        -5px 0 20px
        rgba(0, 0, 0, 0.2);

    z-index: 2000;

    transition: 0.3s;

    display: flex;

    flex-direction: column;
}


.carrito.activo {
    right: 0;
}


/* =========================================
   HEADER CARRITO
========================================= */

.carrito-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 20px;

    background: var(--azul-principal);

    color: white;
}


.carrito-header h2 {
    color: white;
}


.carrito-header button {
    border: none;

    background: transparent;

    color: white;

    font-size: 22px;

    cursor: pointer;
}


/* =========================================
   PRODUCTOS CARRITO
========================================= */

#productosCarrito {
    padding: 20px;

    overflow-y: auto;

    flex: 1;
}


.carrito-item {
    border-bottom: 1px solid #ddd;

    padding: 15px 0;
}


.carrito-item h4 {
    margin-bottom: 8px;

    color: var(--azul-oscuro);
}


/* =========================================
   CANTIDADES
========================================= */

.cantidad {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 10px;
}


.cantidad button {
    border: none;

    background: var(--azul-principal);

    color: white;

    padding: 5px 10px;

    cursor: pointer;

    border-radius: 5px;

    font-weight: bold;
}


.cantidad button:hover {
    background: var(--azul-oscuro);
}


/* =========================================
   ELIMINAR
========================================= */

.eliminar {
    margin-top: 10px;

    background: var(--rojo);

    color: white;

    border: none;

    padding: 7px 10px;

    border-radius: 5px;

    cursor: pointer;
}


.eliminar:hover {
    background: #c62828;
}


/* =========================================
   FOOTER CARRITO
========================================= */

.carrito-footer {
    padding: 20px;

    border-top: 1px solid #ddd;

    background: white;
}


.carrito-footer h3 {
    margin-bottom: 15px;

    color: var(--azul-oscuro);
}


.carrito-footer > button {
    width: 100%;

    padding: 14px;

    border: none;

    background: var(--azul-principal);

    color: white;

    border-radius: 8px;

    font-size: 16px;

    cursor: pointer;

    font-weight: bold;

    transition: 0.3s;
}


.carrito-footer > button:hover {
    background: var(--azul-oscuro);
}


/* =========================================
   FOOTER
========================================= */

footer {
    background: var(--azul-profundo);

    color: white;

    text-align: center;

    padding: 30px;
}


footer p {
    margin-top: 8px;

    color: #d9ecff;
}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 700px) {

    header {
        padding: 10px 15px;
    }


    nav {
        display: none;
    }


    .hero h1 {
        font-size: 36px;
    }


    .hero p {
        font-size: 16px;
    }


    .carrito {
        width: 100%;

        right: -100%;
    }


    .carrito.activo {
        right: 0;
    }

}


/* =========================================
   MODAL DE COMPRA
========================================= */

.modal {
    position: fixed;

    inset: 0;

    background: rgba(0, 30, 60, 0.70);

    display: none !important;

    justify-content: center;

    align-items: center;

    z-index: 3000;

    padding: 20px;
}


.modal.mostrar {
    display: flex !important;
}


/* =========================================
   CONTENIDO MODAL
========================================= */

.modal-contenido {
    background: white;

    width: 100%;

    max-width: 500px;

    border-radius: 15px;

    padding: 30px;

    position: relative;

    box-shadow:
        0 20px 60px
        rgba(0, 50, 100, 0.35);
}


.modal-contenido h2 {
    font-size: 28px;

    margin-bottom: 8px;

    color: var(--azul-oscuro);
}


.modal-contenido > p {
    color: #777;

    margin-bottom: 25px;
}


/* =========================================
   CERRAR MODAL
========================================= */

.cerrar-modal {
    position: absolute;

    top: 15px;

    right: 15px;

    border: none;

    background: var(--azul-claro);

    color: var(--azul-oscuro);

    width: 35px;

    height: 35px;

    border-radius: 50%;

    cursor: pointer;

    font-size: 18px;

    font-weight: bold;
}


.cerrar-modal:hover {
    background: var(--azul-principal);

    color: white;
}


/* =========================================
   FORMULARIO
========================================= */

#formularioCompra {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


#formularioCompra label {
    font-weight: bold;

    margin-top: 8px;

    color: var(--azul-oscuro);
}


#formularioCompra input,
#formularioCompra textarea {
    width: 100%;

    padding: 12px;

    border: 1px solid #ddd;

    border-radius: 8px;

    outline: none;

    font-family: inherit;

    transition: 0.3s;
}


#formularioCompra input:focus,
#formularioCompra textarea:focus {
    border-color: var(--azul-principal);

    box-shadow:
        0 0 0 3px
        rgba(0, 102, 204, 0.12);
}


#formularioCompra textarea {
    min-height: 80px;

    resize: vertical;
}


/* =========================================
   RESUMEN COMPRA
========================================= */

.resumen-compra {
    margin-top: 15px;

    padding: 15px;

    background: var(--azul-claro);

    color: var(--azul-oscuro);

    border-radius: 8px;

    display: flex;

    justify-content: space-between;

    font-size: 19px;

    font-weight: bold;
}


/* =========================================
   CONFIRMAR PEDIDO
========================================= */

.confirmar-btn {
    margin-top: 15px;

    padding: 14px;

    background: var(--azul-principal);

    color: white;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    font-size: 16px;

    font-weight: bold;

    transition: 0.3s;
}


.confirmar-btn:hover {
    background: var(--azul-oscuro);

    transform: translateY(-1px);
}

/* =========================
   SLIDER
========================= */

.slider {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 5;

    overflow: hidden;

    background: #0066cc;
}


.slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateX(100%) scale(0.94);

    opacity: 1;

    transition:
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);

    z-index: 1;
}


/* TARJETA ACTUAL */

.slide.activo {
    transform: translateX(0) scale(1);
    z-index: 3;
}


/* TARJETA QUE SALE */

.slide.anterior {
    transform: translateX(-100%) scale(0.94);
    z-index: 2;
}


/* IMAGEN */

.slide img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    opacity: 1;
    filter: none;

    transform: scale(1);
}


/* SIN OSCURECER LA IMAGEN */

.slide::before,
.slide::after {
    display: none;
}/* =========================================
   IMAGEN COMPLETA
========================================= */

.slide img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    object-position: center;

    transform: scale(1);

    transition:
        transform 6s ease-in-out,
        opacity 1s ease;
}


/* =========================================
   ANIMACIÓN SUAVE
========================================= */

.slide.activo img {
    transform: scale(1.01);
}/* OSCURECER UN POCO EL BANNER */




/* TEXTO */

.texto-slide {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 90%;

    text-align: center;

    color: white;

    z-index: 3;

    opacity: 1;
}




.texto-slide h1 {
    text-align: center;

    font-size: 55px;

    margin-bottom: 12px;

    text-shadow:
        0 3px 15px
        rgba(0, 0, 0, .6);
}


.texto-slide p {
    text-align: center;

    font-size: 22px;

    text-shadow:
        0 2px 10px
        rgba(0, 0, 0, .6);
}


/* FLECHAS */

.flecha {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 10;

    width: 52px;
    height: 52px;

    border: 1px solid rgba(255,255,255,.5);

    border-radius: 50%;

    background:
        rgba(0, 50, 110, .55);

    backdrop-filter: blur(8px);

    color: white;

    font-size: 26px;

    cursor: pointer;

    transition:
        background .3s ease,
        transform .3s ease,
        border-color .3s ease;
}


.flecha:hover {
    background: #0066cc;

    border-color: #0066cc;

    transform:
        translateY(-50%)
        scale(1.10);
}


.izquierda {
    left: 25px;
}


.derecha {
    right: 25px;
}
.slide.activo{

    opacity:1;

}
.slide img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transform: scale(1);

    transition: transform 6s ease-in-out;
}

.slide.activo img {
    transform: scale(1);
}


.texto-slide{

    position:absolute;

    top:50%;
    left:50%;

    transform:
        translate(-50%,-50%);

    text-align:center;

    color:white;

    text-shadow:
        2px 2px 10px black;

}

.texto-slide h1{

    font-size:60px;

}

.texto-slide p{

    font-size:24px;

}

.flecha{

    position:absolute;

    top:50%;

    transform:
        translateY(-50%);

    width:60px;
    height:60px;

    border:none;

    border-radius:50%;

    background:
        rgba(255,255,255,.8);

    font-size:30px;

    cursor:pointer;

    z-index:100;

}

.izquierda{

    left:20px;

}

.derecha{

    right:20px;

}
.buscador-premium{

    width:90%;

    max-width:700px;

    margin:30px auto;

}

.buscador-premium input {
    width: 100%;

    padding: 18px;

    border: 2px solid transparent;
    border-radius: 50px;

    font-size: 18px;

    outline: none;

    box-shadow:
        0 5px 20px rgba(0,0,0,.12);

    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}
/* Al pasar el mouse */

.buscador-premium input:hover {
    border-color: #168cff;

    box-shadow:
        0 5px 20px rgba(0,0,0,.12),
        0 0 0 4px rgba(22,140,255,.12),
        0 0 18px rgba(22,140,255,.35);
}
/* Al hacer clic / escribir */

.buscador-premium input:focus {
    border-color: #0066cc;

    box-shadow:
        0 5px 20px rgba(0,0,0,.12),
        0 0 0 4px rgba(0,102,204,.15),
        0 0 22px rgba(0,102,204,.40);
}
/* =========================================
   CATEGORÍAS ICOM ELECTRIC
========================================= */

.categorias-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(130px, 1fr));

    gap: 10px;

    width: 100%;

    margin: 25px 0 35px;

    padding: 16px;

    background:
        linear-gradient(
            135deg,
            #041743,
            #082767
        );

    border: 1px solid #168cff;

    border-radius: 16px;

    box-shadow:
        0 0 20px rgba(0, 102, 255, 0.25);

}


.categoria-card {

    min-height: 110px;

    padding: 15px 10px;

    border: 1px solid #d5e4f5;

    border-radius: 10px;

    background: #ffffff;

    color: #0a1740;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    cursor: pointer;

    font-size: 15px;

    font-weight: 700;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease,
        background .25s ease,
        color .25s ease;

}


.categoria-icono {

    font-size: 31px;

    line-height: 1;

}


.categoria-card:hover {

    transform: translateY(-5px);

    background:
        linear-gradient(
            135deg,
            #0066cc,
            #168cff
        );

    color: white;

    border-color: #168cff;

    box-shadow:
        0 8px 22px
        rgba(0, 102, 204, .35);

}
.categoria-card:hover .categoria-icono {

    transform: scale(1.12);

}

.categoria-card.activa {

    background:
        linear-gradient(
            135deg,
            #0066cc,
            #168cff
        );

    color: white;

    border-color: #168cff;

    box-shadow:
        0 8px 22px
        rgba(0, 102, 204, .35);

}


.categoria-card.activa .categoria-icono {

    transform: scale(1.08);

}


/* CELULAR */

@media (max-width: 700px) {

    .categorias-grid {

        grid-template-columns:
            repeat(2, 1fr);

        padding: 10px;

    }


    .categoria-card {

        min-height: 95px;

        font-size: 13px;

    }


    .categoria-icono {

        font-size: 27px;

    }

}
.pdf-btn {

    width: 100%;

    margin-top: 15px;

    padding: 14px;

    border: 2px solid #0066cc;

    background: white;

    color: #0066cc;

    border-radius: 8px;

    cursor: pointer;

    font-size: 16px;

    font-weight: bold;

    transition: .3s;

}


.pdf-btn:hover {

    background: #0066cc;

    color: white;

    box-shadow:
        0 6px 18px
        rgba(0, 102, 204, .25);

}
/* =========================================
   RESPONSIVE GENERAL
   ICOM ELECTRIC
========================================= */


/* Evita desbordamientos horizontales */
html,
body {
    width: 100%;
    overflow-x: hidden;
}


/* Imágenes responsivas */
img {
    max-width: 100%;
    height: auto;
}


/* =========================================
   TABLETS
========================================= */

@media (max-width: 1000px) {

    header {
        height: auto;
        min-height: 70px;

        padding: 12px 4%;

        gap: 15px;

        flex-wrap: wrap;
    }


    .logo {
        font-size: 22px;
    }


    nav {
        gap: 14px;

        flex-wrap: wrap;

        justify-content: center;
    }


    nav a {
        font-size: 14px;
    }


    .carrito-btn {
        padding: 10px 14px;
    }


    /* =====================================
       SLIDER
    ===================================== */

    .slider {
        width: 100%;

        aspect-ratio: 16 / 6;
    }


    .flecha {
        width: 46px;
        height: 46px;

        font-size: 22px;
    }


    .izquierda {
        left: 12px;
    }


    .derecha {
        right: 12px;
    }


    /* =====================================
       BUSCADOR
    ===================================== */

    .buscador-premium {
        width: 94%;

        max-width: 100%;
    }


    .buscador-premium input {
        padding: 15px 18px;

        font-size: 16px;
    }


    /* =====================================
       CATEGORÍAS
    ===================================== */

    .categorias-grid {
        grid-template-columns:
            repeat(4, 1fr);

        gap: 10px;
    }


    .categoria-card {
        min-height: 95px;

        padding: 12px 8px;

        font-size: 14px;
    }


    .categoria-icono {
        font-size: 27px;
    }


    /* =====================================
       PRODUCTOS
    ===================================== */

    .productos-section {
        padding:
            45px 4%;
    }


    .productos {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 18px;
    }


    .card-img {
        height: 180px;
    }


    .card-content {
        padding: 16px;
    }


    .precio {
        font-size: 21px;
    }


    /* =====================================
       MODAL
    ===================================== */

    .modal-contenido {
        max-width: 90%;

        padding: 25px;
    }

}


/* =========================================
   CELULARES
========================================= */

@media (max-width: 700px) {

    /* =====================================
       HEADER
    ===================================== */

    header {
        padding:
            10px 14px;

        justify-content:
            space-between;

        flex-wrap: wrap;
    }


    .logo {
        font-size: 20px;
    }


    nav {
        display: none;
    }


    .carrito-btn {
        padding:
            9px 12px;

        font-size: 14px;
    }


    /* =====================================
       SLIDER
    ===================================== */

    .slider {
        width: 100%;

        /*
        Mantiene la imagen panorámica,
        pero con una altura adecuada
        para móvil.
        */

        aspect-ratio: 16 / 7;

        background:
            linear-gradient(
                135deg,
                #003366,
                #0066cc
            );
    }


    .slide {
        width: 100%;
        height: 100%;
    }


    .slide img {
        width: 100%;
        height: 100%;

        object-fit: contain;

        object-position: center;

        max-width: 100%;
    }


    /* Mantiene la animación de tarjetas */

    .slide {
        transform:
            translateX(100%)
            scale(.97);
    }


    .slide.activo {
        transform:
            translateX(0)
            scale(1);
    }


    .slide.anterior {
        transform:
            translateX(-100%)
            scale(.97);
    }


    .flecha {
        width: 40px;
        height: 40px;

        font-size: 20px;

        background:
            rgba(
                0,
                74,
                153,
                .75
            );

        color: white;
    }


    .izquierda {
        left: 8px;
    }


    .derecha {
        right: 8px;
    }


    /* Si todavía tienes texto HTML
       encima del banner */

    .texto-slide {
        width: 80%;

        top: 50%;
        left: 50%;

        transform:
            translate(
                -50%,
                -50%
            );

        text-align: center;
    }


    .texto-slide h1 {
        font-size: 28px;
    }


    .texto-slide p {
        font-size: 15px;
    }


    /* =====================================
       BUSCADOR
    ===================================== */

    .buscador-premium {
        width: calc(
            100% - 24px
        );

        margin:
            20px auto;
    }


    .buscador-premium input {
        width: 100%;

        padding:
            14px 16px;

        font-size: 15px;
    }


    /* =====================================
       CATEGORÍAS
    ===================================== */

    .categorias-grid {
        width:
            calc(
                100% - 20px
            );

        margin:
            15px auto
            25px;

        padding: 10px;

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

        gap: 9px;

        border-radius: 12px;
    }


    .categoria-card {
        width: 100%;

        min-width: 0;

        min-height: 88px;

        padding:
            10px 6px;

        font-size: 13px;
    }


    .categoria-icono {
        font-size: 25px;
    }


    /* =====================================
       PRODUCTOS
    ===================================== */

    .productos-section {
        padding:
            35px 14px;
    }


    .productos-section h2 {
        font-size: 27px;

        margin-bottom: 25px;
    }


    .productos {
        /*
        Una tarjeta por fila
        en celulares pequeños
        */

        grid-template-columns:
            1fr;

        gap: 18px;
    }


    .card {
        width: 100%;

        max-width: 500px;

        margin:
            0 auto;
    }


    .card-img {
        height: 210px;
    }


    .card-img img {
        width: 100%;
        height: 100%;

        object-fit: contain;
    }


    .card-content {
        padding: 17px;
    }


    .card-content h3 {
        font-size: 19px;
    }


    .descripcion {
        min-height: auto;

        font-size: 14px;
    }


    .precio {
        font-size: 22px;
    }


    .card button {
        padding: 13px;

        font-size: 15px;
    }


    /* =====================================
       CARRITO LATERAL
    ===================================== */

    .carrito {
        width: 100%;

        max-width: 100%;

        right: -100%;
    }


    .carrito.activo {
        right: 0;
    }


    .carrito-header {
        padding: 16px;
    }


    #productosCarrito {
        padding: 15px;
    }


    .carrito-footer {
        padding: 15px;
    }


    /* =====================================
       CONTROLES DEL CARRITO
    ===================================== */

    .controles,
    .cantidad {
        flex-wrap: wrap;
    }


    .cantidad button,
    .controles button {
        min-width: 38px;
        min-height: 38px;
    }


    /* =====================================
       MODAL DE COMPRA
    ===================================== */

    .modal {
        padding: 10px;

        align-items:
            flex-start;

        overflow-y: auto;
    }


    .modal-contenido {
        width: 100%;

        max-width: 100%;

        margin:
            20px auto;

        padding:
            22px 16px;

        border-radius: 12px;
    }


    .modal-contenido h2 {
        font-size: 24px;

        padding-right: 40px;
    }


    #formularioCompra input,
    #formularioCompra textarea {
        padding: 12px;

        font-size: 16px;
    }


    /*
    16px evita que iPhone haga
    zoom automático al tocar
    inputs.
    */


    .resumen-compra {
        font-size: 17px;

        gap: 10px;

        flex-wrap: wrap;
    }


    .pdf-btn,
    .confirmar-btn {
        width: 100%;

        padding: 14px;

        font-size: 15px;
    }


    /* =====================================
       FOOTER
    ===================================== */

    footer {
        padding:
            24px 14px;

        font-size: 14px;
    }

}


/* =========================================
   CELULARES MUY PEQUEÑOS
========================================= */

@media (max-width: 420px) {

    .logo {
        font-size: 18px;
    }


    .carrito-btn {
        font-size: 13px;

        padding:
            8px 10px;
    }


    /* Banner un poco más alto
       para que pueda verse completo */

    .slider {
        aspect-ratio: 16 / 8;
    }


    .flecha {
        width: 35px;
        height: 35px;

        font-size: 17px;
    }


    .categorias-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }


    .categoria-card {
        min-height: 80px;

        font-size: 12px;
    }


    .categoria-icono {
        font-size: 22px;
    }


    .productos-section h2 {
        font-size: 24px;
    }


    .card-img {
        height: 190px;
    }


    .modal-contenido {
        padding:
            20px 14px;
    }

}
/* =========================================
   BANDERITAS ESTADO STOCK
========================================= */

.estado-producto {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    width: fit-content;

    margin: 5px 0 15px;

    padding: 7px 13px;

    border-radius: 6px;

    font-size: 13px;

    font-weight: 700;

    border-left: 4px solid;

}


/* PUNTO */

.estado-punto {

    width: 8px;

    height: 8px;

    border-radius: 50%;

}


/* DISPONIBLE */

.estado-disponible {

    color: #147a36;

    background: #e9f8ee;

    border-left-color: #20a34a;

}

.estado-disponible .estado-punto {

    background: #20a34a;

}


/* NO DISPONIBLE */

.estado-no-disponible {

    color: #b42318;

    background: #fdecec;

    border-left-color: #dc2626;

}

.estado-no-disponible .estado-punto {

    background: #dc2626;

}


/* SOBRE PEDIDO */

.estado-sobre-pedido {

    color: #a85c00;

    background: #fff3dd;

    border-left-color: #f59e0b;

}

.estado-sobre-pedido .estado-punto {

    background: #f59e0b;

}
/* =========================================
   ESTADOS DE DISPONIBILIDAD
========================================= */

.estado-producto {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    width: fit-content;

    margin: 8px 0 15px;

    padding: 7px 12px;

    border-radius: 6px;

    font-size: 13px;

    font-weight: 700;

    border-left: 4px solid;
}


.estado-punto {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    display: inline-block;
}


/* =========================================
   DISPONIBLE - VERDE
========================================= */

.estado-disponible {
    color: #137333;

    background: linear-gradient(
        90deg,
        rgba(32, 163, 74, 0.22),
        rgba(32, 163, 74, 0.08)
    );

    border: 1px solid rgba(32, 163, 74, 0.25);
    border-left: 4px solid #20a34a;
}

.estado-disponible .estado-punto {
    background: #20a34a;
}


/* =========================================
   NO DISPONIBLE - ROJO
========================================= */

.estado-no-disponible {
    color: #b42318;

    background: linear-gradient(
        90deg,
        rgba(220, 38, 38, 0.22),
        rgba(220, 38, 38, 0.08)
    );

    border: 1px solid rgba(220, 38, 38, 0.25);
    border-left: 4px solid #dc2626;
}

.estado-no-disponible .estado-punto {
    background: #dc2626;
}


/* =========================================
   SOBRE PEDIDO - NARANJA
========================================= */

.estado-sobre-pedido {
    color: #a85c00;

    background: linear-gradient(
        90deg,
        rgba(245, 158, 11, 0.24),
        rgba(245, 158, 11, 0.08)
    );

    border: 1px solid rgba(245, 158, 11, 0.28);
    border-left: 4px solid #f59e0b;
}

.estado-sobre-pedido .estado-punto {
    background: #f59e0b;
}

/* =========================================
   MOSTRAR MÁS - ICOM ELECTRIC
========================================= */

.contenedor-mostrar-mas {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px 15px 45px;
}

button.boton-mostrar-mas {
    position: relative;

    align-items: center;
    justify-content: center;
    gap: 10px;

    min-width: 260px;
    padding: 15px 30px;

    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 14px !important;

    background: linear-gradient(
        135deg,
        #004a99 0%,
        #0066cc 50%,
        #168cff 100%
    ) !important;

    color: #ffffff !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;

    cursor: pointer !important;

    box-shadow:
        0 8px 20px rgba(0, 102, 204, 0.30),
        0 2px 5px rgba(0, 0, 0, 0.10) !important;

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease !important;
}


/* BRILLO */

button.boton-mostrar-mas::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background: linear-gradient(
        110deg,
        transparent,
        rgba(255, 255, 255, 0.45),
        transparent
    );

    transform: skewX(-20deg);

    transition: left .6s ease;
}


/* HOVER */

button.boton-mostrar-mas:hover {
    transform: translateY(-4px);

    background: linear-gradient(
        135deg,
        #003d80,
        #0066cc,
        #168cff
    ) !important;

    box-shadow:
        0 13px 28px rgba(0, 102, 204, 0.42) !important;
}

button.boton-mostrar-mas:hover::before {
    left: 150%;
}


/* FLECHA */

.flecha-mostrar {
    font-size: 20px;
    font-weight: bold;

    transition: transform .25s ease;
}

button.boton-mostrar-mas:hover .flecha-mostrar {
    transform: translateY(3px);
}


/* CLICK */

button.boton-mostrar-mas:active {
    transform: translateY(-1px) scale(.97);
}


/* CELULAR */

@media (max-width: 600px) {

    button.boton-mostrar-mas {
        width: 100%;
        max-width: 290px;
        min-width: 0;
    }

}
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 70px !important;
    max-width: 70px !important;
    height: auto !important;
    max-height: 60px !important;
    object-fit: contain !important;
}