body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
}

.header {
    background: #0a1a2f;
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.logo span {
    color: #00aaff;
}

.header nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
}

.header nav a:hover {
    color: #00aaff;
}

/* PRODUCTOS */
.productos {
    display: block;          /* cambiar de grid a block para el carrusel */
    padding: 0 0 40px 0;     /* top right bottom left: solo padding inferior */
    margin: 0;               /* quitar margen */
}

.producto {
    background: white;
    padding: 15px;
    border-radius: 10px;
    transition: 0.3s;
}

.producto:hover {
    transform: translateY(-5px);
}

.producto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #00aaff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* FOOTER */
.footer {
    background: #0a1a2f;
    color: white;
    text-align: center;
    padding: 20px;
}
/* RESPONSIVE */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .header nav {
        margin-top: 10px;
    }

    .productos {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .productos {
        grid-template-columns: 1fr;
    }

    .producto img {
        height: 180px;
    }
}
/* TOPBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a1a2f;
    padding: 15px 40px;
    color: white;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.logo span {
    color: #00aaff;
}

.topbar-center input {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    width: 280px;
}

.topbar-right a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
}

.topbar-right a:hover {
    color: #00aaff;
}

/* HERO */
.hero {
    background: linear-gradient(rgba(10,26,47,.85), rgba(10,26,47,.85)),
                url('assets/img/banner.jpg') center/cover;
    height: 380px;
    display: flex;
    align-items: center;
    padding-left: 60px;
}

.hero-content h1 {
    font-size: 42px;
    color: white;
}

.hero-content p {
    color: #ddd;
    max-width: 500px;
}

.btn-hero {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #0057ff;
    color: white;
    text-decoration: none;
    border-radius: 30px;
}

/* PRODUCT CARDS */
.producto {
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}

.producto h3 {
    font-size: 18px;
    margin: 10px 0;
}

.producto strong {
    color: #0057ff;
}
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        gap: 15px;
    }

    .topbar-center input {
        width: 100%;
    }

    .hero {
        padding: 20px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 28px;
    }
}
/* BARRA DE CATEGORÍAS TONO OSCURO ARMONIZADO */
.categorias-bar {
    background: #222222; /* gris/plomo oscuro acorde al diseño */
    padding: 10px 40px;
}

.categorias-container {
    max-width: 1200px;
    margin: 0 auto;
}

.categorias-list {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.categoria-item {
    position: relative;
}

.categoria-item > a {
    color: white;          /* texto blanco */
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    display: block;
}

.categoria-item > a:hover {
    background: #0057ff;   /* azul vivo al pasar el mouse */
    border-radius: 5px;
}

.subcategorias-list {
    position: absolute;
    top: 100%;
    left: 0;
    background: #222222;    /* fondo subcategorías igual */
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: none;
    min-width: 180px;
    z-index: 100;
    border-radius: 5px;
}

.subcategorias-list li a {
    display: block;
    padding: 5px 15px;
    color: white;
    text-decoration: none;
}

.subcategorias-list li a:hover {
    background: #0057ff;
    border-radius: 5px;
}

.categoria-item:hover .subcategorias-list {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .categorias-list {
        flex-direction: column;
        gap: 0;
    }

    .categoria-item:hover .subcategorias-list {
        position: relative;
    }
}

/* ===== CARRUSEL PRINCIPAL RESPONSIVE ===== */
/* CARRUSEL PRINCIPAL RESPONSIVE */
.main-slider {
    width: 100%;
    height: 50vh;        /* ocupa 50% de la altura de la pantalla */
    min-height: 200px;   /* límite inferior para móviles */
    max-height: 500px;   /* límite superior para desktop */
    overflow: hidden;
    position: relative;
}

.main-slider .slides,
.main-slider .slide {
    width: 100%;
    height: 100%;
}

.main-slider .slide {
    display: none;
}

.main-slider .slide.active {
    display: block;
}

.main-slider img {
    width: 100%;
    height: 100%;
    object-fit: fill;  /* muestra la imagen completa aunque se estire */
    display: block;
}

/* Flechas */
.main-slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    font-size: 34px;
    padding: 12px 16px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}

.main-slider .prev { left: 20px; }
.main-slider .next { right: 20px; }

