/* === FUENTE === */

:root {
    --color-principal: #111;
    --color-acento: #d4af37;
    --fuente-principal: 'Outfit', sans-serif;
    --primary-color: #1a1a1a; /* Negro suave para texto */
    --secondary-color: #6c757d; /* Gris para detalles */
    --accent-color: #007bff; /* Azul para botones y links */
    --background-color: #ffffff; /* Fondo del carrito */
    --border-color: #e9ecef; /* Color de los bordes sutiles */
    --font-main: 'Lato', sans-serif;
}
/* Aplica Outfit a todo el texto del sitio */
body, p, a, span, h1, h2, h3, h4, h5, h6, button, input, label, textarea, select, option,li {
    font-family: 'Urbanist', sans-serif;
}
body {
    margin: 0;
    color: var(--color-principal);
    background-color: #fff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}
/* === DETALLE PRODUCTO === */
.detalle-producto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 100px 0;
}


.info-producto h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-producto .precio {
    color: var(--color-acento);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.info-producto p {
    font-size: 16px;
    color: #444;
    margin-bottom: 30px;
}

.info-producto .btn-carrito {
    background: var(--color-acento);
    border: none;
    color: white;
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    display: inline-block;
}

.info-producto .btn-carrito:hover {
    background-color: #c7a430;
}

.info-producto .btn-carrito:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    color: #666;
    font-weight: 400;
}

@media (max-width: 768px) {
    .detalle-producto {
        grid-template-columns: 1fr;
    }
}
/* === NAVBAR === */
/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

/* Logo */
.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Enlaces del menú */
nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #b18c5d; /* Dorado elegante */
    transition: width 0.3s;
}

nav a:hover {
    color: #b18c5d;
}

nav a:hover::after {
    width: 100%;
}

/* Control carrito segun viewport */
.cart-mobile-only {display:none;}
.cart-desktop-only {display:inline-flex;}

/* Botón menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #b18c5d;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Menú móvil abierto */
nav.active {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    border-bottom: 2px solid #b18c5d; /* Borde inferior dorado */
    box-shadow: none;
    border-radius: 0; /* Sin esquinas redondeadas */
}

/* Links dentro del menú móvil */
nav.active a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav.active a:last-child {
    border-bottom: none;
}

/* Ajuste responsive */
/* Optimización para pantallas medianas (evitar que se apilen antes de ocultar) */
@media (max-width: 1200px) {
    nav { gap: 24px; }
}
@media (max-width: 1100px) {
    nav { gap: 20px; }
    nav a { font-size: 0.95rem; }
}
/* A partir de 992px activamos menú hamburguesa (tablet) */
@media (max-width: 992px) {
    .menu-toggle { display:flex; }
    nav { display:none; }
    .cart-desktop-only { display:none; }
    .cart-mobile-only { display:block; }
}
/* Menú móvil oculto por defecto y estilos cuando está activo comparten breakpoint tablet/móvil */
@media (max-width: 992px) {
    nav.active {
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 15px 20px;
        animation: slideDown 0.3s ease forwards;
        border-bottom: 2px solid #b18c5d;
        box-shadow: 0 4px 8px rgba(0,0,0,0.08);
        gap:0;
    }
    nav.active a { padding:12px 0; border-bottom:1px solid rgba(0,0,0,0.05); }
    nav.active a:last-child { border-bottom:none; }
}
/* Conservamos reglas previas para móviles más estrechos (pueden sobrescribir si es necesario) */
@media (max-width: 768px) {
    nav { display:none; }
}

/* Animación */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* === === */

/* === CARRITO CONTADOR === */
.carrito-link {
    position: relative;
    font-size: 18px;
}

.carrito-link .contador {
    position: absolute;
    top: -10px;
    right: -12px;
    background: crimson;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
}
.navbar a {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
}

.navbar a .fas.fa-shopping-cart {
    font-size: 20px;
    margin-right: 6px;
}

.navbar a .badge {
    background-color: crimson;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -6px;
    right: -10px;
}


