/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #F2F2F2, #fff);
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #8C5F37, #BF9460);
    padding: 2rem 0;
    text-align: center;
}

.logo img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.header h1 {
    color: #F2CEA2;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.header p {
    color: white;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 0.9;
    font-style: italic;
}

/* Decorative Line */
.decorative-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #BF9460, #F2CEA2);
    margin: 2rem auto;
    border-radius: 2px;
}

/* Catalog Section */
.catalog {
    padding: 60px 0 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(140, 95, 55, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(140, 95, 55, 0.15);
}

.product-card.hidden {
    display: none;
}

.product-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

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

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

/* Icono de zoom en hover */
.product-image::after {
    content: '🔍';
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(140, 95, 55, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image:hover::after {
    opacity: 1;
}

.product-content {
    padding: 2rem;
}

.product-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #8C5F37;
    margin-bottom: 1rem;
    text-align: center;
}

.product-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.product-price {
    font-size: 2.2rem;
    font-weight: bold;
    color: #BF9460;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.product-button {
    width: 100%;
    background: linear-gradient(135deg, #8C5F37, #BF9460);
    color: white;
    border: none;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-button:hover {
    background: linear-gradient(135deg, #BF9460, #8C5F37);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(140, 95, 55, 0.3);
}

/* Category Badge */
.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(140, 95, 55, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tarjeta Especial - Ramos Personalizados */
.special-card {
    background: linear-gradient(135deg, #F2CEA2, #F2C9C9);
    border: 3px solid #BF9460;
}

.special-card .product-content {
    padding: 3rem 2rem;
}

.special-title {
    color: #8C5F37;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.special-description {
    font-size: 1.2rem;
    color: #555;
    min-height: auto;
    margin-bottom: 2rem;
}

.special-button {
    background: linear-gradient(135deg, #BF9460, #8C5F37);
    box-shadow: 0 8px 20px rgba(140, 95, 55, 0.4);
}

.special-button:hover {
    background: linear-gradient(135deg, #8C5F37, #BF9460);
    transform: scale(1.05);
}

/* Modal de Vista Previa de Imagen */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoom 0.3s ease-out;
    cursor: default;
}

@keyframes zoom {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.close:hover,
.close:focus {
    color: #F2CEA2;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-card {
        margin: 0 10px;
    }

    .product-image {
        height: 300px;
    }

    .product-content {
        padding: 1.5rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-description {
        font-size: 1rem;
        min-height: 70px;
    }

    .product-price {
        font-size: 1.8rem;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float a {
        width: 50px;
        height: 50px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

    .special-title {
        font-size: 1.6rem;
    }

    .special-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .catalog {
        padding: 40px 0 60px 0;
    }

    .container {
        padding: 0 15px;
    }

    .product-image {
        height: 250px;
    }
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Filter Section */
.filter-section {
    padding: 2rem 0;
    background: rgba(140, 95, 55, 0.02);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-btn {
    background: white;
    color: #8C5F37;
    border: 2px solid #8C5F37;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #8C5F37;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(140, 95, 55, 0.3);
}

@media (max-width: 768px) {
    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}