/* ===== CHECKOUT LAYOUT ===== */
.checkout-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 15px;
}

.checkout-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.order-summary {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.order-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-totals {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* ===== VARIABLES ===== */
:root {
    /* Colores principales */
    --primary-color: #Ff8400;        /* Naranja */
    --primary-hover: #e67600;        /* Naranja oscuro */
    --secondary-color: #733712;      /* Marrón oscuro */
    --accent-color: #Cc9933;         /* Dorado */
    --dark-color: #3B1B08;           /* Marrón muy oscuro */
    
    /* Colores de texto */
    --text-color: #333;              /* Color de texto principal */
    --text-light: #6c757d;           /* Color de texto secundario */
    --text-on-dark: #ffffff;         /* Texto sobre fondos oscuros */
    
    /* Fondos */
    --bg-light: #fff9f2;             /* Fondo claro con tono cálido */
    --white: #ffffff;                /* Blanco puro */
    
    /* Efectos */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTONS ===== */
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--dark-color);
}

.button-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.button-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    background-color: rgba(115, 55, 18, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    color: var(--text-on-dark);
    transition: all 1s ease;
}

/* Header sólido (sin transparencia ni blur) */
.site-header.solid {
    background-color: #733712 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Header style when scrolled */
.site-header.scrolled {
    background-color: #733712;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Ensure text is visible on transparent background */
.site-header:not(.scrolled) .nav-menu .nav-item a,
.site-header:not(.scrolled) .logo a {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Adjust banner margin to account for fixed header */
.banner {
    width: 100%;
    min-height: 70vh;
    position: relative;
    margin: 0;
    padding: 0;
    display: block;
}

.banner, section.banner, .banner::before, .banner::after {
    background: none !important;
    background-image: none !important;
}

/* Estilos del carrusel */
.banner .carousel,
.banner .carousel-inner,
.banner .carousel-item {
    height: 70vh;
}

.banner .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/* Overlay y contenido */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    z-index: 3;
    padding: 20px;
}

.banner-dim {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 2;
    pointer-events: none;
}

/* Controles del carrusel */
.carousel-control-prev,
.carousel-control-next {
    z-index: 4;
    width: 10%;
}

.carousel-indicators {
    z-index: 4;
    bottom: 20px;
}

/* Títulos */
.banner-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    margin-bottom: 1.5rem;
    max-width: 800px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .banner,
    .banner .carousel,
    .banner .carousel-inner,
    .banner .carousel-item {
        min-height: 70vh;
        height: 70vh;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1.1rem;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu .nav-item a {
    color: var(--text-on-dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu .nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-menu .nav-item a:hover::after,
.nav-menu .nav-item a.active::after {
    width: 100%;
}

.nav-item a {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.nav-actions .button-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.button-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
    position: relative;
    width: 40px;
    height: 32px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: none; /* visible en @media <= 992px */
    z-index: 1001;
}

.mobile-menu-toggle span {
    position: absolute;
    left: 6px;
    right: 6px;
    height: 2px;
    background: #ffffff !important;
    transition: transform .3s ease, opacity .3s ease;
}

.mobile-menu-toggle span:nth-child(1) { top: 8px; }
.mobile-menu-toggle span:nth-child(2) { top: 15px; }
.mobile-menu-toggle span:nth-child(3) { top: 22px; }

/* Animación cuando el menú está activo */
.mobile-menu-toggle.active span {
    background: var(--accent-color);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Forzar color negro en enlaces del dropdown de Productos */
.nav-menu .nav-item .mega-dropdown a,
.nav-menu .nav-item .mega-dropdown a:link,
.nav-menu .nav-item .mega-dropdown a:visited {
  color: #000 !important;
}
.nav-menu .nav-item .mega-dropdown a:hover,
.nav-menu .nav-item .mega-dropdown a:active,
.nav-menu .nav-item .mega-dropdown a:focus {
  color: #000 !important;
}

/* El carrusel ocupa todo el banner */
.banner .carousel,
.banner .carousel-inner,
.banner .carousel-item {
    height: 100vh;
}

.banner .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 2rem 0;
}

/* ===== FEATURED PRODUCTS ===== */
.featured-products {
    padding: 4rem 0;
}

.featured-products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin: 0 auto 3rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1.5rem;
    width: 100%;
    max-width: 1200px;
    display: block;
}

.featured-products h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 0 1.5%;
    width: 97%;
    max-width: 2400px;
    margin: 0 auto;
    justify-content: center;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    width: 100%;
    justify-content: space-between;
}

.product-actions .btn {
    min-width: 0;
    width: 48%;
    text-align: center;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin: 0;
    flex: none;
}

.product-actions .btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border: 1px solid var(--color-accent);
    color: white;
    font-weight: 500;
}

.product-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-actions .btn-outline-secondary {
    color: var(--color-primary);
    border: 1px solid #e0e0e0;
    background: white;
    font-weight: 500;
}

.product-actions .btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    color: var(--color-primary-dark);
}

.product-actions .btn i {
    min-width: 16px;
    text-align: center;
}

/* Modal para vista de producto */
.modal-product-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Estilos para el botón de cerrar en el modal */
.btn-close:focus {
    box-shadow: none;
}

/* Estilos para dispositivos móviles */
@media (min-width: 2000px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(350px, 1fr));
        padding: 0 1%;
    }
}

@media (max-width: 1999px) and (min-width: 1500px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(350px, 1fr));
        padding: 0 2%;
    }
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.product-actions .button {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

@media (max-width: 1499px) and (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(350px, 1fr));
        padding: 0 3%;
    }
}

@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 450px));
        justify-content: center;
        padding: 0 3%;
        gap: 2.5rem;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 2.5rem;
        max-width: 100%;
        margin: 0 auto;
    }
}

.category-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
    width: 100%;
    position: relative;
    padding-bottom: 1rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.category-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
    text-align: center;
    width: 100%;
}

.category-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: auto;
    align-self: flex-start;
    position: relative;
}

.category-link::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.category-card:hover .category-link::after {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-cards {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .category-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .category-cards {
        grid-template-columns: 1fr;
    }
}

/* ===== CONTACT FORM STYLES ===== */
#contacto {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

#contacto .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #Ff8400; /* Color naranja principal */
}

