/* ===================================================================
 * # FIX.CSS - Correcciones y mejoras adicionales
 *   - Grid uniforme para portafolio (mismo tamaño de celda)
 *   - Centrado del grid
 *   - Banda full-width (clase .full-width-band)
 *   - Estilos para descripciones en GLightbox (con enlaces)
 *   - Textos de proyectos más grandes
 * =================================================================== */

/* -------------------------------------------------------------------
 * 1. FOLIO GRID - Tamaño uniforme y centrado
 * ------------------------------------------------------------------- */
.folio-entries {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin: 0 auto;
    justify-items: center;
    max-width: 1400px;
}

.folio-entries .entry {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.folio-entries .entry__link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.folio-entries .entry__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.folio-entries .entry:hover .entry__link img {
    transform: scale(1.05);
}

/* Superposición oscura al hacer hover */
.folio-entries .entry__link::before {
    z-index: 1;
    content: "";
    display: block;
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.folio-entries .entry:hover .entry__link::before {
    opacity: 1;
    visibility: visible;
}

/* Información superpuesta */
.folio-entries .entry__info {
    z-index: 2;
    transform: translate(-50%, 100%);
    opacity: 0;
    visibility: hidden;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    transition-delay: 0s;
    width: 80%;
}

.folio-entries .entry:hover .entry__info {
    transform: translate(-50%, -50%);
    transition-delay: 0.3s;
    opacity: 1;
    visibility: visible;
}

/* ===== TEXTOS MÁS GRANDES EN PROYECTOS ===== */
.folio-entries .entry__title {
    font-family: var(--font-1, sans-serif);
    font-weight: 600;
    font-size: 1.6rem;        /* antes 1.2rem */
    color: white;
    margin-bottom: 0.5rem;
}

.folio-entries .entry__cat {
    font-size: 1.1rem;         /* antes 0.8rem */
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* -------------------------------------------------------------------
 * 2. FULL-WIDTH BAND
 * ------------------------------------------------------------------- */
.full-width-band {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background-color: #F2DFCE;
    padding: 3rem 0;
}

.full-width-band > div {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.full-width-band .btn--primary {
    background-color: var(--ft-burgundy, #8B4513);
    border: none;
    padding: 1rem 2rem;
    display: inline-block;
}

/* -------------------------------------------------------------------
 * 3. GLIGHTBOX - Descripción y enlaces visibles (sin duplicados)
 * ------------------------------------------------------------------- */
.glightbox-container .gslide-description {
    background: rgba(0, 0, 0, 0.85) !important;
    border-radius: 0 0 10px 10px;
    padding: 1.5rem !important;
    display: block !important;
}

.glightbox-container .gslide-title {
    color: white !important;
    font-size: 1.8rem !important;   /* más grande */
    font-weight: 600;
    margin-bottom: 0.75rem !important;
}

.glightbox-container .gslide-desc {
    color: #ddd !important;
    font-size: 1.2rem !important;   /* más grande */
    line-height: 1.5 !important;
}

.glightbox-container .gslide-desc a {
    color: #ffaa66 !important;
    text-decoration: underline;
    font-weight: bold;
    font-size: 1.1rem;
}

.glightbox-container .gslide-desc a:hover {
    color: white !important;
}

.glightbox-desc {
    display: none;
}

/* Móviles: descripción con gradiente */
.glightbox-mobile .glightbox-container .gslide-description {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.7)) !important;
}

/* -------------------------------------------------------------------
 * 4. RESPONSIVE
 * ------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .folio-entries .entry__title {
        font-size: 1.3rem;
    }
    .folio-entries .entry__cat {
        font-size: 1rem;
    }
    .glightbox-container .gslide-title {
        font-size: 1.5rem !important;
    }
    .glightbox-container .gslide-desc {
        font-size: 1rem !important;
    }
}

@media screen and (max-width: 500px) {
    .folio-entries {
        grid-template-columns: 1fr;
    }
    .full-width-band {
        padding: 2rem 0;
    }
}