/* ── TRIPTYCH SECTION ──────────────────────────────────── */
.triptych-section {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 20px;
    padding: 60px 80px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%232d4f95' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    font-family: 'Inter', sans-serif;
    max-width: 1500px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ── BASE CARD ─────────────────────────────────────────── */
.triptych-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-height: 420px;

    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.triptych-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.triptych-card:nth-child(2) {
    transition-delay: 0.12s;
}

.triptych-card:nth-child(3) {
    transition-delay: 0.24s;
}

/* ── IMAGEN DE FONDO ───────────────────────────────────── */
.triptych-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.triptych-card--media:hover .triptych-bg {
    transform: scale(1.04);
}

/* ── OVERLAY PARA LEGIBILIDAD DEL TEXTO ────────────────── */
.triptych-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* gradiente fuerte abajo para el label */
    background: linear-gradient(to bottom,
            rgba(5, 15, 35, 0.15) 0%,
            rgba(5, 15, 35, 0.25) 40%,
            rgba(5, 15, 35, 0.75) 75%,
            rgba(5, 15, 35, 0.92) 100%);
}

/* variante: más oscuro en el centro para los tags */
.triptych-overlay--bottom {
    background: linear-gradient(to bottom,
            rgba(5, 15, 35, 0.05) 0%,
            rgba(5, 15, 35, 0.15) 50%,
            rgba(5, 15, 35, 0.85) 80%,
            rgba(5, 15, 35, 0.95) 100%);
}

/* ── PLAY BUTTON ───────────────────────────────────────── */
.triptych-play-btn {
    position: absolute;
    bottom: 60px;
    left: 28px;
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.triptych-play-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.triptych-play-btn svg {
    width: 16px;
    height: 16px;
    margin-left: 3px;
    /* centra óptico el triángulo */
}

/* ── LABEL INFERIOR MEDIA CARD ─────────────────────────── */
.triptych-media-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px 28px 28px;
}

.triptych-media-label h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ── CARD CENTRAL MEJORADA ─────────────────────────────── */
.triptych-card--content {
    background: linear-gradient(160deg, #1a2744 0%, #0d1628 60%, #0a1020 100%);
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* fondo decorativo: círculo de luz azul */
.triptych-card--content::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(45, 79, 149, 0.3) 0%,
            transparent 70%);
    pointer-events: none;
}

/* línea roja superior */
.tc-top-accent {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #d01341 0%, rgba(208, 19, 65, 0.3) 100%);
    flex-shrink: 0;
}

/* STAT BLOCK */
.tc-stat-block {
    padding: 32px 36px 24px;
}

.tc-stat-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
}

.tc-big-num {
    font-size: 48px;
    font-weight: 100;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.04em;
}

.tc-big-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.3;
}

/* mini stats row */
.tc-stat-sub-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 12px 0;
}

.tc-mini-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.tc-mini-num {
    font-size: 18px;
    font-weight: 800;
    color: #b4935a;
    line-height: 1;
}

.tc-mini-label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

.tc-mini-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* DIVIDER */
.tc-divider {
    width: calc(100% - 72px);
    margin: 0 36px 20px;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.04));
}

/* LISTA */
.tc-list {
    list-style: none;
    padding: 0 36px;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tc-list li {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.tc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d01341;
}

/* BODY */
.tc-body {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 36px 0;
    flex-grow: 1;
}

.tc-body strong {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

/* CTA */
.tc-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 36px 32px;
    padding: 14px 20px;
    background: rgba(45, 79, 149, 0.2);
    border: 1px solid rgba(45, 79, 149, 0.4);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.tc-cta:hover {
    background: rgba(45, 79, 149, 0.35);
    border-color: rgba(45, 79, 149, 0.7);
}

.tc-cta-text {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.tc-cta-arrow {
    font-size: 18px;
    color: #b4935a;
    transition: transform 0.2s ease;
}

.tc-cta:hover .tc-cta-arrow {
    transform: translate(3px, -3px);
}

/* ── TAGS CARD DERECHA ─────────────────────────────────── */
.triptych-tags {
    position: absolute;
    bottom: 28px;
    left: 20px;
    right: 20px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.triptych-tag {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 100px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .triptych-section {
        grid-template-columns: 1fr 1fr;
        padding: 40px 32px;
    }

    .triptych-card:nth-child(1) {
        grid-column: 1 / -1;
        min-height: 280px;
    }
}

@media (max-width: 640px) {
    .triptych-section {
        grid-template-columns: 1fr;
        padding: 32px 16px;
        gap: 14px;
    }

    .triptych-card {
        min-height: 300px;
    }

    .triptych-card:nth-child(1) {
        min-height: 260px;
    }
}