/* productos.css */

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #111827;
}

.page-container {
    min-height: 100vh;
    background-color: #f9fafb;
}

/* Contenedor principal */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

/* Header Section - Lista de productos */
.header-section {
    text-align: center;
    margin-bottom: 4rem;
}

.main-title {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 300;
    color: #111827;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.title-divider {
    width: 96px;
    height: 1px;
    background-color: #9ca3af;
    margin: 0 auto 1.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    font-weight: 300;
    max-width: 32rem;
    margin: 0 auto;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.product-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.product-image {
    position: relative;
    width: 100%;
    height: 16rem;
    overflow: hidden;
    background-color: #f3f4f6;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: grayscale(100%);
}

.product-card:hover .product-img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .image-overlay {
    opacity: 1;
}

.product-info {
    padding: 2rem;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: #4b5563;
}

.product-cta {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.product-card:hover .product-cta {
    color: #4b5563;
}

.cta-text {
    font-size: 0.875rem;
    font-weight: 300;
    margin-right: 0.5rem;
}

.cta-arrow {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.product-card:hover .cta-arrow {
    transform: translateX(0.25rem);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 0;
}

.empty-icon {
    width: 5rem;
    height: 5rem;
    background-color: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-svg {
    width: 2.5rem;
    height: 2.5rem;
    color: #9ca3af;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: #111827;
    margin-bottom: 0.75rem;
}

.empty-description {
    color: #4b5563;
    font-weight: 300;
}

/* Call to Action Section */
.cta-section {
    text-align: center;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: #111827;
    margin-bottom: 1rem;
}

.cta-description {
    color: #4b5563;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #374151;
    text-decoration: none;
    font-weight: 300;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.cta-button-arrow {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
}

/* Breadcrumb */
.breadcrumb-container {
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #374151;
}

.breadcrumb-arrow {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.breadcrumb-current {
    color: #111827;
    font-weight: 500;
}

/* Detail Page Styles */
.detail-header {
    text-align: center;
    margin-bottom: 4rem;
}

.detail-title {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 300;
    color: #111827;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.detail-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.detail-description {
    font-size: 1.125rem;
    color: #4b5563;
    font-weight: 300;
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* Gallery Section */
.gallery-section {
    margin-bottom: 5rem;
}

.gallery-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .carousel-container {
        height: 500px;
    }
}

@media (min-width: 1024px) {
    .carousel-container {
        height: 600px;
    }
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.carousel-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #374151;
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

.gallery-caption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 300;
    margin-top: 1rem;
}

/* Process Section */
.process-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.process-step {
    text-align: center;
}

.process-icon {
    width: 4rem;
    height: 4rem;
    background-color: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.process-icon svg {
    width: 2rem;
    height: 2rem;
    color: #4b5563;
}

.process-title {
    font-size: 1.25rem;
    font-weight: 300;
    color: #111827;
    margin-bottom: 0.75rem;
}

.process-description {
    color: #4b5563;
    font-weight: 300;
}

/* Information Section */
.info-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 3rem;
    text-align: center;
}

.info-title {
    font-size: 1.875rem;
    font-weight: 300;
    color: #111827;
    margin-bottom: 1.5rem;
}

.info-description {
    color: #4b5563;
    font-weight: 300;
    font-size: 1.125rem;
    max-width: 48rem;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.info-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: left;
    max-width: 32rem;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
}

.feature-bullet {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #9ca3af;
    border-radius: 50%;
    margin-top: 0.5rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.feature-text {
    color: #4b5563;
    font-weight: 300;
}

/* Back Section */
.back-section {
    text-align: center;
    margin-top: 4rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #374151;
    text-decoration: none;
    font-weight: 300;
    transition: all 0.2s ease;
}

.back-button:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.back-arrow {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 2rem 1rem;
    }
    
    .main-title,
    .detail-title {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .info-section {
        padding: 2rem;
    }
    
    .info-features {
        grid-template-columns: 1fr;
    }
    
    .carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .carousel-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .carousel-prev {
        left: 0.5rem;
    }
    
    .carousel-next {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-content {
        padding: 0.75rem;
    }
    
    .breadcrumb-nav {
        font-size: 0.75rem;
    }
    
    .main-title,
    .detail-title {
        font-size: 2rem;
    }
    
    .subtitle,
    .detail-subtitle {
        font-size: 1rem;
    }
    
    .detail-description {
        font-size: 1rem;
    }
    
    .carousel-container {
        height: 300px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 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; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Focus states para accesibilidad */
.product-card-link:focus,
.breadcrumb-link:focus,
.cta-button:focus,
.back-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.carousel-btn:focus,
.carousel-indicator:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .carousel-btn,
    .carousel-indicators {
        display: none;
    }
    
    .carousel-slide {
        position: static;
        opacity: 1;
        page-break-inside: avoid;
    }
    
    .product-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}