/* General Styles */
:root {
    --primary-color: #C69D23; /* Dorado from the logo */
    --primary-light: #f8f8ef;
    --primary-dark: #9a7b1e;
    --secondary-color: #333333;
    --accent-color: #76CBFD;
    --text-color: #333333;
    --text-light: #666666;
    --background-color: #f8f8f8;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #4CAF50;
    --error-color: #F44336;
    --warning-color: #FFC107;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --header-height: 120px; /* Altura aumentada para el nuevo header */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
}

body {
    font-family: "Cinzel", serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding-top: calc(var(--header-height) + 80px); /* Aumentar padding para el nuevo header */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-dark);
}

button {
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
#main-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--secondary-color);
    /*border-bottom: 1px solid var(--border-color);*/
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    box-shadow: 0 2px 10px var(--shadow-color);
    min-height: var(--header-height);
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-speed) ease;
}

.logo-content:hover {
    transform: scale(1.05);
}

.logo-svg {
    margin-bottom: 5px;
}

.logo-title {
    font-family: "Cinzel", serif;
    color: var(--primary-color);
    font-size: 24px;
    margin: 0;
    text-align: center;
}

.logo-subtitle {
    font-family: "Cinzel", serif;
    color: var(--primary-color);
    font-size: 16px;
    margin: 0;
    text-align: center;
    letter-spacing: 2px;
}


.main-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    display: block;
}

.main-nav ul li a:hover {
    color: var(--white);
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.mobile-menu-icon {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

.header-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 30px;
    padding: 5px 15px;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: all var(--transition-speed) ease;
    max-width: 200px;
}

.search-bar:focus-within {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.search-bar input {
    border: none;
    outline: none;
    padding: 8px 5px;
    font-size: 14px;
    width: 100%;
    background: transparent;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 16px;
    transition: transform var(--transition-speed) ease;
}

.search-bar button:hover {
    transform: scale(1.1);
}

.cart-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform var(--transition-speed) ease;
    margin-left: 15px;
}

.cart-icon-container:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.cart-icon-container i {
    color: var(--white);
    font-size: 24px;
}

/* Carousel Styles */
.swiper-container {
    width: 100%;
    height: 400px;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next, 
.swiper-button-prev {
    color: var(--primary-color) !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}

/* Featured Products Section */
.featured-products-section {
    padding: 30px 20px;
    background-color: var(--primary-light);
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 10px;
}

/* Main Content Styles */
main {
    display: flex;
    padding: 20px;
    max-width: 1400px;
    margin: 80px auto;
}

.filters {
    width: 250px;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px var(--shadow-color);
    margin-right: 20px;
    height: fit-content;
}

.filters h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
}

.filters select,
.filters input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.filters button {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color var(--transition-speed) ease;
}

.filters button:hover {
    background-color: var(--primary-dark);
}

.category-menu ul {
    list-style: none;
    padding: 0;
}

.category-menu ul li {
    margin-bottom: 10px;
}

.category-menu ul li a {
    color: var(--text-color);
    transition: color var(--transition-speed) ease;
    display: block;
    padding: 5px 0;
}

.category-menu ul li a:hover {
    color: var(--primary-color);
}

/* Categoría Icons */
.category-menu ul li i {
    margin-right: 8px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.products-container {
    flex: 1;
}

.products-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
}

/* Nuevo contenedor para la cuadrícula de productos */
.product-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 10px;
    margin-bottom: 50px;
}

.product-grid {
    display: contents; /* Esto hace que los hijos del elemento se comporten como si fueran hijos directos del padre del elemento */
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px var(--shadow-color);
    color: var(--text-light);
    font-size: 16px;
}

/* Pagination Styles */
pagination-component {
    display: block;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 20px 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    margin-bottom: 15px;
}

.footer-logo p {
    color: #ccc;
    font-size: 14px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    position: relative;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: color var(--transition-speed) ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-icons i {
    color: var(--white);
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 14px;
}

/* WhatsApp Widget */
#whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#whatsapp-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-speed) ease;
}

#whatsapp-button:hover {
    transform: scale(1.1);
}

#whatsapp-button img {
    width: 35px;
    height: 35px;
}

/* SweetAlert Customization */
.swal2-popup {
    border-radius: 10px !important;
    padding: 20px !important;
}

.swal2-title {
    color: var(--primary-color) !important;
    font-size: 20px !important;
}

.swal2-content {
    color: var(--text-color) !important;
}

.swal2-confirm {
    background-color: var(--primary-color) !important;
    border-radius: 5px !important;
}

.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(0, 194, 168, 0.3) !important;
}

/* Toast position fix */
.swal2-container.swal2-top-end {
    top: calc(var(--header-height) + 20px) !important;
    right: 20px !important;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .featured-products-grid,
    .product-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .swiper-container {
        height: 300px;
    }
    
    .search-bar {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    #main-header {
        padding: 15px;
    }
    
    .logo-title {
        font-size: 20px;
    }
    
    .logo-subtitle {
        font-size: 14px;
    }
    
    .mobile-menu-icon {
        display: block;
    }
    
    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        padding: 10px 0;
        box-shadow: 0 5px 10px var(--shadow-color);
        z-index: 1000;
    }
    
    .main-nav ul.show {
        display: flex;
    }
    
    .main-nav ul li {
        width: 100%;
        text-align: center;
    }
    
    .main-nav ul li a {
        padding: 12px 20px;
        border-radius: 0;
    }
    
    .search-bar {
        max-width: 120px;
    }
    
    main {
        flex-direction: column;
    }
    
    .filters {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        order: 1;
    }
    
    .products-container {
        order: 2;
    }
    
    .featured-products-grid,
    .product-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .swiper-container {
        height: 250px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .logo-title {
        font-size: 16px;
    }
    
    .logo-subtitle {
        font-size: 12px;
    }
    
    .logo-svg {
        width: 40px;
        height: 40px;
    }
    
    .search-bar {
        display: none;
    }
    
    .featured-products-grid,
    .product-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .swiper-container {
        height: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .cart-count {
        font-size: 10px;
        min-width: 18px;
        height: 18px;
        padding: 2px 6px;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.product-card {
    animation: fadeIn 0.5s ease-in-out;
}

.featured-products-section {
    animation: slideUp 0.5s ease-in-out;
}

/* Cart Animation */
.cart-animation {
    position: fixed;
    z-index: 9999;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Hero Section with Texto Destacado */
.hero-section {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.texto-destacado-carrusel {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 90%;
    max-width: 800px;
    pointer-events: none;
}

.texto-destacado-content {
    background: linear-gradient(135deg, rgba(198, 157, 35, 0.95), rgba(154, 123, 30, 0.95));
    color: var(--white);
    padding: 15px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.8s ease-out;
}

.texto-destacado-content p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Animación para el texto destacado */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para el texto destacado */
@media (max-width: 768px) {
    .texto-destacado-carrusel {
        width: 95%;
        top: 15px;
    }
    
    .texto-destacado-content {
        padding: 12px 20px;
    }
    
    .texto-destacado-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .texto-destacado-carrusel {
        top: 10px;
    }
    
    .texto-destacado-content {
        padding: 10px 15px;
        border-radius: 8px;
    }
    
    .texto-destacado-content p {
        font-size: 14px;
        line-height: 1.3;
    }
}