.section-title {
    text-align: center;
    margin: 0 auto 2.5rem;
    position: relative;
    padding-bottom: 1rem;
    width: 100%;
}

.section-title h2 {
    color: #3B1B08;
    margin: 0 auto 0.5rem;
    text-align: center;
}

.section-title p {
    color: #6c757d;
    margin: 0;
    text-align: center;
}

/* Se eliminaron todas las líneas decorativas de los títulos */

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 132, 0, 0.25);
    background-color: white;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 132, 0, 0.3);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #fff;
}

.footer-about p {
    color: #b3b3b3;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4, 
.footer-contact h4,
.footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: #fff;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: #b3b3b3;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #b3b3b3;
    line-height: 1.6;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
    margin-top: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 1.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #333;
    background: #2a2a2a;
    color: #fff;
    border-radius: 4px 0 0 4px;
    border: none;
}

.newsletter-form button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-hover);
}

.footer-bottom {
    background: #111;
    width: 100%;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #2a2a2a;
    box-sizing: border-box;
    margin: 0;
}

.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 4rem 0 0;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    width: 100%;
    margin: 4rem 0 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

.site-footer p {
    margin: 0;
    color: #b3b3b3;
    font-size: 0.9rem;
}

.site-footer p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer p a:hover {
    color: #6c63ff;
    text-decoration: none;
}

/* Responsive styles */
@media (max-width: 992px) {
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-column {
        flex: 1 1 calc(50% - 1.5rem);
    }
}

@media (max-width: 768px) {
    .footer-column {
        flex: 1 1 100%;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        border-radius: 4px;
    }
    
    .newsletter-form button {
        margin-top: 0.5rem;
    }
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.footer .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-brand h4 {
    color: #fff;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.footer p {
    color: #b3b3b3;
    line-height: 1.7;
}

.footer-heading {
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem !important;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links li a {
    color: #b3b3b3 !important;
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-links li a:hover,
.hover-primary:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
    text-decoration: none;
}

.contact-info li {
    color: #b3b3b3;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.contact-info li i {
    color: var(--primary-color);
    min-width: 20px;
}

.contact-info a {
    color: #b3b3b3 !important;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .footer .col-md-6 {
        flex: 0 0 calc(50% - 2rem);
    }
    
    .footer .col-lg-4 {
        flex: 0 0 calc(33.333% - 2rem);
    }
    
    .footer .col-lg-2 {
        flex: 0 0 calc(20% - 2rem);
    }
    
    .footer-links,
    .contact-info {
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .footer {
        padding: 2rem 0;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links,
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center !important;
        margin-bottom: 2rem;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

/* Cart Dropdown */
.dropdown {
    position: relative;
    margin-left: 10px;
}

#cart-preview {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 80vh;
    background: white;
    border-radius: 6px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    margin-top: 8px;
    overflow: hidden;
}

#cart-preview.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-preview-header {
    background-color: #f8f9fa;
    padding: 12px 15px;
}

.cart-preview-header h6 {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    position: relative; /* Para posicionar el botón eliminar */
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.cart-item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

.cart-item-details {
    flex: 1;
    padding-right: 48px; /* espacio para el botón eliminar */
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: #333;
}

.cart-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.quantity-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    font-size: 0.8rem;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
    height: 28px;
    padding: 0 5px;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

.remove-item {
    position: absolute; /* fija en la esquina */
    top: 8px;
    right: 8px;
    color: #adb5bd; /* gris sutil por defecto */
    background: transparent;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; /* mayor área clicable */
    height: 34px;
    transition: all 0.2s ease;
    z-index: 2; /* asegurar que quede por encima */
}

.remove-item i {
    font-size: 0.95rem;
    line-height: 1;
    pointer-events: none; /* el clic siempre llega al botón */
}

.remove-item:hover {
    background-color: #fdecee; /* leve fondo rojo en hover */
    color: #dc3545; /* rojo para el ícono */
}

.remove-item:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25); /* anillo de enfoque accesible */
}

.cart-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.cart-empty i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #e9ecef;
    display: block;
}

.cart-summary {
    background-color: #f8f9fa;
    padding: 15px;
    border-top: 1px solid #e9ecef;
}

.cart-summary .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: center;
}

/* Estilo específico para el botón de continuar compra */
.cart-summary .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cart-summary .btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Estilo para el botón de ver carrito */
.cart-summary .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.cart-summary .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-hover);
}

#cart-subtotal {
    font-weight: 600;
    color: #2c3e50;
}

/* Cart counter badge */
#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    transform: translate(50%, -50%);
}

/* Navigation buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-actions .button {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    white-space: nowrap;
}

.nav-actions .button i {
    font-size: 1rem;
    margin-right: 5px;
}

#cart-count {
    font-size: 0.7rem;
    padding: 0.25em 0.4em;
    opacity: 1;
    transition: transform 0.2s ease;
}

#cart-count:empty {
    display: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-category {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0 1.5rem;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #2c3e50;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: 0.3s;
        z-index: 1100;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-item a {
        display: block;
        padding: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .banner h1 {
        font-size: 2.5rem;
    }

    .banner p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .banner {
        padding: 0;
    }

    .banner h1 {
        font-size: 2rem;
    }

    .featured-products h2 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        padding: 0 1rem;
    }
}

/* ===== EQUIPO ===== */
.team-member {
    padding: 25px 20px;
    margin: 0 auto;
    max-width: 320px;
    transition: all 0.3s ease;
    height: 100%;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-img-container {
    width: 220px;
    height: 220px;
    overflow: hidden;
    border-radius: 50%;
    margin: 0 auto 25px;
    border: 6px solid #f8f9fa;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.team-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .team-img-container img {
    transform: scale(1.1);
}

.team-member h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 1.25rem;
}

.team-member p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Asegurar que las columnas estén centradas */
@media (min-width: 768px) {
    .team-member {
        padding: 20px 10px;
    }
}

/* Ajustes para móviles */
@media (max-width: 767.98px) {
    .team-member {
        margin-bottom: 40px;
        max-width: 100%;
    }
    
    .team-img-container {
        width: 160px;
        height: 160px;
    }
}

/* ===== MODAL STYLES ===== */
:root {
    --color-primary: #733712;
    --color-primary-dark: #3B1B08;
    --color-accent: #Ff8400;
    --color-accent-light: #Cc9933;
    --color-text: #333;
    --color-light: #f8f9fa;
}