/* === HERO === */
.hero {
    background: url('../img-sitio-web/new_jewellery.webp') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 150px 20px 100px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero .btn {
    background: var(--color-acento);
    color: #111;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.hero .btn:hover {
    background: #c7a430;
}


.filtros {
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 30px;
}

.filtros h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

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

.filtros li {
    margin-bottom: 10px;
}

.filtros a {
    display: block;
    text-decoration: none;
    color: #444;
    transition: 0.3s;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
}

.filtros a:hover {
    background-color: #eee;
    color: var(--color-acento);
}

.filtros a.active {
    background-color: var(--color-acento);
    color: #fff;
}
.productos-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ocupa toda la altura de la pantalla */
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.producto-card {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 16px;
    background: white;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: box-shadow 0.3s;
    position: relative;
}

.producto-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.producto-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 4px;
}

.producto-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

.producto-card .precio {
    color: var(--color-acento);
    font-size: 14px;
    margin-bottom: 12px;
}

.producto-card .acciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.producto-card .acciones a,
.producto-card .acciones button {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.producto-card .acciones a {
    background: #f2f2f2;
    color: #333;
    text-decoration: none;
    text-align: center;
}

.producto-card .acciones a:hover {
    background: #ddd;
}

.producto-card .acciones button {
    background: var(--color-acento);
    color: white;
    font-weight: 500;
}

.producto-card .acciones button:hover {
    background: #c7a430;
}

.producto-card .etiqueta-no {
    position: absolute;
    top: 10px;
    left: 10px;
    background: crimson;
    color: white;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
}

.productos-contenedor {
    display: flex;
    flex-direction: column;
}


@media (max-width: 576px) {

    .filtros {
        order: 1;
        margin-bottom: 20px;
    }


    .grid-productos {
        order: 1;
        margin-bottom: 20px;
    }
}

.btn-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    color: var(--color-acento);
    text-decoration: none;
    align-self: flex-start;
}

/* === PAGINACIÓN (minimalista) === */
.paginacion nav,
.paginacion [role="navigation"] {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.paginacion nav ul,
.paginacion .pagination,
.paginacion [role="navigation"] ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.paginacion nav a,
.paginacion nav span,
.paginacion .pagination a,
.paginacion .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
/* Hover sutil */
.paginacion nav a:hover,
.paginacion .pagination a:hover {
    background: #f6f6f6;
    border-color: #eee;
}
/* Activo con subrayado de acento */
.paginacion nav li.active a,
.paginacion nav li.active span,
.paginacion .pagination li.active a,
.paginacion .pagination li.active span,
.paginacion nav span[aria-current="page"],
.paginacion .pagination span[aria-current="page"] {
    color: #111;
    box-shadow: inset 0 -2px 0 var(--color-acento, #d4af37);
    border-color: transparent;
}
/* Disabled */
.paginacion nav li.disabled span,
.paginacion .pagination li.disabled span,
.paginacion nav span[aria-disabled="true"],
.paginacion .pagination span[aria-disabled="true"] {
    color: #bbb;
    cursor: not-allowed;
}
/* Focus accesible */
.paginacion nav a:focus-visible,
.paginacion .pagination a:focus-visible {
    outline: 2px solid var(--color-acento, #d4af37);
    outline-offset: 2px;
    border-radius: 6px;
}
@media (max-width: 480px) {
    .paginacion nav a,
    .paginacion nav span,
    .paginacion .pagination a,
    .paginacion .pagination span {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
        padding: 0 8px;
    }
}

/* === FOOTER === */
.footer {
    background-color: #111;
    color: #ccc;
    padding: 20px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo img {
    width: 150px;
    margin-bottom: 10px;
}

.footer-logo p {
    max-width: 220px;
    font-style: italic;
    color: #aaa;
}

.footer-links h4,
.footer-contacto h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-acento);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 12px;
    color: #666;
}
.footer-social-icons {
    display: flex;
    flex-direction: column; /* Hace que se alineen en vertical */
    gap: 10px;
}

.footer-social-icons a {
    font-size: 16px;
    color: #888;
    transition: all 0.3s ease;
    text-decoration: none; /* Quita el subrayado */
}

.footer-social-icons a:hover {
    color: #c7a430;
    transform: scale(1.2);
}

/* === FORMULARIO DE CONTACTO REDISEÑADO === */
.contacto-page {
    padding: 100px 0;
    background: #fff;
    text-align: center;
}

.contacto-page h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contacto-page p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 16px;
}

.formulario-contacto {
    max-width: 600px;
    margin: auto;
    background: #fafafa;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.formulario-contacto input,
.formulario-contacto textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
    background: #fff;
    transition: border 0.3s, box-shadow 0.3s;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
    border-color: var(--color-acento);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.formulario-contacto button {
    background: var(--color-acento);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s;
}

.formulario-contacto button:hover {
    background: #c7a430;
}

/* === MODAL DE CONTACTO === */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--color-principal);
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-content button {
    background: var(--color-acento);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.close-modal {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 20px;
        /*box-shadow: 0 4px 12px rgba(0,0,0,0.1);*/
    }
    .paginacion nav {
        display: flex;
        justify-content: center;
        margin-top: 40px;
        position: static; /* asegúrate de que no esté fijo ni absoluto */
        z-index: auto;    /* lo mismo aquí */
    }
    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-grid {
        flex-direction: column;
        gap: 20px;
    }
}

.detalle-producto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 100px 0;
}

