/* ============================================
   ZOFERTAS - ESTILOS COMPLETOS
   ============================================ */

/* ===== VARIABLES Y CONFIGURACIÓN GENERAL ===== */
:root {
    --primary-bg: #ffffff;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #888888;
    --border-light: #e0e0e0;
    --accent: #d4a574;
    --accent-hover: #c8955f;
    --accent-light: rgba(212, 165, 116, 0.1);
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-hover: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --whatsapp: #25D366;
    --whatsapp-hover: #1da851;
}

/* ===== RESET Y ESTILOS BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--primary-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== UTILIDADES ===== */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 5px var(--shadow);
}

.btn-outline:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: white;
    padding: 14px 28px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    width: 100%;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--primary-bg);
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-dark);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: 140px;
    background-color: var(--primary-bg);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-medium);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SECCIÓN BENEFICIOS ===== */
.benefits {
    background-color: #fafafa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.benefit-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--accent);
    font-size: 24px;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* ===== SECCIÓN PRODUCTOS ===== */
.products-section {
    background-color: var(--primary-bg);
}

.products-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}

.product-card.hidden {
    display: none;
}

.product-image {
    height: 220px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-category {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f8f8f8;
    color: var(--text-dark);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-name {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-size {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.product-description {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.5;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-light);
    background-color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.quantity-display {
    width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.add-to-cart-btn {
    padding: 10px 20px;
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px var(--shadow);
}

.add-to-cart-btn:hover {
    border-color: var(--accent);
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.add-to-cart-btn.added {
    background-color: rgba(37, 211, 102, 0.1);
    border-color: var(--whatsapp);
    color: var(--whatsapp-hover);
}

/* ===== FILTROS JERÁRQUICOS ===== */
.filters-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 10px 0;
}

.products-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    min-width: min-content;
}

.filter-btn {
    position: relative;
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    white-space: nowrap;
}

.filter-btn.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

.filter-btn .filter-count {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.filter-btn.active .filter-count {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

/* ===== DROPDOWN FILTROS ===== */
.filter-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-right: 15px;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.filter-dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 220px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px var(--shadow-dark);
    padding: 8px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.filter-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-subbtn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.filter-subbtn:hover {
    background-color: #f8f8f8;
    color: var(--accent);
}

.filter-subbtn.active {
    background-color: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

.filter-subbtn .filter-count {
    float: right;
    color: var(--text-light);
    font-size: 12px;
    margin-left: 10px;
}

/* ===== BUSCADOR ===== */
.search-container {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: left;
}

.search-box {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    font-size: 16px;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    background-color: white;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-family: var(--font-body);
    box-shadow: 0 5px 15px var(--shadow);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(212, 165, 116, 0.2);
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    display: none;
    transition: color 0.3s ease;
}

.search-clear:hover {
    color: var(--accent);
}

.search-input:not(:placeholder-shown) ~ .search-clear {
    display: block;
}

.search-stats {
    font-size: 14px;
    color: var(--text-light);
    padding-left: 15px;
}

#resultsCount {
    font-weight: 600;
    color: var(--accent);
}

/* ===== MENSAJE SIN RESULTADOS ===== */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    color: var(--text-medium);
}

.no-results-message i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-results-message h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.no-results-message p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* ===== CARRITO DE COMPRAS ===== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 25px var(--shadow-dark);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 24px;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    background-color: #f8f8f8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 50px;
    max-height: 50px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-size {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--accent);
    margin-left: auto;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.cart-total-amount {
    color: var(--accent);
    font-size: 24px;
}

.empty-cart-message {
    text-align: center;
    color: var(--text-light);
    padding: 40px 0;
}

/* ===== SECCIÓN CONFIANZA ===== */
.trust-section {
    background-color: #fafafa;
}

.trust-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.trust-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
}

.trust-icon {
    width: 70px;
    height: 70px;
    background-color: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--accent);
    font-size: 28px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background-color: var(--primary-bg);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-medium);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-about p {
    color: #cccccc;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact p {
    color: #cccccc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    width: 20px;
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
    font-size: 14px;
}

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.whatsapp-float .btn-whatsapp {
    padding: 14px 24px;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
}

/* ===== NOTIFICACIONES ===== */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: var(--accent);
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 5px 15px var(--shadow-dark);
    z-index: 3000;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .cart-sidebar {
        width: 350px;
    }
    
    .hero h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        transition: left 0.3s ease;
        padding: 30px;
        box-shadow: 0 10px 20px var(--shadow);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    nav a {
        font-size: 18px;
        display: block;
        padding: 10px 0;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .products-title-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .products-filter {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .filter-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: 1px solid var(--border-light);
        margin-top: 5px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .filter-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cta-section h2 {
        font-size: 36px;
    }
    
    .search-container {
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-control {
        justify-content: center;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .cta-section h2 {
        font-size: 30px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float .btn-whatsapp {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        margin: 0 auto;
    }
    
    .cart-item-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cart-item-price {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .search-input {
        padding: 15px 20px 15px 45px;
        font-size: 15px;
    }
}

/* ===== IMPRESIÓN ===== */
@media print {
    header, .cart-sidebar, .whatsapp-float, .cta-section, footer {
        display: none;
    }
    
    .hero {
        padding-top: 20px;
    }
    
    .product-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}