.modal {
    z-index: 1060;
    padding: 0 !important;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: all 0.3s ease-out;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Clase que se agrega cuando el modal está abierto */
.modal.show {
    opacity: 1;
    visibility: visible;
}

/* Efecto de fondo oscuro */
.modal-backdrop {
    display: none; /* Deshabilitamos el backdrop de Bootstrap */
}

/* Contenedor del modal con efecto de zoom */
.modal-dialog {
    margin: auto;
    max-width: 90%;
    width: 1100px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Efecto de zoom cuando el modal está abierto */
.modal.show .modal-dialog {
    transform: translate(-50%, -50%) scale(1);
    animation: modalAppear 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modalAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Estilos para el contenedor del modal */
.modal-dialog-zoom {
    max-width: 780px; /* Ajustado a un tamaño un poco más pequeño */
    margin: 1.5rem auto;
    transition: transform 0.3s ease-out;
    width: 95%;
}

/* Estilos para el contenido del modal */
.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.product-image-container {
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
    min-height: 480px; /* Ajustado para que sea un poco más pequeño */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: all 0.4s ease;
    border-radius: 12px 0 0 12px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border-right: 1px solid #f0f0f0;
    width: 45%; /* Asegura que ocupe el 45% del ancho */
    float: left; /* Asegura que esté a la izquierda */
}

/* Efecto de patrón sutil en el fondo de la imagen */
.product-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 15px 15px;
    opacity: 0.5;
    pointer-events: none;
}

/* Estilos para la imagen del producto */
.modal-product-img {
    max-width: 100%;
    max-height: 380px; /* Ajustado para el contenedor más pequeño */
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.06));
    border-radius: 8px;
    background: white;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    display: block;
    margin: 0 auto;
}

/* Efecto hover para la imagen */
.product-image-container:hover .modal-product-img {
    transform: scale(1.03);
}

/* Estilos para el encabezado del modal */
.modal-header {
    border-bottom: none;
    padding: 2rem 2.5rem 0.5rem;
    position: relative;
    z-index: 10;
    background: white;
    margin-bottom: 0.5rem;
}

/* Estilos para el botón de cierre */
.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23733712'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Estilos para el título del producto */
#modalProductName {
    color: var(--color-primary);
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    position: relative;
    display: inline-block;
    line-height: 1.2;
    letter-spacing: -0.5px;
    padding-bottom: 0.75rem;
}

#modalProductName::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    border-radius: 2px;
    transition: width 0.3s ease;
}

#modalProductName:hover::after {
    width: 100%;
}

/* Estilos para el precio */
#modalProductPrice {
    color: var(--color-accent);
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0 0 1.5rem;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 132, 0, 0.1) 0%, rgba(255, 132, 0, 0.05) 100%);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 132, 0, 0.15);
}

/* Estilos para la descripción */
.product-description {
    background: #fcfcfc;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.product-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-accent-light));
}

.product-description h6 {
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-description h6::before {
    content: '⸻';
    color: var(--color-accent);
    font-weight: bold;
}

#modalProductDescription {
    color: #555;
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 400;
}

/* Estilos para el selector de cantidad */
.product-quantity {
    background: #f9f9f9;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border: 1px solid #eee;
}

.product-quantity h6 {
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.product-quantity h6::before {
    content: '⸻';
    color: var(--color-accent);
    font-weight: bold;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-quantity .btn-outline-secondary {
    color: var(--color-primary);
    border: 2px solid #e0e0e0;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-quantity .btn-outline-secondary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 132, 0, 0.2);
}

.product-quantity .btn-outline-secondary:active {
    transform: translateY(0);
}

.product-quantity .form-control {
    height: 42px;
    width: 70px;
    text-align: center;
    font-weight: 700;
    color: var(--color-primary);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1rem;
    padding: 0.375rem 0.5rem;
    transition: all 0.2s ease;
    box-shadow: none;
}

.product-quantity .form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.2rem rgba(255, 132, 0, 0.1);
}

/* Estilos para el botón de añadir al carrito */
.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border: none;
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1.5rem 0 0;
    box-shadow: 0 6px 20px rgba(255, 132, 0, 0.25);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    width: 100%;
    max-width: 100%;
    border: 2px solid transparent;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 132, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(255, 132, 0, 0.25);
}

.btn-primary span,
.btn-primary i {
    position: relative;
    z-index: 2;
}

.btn-primary i {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(3px);
}

/* Estilos responsivos */
@media (max-width: 991.98px) {
    .modal-dialog-zoom {
        max-width: 95%;
    }
    
    .product-image-container {
        min-height: 350px;
    }
    
    #modalProductName {
        font-size: 1.75rem;
    }
    
    #modalProductPrice {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .modal-dialog-zoom {
        max-width: 98%;
    }
    
    .product-image-container {
        min-height: 300px;
        padding: 1.5rem;
    }
    
    #modalProductName {
        font-size: 1.5rem;
    }
    
    #modalProductPrice {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
    
    .btn-primary {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
}

