/* work-page.css - Versión corregida con carrusel y proporción ajustada */
.work-main-section {
    padding: 120px 5% 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* PROPORCIÓN: imagen más grande (1.2fr) que la columna de texto (0.8fr) */
.work-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;    /* ← Alinea arriba */
}

/* --- GALERÍA: imagen cuadrada y elegante --- */
.work-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(166, 145, 119, 0.25);
    border-radius: 4px;
    background: #0a0a0a;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-thumbs {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.thumb-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid rgba(166, 145, 119, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumb-img:hover,
.thumb-img.active {
    border-color: #a69177;
    opacity: 1;
    transform: scale(1.05);
}

/* --- COLUMNA DERECHA --- */
.work-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #a69177;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.work-description {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.work-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    border-top: 1px solid rgba(166, 145, 119, 0.3);
    border-bottom: 1px solid rgba(166, 145, 119, 0.3);
    padding: 1.5rem 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8c8c8c;
    margin-bottom: 0.3rem;
}

.detail-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #a69177;
}

/* ========== CARRUSEL DE CATEGORÍAS (restaurado) ========== */
.categories-showcase-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.categories-swiper {
    padding: 20px 40px;
    overflow: hidden;
}

.categories-swiper .swiper-slide {
    height: auto;
}

.category-card {
    background: #0a0a0a;
    border: 1px solid rgba(166, 145, 119, 0.15);
    border-radius: 4px;
    overflow: hidden;
    transition: all 1000ms cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
}

.category-card:hover {
    border-color: rgba(166, 145, 119, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
}

.category-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

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

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

.category-info {
    padding: 1.5rem;
}

.category-info h3 {
    font-size: 1.2rem;
    color: #a69177;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-info p {
    font-size: 0.85rem;
    color: #8c8c8c;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a69177;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.category-link:hover {
    letter-spacing: 2px;
    color: #e0e0e0;
}

/* Flechas del carrusel - AZUL INTENSO */
.categories-swiper .swiper-button-next,
.categories-swiper .swiper-button-prev {
    color: #0066cc !important;  /* Azul intenso profesional */
    background: rgba(0,0,0,0.6);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.categories-swiper .swiper-button-next:after,
.categories-swiper .swiper-button-prev:after {
    font-size: 1.2rem;
}

/* Paginación (puntos) */
..categories-swiper .swiper-pagination-bullet-active {
    background: #0066cc !important;  /* Azul intenso para el punto activo */
    opacity: 1;
    transform: scale(1.2);
}

/* ========== RESPONSIVE ========== */
/* Tablets y escritorio pequeño: sigue siendo dos columnas hasta 900px */
@media (max-width: 900px) {
    .work-container {
        grid-template-columns: 1fr 1fr; /* Vuelve a 1:1 en pantallas más pequeñas para no apretar */
        gap: 2rem;
    }
    .categories-swiper {
        padding: 20px 20px;
    }
}

/* Móviles: apilar todo */
@media (max-width: 768px) {
    .work-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .gallery-main {
        max-width: 90%;
        margin: 0 auto;
        aspect-ratio: 4 / 3;
    }
    .work-main-section {
        padding-top: 100px;
    }
    .work-info h1 {
        font-size: 1.6rem;
        text-align: center;
    }
    .work-description {
        text-align: center;
    }
    .thumb-img {
        width: 55px;
        height: 55px;
    }
    /* Carrusel: ocultar flechas en móvil */
    .categories-swiper .swiper-button-next,
    .categories-swiper .swiper-button-prev {
        display: none;
    }
    .categories-swiper {
        padding: 20px 10px;
    }
}

/* Pantallas muy grandes (más de 1600px) */
@media (min-width: 1600px) {
    .work-container {
        max-width: 1400px;
        margin: 0 auto;
    }
}