/* ============================================================
   testimonios.css — Página Nuestra Gente
   ============================================================ */

/* ── Hero ── */
.testi-hero {
    position: relative;
    height: 90vh;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.testi-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testi-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.7) 100%);
    z-index: 1;
}

.testi-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 1.5rem;
}

.testi-hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    color: #f5f0e8;
    margin: .6rem 0 1rem;
}

.testi-hero-desc {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.7;
}

.text-gold { color: #c9a84c; }

/* ── Secciones generales ── */
.testi-section {
    padding: 5rem 0;
    background: #0a0a0a;
}

.testi-section--dark {
    background: #111;
}

.testi-block-header {
    text-align: center;
    margin-bottom: 3rem;
}

.testi-block-desc {
    color: #888;
    font-size: .95rem;
    line-height: 1.7;
    margin-top: .6rem;
}

/* ── Imagen de portada del video en la grilla ── */
.testi-video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.23,1,.32,1), filter .3s;
}

.testi-video-card:hover .testi-video-thumb-img {
    transform: scale(1.06);
    filter: brightness(.85);
}

/* ── Miniatura genérica fallback para videos sin source (otras secciones) ── */
.testi-thumb-video {
    width: 100%;
    height: 100%;
    min-height: 160px;
    background: linear-gradient(135deg, #1a1409 0%, #2a1f00 50%, #1a1409 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
}

/* Variante que ocupa todo el card de video (sección "En Vivo") */
.testi-thumb-video--fill {
    position: absolute;
    inset: 0;
    min-height: unset;
    background: linear-gradient(145deg, #1a1409 0%, #2a1f00 50%, #1a1409 100%);
}

.testi-thumb-video .material-symbols-outlined,
.testi-thumb-video--fill .material-symbols-outlined {
    font-size: 3.2rem;
    color: rgba(255,255,255,.65);
    transition: color .3s, transform .3s;
}

a:hover .testi-thumb-video .material-symbols-outlined,
a:hover .testi-thumb-video--fill .material-symbols-outlined {
    color: #c9a84c;
    transform: scale(1.12);
}

/* ── Video Grid ── */
.testi-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.testi-video-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1a;
    aspect-ratio: 9/16;
    cursor: pointer;
    display: block;
    text-decoration: none;
    transition: transform .25s;
}

.testi-video-card:hover {
    transform: scale(1.02);
}

.testi-video-card:hover .testi-video-el {
    filter: brightness(.85);
}

.testi-video-card:hover .testi-play-icon {
    color: #c9a84c;
    transform: scale(1.15);
}

.testi-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    padding: .8rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
    z-index: 3;
}

.testi-video-label {
    font-size: .75rem;
    font-weight: 600;
    color: #f5f0e8;
    letter-spacing: .05em;
    margin: 0;
}

/* ── Shows / Eventos especiales ── */
.testi-shows-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

.testi-show-card {
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid rgba(201,168,76,.15);
    display: block;
    text-decoration: none;
    transition: border-color .3s, transform .25s;
    cursor: pointer;
}

.testi-show-card:hover {
    border-color: rgba(201,168,76,.4);
    transform: translateY(-3px);
}

.testi-show-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform .5s ease;
}

.testi-show-card:hover .testi-show-img {
    transform: scale(1.04);
}

/* Video placeholder para shows */
.testi-show-img--video {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #1c1c1c 0%, #0d0d0d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testi-show-img--video .material-symbols-outlined {
    font-size: 3rem;
    color: rgba(255,255,255,.6);
}

.testi-show-info {
    padding: 1.2rem 1.4rem;
}

.testi-show-tag {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #c9a84c;
    display: block;
    margin-bottom: .4rem;
}

.testi-show-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f5f0e8;
    margin: 0 0 .3rem;
}

.testi-show-detail {
    font-size: .82rem;
    color: #888;
    margin: 0;
}

/* ── Masonry (Baby Showers) ── */
.testi-masonry {
    columns: 4;
    column-gap: 10px;
}