.info-producto h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-producto .precio {
    color: var(--color-acento);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.info-producto p {
    font-size: 16px;
    color: #444;
    margin-bottom: 30px;
}

.info-producto .btn-carrito {
    background: var(--color-acento);
    border: none;
    color: white;
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .detalle-producto {
        grid-template-columns: 1fr;
    }
}

/* Contenedor principal del slider */
.product-slider {
    display: flex;
    gap: 15px; /* Espacio entre las miniaturas y la imagen principal */
    max-width: 800px;
    width: 90%;
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Galería de miniaturas */
.thumbnail-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espacio entre cada miniatura */
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover; /* Evita que las imágenes se deformen */
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.thumbnail:hover {
    border-color: #c7c7c7;
}

/* Estilo para la miniatura activa (seleccionada) */
.thumbnail.active {
    border-color: #ff9900; /* Color naranja tipo Amazon */
    box-shadow: 0 0 5px rgba(255, 153, 0, 0.7);
}

/* Contenedor de la imagen principal */
.main-image-container {
    flex-grow: 1; /* Hace que este contenedor ocupe el espacio restante */
    position: relative; /* Necesario para posicionar los botones */
    display: flex;
    align-items: center;
    justify-content: center;
}

#main-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Estilo de los botones de navegación */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.slider-btn:hover {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Media Query para pantallas pequeñas (móviles) */
@media (max-width: 600px) {
    .product-slider {
        flex-direction: column-reverse; /* Pone las miniaturas debajo */
    }

    .thumbnail-gallery {
        flex-direction: row; /* Miniaturas en fila */
        justify-content: center;
        flex-wrap: wrap; /* Permite que pasen a la siguiente línea si no caben */
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }
}
/* Estilo del carrito de compras */
/* -- CONTENEDOR PRINCIPAL DEL CARRITO -- */
.cart-container {
    width: 500px;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;

    /* Se eliminaron las siguientes líneas para quitar el aspecto de tarjeta:
       - border-radius: 12px;
       - box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
       - overflow: hidden;
    */
}

/* -- CABECERA -- */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: var(--primary-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem; /* 32px */
    font-weight: 300;
    color: var(--secondary-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* -- LISTA DE ITEMS -- */
.cart-items {
    padding: 15px 25px;
    flex-grow: 1; /* Permite que esta sección crezca */
    overflow-y: auto; /* Scroll si hay muchos productos */
    max-height: 50vh; /* Altura máxima antes de mostrar scroll */
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none; /* Quita el borde del último elemento */
}

.item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
}

.item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 1rem; /* 16px */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.item-price {
    font-size: 1.1rem; /* 18px */
    font-weight: 400;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.item-quantity {
    font-size: 0.9rem; /* 14px */
    color: var(--secondary-color);
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
}

.remove-item-btn:hover {
    color: #dc3545; /* Rojo para eliminar */
}

/* -- PIE DEL CARRITO -- */
.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border-color);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.summary-price {
    color: var(--accent-color);
    font-size: 1.3rem;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.checkout-btn:hover {
    background-color: #333; /* Un negro un poco más claro */
    transform: scale(1.02); /* Efecto de "levantamiento" */
}

/* -- DISEÑO RESPONSIVO PARA MÓVILES -- */
@media (max-width: 600px) {
    body {
        padding: 0;
    }

    .cart-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .cart-header h2 {
        font-size: 1.3rem; /* 20px */
    }

    .item-name {
        font-size: 0.9rem; /* 14px */
    }
}
.alerta {
    padding: 14px 22px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid transparent;
    text-align: center;
    max-width: 100%;
    animation: fadeIn 0.4s ease-out;
}

.alerta.exito {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alerta.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.precio-descuento {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.precio-descuento .precio-original {
    text-decoration: line-through;
    color: #888;
    font-size: 14px;
}

.precio-descuento .precio-final {
    display: flex;
    align-items: center;
    gap: 8px;
}

.precio-descuento .precio-con-descuento {
    color: var(--color-acento, #d42929);
    font-weight: 600;
    font-size: 18px;
}

.precio-descuento .porcentaje-descuento {
    background-color: #d42929;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}
.no-se-encontraron-productos {
    text-align: center;
    padding: 50px 20px;
    font-size: 18px;
    color: #666;
}
.no-se-encontraron-productos h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Estado vacío de productos por categoría */
.productos-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 24px 0;
}
.productos-empty-state .empty-card {
    width: 100%;
    max-width: 520px;
    text-align: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 24px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.productos-empty-state .empty-illustration {
    width: 96px;
    height: 96px;
    object-fit: contain;
    opacity: .8;
    margin-bottom: 12px;
}
.productos-empty-state h2 {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 8px 0 6px;
}
.productos-empty-state p {
    color: #555;
    margin: 0 0 16px;
}
.productos-empty-state .btn-empty {
    display: inline-block;
    background: var(--color-acento, #d4af37);
    color: #111;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: filter .2s ease, transform .2s ease;
}
.productos-empty-state .btn-empty:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}
@media (max-width: 640px) {
    .productos-empty-state { min-height: 50vh; padding: 16px 0; }
    .productos-empty-state .empty-card { padding: 18px 16px; }
    .productos-empty-state h2 { font-size: 20px; }
}

/* Info de resultados */
.resultados-info {
    text-align: center;
    color: #666;
    font-family:'Urbanist', sans-serif;/* misma fuente del sitio */
    font-size: 16px; /* un poco más grande */
    margin-top: 12px;
}
/* Separación de la paginación respecto al footer */
.paginacion { margin-bottom: clamp(12px, 4vh, 36px); }
/* Carrito siempre visible en móvil */
.cart-mobile-only { display: none; }
.cart-desktop-only { display: inline-flex; }
.cart-mobile-only > * { display: inline-flex; align-items: center; }

@media (max-width: 768px) {
    .cart-mobile-only { display: inline-flex; margin-left: auto; }
    .cart-desktop-only { display: none; }
    .nav-content { gap: 10px; }
}

/* Utilidades de alineación de precios */
.precio-descuento-left {
    align-items: flex-start !important;
    text-align: left !important;
}
.precio-left {
    text-align: left !important;
}
/* Fin utilidades */

/* Banner de categoría */
.categoria-header-banner {
    position: relative;
    border-radius: 14px;
    background: #222 center/cover no-repeat;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    overflow: hidden;
    isolation: isolate; /* asegura mezcla de capas */
    margin-bottom: 32px; /* espacio debajo del banner */
}
.categoria-header-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.65), rgba(0,0,0,.25));
    z-index: 1;
    pointer-events: none;
}
.categoria-header-banner.no-img {
    background-image: linear-gradient(135deg,#1f1f1f,#3d3114,#6a520d);
    background-size: 300% 300%;
    animation: bannerPulse 12s ease infinite;
}
@keyframes bannerPulse {
    0%,100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.categoria-header-banner .categoria-titulo-banner {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    font-weight: 700;
    letter-spacing: .5px;
    text-align: center;
    text-shadow: 0 4px 18px rgba(0,0,0,.55), 0 2px 5px rgba(0,0,0,.4);
    font-family: 'Urbanist', sans-serif;
}
.categoria-header-banner .categoria-titulo-banner span.highlight {
    background: linear-gradient(90deg,var(--color-acento,#d4af37),#f5e2a3);
    -webkit-background-clip: text;
    color: transparent;
}
.categoria-header-banner .categoria-titulo-banner::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    margin: 14px auto 0;
    background: linear-gradient(90deg,var(--color-acento,#d4af37),#fff0);
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 4px 15px -2px rgba(0,0,0,.4);
}
@media (max-width: 640px) {
    .categoria-header-banner { min-height: 170px; padding: 40px 16px; }
    .categoria-header-banner .categoria-titulo-banner::after { width: 54px; }
}
/* Fin banner de categoría */
