/* ==========================================================================
   ESTILOS COMPLETOS REPLICANDO EL DISEÑO +CTG2026
   ========================================================================== */

.ctg-agenda-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   PESTAÑAS / TABS
   -------------------------------------------------------------------------- */
.ctg-agenda-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.ctg-tabs-bottom {
    margin-top: 40px;
    margin-bottom: 20px;
}

.ctg-tab-btn {
    background-color: #fff !important;
    color: #F4850A !important;
    border: 1px solid #282848 !important;
    padding: 28px 28px !important;
    border-radius: 0px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.ctg-tab-btn.active, .ctg-tab-btn:hover {
    background-color: #F4850A !important;
    border-color: #ff5722;
    color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   GRID Y POSICIONAMIENTO DINÁMICO
   -------------------------------------------------------------------------- */
.ctg-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

/* 1 AUDITORIO FIJO EN SU COLUMNA */
.ctg-card-outer.col-convergencia {
    grid-column: 1 / span 1 !important;
}

.ctg-card-outer.col-divergencia {
    grid-column: 2 / span 1 !important;
}

.ctg-card-outer.col-evidencia {
    grid-column: 3 / span 1 !important;
}

/* 2 AUDITORIOS (OCUPAN 2 ESPACIOS) */
.ctg-card-outer.span-conv-div {
    grid-column: 1 / span 2 !important;
}

.ctg-card-outer.span-div-evi {
    grid-column: 2 / span 2 !important;
}

/* 3 AUDITORIOS (FULL WIDTH / PLENARIA) */
.ctg-card-outer.full-width {
    grid-column: 1 / span 3 !important;
}

/* --------------------------------------------------------------------------
   TARJETA PRINCIPAL
   -------------------------------------------------------------------------- */
.ctg-card-outer {
    background-color: #121021;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* BANNER DE IMAGEN Y ESQUINA RECORTADA */
.ctg-card-thumb-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    background-color: #121021;
}

.ctg-image-clipper {
    width: 100%;
    height: 100%;
    -webkit-mask-image: radial-gradient(circle 65px at calc(100% - 15px) 15px, transparent 99%, #000 100%);
    mask-image: radial-gradient(circle 65px at calc(100% - 15px) 15px, transparent 99%, #000 100%);
}

.ctg-image-clipper img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

.ctg-corner-curve-svg {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    pointer-events: none;
    z-index: 1;
}

/* BADGE CIRCULAR NARANJA */
.ctg-badge-circle {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

/* ÍCONO BLANCO DENTRO DEL CÍRCULO NARANJA */
.ctg-badge-circle img.ctg-badge-icon-white {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(0) invert(1) !important; /* Fuerza blanco puro */
}

/* --------------------------------------------------------------------------
   RECUADRO INTERIOR DE DATOS
   -------------------------------------------------------------------------- */
.ctg-card-inner-box {
    border: 1px solid #2e2c4d;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ctg-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ctg-separator {
    color: #666688;
    font-size: 1.1rem;
    font-weight: 300;
}

.ctg-auditorio-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ctg-aud-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    font-weight: 700;
}

/* COLORIZACIÓN DE ÍCONOS DE AUDITORIO (AL LADO DEL TEXTO) */
.ctg-aud-item img.ctg-svg-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Convergencia (#4998C6 - Azul) */
.ctg-aud-item img.ctg-svg-convergencia {
    filter: invert(56%) sepia(85%) saturate(350%) hue-rotate(162deg) brightness(92%) contrast(89%) !important;
}

/* Divergencia (#E7AA37 - Amarillo) */
.ctg-aud-item img.ctg-svg-divergencia {
    filter: invert(72%) sepia(81%) saturate(450%) hue-rotate(355deg) brightness(96%) contrast(88%) !important;
}

/* Evidencia (#EA5D32 - Naranja) */
.ctg-aud-item img.ctg-svg-evidencia {
    filter: invert(48%) sepia(91%) saturate(1500%) hue-rotate(340deg) brightness(98%) contrast(92%) !important;
}

.ctg-time-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   TEXTOS Y MARCAS
   -------------------------------------------------------------------------- */
.ctg-speakers-wrap {
    margin-top: 15px;
    margin-bottom: 20px;
}

.ctg-speaker-row {
    margin-bottom: 12px;
}

.ctg-speaker-row:last-child {
    margin-bottom: 0;
}

.ctg-speaker-name {
    font-size: 1.05rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.ctg-speaker-name strong {
    font-weight: 800;
}

.ctg-speaker-role {
    font-size: 0.92rem;
    color: #b0b0cc;
    margin: 0;
}

.ctg-talk-title {
    font-family: "Gilroy", Sans-serif !important;
    font-size: 25px !important;
    font-weight: 900 !important;
    line-height: 1.3em !important;
    color: var(--e-global-color-secondary) !important;
}

.ctg-sponsor-logo {
    margin-top: 20px;
}

.ctg-sponsor-logo img {
    max-height: 38px;
    width: auto;
}

/* ENCABEZADO FRANJA HORARIA */
.ctg-time-header {
    text-align: center;
    margin-bottom: 35px;
}

.ctg-time-badge {
    font-family: "Gilroy", Sans-serif;
    font-weight: 900;
    color: #FFF;
    font-size: 46px;
}

/* --------------------------------------------------------------------------
   RESPONSIVO
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .ctg-events-grid { 
        grid-template-columns: 1fr; 
    }
    
    .ctg-card-outer.col-convergencia,
    .ctg-card-outer.col-divergencia,
    .ctg-card-outer.col-evidencia,
    .ctg-card-outer.span-conv-div,
    .ctg-card-outer.span-div-evi,
    .ctg-card-outer.full-width { 
        grid-column: 1 / span 1 !important; 
    }
}