.testi-masonry-item {
    break-inside: avoid;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.testi-masonry-item img {
    width: 100%;
    display: block;
    transition: transform .5s ease;
}

.testi-masonry-item:hover img {
    transform: scale(1.04);
}

.testi-masonry-item--tall img {
    aspect-ratio: 3/4;
    object-fit: cover;
}

.testi-masonry-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: .7rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
    font-size: .75rem;
    font-weight: 600;
    color: #f5f0e8;
    opacity: 0;
    transition: opacity .3s;
}

.testi-masonry-item:hover .testi-masonry-caption {
    opacity: 1;
}

/* ── Row grid (Cumpleaños) ── */
.testi-row-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.testi-row-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.testi-row-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.testi-row-item:hover img {
    transform: scale(1.05);
}

.testi-row-item--featured img {
    height: 340px;
}

.testi-row-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: .7rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
    font-size: .78rem;
    font-weight: 600;
    color: #f5f0e8;
}

/* ── Cenas grid ── */
.testi-cenas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.testi-cena-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.testi-cena-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.testi-cena-card:hover img {
    transform: scale(1.05);
}

.testi-cena-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.2rem;
    pointer-events: none;
}

.testi-cena-overlay span {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #f5f0e8;
}

/* ── Comunidad / Donación ── */
.testi-comunidad-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.testi-comunidad-imgs {
    position: relative;
}

.testi-comunidad-img--main {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
    transition: transform .4s;
}

.testi-comunidad-imgs a:first-child:hover .testi-comunidad-img--main {
    transform: scale(1.02);
}

.testi-comunidad-img--secondary {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 45%;
    border-radius: 10px;
    border: 3px solid #111;
    object-fit: cover;
    aspect-ratio: 1/1;
    display: block;
}

.testi-comunidad-desc {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.8;
    margin: 1.2rem 0 1.5rem;
}

.testi-comunidad-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: rgba(201,168,76,.08);
    border: 1px solid rgba(201,168,76,.25);
    padding: .6rem 1.2rem;
    border-radius: 999px;
    font-size: .8rem;
    color: #c9a84c;
    font-weight: 600;
    letter-spacing: .06em;
}

.testi-comunidad-badge .material-symbols-outlined {
    font-size: 1.1rem;
}

/* ── CTA Final ── */
.testi-cta-final {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.testi-cta-final-bg {
    position: absolute;
    inset: 0;
}

.testi-cta-final-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testi-cta-final-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
}

.testi-cta-final-content {
    position: relative;
    z-index: 2;
}

.testi-cta-final-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #f5f0e8;
    margin-bottom: .75rem;
}

.testi-cta-final-content p {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ── GLightbox overrides (tema oscuro) ── */
.glightbox-clean .gslide-description {
    background: #1a1a1a;
}

.glightbox-clean .gdesc-inner .gslide-title {
    color: #f5f0e8;
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .testi-video-grid { grid-template-columns: repeat(3, 1fr); }
    .testi-masonry    { columns: 3; }
}

@media (max-width: 800px) {
    .testi-video-grid { grid-template-columns: repeat(2, 1fr); }
    .testi-masonry    { columns: 2; }
    .testi-shows-grid { grid-template-columns: 1fr; max-width: 400px; }
    .testi-row-grid   { grid-template-columns: 1fr 1fr; }
    .testi-cenas-grid { grid-template-columns: 1fr 1fr; }
    .testi-comunidad-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
    .testi-comunidad-img--secondary { display: none; }
}

@media (max-width: 540px) {
    .testi-video-grid { grid-template-columns: repeat(2, 1fr); }
    .testi-masonry    { columns: 2; }
    .testi-row-grid   { grid-template-columns: 1fr 1fr; }
    .testi-cenas-grid { grid-template-columns: 1fr; }
    .testi-hero       { height: 70vh; }

    /* Miniaturas de video un poco más grandes en mobile */
    .testi-video-thumb,
    .testi-thumb-video {
        min-height: 120px;
    }
}