.main-slider button:hover {
    background: rgba(0,0,0,.8);
}

/* Ajuste extra para móviles */
@media (max-width: 768px) {
    .main-slider { height: 35vh; }
}

@media (max-width: 480px) {
    .main-slider { height: 25vh; }
}


/* Responsive */
@media (max-width: 768px) {
    .main-slider { height: 300px; }
}
@media (max-width: 480px) {
    .main-slider { height: 200px; }
}


/* ===== CARRUSEL DE PRODUCTOS ===== */
.carousel {
    position: relative;
    padding: 0;          /* quita espacio arriba/abajo y a los lados */
    margin: 0;      /* asegura que no haya margen extra */
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;         /* solo padding vertical */
    justify-content: flex-start; /* alinea todo a la izquierda */
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;     /* solo padding vertical */
    justify-content: flex-start; /* alinea todo a la izquierda */
}

/* Asegura tamaño correcto de cards dentro del carrusel */
.carousel-track .producto {
    min-width: 250px;
    max-width: 250px;
    flex-shrink: 0;
    
}

/* Flechas productos */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0057ff;
    color: #fff;
    border: none;
    font-size: 26px;
    padding: 10px 14px;
    cursor: pointer;
    z-index: 5;
    border-radius: 50%;
}

.carousel-btn.left { left: -5px; }
.carousel-btn.right { right: -5px; }

.carousel-btn:hover {
    background: #003ecb;
}

/* Móvil: ocultar flechas (scroll táctil) */
@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }
}
/* ===== AJUSTE PARA BANNERS PNG ===== */
.main-slider .slide {
    display: none;
    background: linear-gradient(90deg, #0a1a2f, #0c2c4a);
}

.main-slider .slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-slider img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* 🔥 llena todo el contenedor, recorta si es necesario */
    display: block;
}
/* BARRA HORIZONTAL 3 COLUMNAS */
.quick-bar {
    background: #1f1f1f; /* tono oscuro */
    color: white;
    padding: 20px 40px;
}

.quick-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.quick-item {
    text-align: center;
    flex: 1;
    padding: 10px;
    background: #2c2c2c;
    border-radius: 8px;
    transition: transform 0.3s, background 0.3s;
}

.quick-item:hover {
    transform: translateY(-5px);
    background: #0057ff;
}

.quick-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.quick-item h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.quick-item a {
    display: inline-block;
    margin-top: 5px;
    padding: 6px 12px;
    background: #00aaff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.quick-item a:hover {
    background: #003ecb;
}

/* Responsive */
@media (max-width: 768px) {
    .quick-container {
        flex-direction: column;
        gap: 15px;
    }
}
/* ================================
   VISTA DE PRODUCTOS POR CATEGORÍA
================================ */

.titulo-categoria {
    font-size: 26px;
    margin: 20px;
    font-weight: bold;
    color: #222;
}

/* GRID */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* TARJETA */
.producto-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
    overflow: hidden;
    transition: transform .2s ease;
}

.producto-card:hover {
    transform: translateY(-4px);
}

/* IMAGEN */
.producto-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f6;
}

.producto-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* INFO */
.producto-info {
    padding: 15px;
    text-align: center;
}

.producto-info h3 {
    font-size: 15px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.precio {
    font-size: 18px;
    font-weight: bold;
    color: #e60000;
    margin-bottom: 10px;
}

/* BOTÓN */
.btn-ver {
    display: inline-block;
    padding: 8px 14px;
    background: #e60000;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.btn-ver:hover {
    background: #b80000;
}
/* ===== FILTROS ===== */
.filtros {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filtros select,
.filtros input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ===== GRID PRODUCTOS ===== */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 20px;
}

/* ===== PAGINACIÓN ===== */
.paginacion {
    margin-top: 30px;
    text-align: center;
}

.paginacion a {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 5px;
    background: #eee;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
}

.paginacion a.active,
.paginacion a:hover {
    background: #0057ff;
    color: white;
}
.producto {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    height: 360px;
}

/* Imagen */
.producto img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
}

/* Nombre */
.producto h3 {
    font-size: 16px;
    margin: 10px 0;
    flex-grow: 1; /* empuja el precio hacia abajo */
}

