/* ========================================
   ABOUT.CSS — Sobre el Festival (Rediseño)
   Layout: columna izq grande + poster der
   ======================================== */

.about {
    background: var(--color-crema);
    position: relative;
    overflow: hidden;
    padding-top: 12rem;
    padding-bottom: 12rem;
}

/* ── Fondos decorativos (raíces) ── */
.about__bg-top,
.about__bg-bottom {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    line-height: 0;
}

.about__bg-top { top: 0; }
.about__bg-bottom { bottom: 0; }

.about__bg-top img,
.about__bg-bottom img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about .container {
    position: relative;
    z-index: 1;
}

/* ── Grid principal: 65% izq / 35% der ── */
.about__grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* ── Columna izquierda ── */
.about__main {
    order: 1;
}

.about__heading {
    color: var(--color-noche);
    margin-bottom: 1.5rem;
}

.about__heading::after {
    display: block;
    content: '';
    width: 60px;
    height: 3px;
    background: var(--color-ocre);
    margin-top: 0.75rem;
    border-radius: 2px;
}

.about__intro {
    color: var(--color-noche);
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1rem;
    max-width: 680px;
}

.about__intro-list {
    color: var(--color-noche);
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1rem;
    max-width: 680px;
    padding-left: 1.5rem;
    list-style: disc;
}

.about__intro-list li {
    margin-bottom: 0.4rem;
}

.about__intro-list + .about__intro {
    margin-top: 0.5rem;
}

/* ── Mosaico de cards (ancho completo, 6 columnas) ── */
.about__mosaic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.about__card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4 / 3;
    min-height: unset;
}

/* Span classes — explicit column widths per card */
.about__mosaic .about__card--span-1 { grid-column: span 1; }
.about__mosaic .about__card--span-2 { grid-column: span 2; }
.about__mosaic .about__card--span-3 { grid-column: span 3; }
.about__mosaic .about__card--span-4 { grid-column: span 4; }
.about__mosaic .about__card--span-5 { grid-column: span 5; }
.about__mosaic .about__card--span-6 { grid-column: span 6; }

.about__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Card tipo texto */
.about__card--texto {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(139, 94, 60, 0.1);
    padding: 1.25rem 1rem;
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.5rem;
    align-content: start;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 94, 60, 0.25) transparent;
}

.about__card--texto::-webkit-scrollbar {
    width: 4px;
}

.about__card--texto::-webkit-scrollbar-track {
    background: transparent;
}

.about__card--texto::-webkit-scrollbar-thumb {
    background: rgba(139, 94, 60, 0.25);
    border-radius: 2px;
}

.about__card--texto:hover::-webkit-scrollbar-thumb {
    background: rgba(139, 94, 60, 0.5);
}

.about__card--texto:hover {
    border-color: var(--color-ocre);
}

.about__card-icon {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
}

.about__card-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-crema);
}

.about__card-title {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    color: var(--color-noche);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.about__card-text {
    grid-column: 1 / -1;
    grid-row: 2;
    color: var(--color-tierra);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.85;
}

/* Card link wrapper */
.about__card-link {
    display: contents;
    text-decoration: none;
    color: inherit;
}

.about__card--texto:has(.about__card-link):hover {
    border-color: var(--color-ocre);
    transform: translateY(-3px);
}

.about__card--texto:has(.about__card-link) .about__card-title::after {
    content: ' →';
    opacity: 0;
    transition: opacity 0.2s ease;
}

.about__card--texto:has(.about__card-link):hover .about__card-title::after {
    opacity: 1;
}

/* Card tipo imagen */
.about__card--imagen {
    padding: 0;
}

.about__card--imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.about__card--imagen:hover img {
    transform: scale(1.08);
}

/* Overlay texto sobre imagen */
.about__card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.8rem 0.9rem 0.75rem;
    display: flex;
    align-items: flex-end;
    transition: opacity 0.3s ease;
}

.about__card-overlay--verde {
    background: linear-gradient(
        to top,
        rgba(42, 90, 62, 0.82) 0%,
        rgba(42, 90, 62, 0.4) 60%,
        transparent 100%
    );
}

