/* --- ESTILOS ESPECÍFICOS PARA CATÁLOGO --- */

/* Hero del catálogo */
.catalog-hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    padding: 100px 0 60px;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
}

.catalog-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.catalog-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

/* Navegación de categorías sticky */
.category-nav {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 60px;
    z-index: 100;
    border-bottom: 1px solid rgba(175, 161, 198, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.category-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 0;
}

.category-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.category-link:hover,
.category-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Secciones del catálogo */
.catalog-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de colores */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Tarjeta de color */
.color-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.color-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(175, 161, 198, 0.3);
}

.color-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.color-card:hover .color-image img {
    transform: scale(1.05);
}

/* Overlay con botón de zoom */
.color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-card:hover .color-overlay {
    opacity: 1;
}

.btn-zoom {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-zoom:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 900;
}

.cta-text {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    margin: 10px;
}

/* Footer simple */
.footer-simple {
    background: var(--darker-bg);
    padding: 30px 0;
    border-top: 1px solid rgba(175, 161, 198, 0.2);
}

.footer-simple p {
    color: var(--text-gray);
    margin: 0;
}

/* Lightbox para imágenes */
.lightbox {
    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);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .catalog-title {
        font-size: 2rem;
    }

    .catalog-subtitle {
        font-size: 1rem;
    }

    .category-links {
        gap: 5px;
    }

    .category-link {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .btn-zoom {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .catalog-hero {
        padding: 80px 0 40px;
    }

    .category-nav {
        top: 50px;
    }

    .color-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animación de entrada para las cards */
.color-card {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay escalonado para las cards */
.color-card:nth-child(1) { animation-delay: 0.1s; }
.color-card:nth-child(2) { animation-delay: 0.2s; }
.color-card:nth-child(3) { animation-delay: 0.3s; }
.color-card:nth-child(4) { animation-delay: 0.4s; }
.color-card:nth-child(5) { animation-delay: 0.5s; }
.color-card:nth-child(6) { animation-delay: 0.6s; }
.color-card:nth-child(7) { animation-delay: 0.7s; }
.color-card:nth-child(8) { animation-delay: 0.8s; }
.color-card:nth-child(9) { animation-delay: 0.9s; }
.color-card:nth-child(10) { animation-delay: 1s; }
