body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
}

.contenedor {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/*header {
    background: white;
    border-bottom: 1px solid #ddd;
}*/
/* HEADER BASE */
header {
    background: #1a1a1a;
    /* mejora contraste del logo */
    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

header .contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
}

.logo {
    color: #ee5e44;
}

/* LOGO */
.logo img {
    height: 45px;
    width: auto;
    display: block;
}

/* EVITAR ESTILO DE LINK */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/*FIN LOGO*/
/*SECCION HERO*/
/*.hero {
    background: #86bada;
    color: white;
    padding: 60px 0;
}*/
.hero {
    position: relative;
    padding: 60px 0;
    color: white;
    align-items: center;
    overflow: hidden;
    display: flex;

}

/* IMAGEN DE FONDO */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    /* controla cuánto ocupa */
    height: 100%;
    background: url("../img/site/imagen-hero.jpg") right center / cover no-repeat;
    z-index: 0;
}

/* OVERLAY AZUL */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(134, 186, 218, 0.95) 45%,
            rgba(134, 186, 218, 0.7) 65%,
            rgba(134, 186, 218, 0.2) 80%,
            transparent 100%);
    z-index: 1;
}

/* CONTENIDO ENCIMA */
.hero-grid {
    position: relative;
    z-index: 2;
}

.hero-texto h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 15px;
    margin-top: 5px;
}