/* Precio */
.producto strong {
    color: #0057ff;
    font-size: 17px;
    margin-bottom: 8px;
}

/* Botón */
.producto .btn {
    text-align: center;
    margin-top: auto;
}
.productos {
    max-width: 1600px;      /* 🔑 limita el ancho total */
    margin: 0 auto;         /* centra el grid */
}
.producto {
    width: 250px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);

    display: flex;
    flex-direction: column;
    height: 360px;
}
html, body {
    height: 100%;
    margin: 0;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 35px; /* 🔥 ESPACIO ENTRE PRODUCTOS */
    padding: 10px;
}
.producto {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}
.producto img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 12px;
}
.producto .producto-footer {
    margin-top: auto;
    text-align: center;
}

.producto strong {
    display: block;
    margin: 10px 0;
}
.fixed-quick-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px; /* 🎯 DELGADA */
    background: #111;
    z-index: 999;
    display: flex;
    align-items: center;
}

.quick-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.quick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
}

.quick-item img {
    width: 20px;
    height: 20px;
}

.quick-item a {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

.quick-item a:hover {
    text-decoration: underline;
}
body {
    padding-bottom: 50px;
}
footer {
    margin-bottom: 50px; /* MISMA ALTURA DE LA CINTA */
}
.productos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-items: start;
}
.fixed-quick-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #111;
    color: #fff;
    z-index: 999;
    display: flex;
    align-items: center;
}
.quick-container {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.quick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.quick-item img {
    width: 18px;
    height: 18px;
}
body {
    padding-bottom: 60px;
}
.detalle-producto {
    padding: 40px;
}

.detalle-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Imagen */
.detalle-imagen img {
    width: 100%;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
}

/* Info */
.detalle-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.detalle-categoria {
    color: #666;
    margin-bottom: 10px;
}

.detalle-precio {
    font-size: 24px;
    color: #c00;
    font-weight: bold;
    margin-bottom: 15px;
}

.detalle-descripcion {
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Botón */
.btn-detalle {
    display: inline-block;
    background: #25D366;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}
@media (max-width: 768px) {
    .detalle-grid {
        grid-template-columns: 1fr;
    }
}
.detalle-img {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detalle-img img#imgPrincipal {
    width: 100%;
    height: 420px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 8px;
}

/* MINIATURAS */
.miniaturas {
    display: flex;
    gap: 10px;
}

.miniaturas img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
}

.miniaturas img:hover {
    border-color: #000;
}
.home-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
}

/* TESTIMONIOS */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.testimonio {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
}

.testimonio p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonio span {
    display: block;
    font-size: 14px;
    color: #666;
}

/* MARCAS */
.marcas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.marcas-grid img {
    max-width: 100px;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: 0.3s;
}

.marcas-grid img:hover {
    filter: none;
    opacity: 1;
}

/* BENEFICIOS */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.beneficio {
    text-align: center;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.beneficio span {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

/* CTA */
.cta {
    background: #111;
    color: #fff;
    text-align: center;
    border-radius: 15px;
}

.btn-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #25d366;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
}
.home-beneficios {
    max-width: 1200px;
    margin: 60px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.beneficio-item {
    display: flex;
    gap: 15px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
}

.beneficio-item span {
    font-size: 36px;
}
.home-marcas {
    background: #fff;
    padding: 50px 20px;
    text-align: left;
}

.home-marcas h2 {
    max-width: 1200px;
    margin: 0 auto 30px;
}

.marcas-linea {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.marcas-linea img {
    max-height: 45px;
    filter: grayscale(100%);
    opacity: 0.7;
}
.home-testimonios {
    max-width: 1200px;
    margin: 60px auto;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonio-card {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 10px;
}
.home-cta {
    background: #111;
    color: #fff;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.precio-anterior {
    text-decoration: line-through;
    color: #888;
    font-size: 14px;
}

.precio-oferta {
    color: #e60023;
    font-size: 18px;
}

.vendidos {
    font-size: 13px;
    color: #555;
}
.producto {
    position: relative;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    border-radius: 6px;
    z-index: 5;
}

.badge.oferta {
    background: #e60023;
}

.badge.vendido {
    background: #ff9800;
    top: 45px;
}

.badge.descuento {
    background: #2e7d32;
    top: 80px;
}
