/* Estilos base */
:root {
    --primary-color: #8B4513; /* Café madera */
    --secondary-color: #D2691E; /* Café claro */
    --accent-color: #FFD700; /* Dorado #FFD700 */
    --text-color: #333;
    --light-color: #f9f5f0;
    --dark-color: #5C4033;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
}

.logo-text h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 0.9rem;
    color: #666;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Sections */
.hero, .historia-hero, .catalogo-hero, .proceso-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    margin-bottom: 35px;
}

/* Imágenes responsive para hero sections */
.hero {
    background-image: url('../assets/images/hero-alebrije-mobile.jpg'); /* COMPLETADO */
}

.historia-hero {
    background-image: url('../assets/images/historia-bg-mobile.jpg'); /* COMPLETADO */
}

.catalogo-hero {
    background-image: url('../assets/images/catalogo-hero-mobile.jpg'); /* COMPLETADO */
}

.proceso-hero {
    background-image: url('../assets/images/proceso-hero-mobile.jpg'); /* COMPLETADO */
}

/* Tablet */
@media (min-width: 768px) {
    .hero {
        background-image: url('../assets/images/hero-alebrije-tablet.jpg'); /* COMPLETADO */
    }
    
    .historia-hero {
        background-image: url('../assets/images/historia-bg-tablet.jpg');
    }
    
    .catalogo-hero {
        background-image: url('../assets/images/catalogo-hero-tablet.jpg');
    }
    
    .proceso-hero {
        background-image: url('../assets/images/proceso-hero-tablet.jpg'); /* COMPLETADO */
    }
}

/* Desktop */
@media (min-width: 992px) {
    .hero {
        background-image: url('../assets/images/hero-alebrije-desktop.jpg'); /* COMPLETADO */
    }
    
    .historia-hero {
        background-image: url('../assets/images/historia-bg-desktop.jpg'); /* COMPLETADO */
    }
    
    .catalogo-hero {
        background-image: url('../assets/images/catalogo-hero-desktop.jpg'); /* COMPLETADO */
    }
    
    .proceso-hero {
        background-image: url('../assets/images/proceso-hero-desktop.jpg'); /* COMPLETADO */
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2, .historia-hero h1, .catalogo-hero h1, .proceso-hero h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero p, .historia-hero p, .catalogo-hero p, .proceso-hero p {
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.8rem;
    min-width: 120px;
    text-align: center;
}

/* Secciones */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Proceso Section */
.proceso-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.proceso-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.proceso-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.proceso-card:hover {
    transform: translateY(-10px);
}

.proceso-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.proceso-content {
    padding: 20px;
}

.proceso-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.proceso-content p {
    color: #666;
    margin-bottom: 15px;
}

.text-center {
    text-align: center;
    margin-top: 40px;
}

/* Galería Preview */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
    color: white;
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

/* Catálogo */
.page-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
}

.page-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.filtros {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filtro-btn {
    padding: 8px 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.filtro-btn:hover, .filtro-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.alebrije-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.alebrije-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.alebrije-card:hover {
    transform: translateY(-10px);
}

.alebrije-img-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.alebrije-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.alebrije-card:hover .alebrije-img {
    transform: scale(1.05);
}

.precio-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

.categoria-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.8rem;
}

.alebrije-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.alebrije-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.alebrije-info p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.card-footer .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.artesano {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    margin-left: 10px;
    text-align: right;
    flex-grow: 1;
}

/* Paginación */
.paginacion {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagina-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagina-btn:hover, .pagina-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagina-btn.siguiente {
    width: auto;
    padding: 0 20px;
    border-radius: 30px;
    gap: 5px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
}

.footer-logo h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons 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;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Filtros */
.filtros-container {
    margin-bottom: 40px;
}

.filtros-container h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Ajustes responsive para hero sections */
@media (max-width: 768px) {
    .hero, .historia-hero, .catalogo-hero, .proceso-hero {
        height: 50vh;
    }
    
    .hero h2, .historia-hero h1, .catalogo-hero h1, .proceso-hero h1 {
        font-size: 2rem;
    }
    
    .hero p, .historia-hero p, .catalogo-hero p, .proceso-hero p {
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .hero, .historia-hero, .catalogo-hero, .proceso-hero {
        height: 60vh;
    }
    
    .hero h2, .historia-hero h1, .catalogo-hero h1, .proceso-hero h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 992px) {
    .hero, .historia-hero, .catalogo-hero, .proceso-hero {
        height: 70vh;
    }
    
    .hero h2, .historia-hero h1, .catalogo-hero h1, .proceso-hero h1 {
        font-size: 3rem;
    }
}