.modal-product-img {
    max-height: 400px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.modal-body {
    padding: 0;
}

.product-info {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-info h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.product-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.product-description {
    color: var(--text-color);
    line-height: 1.7;
    margin: 1.5rem 0;
    flex-grow: 1;
}

.product-quantity .btn-outline-secondary {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-color: #dee2e6;
}

.product-quantity .form-control {
    height: 40px;
    font-weight: 600;
    border-color: #dee2e6;
}

/* Ajustes responsivos */
@media (max-width: 992px) {
    .product-image-container {
        min-height: 300px;
    }
    
    .modal-product-img {
        max-height: 300px;
    }
    
    .product-info h2 {
        font-size: 1.5rem;
    }
    
    .product-info h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .product-image-container {
        min-height: 250px;
        padding: 2rem !important;
    }
    
    .modal-product-img {
        max-height: 250px;
    }
    
    .product-info h2 {
        font-size: 1.5rem;
    }
    
    .product-info h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo a {
        font-size: 1.25rem;
    }

    .logo img {
        height: 40px;
    }

    .banner {
        padding: 0;
    }

    .banner h1 {
        font-size: 1.75rem;
    }

    .featured-products h2 {
        font-size: 1.75rem;
    }

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

h2 {
    font-weight: 700;
    margin-bottom: 2rem;
    color: #2d3748;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background:  #Cc9933;
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

/* ===== FOOTER STYLES ===== */
.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    width: 100%;
    margin: 4rem 0 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

.footer-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background-color: #1a1a1a;
}

/* Video en sección Nosotros */
.about-video {
    width: 100%;
    height: auto;
  }
  @media (min-width: 992px) {
    .about-video {
      max-height: 420px;    /* ajusta este valor a gusto (p.ej. 360px, 380px) */
      aspect-ratio: 16 / 9;
      object-fit: cover;    /* recorta un poco para evitar deformación */
    }
  }

/* Ensure body has no horizontal scroll */
body {
    overflow-x: hidden;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 4rem 15px 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 2rem;
    padding: 0 15px;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
}

.footer-about p {
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: #fff;
    background: rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4, 
.footer-contact h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: #fff;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul,
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.contact-info li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.contact-info a {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.footer-links a:hover,
.contact-info a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    background: #111;
    width: 100%;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #2a2a2a;
    box-sizing: border-box;
    margin: 0;
}

.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 4rem 0 0;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    width: 100%;
    margin: 4rem 0 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

.site-footer p {
    margin: 0;
    color: #b3b3b3;
    font-size: 0.9rem;
}

.site-footer p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer p a:hover {
    color: #6c63ff;
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .footer-content {
        padding: 3rem 0 1rem;
    }
    
    .footer-column {
        flex: 1 1 calc(50% - 1.5rem);
    }
}

@media (max-width: 575.98px) {
    .footer-column {
        flex: 1 1 100%;
    }
    
    .footer-logo,
    .footer-links h4,
    .footer-contact h4 {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Ensure body has no margin or padding */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

/* Ensure body has no margin or padding */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 15px 0;
    position: relative;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.site-footer p {
    margin: 0;
    color: #b3b3b3;
    font-size: 0.9rem;
}

.site-footer p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #6c63ff;
    text-decoration: none;
}

/* Efectos de hover */
.hover-effect {
    transition: transform 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-5px);
}

/* Estilos para el carrito */
.cart-badge {
    position: relative;
    top: -8px;
    right: 8px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 0.25em 0.6em;
    font-size: 0.7em;
    font-weight: bold;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    position: sticky; /* se queda fija al hacer scroll */
    top: 72px; /* altura aproximada del header fijo */
    z-index: 1001; /* por encima del contenido del banner */
    background: #733712;
    color: #fff;
    padding: 8px 0;
    text-align: center;
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.announcement-bar i {
    color: var(--accent-color);
}

.announcement-bar span {
    font-weight: 600;
    letter-spacing: .2px;
}

/* Colocar la franja debajo del header fijo al cargar */
.site-header + .announcement-bar {
    margin-top: 72px; /* igual que el top para que no se superponga */
}

@media (max-width: 576px) {
    .announcement-bar { top: 78px; }
    .site-header + .announcement-bar { margin-top: 78px; }
}

/* ===== BANNER OVERLAY ===== */
.banner { position: relative; }
.banner .carousel { position: relative; z-index: 1; }
.banner-dim {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35));
    z-index: 2;
    pointer-events: none; /* no bloquear controles del carrusel */
}
.banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.25rem;
    color: #fff;
    z-index: 3;
    pointer-events: none;
}
.banner-title {
    font-size: clamp(2rem, 4vw + 0.5rem, 4rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    text-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.25);
}
.banner-subtitle {
    font-size: clamp(1rem, 1.2vw + 0.5rem, 1.5rem);
    font-weight: 500;
    opacity: 0.95;
    text-shadow: 0 6px 18px rgba(0,0,0,0.3), 0 1px 4px rgba(0,0,0,0.25);
}

/* Ajustes responsivos del overlay */
@media (max-width: 576px) {
    .banner-subtitle { max-width: 22ch; }
}

/* Suavizar transición del carrusel con fade */
.carousel.carousel-fade .carousel-item {
    transition: opacity 1.2s ease-in-out !important;
}

/* Evitar cualquier desplazamiento lateral durante el fade */
.carousel-fade .carousel-item {
    transform: none !important;
}

/* Ajustar la altura del banner y centrar su contenido en dispositivos móviles */
@media (max-width: 768px) {
    .banner,
    .carousel,
    .carousel-inner,
    .carousel-item {
        max-height: 80vh;
        min-height: 80vh;
        height: 80vh; /* Asegurar altura fija */
    }
    
    .carousel-item {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    
    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 30%;
        position: absolute;
        top: 0;
        left: 0;
        transition: none; /* Eliminar transiciones que puedan causar saltos */
    }
    
    /* Asegurar que el contenido del banner se mantenga centrado */
    .carousel-caption {
        position: relative;
        z-index: 10;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
        width: 100%;
    }
    
    /* Ajustar posición de los controles */
    .carousel-control-prev,
    .carousel-control-next {
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
    }
    
    .carousel-indicators {
        bottom: 10px;
        z-index: 20;
    }
    
    /* Forzar que los items inactivos mantengan sus dimensiones */
    .carousel-item-next:not(.carousel-item-start),
    .active.carousel-item-end {
        transform: translateX(0);
    }
    
    .carousel-item-prev:not(.carousel-item-end),
    .active.carousel-item-start {
        transform: translateX(0);
    }
}

/* Estilos para el botón del menú móvil */
.mobile-menu-toggle {
    position: relative;
    width: 40px;
    height: 32px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: none; /* visible en @media <= 992px */
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-menu-toggle span {
    position: absolute;
    left: 6px;
    right: 6px;
    height: 2px;
    background: var(--primary-color);
    transition: transform .3s ease, opacity .3s ease;
}

.mobile-menu-toggle span:nth-child(1) { top: 8px; }
.mobile-menu-toggle span:nth-child(2) { top: 15px; }
.mobile-menu-toggle span:nth-child(3) { top: 22px; }

/* Animación cuando el menú está activo */
.mobile-menu-toggle.active span {
    background: var(--accent-color);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Estilos para el menú desplegable móvil */
.nav-menu {
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #733712 0%, #5a2b0e 100%);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        flex-direction: column;
        padding: 80px 20px 40px;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu .nav-item {
        width: 100%;
        margin: 10px 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }
    
    .nav-menu.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Retraso en la animación de los ítems del menú */
    .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.3s; }
    
    .nav-menu .nav-item a {
        display: block;
        padding: 12px 20px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.1rem;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-menu .nav-item a:hover,
    .nav-menu .nav-item a.active {
        background: rgba(255, 255, 255, 0.1);
        color: var(--accent-color);
        transform: translateX(5px);
    }
    
    /* Estilo para el dropdown en móviles */
    .nav-menu .mega-dropdown {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0 0 0 20px;
        display: none;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu .nav-item:hover .mega-dropdown {
        display: block;
    }
    
    .nav-menu .mega-dropdown a {
        padding: 10px 15px;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .nav-menu .mega-dropdown a:hover {
        color: var(--accent-color);
        background: transparent;
    }
}

/* Estilos para el menú desplegable de productos en móviles */
@media (max-width: 992px) {
    .nav-item.dropdown { position: static; }
    
    .mega-dropdown {
        position: static !important;
        width: 100% !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        padding: 0 20px !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        margin: 0;
    }
    
    .mega-dropdown.show {
        max-height: 1000px; /* Ajusta según sea necesario */
        padding: 10px 20px !important;
    }
    
    .mega-dropdown a {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 10px 15px !important;
        margin: 5px 0;
        border-radius: 6px;
        transition: all 0.2s ease;
    }
    
    .mega-dropdown a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: var(--accent-color) !important;
        transform: translateX(5px);
    }
    
    /* Estilo para el botón de productos en móvil */
    .nav-item.dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }
    
    .nav-item.dropdown > a .arrow {
        transition: transform 0.3s ease;
    }
    
    .nav-item.dropdown > a[aria-expanded="true"] .arrow {
        transform: rotate(180deg);
    }
}

/* Estilos para el menú desplegable de productos en móviles */
@media (max-width: 992px) {
    .nav-item.dropdown { 
        position: relative;
    }
    
    .mega-dropdown {
        position: absolute !important;
        left: 0;
        right: 0;
        width: 100% !important;
        background: rgba(26, 26, 26, 0.98) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
        padding: 10px 0 !important;
        margin-top: 10px;
        border-radius: 0 0 12px 12px;
        display: none;
        z-index: 1000;
    }
    
    .mega-dropdown.show {
        display: block !important;
        animation: fadeIn 0.3s ease-out;
    }
    
    .mega-dropdown a {
        display: block;
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 12px 25px !important;
        margin: 0;
        font-size: 1rem;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    .mega-dropdown a:hover {
        color: var(--accent-color) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-left-color: var(--accent-color);
        transform: translateX(5px);
    }
    
    /* Estilo para la flecha del menú */
    .nav-item.dropdown > a .arrow {
        display: inline-block;
        transition: transform 0.3s ease;
    }
    
    .nav-item.dropdown > a[aria-expanded="true"] .arrow {
        transform: rotate(180deg);
    }
    
    /* Animación de entrada */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* Estilos para móviles */
@media (max-width: 992px) {
    .mega-dropdown {
        display: none;
        position: absolute;
        background: #fff;
        width: 100%;
        left: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .mega-dropdown.show {
        display: block !important;
    }
    
    .mega-dropdown a {
        display: block;
        padding: 10px 20px;
        color: #333 !important;
        text-decoration: none;
    }
    
    .mega-dropdown a:hover {
        background: #f5f5f5;
    }
}

/* Estilos para el menú desplegable */
.mega-dropdown {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    padding: 10px 0;
}

.nav-item.dropdown:hover .mega-dropdown {
    display: block;
}

.mega-dropdown a {
    display: block;
    padding: 8px 20px;
    color: #333 !important;
    text-decoration: none;
    transition: all 0.2s;
}

.mega-dropdown a:hover {
    background: #f5f5f5;
}

/* Estilos para móviles */
@media (max-width: 992px) {
    .mega-dropdown {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }
    
    .mega-dropdown.show {
        display: block !important;
    }
    
    .mega-dropdown a {
        padding: 12px 25px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* Ocultar el hover en móviles */
    .nav-item.dropdown:hover .mega-dropdown {
        display: none;
    }
    
    /* Mostrar solo con click */
    .mega-dropdown.show {
        display: block !important;
    }
}

/* ===== FEATURED PRODUCTS: align card styles with category cards without HTML changes ===== */
.featured-products .product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-products .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

/* Image box same size + hover scale */
.featured-products .product-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-products .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-products .product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Map product-info to same spacing and layout as product-details */
.featured-products .product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Headings, category and price to mirror category card look */
.featured-products .product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.featured-products .product-category {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.featured-products .product-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Actions row to match .product-actions behavior */
.featured-products .product-card .d-flex.gap-2 {
  display: flex;
  gap: 0.75rem;
  margin-top: auto; /* push buttons to bottom */
  width: 100%;
  justify-content: space-between;
}

/* Primary button style parity */
.featured-products .product-card .button {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

/* Outline secondary parity */
.featured-products .product-card .btn.btn-outline-secondary.btn-sm {
  color: var(--color-primary);
  border: 1px solid #e0e0e0;
  background: white;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
}

.featured-products .product-card .btn.btn-outline-secondary.btn-sm:hover {
  background: #f8f9fa;
  border-color: #d0d0d0;
  color: var(--color-primary-dark);
}

/* ===== FEATURED PRODUCTS: desktop refinements ===== */
@media (min-width: 992px) {
  /* Slightly larger content spacing on desktop */
  .featured-products .product-info {
    padding: 1.75rem;
  }
  /* Balance buttons on wider cards */
  .featured-products .product-card .d-flex.gap-2 .button,
  .featured-products .product-card .btn.btn-outline-secondary.btn-sm {
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 1200px) {
  /* Taller image box for desktop for better visual weight */
  .featured-products .product-image { height: 260px; }
  .featured-products .product-card h3 { font-size: 1.15rem; }
  .featured-products .product-price { font-size: 1.3rem; }
}

@media (min-width: 1400px) {
  .featured-products .product-image { height: 300px; }
  /* Keep grid centered and not excessively wide on very large screens */
  .featured-products .product-grid { max-width: 1300px; }
}

/* ===== PAGE LOADER ===== */
#pageLoader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#pageLoader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid #eee;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: loader-spin 1s linear infinite;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }

/* ===== TOP ANNOUNCEMENT BAR ===== */
.top-announcement {
  background-color: #733712;
  color: #fff;
  width: 100%;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.top-announcement .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.95rem;
  font-weight: 600;
}
.top-announcement i {
  color: #fff;
}
@media (max-width: 576px) {
  .top-announcement .container {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
}

/* ===== Modal de Cuenta - Estilos Modernos ===== */
#accountModal .modal-dialog {
  max-width: 520px;
}

#accountModal .modal-content,
.account-modal .modal-content {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  overflow: hidden;
}

#accountModal .modal-header,
.account-modal .modal-header {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

#accountModal .modal-title,
.account-modal .modal-title {
  font-weight: 700;
}

/* Tabs elegantes */
#accountModal .nav-tabs .nav-link,
.account-modal .nav-tabs .nav-link {
  color: #e9ecef;
  border: none;
  border-radius: 12px;
  margin-right: 8px;
  background: rgba(255,255,255,0.06);
  transition: all .2s ease;
}
#accountModal .nav-tabs .nav-link i,
.account-modal .nav-tabs .nav-link i { color: #fff; }
#accountModal .nav-tabs .nav-link:hover,
.account-modal .nav-tabs .nav-link:hover {
  background: rgba(255,255,255,0.12);
}
#accountModal .nav-tabs .nav-link.active,
.account-modal .nav-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #5a67d8);
  box-shadow: 0 6px 16px rgba(90,103,216,.35);
}

/* Inputs modernos con icono */
.form-control-modern {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 0.6rem 0.9rem !important; /* espacio para icono */
}
.form-control-modern::placeholder { color: rgba(255,255,255,0.6) !important; }
.form-label { color: #04090e; font-weight: 600; }
.form-control-modern:focus {
  outline: none;
  border-color: rgba(255,255,255,0.35) !important;
  box-shadow: 0 0 0 0.2rem rgba(90,103,216,.25);
}

.input-icon { position: relative; }
.input-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: rgba(255,255,255,0.85);
  pointer-events: none;
}
.input-icon-user::before { content: "\f007"; }
.input-icon-email::before { content: "\f0e0"; }
.input-icon-lock::before { content: "\f023"; }

/* Botones modernos */
.btn-modern {
  border: none !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--primary), #5a67d8) !important;
  box-shadow: 0 8px 18px rgba(90,103,216,.35);
  transition: transform .12s ease, box-shadow .2s ease;
}
.btn-modern:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(90,103,216,.45); }
.btn-modern:active { transform: translateY(0); }

/* Botón Google */
.btn-auth-google {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: #fff !important;
  border-radius: 12px !important;
}
.btn-auth-google:hover { filter:brightness(0.95); }

/* Texto sutil en el modal */
#accountModal .text-muted,
.account-modal .text-muted { color: rgba(255,255,255,0.8) !important; }

/* Ajustes del backdrop del modal */
.modal-backdrop.show { background-color: rgba(10, 13, 20, 0.6); }

/* ===== Auth Form (Custom, sin Bootstrap) ===== */
.auth-tabs { display:flex; gap:10px; justify-content:center; margin:10px 0 18px; }
.auth-tab { background:#f1f3f5; color:#333; border:1px solid #e5e7eb; padding:8px 16px; border-radius:6px; font-weight:600; cursor:pointer; transition:.2s; }
.auth-tab.active { background:#fff; color:#111; border-color:#cbd5e1; box-shadow:0 2px 6px rgba(0,0,0,.06); }
.auth-tab:hover { background:#fff; }

.auth-card { max-width:420px; margin:0 auto; }
.auth-form { display:none; }
.auth-form.show { display:block; }

.auth-field { position:relative; display:flex; align-items:center; border:1px solid #d1d5db; border-radius:6px; background:#fff; margin:10px 0; }
.auth-field .icon { width:42px; text-align:center; color:#6b7280; }
.auth-input { flex:1; border:none; outline:none; padding:10px 12px; font-size:15px; background:transparent; color:#111; }
.auth-input::placeholder { color:#9ca3af; }
.auth-field:focus-within { border-color:#6366f1; box-shadow:0 0 0 3px rgba(99,102,241,.2); }

.auth-remember { display:flex; align-items:center; gap:8px; font-size:14px; color:#374151; margin:6px 2px 14px; }

.auth-actions { display:flex; gap:10px; justify-content:center; margin:8px 0 14px; }
.auth-btn { appearance:none; border:none; border-radius:6px; padding:10px 18px; font-weight:700; cursor:pointer; transition:transform .08s ease, box-shadow .2s ease; }
.auth-btn.primary { background:#1f2937; color:#fff; box-shadow:0 4px 10px rgba(31,41,55,.2); }
.auth-btn.primary:hover { transform:translateY(-1px); box-shadow:0 6px 14px rgba(31,41,55,.28); }
.auth-btn.alt { background:#b91c1c; color:#fff; box-shadow:0 4px 10px rgba(185,28,28,.2); }
.auth-btn.alt:hover { transform:translateY(-1px); box-shadow:0 6px 14px rgba(185,28,28,.28); }

.btn-social { display:block; width:100%; text-align:center; margin:10px 0; padding:12px 16px; border-radius:6px; color:#fff; text-decoration:none; font-weight:700; transition:.2s; }
.btn-social i { margin-right:8px; }
.btn-social.google { background:#4285F4; }
.btn-social.google:hover { filter:brightness(0.95); }

.auth-help { text-align:center; font-size:14px; color:#6b7280; margin-top:6px; }
.auth-help a { color:#2563eb; text-decoration:underline; }

/* Compatibilidad con modo oscuro de la web si el fondo es oscuro */
.account-modal .modal-content .auth-tab { background:rgba(255,255,255,.85); }
.account-modal .modal-content .auth-tab.active { background:#fff; }
.account-modal .modal-content .auth-field { background:#fff; border-color:#e5e7eb; }
.account-modal .modal-content .auth-input { color:#111; }

@media (max-width: 420px){
  .auth-actions { flex-direction:column; }
}

@media (max-width: 992px) {
  header.site-header .logo { display: none; }
}

/* ===== LOGIN / REGISTER PAGE (scoped) ===== */
.page-login main.container {
  max-width: 960px;
}

.page-login .card {
  border: 1px solid rgba(0,0,0,0.08);
  border-top: 6px solid var(--primary-color); /* #Ff8400 */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.page-login .card .h4,
.page-login h1.h4 {
  color: var(--dark-color); /* #3B1B08 */
  font-weight: 700;
}

/* Tabs */
.page-login .nav-tabs {
  border-bottom: 2px solid rgba(0,0,0,0.06);
}
.page-login .nav-tabs .nav-link {
  color: var(--secondary-color); /* #733712 */
  font-weight: 600;
  border: none;
  border-bottom: 3px solid transparent;
}
.page-login .nav-tabs .nav-link:hover {
  color: var(--primary-color);
}
.page-login .nav-tabs .nav-link.active {
  color: var(--primary-color);
  border: none;
  border-bottom: 3px solid var(--accent-color); /* #Cc9933 */
  background: transparent;
}

/* Forms */
.page-login label.form-label {
  color: var(--secondary-color);
  font-weight: 600;
}
.page-login .form-control-modern,
.page-login .form-control {
  background: #fff;
  border: 1px solid #e8e3df;
  border-radius: 10px;
  padding: 0.8rem 1rem;
}
.page-login .form-control-modern:focus,
.page-login .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 132, 0, 0.15);
}

/* Buttons */
.page-login .btn-modern.btn-primary,
.page-login .btn.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
}
.page-login .btn-modern.btn-primary:hover,
.page-login .btn.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(115, 55, 18, 0.2);
}

/* Helper links */
.page-login a.small,
.page-login .text-muted a {
  color: var(--primary-color);
}
.page-login a.small:hover,
.page-login .text-muted a:hover {
  color: var(--accent-color);
}

/* Alerts spacing inside card */
.page-login .card .alert {
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Input icon helpers (no-op safe if not present) */

/* Forms */
.page-login label.form-label {
  color: var(--secondary-color);
  font-weight: 600;
}
.page-login .form-control-modern,
.page-login .form-control {
  background: #fff !important;
  color: var(--dark-color) !important;
  border: 1px solid var(--secondary-color) !important;
  border-radius: 10px !important;
  padding: 0.8rem 1rem !important;
}
.page-login .form-control-modern:focus,
.page-login .form-control:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 132, 0, 0.15);
}
.page-login .form-control-modern::placeholder,
.page-login .form-control::placeholder {
  color: #9e8f86;
}

/* Buttons */
.page-login .btn-modern.btn-primary,
.page-login .btn.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
}
.page-login .btn-modern.btn-primary:hover,
.page-login .btn.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(115, 55, 18, 0.2);
}
.page-login .btn.btn-primary:disabled,
.page-login .btn-modern.btn-primary:disabled {
  color: #fff;
  opacity: 0.85;
}

/* Helper links */
.page-login a.small,
.page-login .text-muted a {
  color: var(--primary-color);
}
.page-login a.small:hover,
.page-login .text-muted a:hover {
  color: var(--accent-color);
}

/* Alerts spacing inside card */
.page-login .card .alert {
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Input icon helpers (no-op safe if not present) */
.page-login .input-icon { position: relative; }
.page-login .input-icon .form-control { padding-left: 2.5rem; }
.page-login .input-icon::before {
  content: '';
  position: absolute;
  left: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  opacity: .35;
}

/* ====== PAGE: POLITICAS ====== */
.page-politicas main {
  max-width: 960px;
  margin: 0 auto;
}

.page-politicas .policy-hero {
  margin-top: 3rem;
  padding: 1.5rem 0 0.5rem;
}

.page-politicas .policy-hero h1 {
  font-weight: 700;
  color: var(--dark-color);
}

.page-politicas .policy-hero p {
  color: var(--text-light);
}

.page-politicas .policy-section {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.page-politicas .policy-section h2 {
  text-align: center;
  margin: 0 0 1rem;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 0.5rem;
}

.page-politicas .policy-section h2::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 70px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.page-politicas p {
  margin-bottom: 0.75rem;
}

.page-politicas ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.page-politicas ul ul {
  list-style: circle;
  margin-top: 0.25rem;
}

@media (max-width: 576px) {
  .page-politicas .policy-section {
    padding: 1rem 1rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .page-politicas .policy-hero {
    margin-top: 4rem;
  }
}

/* ===== Ajustes de espaciado y tipografía para secciones de categorías ===== */
.category-section {
    /* Móvil/tablet: mantener más compacto */
    margin-top: 1.5rem;
}

/* Solo escritorio/PC */
@media (min-width: 992px){
    .category-section { margin-top: 4rem; }

    /* "Bajar" visualmente el título y mantener buen ritmo vertical */
    .category-section .category-title {
        margin-top: 0.5rem;      /* separa del ancla/inicio de la sección */
        margin-bottom: 1.5rem;   /* un poco más de aire antes de la descripción */
    }

    /* Centrar y suavizar la descripción existente (lead mb-4) sin cambiar HTML */
    .category-section .lead.mb-4 {
        text-align: center;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2.25rem; /* mantener aire antes de la grilla */
        color: var(--text-light);
    }
}

/* ===== Alineación de botones (login y carrito) al mismo nivel que el menú hamburguesa en móvil ===== */
@media (max-width: 992px){
  /* Crear un "top bar" dentro del header usando posicionamiento absoluto para las acciones */
  .nav-container {
    position: relative;
    min-height: 64px; /* asegura altura suficiente de barra */
    padding-left: 64px;  /* reserva espacio para el botón hamburguesa a la izquierda */
    padding-right: 120px; /* espacio para acciones a la derecha */
  }
  .mobile-menu-toggle {
    position: absolute !important;
    top: 50% !important;
    left: 12px !important;  /* alinear al costado izquierdo */
    right: auto !important;
    transform: translateY(-50%) !important;
    z-index: 1001;
  }
  .nav-actions {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    margin-top: 0 !important;
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    z-index: 1001;
  }
  /* Botones más compactos en la barra superior móvil */
  .nav-actions .button.button-outline {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.9rem !important;
    line-height: 1.1 !important;
  }
  .nav-actions .dropdown { margin-left: 6px !important; }
  /* Badge del carrito que no se corte en móvil */
  #cart-count { transform: translate(-50%, -50%) !important; }
}

/* ===== Flechas del carrusel en negro ===== */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) brightness(0) !important; /* convierte el ícono (blanco por defecto) a negro */
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
}

.cookie-consent .cc-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 16px;
}

.cookie-consent .cc-box {
  background: rgba(59, 27, 8, 0.96); /* var(--dark-color) con opacidad */
  color: var(--text-on-dark);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(204, 153, 51, 0.25); /* acento sutil */
}

.cookie-consent .cc-text {
  flex: 1 1 280px;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-consent .cc-text a {
  color: var(--accent-color);
  text-decoration: underline;
}

.cookie-consent .cc-actions {
  display: flex;
  gap: 10px;
}

/* Botones */
.cookie-consent .cc-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-consent .cc-btn.accept {
  background: var(--primary-color);
  color: #1a1a1a; /* contraste sobre naranja */
  box-shadow: 0 4px 12px rgba(255, 132, 0, 0.3);
}

.cookie-consent .cc-btn.accept:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 132, 0, 0.35);
}

.cookie-consent .cc-btn.decline {
  background: transparent;
  color: var(--text-on-dark);
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.cookie-consent .cc-btn.decline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

/* Responsive */
@media (max-width: 576px) {
  .cookie-consent .cc-container {
    padding: 10px;
  }
  .cookie-consent .cc-box {
    padding: 12px;
    gap: 10px;
  }
  .cookie-consent .cc-text {
    font-size: 13px;
  }
  .cookie-consent .cc-btn {
    width: 100%;
    text-align: center;
  }
  .cookie-consent .cc-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* ===== POLICY PAGE (Tratamiento de Datos) ===== */
.page-tratamiento-datos .policy-breadcrumb {
  --crumb-sep: '/';
  background: transparent;
  padding: 0.5rem 0;
}
.page-tratamiento-datos .policy-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-light);
  font-size: 0.95rem;
}
.page-tratamiento-datos .policy-breadcrumb ol li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-tratamiento-datos .policy-breadcrumb ol li + li::before {
  content: var(--crumb-sep);
  color: #adb5bd;
}
.page-tratamiento-datos .policy-breadcrumb a {
  color: var(--primary-color);
}
.page-tratamiento-datos .policy-breadcrumb a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.page-tratamiento-datos .policy-hero {
  background: linear-gradient(135deg, rgba(115,55,18,.08), rgba(255,132,0,.08));
  border: 1px solid rgba(204,153,51,0.25);
  border-radius: 12px;
  padding: 1.5rem;
}
.page-tratamiento-datos .policy-hero .h3,
.page-tratamiento-datos .policy-hero h1 {
  color: var(--dark-color);
  margin-bottom: .25rem;
}
.page-tratamiento-datos .policy-hero .text-muted {
  color: #6c757d !important;
}

/* Grid layout: sidebar (TOC) + content */
.page-tratamiento-datos .policy-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

/* TOC */
.page-tratamiento-datos .policy-toc {
  position: relative;
}
.page-tratamiento-datos .policy-toc-inner {
  position: sticky;
  top: 96px; /* por debajo del header fijo */
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.page-tratamiento-datos .policy-toc .toc-title {
  display: block;
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 10px;
}
.page-tratamiento-datos .policy-toc nav {
  display: grid;
  gap: 8px;
}
.page-tratamiento-datos .policy-toc nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-color);
  border: 1px solid transparent;
}
.page-tratamiento-datos .policy-toc nav a:hover {
  background: #f8f9fa;
}
.page-tratamiento-datos .policy-toc nav a.active {
  background: rgba(255,132,0,0.12);
  border-color: rgba(255,132,0,0.35);
  color: var(--dark-color);
}

/* Content */
.page-tratamiento-datos .policy-content {
  min-width: 0;
}
.page-tratamiento-datos .policy-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.page-tratamiento-datos .policy-card h2 {
  color: var(--dark-color);
  margin-bottom: .75rem;
}
.page-tratamiento-datos .policy-card p,
.page-tratamiento-datos .policy-card li {
  color: var(--text-color);
}
.page-tratamiento-datos .policy-card ul {
  padding-left: 1rem;
  margin-bottom: 0;
}
.page-tratamiento-datos .policy-card ul li {
  list-style: disc;
}

/* Responsive */
@media (max-width: 992px) {
  .page-tratamiento-datos .policy-grid {
    grid-template-columns: 1fr;
  }
  .page-tratamiento-datos .policy-toc-inner {
    position: static;
  }
}

/* Insignia para productos destacados */
.badge-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 2;
}

/* Carrusel de productos destacados: espaciado consistente */
#featuredCarousel .carousel-item {
  padding: 0.5rem 0;
}
#featuredCarousel .product-card {
  height: 100%;
}

/* Ajustes responsivos para #featuredCarousel (mostrar 1,2,4 por slide via grid ya definido) */
@media (max-width: 575.98px){
  .featured-products .product-image { height: 180px; }
  #featuredCarousel .carousel-control-prev,
  #featuredCarousel .carousel-control-next{
    top: 55%;              /* más arriba que el centro */
    transform: translateY(-50%);
    height: 60%;           /* reducir el área alta para facilitar taps */
    width: 22%;            /* área lateral un poco más amplia para tap */
    align-items: flex-start;/* evita centrado absoluto */
  }
   /* Ocultar todas las tarjetas menos la primera en cada slide */
  #featuredCarousel .carousel-item > .container > .row > div {
    display: none;
  }
  #featuredCarousel .carousel-item > .container > .row > div:first-child {
    display: block;
  }
}
@media (min-width: 576px) and (max-width: 991.98px){
  .featured-products .product-image { height: 200px; }
}
@media (min-width: 992px){
  .featured-products .product-image { height: 220px; }
}

/* Título centrado para secciones (mismo estilo que destacados) */
.featured-heading {
  text-align: center;
  font-size: 2.5rem;
  margin: 0 auto 3rem;
  color: var(--text-color);
  position: relative;
  padding-bottom: 1.5rem;
  width: 100%;
  max-width: 1200px;
  display: block;
}
.featured-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Forzar visibilidad correcta de slides en el carrusel de destacados */
#featuredCarousel .carousel-item { display: none; }
#featuredCarousel .carousel-item.active,
#featuredCarousel .carousel-item-next,
#featuredCarousel .carousel-item-prev { display: block; }