.hero-texto p {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.btn-principal {
    background: #ee5e44;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

/*FIN SECCION HERO*/
.categorias {
    padding: 40px 0;
}

.grid-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.categoria {
    background: white;
    padding: 25px;
    text-align: center;
    border-radius: 6px;
}

.productos {
    padding: 40px 0;
}

/* CONTENEDOR PRINCIPAL PRODUCTOS EN LA PAGINA PRINCIPAL*/
.grid-productos {
    display: grid;
    gap: 20px;

    /* MÓVIL: 2 productos por fila (es lo estándar hoy para tiendas) */
    grid-template-columns: repeat(2, 1fr);
}

/* TABLETS: 3 productos por fila */
@media (min-width: 768px) {
    .grid-productos {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* LAPTOPS / PC: 4 productos por fila  */
@media (min-width: 1024px) {
    .grid-productos {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* FIN CONTENEDOR PRINCIPAL PRODUCTOS EN LA PAGINA PRINCIPAL*/
.producto {
    background: white;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.producto img {
    width: 100%;
}

.precio {
    color: #ee5e44;
    font-size: 20px;
    font-weight: bold;
}

.como-comprar {
    background: #eee;
    padding: 40px 0;
}

.pasos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;

}

.paso {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 100px;
}

/*.paso h3 {
    background: #86bada;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 40px;
    margin: auto;
}*/
.paso h3 {
    background: #86bada;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    line-height: 45px;
    margin: auto;
}

/*.paso p {
    font-size: 14px;
    color: #555;
}*/
.cta {
    background: white;
    padding: 40px 0;
    text-align: center;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 14px 25px;
    text-decoration: none;
    border-radius: 5px;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Estilos específicos para filtros de productos */
.filtros-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filtros-grupo {
    flex: 1 1 260px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
}

.btn-consultarProductos {
    align-self: center;
}

.select-hint {
    width: 100%;
    order: 2;
}

.filtro-select {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1px solid #c4c4c4;
    border-radius: 12px;
    background: #ffffff;
    color: #333333;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filtro-select:focus {
    outline: none;
    border-color: #ee5e44;
    box-shadow: 0 0 0 4px rgba(238, 94, 68, 0.12);
}

.btn-consultarProductos {
    background: linear-gradient(135deg, #ee5e44 0%, #ff7f50 100%);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1.8rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 12px 24px rgba(238, 94, 68, 0.22);
}

.btn-consultarProductos:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(238, 94, 68, 0.28);
}

.btn-consultarProductos:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.45);
    outline-offset: 4px;
}

.select-hint {
    margin-top: 0.65rem;
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.4;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, max-height 0.25s ease, transform 0.25s ease;
    transform: translateY(6px);
}

.select-hint.visible {
    opacity: 1;
    max-height: 4rem;
    transform: translateY(0);
}

/* CONTENEDOR MENU */

.contenedor-menu {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: white;
    border-bottom: 1px solid #ddd;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #ee5e44;
}

/* MENU PRINCIPAL */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu>ul {
    display: flex;
    gap: 0;
}

.menu li {
    position: relative;
}

.menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.menu a:hover {
    background: rgba(134, 186, 218, 0.12);
}

.flecha {
    font-size: 12px;
    margin-left: 5px;
    display: inline-block;
    transition: transform .3s ease;
}

/* SUBMENU NIVEL 1 */

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    padding: 10px 0;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

/* SUBMENU NIVEL 2 */

.submenu2 {
    display: none;
    position: absolute;
    left: 100%;
    top: 30%;
    background: white;
    min-width: 200px;
    padding: 10px 0;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

/* HOVER DESKTOP */

.has-submenu:hover>.submenu {
    display: block;
}

.submenu li:hover>.submenu2 {
    display: block;
}

.has-submenu:hover>a .flecha {
    transform: rotate(30deg);
}

.submenu a,
.submenu2 a {
    padding: 10px 20px;
    display: block;
}

.submenu a:hover,
.submenu2 a:hover {
    background: #f5f5f5;
    color: #ee5e44;
}

/* Responsive menu for tablets and mobiles */
@media (max-width: 992px) {
    .contenedor-menu {
        padding: 15px 20px;
    }

    .logo img {
        height: 38px;
    }

    .menu-toggle {
        display: block;
    }

    .menu {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        border-top: 1px solid #eee;
    }

    .menu.active {
        display: block;
    }

    .menu>ul {
        display: flex;
        flex-direction: column;
    }

    .menu li {
        width: 100%;
    }

    .menu a,
    .toggle-submenu {
        padding: 14px 18px;
        border-bottom: 1px solid #f2f2f2;
    }

    .menu li:last-child>a {
        border-bottom: none;
    }

    .toggle-submenu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .submenu,
    .submenu2 {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        position: static;
        box-shadow: none;
        background: #fff;
    }

    .submenu.active,
    .submenu2.active {
        max-height: 500px;
    }

    .flecha.activa {
        transform: rotate(-90deg);
    }

    .has-submenu:hover>.submenu {
        display: block;
    }

    .hero {
        padding: 60px 20px;
        text-align: center;
    }

    .hero::before {
        display: none;
    }

    .hero::after {
        background: #86bada;
    }

    .hero-texto h2 {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .hero-texto p {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .pasos {
        grid-template-columns: 1fr;
    }

    .producto-detalle-grid {
        grid-template-columns: 1fr;
    }
}

.link-powered {
    text-decoration: none;
    color: inherit;
}

.link-limpio:hover {
    text-decoration: none;
    color: inherit;
    opacity: 0.85;
}



/*SECCION DE CATEGORIAS*/


.categorias {
    padding: 50px 0;
}

.categorias h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

/* GRID */

.grid-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* TARJETA */

.categoria {
    background: white;
    border-radius: 10px;
    border: 2px solid #cfe8f3;
    /* borde celeste */
    padding: 15px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: all .3s ease;
}

/* HOVER */

.categoria:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* IMAGEN */

.categoria img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* TITULO */

.categoria h3 {
    margin-bottom: 12px;
    font-size: 22px;
    color: #444;
}

/* BOTON */

.btn-ver {
    display: inline-block;
    background: #ee5e44;
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background .2s;
}

.btn-ver:hover {
    background: #d94e34;
}

/*SECCION DE PRODUCTOS PARA LA PAGINA PRINCIPAL*/
/* SECCION PRODUCTOS */

.productos {
    padding: 50px 0;
}

.productos h2 {
    text-align: center;
    margin-bottom: 30px;
}


/* GRID */

/*.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
 }*/

/* GRID BASE (Celular: 1 columna) */
.grid-productos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* Tablet (2 o 3 columnas dependiendo del ancho) */
@media (min-width: 600px) {
    .grid-productos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .grid-productos {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Laptop / Desktop (4 columnas) */
@media (min-width: 1200px) {
    .grid-productos {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mantén tus estilos de .producto-card igual, solo asegúrate de que el contenedor tenga la clase .contenedor para centrarse */



/* TARJETA */

.producto-card {
    /* background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform .2s ease, box-shadow .2s ease;*/

    background: white;
    border-radius: 10px;
    border: 2px solid #cfe8f3;
    /* borde celeste */
    padding: 10px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: all .3s ease;


}

.producto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}


/* IMAGEN */

.producto-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    align-content: center;
    /* margin-bottom: 15px;*/

}


/* INFO */

.producto-info {
    padding: 15px;
    text-align: center;
}

.producto-info h3 {
    font-size: 16px;
    color: #222;
    margin-bottom: 8px;
}


/* PRECIO */

.precio {
    font-size: 18px;
    font-weight: bold;
    color: #ee5e44;
    margin-bottom: 12px;
}


/* BOTON */

.btn-detalle {
    display: inline-block;
    background: #86bada;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background .2s;
}

.btn-detalle:hover {
    background: #6fa9cb;
}

/*BOTON VER TODOS LOS PRODUCTOS**/
.ver-todos {
    text-align: center;
    /* Centra el botón horizontalmente */
    margin-top: 40px;
    /* Crea el espacio con los productos de arriba */

}

/******* DETALLE DE PRODUCTO *********/
/* CONTENEDOR */

.detalle-producto {
    padding: 50px 0;
}

/* GRID */

.producto-detalle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* GALERÍA */

.galeria {
    text-align: center;
}

.imagen-principal {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    object-fit: contain;
    display: block;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

/*IMAGENES PAGINA PRINCIPAL*/
.img-contenedor {
    max-width: 100%;
    height: auto;
    display: block;
}

/* MINIATURAS */

.miniaturas {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    content-visibility: auto;
}

.miniaturas img,
.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
    background: #f5f5f5;
}

.miniaturas img:hover,
.miniaturas img:focus,
.thumbnail:hover,
.thumbnail:focus,
.miniaturas img.active {
    border-color: #86bada;
    transform: scale(1.05);
}

/* INFO */

.info-producto h1 {
    margin-bottom: 10px;
    font-size: 2rem;
}

/* PRECIO DESTACADO */

.precio {
    font-size: 28px;
    color: #ee5e44;
    font-weight: bold;
    margin-bottom: 15px;
}

/* DESCRIPCIÓN */

.descripcion {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* BOTÓN WHATSAPP */

.btn-whatsapp {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
}

/* FIN DETALLE DE PRODUCTO */

@media (max-width: 992px) {
    .detalle-producto {
        padding: 35px 20px;
    }

    .producto-detalle-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-producto {
        padding: 0 10px;
    }

    .btn-whatsapp,
    .btn-detalle {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

@media (max-width: 680px) {
    .detalle-producto {
        padding: 25px 15px;
    }

    .precio {
        font-size: 24px;
    }

    .info-producto h1 {
        font-size: 1.7rem;
    }

    .miniaturas img {
        width: 60px;
        height: 60px;
    }

    .nota-producto {
        font-size: 13px;
        padding: 14px;
    }

    .btn-whatsapp,
    .btn-detalle {
        padding: 14px;
    }
}

/*NOTA IMPORTANTE DEL PRODUCTO*/
.nota-producto {
    background: #fff4e5;
    border-left: 4px solid #ee5e44;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.nota-producto strong {
    color: #ee5e44;
}

/* ==================== ESTILOS PÁGINA PRODUCTOS ==================== */

/* SECCIÓN DE FILTROS */
.filtros-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filtros-grupo {
    flex: 1;
    min-width: 200px;
}

.filtro-input,
.filtro-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.filtro-input:focus,
.filtro-select:focus {
    outline: none;
    border-color: #86bada;
    box-shadow: 0 0 5px rgba(134, 186, 218, 0.3);
}

.btn-consultarProductos {
    background: #ee5e44;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-consultarProductos:hover {
    background: #d94c2f;
}

/* INFORMACIÓN DE RESULTADOS */
.resultados-info {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

/* GRID DE PRODUCTOS PARA PÁGINA */
.productos-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;

    /* MÓVIL: 1 producto por fila */
    grid-template-columns: 1fr;
}

/* TABLETS: 2 productos por fila */
@media (min-width: 768px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* LAPTOPS / PC: 4 productos por fila */
@media (min-width: 1024px) {
    .productos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* TARJETA DE PRODUCTO */
.producto-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* IMAGEN DEL PRODUCTO */
.producto-imagen {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    content-visibility: auto;
    contain-intrinsic-size: auto 250px;
}

.producto-imagen picture,
.producto-imagen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.producto-card:hover .producto-imagen img,
.producto-card:hover .producto-imagen picture {
    transform: scale(1.05);
}

/* INFORMACIÓN DEL PRODUCTO */
.productos-grid .producto-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.productos-grid .producto-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.productos-grid .producto-descripcion {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.productos-grid .producto-precio {
    margin: 10px 0;
    font-size: 18px;
    font-weight: bold;
    color: #ee5e44;
}

.productos-grid .btn-detalle {
    background: #86bada;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-top: auto;
}

.productos-grid .btn-detalle:hover {
    background: #6da8c7;
}

/* SIN PRODUCTOS */
.sin-productos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* PAGINACIÓN */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pag-link,
.pag-numero {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pag-link:hover,
.pag-numero:hover {
    background: #f5f5f5;
    border-color: #86bada;
}

.pag-numero.active {
    background: #86bada;
    color: white;
    border-color: #86bada;
    font-weight: bold;
}

.pag-puntos {
    color: #999;
    padding: 8px 5px;
}

/* RESPONSIVE FILTROS */
@media (max-width: 768px) {
    .filtros-section {
        flex-direction: column;
    }

    .filtros-grupo,
    .btn-consultarProductos {
        width: 100%;
    }

    .paginacion {
        gap: 5px;
    }

    .pag-link,
    .pag-numero {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* ==================== FIN ESTILOS PÁGINA PRODUCTOS ==================== */