.about__card-overlay--tierra {
    background: linear-gradient(
        to top,
        rgba(139, 94, 60, 0.85) 0%,
        rgba(139, 94, 60, 0.4) 60%,
        transparent 100%
    );
}

.about__card-overlay--ocre {
    background: linear-gradient(
        to top,
        rgba(200, 151, 43, 0.85) 0%,
        rgba(200, 151, 43, 0.35) 60%,
        transparent 100%
    );
}

.about__card-overlay-text {
    color: var(--color-crema);
    font-family: var(--font-titulo);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

/* Card tipo video */
.about__card--video {
    padding: 0;
}

/* Span-2+ cards: video ratio and larger play button */
.about__card--span-2,
.about__card--span-3,
.about__card--span-4,
.about__card--span-5,
.about__card--span-6 {
    aspect-ratio: 16 / 9;
    min-height: unset;
}

.about__card--span-2.about__card--texto,
.about__card--span-3.about__card--texto,
.about__card--span-4.about__card--texto {
    aspect-ratio: auto;
    min-height: 180px;
}

.about__card--span-3 .about__card-play,
.about__card--span-4 .about__card-play {
    width: 60px;
    height: 60px;
}

.about__card--span-3 .about__card-play svg,
.about__card--span-4 .about__card-play svg {
    width: 28px;
    height: 28px;
}

.about__card--span-3 .about__card-video-label,
.about__card--span-4 .about__card-video-label {
    font-size: 0.9rem;
}

.about__card-video {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.about__card-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.about__card--video:hover .about__card-video img {
    transform: scale(1.08);
}

.about__card-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.3s ease;
}

.about__card-video:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

.about__card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    background: rgba(200, 151, 43, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.about__card-play svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.about__card-video:hover .about__card-play {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--color-ocre);
}

.about__card-video-label {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    color: var(--color-crema);
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ── Columna derecha: poster ── */
.about__visual {
    order: 2;
    position: sticky;
    top: 6rem;
}

.about__image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 1.25rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.about__image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(59, 110, 71, 0.3) 0%,
        transparent 50%,
        rgba(139, 94, 60, 0.2) 100%
    );
    z-index: 1;
}

.about__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about__image-wrapper:hover img {
    transform: scale(1.05);
}

/* ── Cifras (ancho completo bajo el grid) ── */
.about__cifras {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.about__cifra {
    text-align: center;
    padding: 1.5rem 0.75rem;
    background: var(--color-noche);
    color: var(--color-crema);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.about__cifra::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-ocre);
}

.about__cifra-valor {
    font-family: var(--font-titulo);
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: var(--color-ocre);
    margin-bottom: 0.35rem;
    line-height: 1;
}

.about__cifra-etiqueta {
    font-family: var(--font-cuerpo);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .about__grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 2rem;
    }
    .about__mosaic {
        grid-template-columns: repeat(4, 1fr);
    }
    .about__mosaic .about__card--span-3 { grid-column: span 2; }
    .about__mosaic .about__card--span-2 { grid-column: span 2; }
    .about__mosaic .about__card--span-1 { grid-column: span 1; }
    .about__cifras {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about__visual {
        order: -1;
        position: relative;
        top: 0;
        max-width: 320px;
        margin: 0 auto;
    }
    .about__mosaic {
        grid-template-columns: repeat(2, 1fr);
    }
    .about__mosaic .about__card--span-3,
    .about__mosaic .about__card--span-2 { grid-column: span 2; }
    .about__mosaic .about__card--span-1 { grid-column: span 1; }
    .about__cifras {
        grid-template-columns: repeat(3, 1fr);
    }
    .about__card {
        min-height: 140px;
    }
}

@media (max-width: 480px) {
    .about__mosaic {
        grid-template-columns: 1fr;
    }
    .about__mosaic .about__card--span-1,
    .about__mosaic .about__card--span-2,
    .about__mosaic .about__card--span-3,
    .about__mosaic .about__card--span-4,
    .about__mosaic .about__card--span-5,
    .about__mosaic .about__card--span-6 {
        grid-column: span 1;
    }
    .about__cifras {
        grid-template-columns: repeat(2, 1fr);
    }
    .about__cifra:last-child {
        grid-column: 1 / -1;
    }
}
