/* Estado visual también en el círculo y fecha cuando está activo y en vivo (opcional) */
.timeline-list .entry.active .circle,
.timeline-list .entry .circle.is-live {
    border-color: #e01b1b;
    background: #e01b1b;
    box-shadow: 0 0 0 5px #ffe5e5;
}

/* Botón EN VIVO debajo de "Ver más" */
.btn-live {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-decoration: none;
    background: #ffffff;
    color: #e01b1b;
    border: 1.5px solid #e01b1b;
    box-shadow: 0 0 0 0 rgba(224, 27, 27, 0.2), 0 2px 8px rgba(224, 27, 27, 0.1);
    transition: box-shadow 0.2s, transform 0.05s, background 0.2s, color 0.2s;
}

.btn-live:hover {
    background: #ffe5e5;
    box-shadow: 0 0 0 6px rgba(224, 27, 27, 0.1),
        0 3px 10px rgba(224, 27, 27, 0.15);
}

.btn-live:active {
    transform: translateY(1px);
}

.evento-links .btn {
    margin-right: 5px;
    margin-bottom: 5px;
}

.timeline-section {
    padding-top: 60px;
    position: relative;
    width: 100%;
    min-height: 400px;
}

.timeline-wrapper {
    position: relative;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    height: 415px;
}

.timeline-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #143d6f;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
    pointer-events: auto;
}

.timeline-nav:hover {
    background: #10b3da;
}

.timeline-nav.left {
    left: 5px;
}

.timeline-nav.right {
    right: 5px;
}

.timeline-inner {
    overflow: hidden;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.timeline-list {
    display: flex;
    justify-content: space-between;
    /* reparte uniformemente */
    align-items: stretch;
    gap: 20px;
    margin-top: 30px;
    padding: 0 80px;
    list-style: none;
    position: relative;
    z-index: 20;
    transition: transform 0.4s ease;
    will-change: transform;
    width: 100%;
}

.timeline-section::before {
    content: "";
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: 8px;
    background: #143d6f;
}

.timeline-list .entry {
    position: relative;
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 30px;
    cursor: pointer;
    z-index: 20;
    transition: transform 0.2s ease;
}

.timeline-list .entry:hover {
    z-index: 20;
}

.timeline-list .entry .date {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: #fff;
    color: #143d6f;
    border: 1px solid #10b3da;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(16, 179, 218, 0.07);
    padding: 3.5px 8px 2.5px;
    min-width: 65px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
}

.timeline-list .entry.active .date {
    background: #be272a;
    color: #fff;
    border-color: #be272a;
    box-shadow: 0 2px 8px rgba(190, 39, 42, 0.13);
}

.timeline-list .entry .circle {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 6px solid #10b3da;
    border-radius: 50%;
    transition: border 0.25s, box-shadow 0.2s;
}

.timeline-list .entry.active .circle {
    background: #be272a;
    border-color: #be272a;
    box-shadow: 0 0 0 5px #ffebeb;
}

.timeline-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 12px;
    background: #fff;
    border: 1.5px solid #10b3da;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(16, 179, 218, 0.09);
    min-height: 320px;
    overflow: visible;
    z-index: 10;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.timeline-list .entry:hover .timeline-info {
    transform: translateY(-8px);
    box-shadow: 0 6px 16px rgba(16, 179, 218, 0.25);
    border-color: #0e9bb0;
}

.timeline-info .content-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.timeline-info .bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.timeline-titulo {
    font-weight: 700;
    color: #143d6f;
    font-size: 0.96em;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    line-height: 1.3em;
}

.timeline-info:hover {
    height: auto !important;
    max-height: none;
    overflow: visible;
    z-index: 10;
    position: relative;
}

.timeline-info:hover .timeline-titulo {
    -webkit-line-clamp: unset;
    overflow: visible;
    text-overflow: unset;
}

.timeline-categoria {
    font-size: 14px;
    color: #10b3da;
    font-weight: 500;
}

.timeline-ponentes {
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-ponente-foto {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    -o-object-fit: cover;
       object-fit: cover;
    border: 1.5px solid #10b3da;
}

.timeline-ponente-nombre {
    font-size: 14px;
    color: #143d6f;
    font-weight: 500;
}

.evento-estado.ver-mas {
    background: #143d6f;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 12px;
    display: inline-block;
    cursor: pointer;
    transition: background 0.2s;
}

.evento-estado.ver-mas:hover {
    background: #0e9bb0;
}

.evento-tipo-acceso.tipo-gratuito {
    background: #218838;
    color: #fff;
    margin-top: 5px;
    border-radius: 15px;
    padding: 2px 10px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-block;
}

.evento-panel {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 15px auto 60px;
    background: #f8fafd;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(142, 192, 253, 0.7);
    padding: 43px 50px;
    min-height: 340px;
    overflow: visible;
    border: 4px solid #f8fafd;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.evento-panel:hover {
    box-shadow: 0 12px 48px rgba(16, 179, 218, 0.23);
    border-color: #10b3da;
}

.evento-detalle {
    position: relative;
    -webkit-animation: panelIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
            animation: panelIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@-webkit-keyframes panelIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.evento-contenido {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

.evento-lateral {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 220px;
    max-width: 276px;
    gap: 16px;
}

.evento-imagen {
    max-width: 276px;
    max-height: 360px;
    border-radius: 14px;
    -o-object-fit: cover;
       object-fit: cover;
    background: #eee;
}

.evento-metas {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.evento-categoria,
.evento-contacto,
.evento-certificado {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.evento-label {
    color: #be272a;
    white-space: nowrap;
    flex-shrink: 0;
}

.evento-valor {
    color: #143d6f;
    flex: 1 1 0;
    min-width: 0;
    word-break: break-word;
}

.evento-info {
    flex: 1 1 320px;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
}

.evento-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 18px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.evento-header h2 {
    flex: 1 1 0;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
    color: #143d6f;
}

.chips-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.evento-fecha {
    font-weight: 600;
    color: #be272a;
    margin-bottom: 10px;
    font-size: 16px;
}

.evento-desclarga {
    font-size: 15px;
    color: #555;
    margin-bottom: 18px;
    white-space: pre-line;
    word-break: break-word;
    overflow-wrap: break-word;
}

.evento-ponente {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ponente-foto {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    -o-object-fit: cover;
       object-fit: cover;
    border: 2px solid #10b3da;
}

.evento-estado {
    position: static;
    font-size: 0.95rem;
    margin-top: 5px;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(20, 61, 111, 0.1);
    font-weight: bold;
    padding: 3px 14px;
    border-radius: 12px;
    border: 1.5px solid #fff;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px #0001;
    white-space: nowrap;
}

.evento-estado.proximo {
    background: #10b3da;
    color: #fff;
}

.evento-estado.finalizado {
    background: #be272a;
    color: #fff;
}

.evento-estado.en_curso {
    background: #fff;
    color: #e01b1b;
    border: 1.5px solid #e01b1b;
    font-weight: 800;
    letter-spacing: 1.1px;
    padding: 4px 18px 4px 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.02rem;
    border-radius: 16px;
    box-shadow: 0 0 0 0 #e01b1b33, 0 2px 8px #e01b1b17;
    position: relative;
    overflow: hidden;
    -webkit-animation: enVivoShine 2.5s linear infinite;
            animation: enVivoShine 2.5s linear infinite;
}

@-webkit-keyframes enVivoShine {
    0% {
        box-shadow: 0 0 0 0 #e01b1b22, 0 2px 8px #e01b1b17;
    }

    70% {
        box-shadow: 0 0 0 6px #e01b1b16, 0 2px 8px #e01b1b17;
    }

    100% {
        box-shadow: 0 0 0 0 #e01b1b22, 0 2px 8px #e01b1b17;
    }
}

@keyframes enVivoShine {
    0% {
        box-shadow: 0 0 0 0 #e01b1b22, 0 2px 8px #e01b1b17;
    }

    70% {
        box-shadow: 0 0 0 6px #e01b1b16, 0 2px 8px #e01b1b17;
    }

    100% {
        box-shadow: 0 0 0 0 #e01b1b22, 0 2px 8px #e01b1b17;
    }
}

.live-broadcast {
    position: relative;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.live-center {
    width: 10px;
    height: 10px;
    background: #e01b1b;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px #e01b1b77;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    border: 2px solid #fff;
}

.live-waves {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid #e01b1b;
    border-radius: 50%;
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(1);
    z-index: 1;
    pointer-events: none;
    -webkit-animation: liveWavesPulse 1.3s infinite cubic-bezier(0.4, 0, 0.6, 1);
            animation: liveWavesPulse 1.3s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.live-waves:nth-child(2) {
    -webkit-animation-delay: 0.65s;
            animation-delay: 0.65s;
    opacity: 0.38;
    border-width: 1.5px;
}

@-webkit-keyframes liveWavesPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.62;
    }

    70% {
        transform: translate(-50%, -50%) scale(1.75);
        opacity: 0.05;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes liveWavesPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.62;
    }

    70% {
        transform: translate(-50%, -50%) scale(1.75);
        opacity: 0.05;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.live-text {
    font-weight: 900;
    color: #e01b1b;
    letter-spacing: 1.2px;
    font-size: 1.05em;
    filter: brightness(1.25);
    text-shadow: 0 2px 6px #e01b1b13, 0 0 10px #fff;
}

.evento-links {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 15px;
}

.evento-links .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.evento-links .btn i {
    font-size: 1.1em;
    line-height: 1;
}

.evento-links .inscripcion {
    background: #10b3da;
    color: #fff;
}

.evento-links .inscripcion:hover {
    background: #0e9bb0;
}

.evento-links .unirse {
    background: #e01b1b;
    color: #fff;
}

.evento-links .unirse:hover {
    background: #b71817;
}

.evento-links .acceder {
    background: #143d6f;
    color: #fff;
}

.evento-links .acceder:hover {
    background: #102a50;
}

.evento-links .curso {
    background: #228b22;
    color: #fff;
}

.evento-links .curso:hover {
    background: #1e781e;
}

.evento-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #143d6f;
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 2px 10px #0002;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    opacity: 0.95;
    pointer-events: auto;
}

.evento-nav-left {
    left: -68px;
}

.evento-nav-right {
    right: -68px;
}

.evento-nav:hover,
.evento-nav:focus {
    background: #10b3da;
    color: #fff;
}

@media (max-width: 900px) {
    .timeline-section {
        margin-bottom: 28px;
        padding: 40px 3vw 0;
        margin-top: 32px;
        overflow: visible;
        width: 100%;
        box-sizing: border-box;
    }
    .timeline-section::before {
        top: 61px;
    }
    .evento-panel {
        padding: 14px 3vw 28px;
        border-width: 2px;
        max-width: 100vw;
        margin: 12px 0 36px;
        border-radius: 16px;
        box-shadow: 0 3px 14px rgba(87, 221, 255, 0.8);
    }

    .evento-contenido {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .evento-lateral {
        max-width: 100%;
        min-width: 0;
        gap: 10px;
    }

    .evento-info {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .evento-header {
        gap: 6px 10px;
    }

    .evento-header h2 {
        flex: 0 0 100%;
        font-size: 1.08rem;
        margin-bottom: 2px;
    }

    .chips-container {
        width: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-left: 0;
    }

    .evento-fecha {
        font-size: 13px;
        margin-bottom: 7px;
    }

    .evento-desclarga {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .ponente-foto {
        width: 40px;
        height: 40px;
    }

    .evento-nav {
        display: none;
    }
}

.timeline-list .entry .timeline-info.is-live {
    border-color: #e01b1b !important;
    border-width: 2px !important;
    background: #fef2f2 !important;
    box-shadow: 0 6px 16px rgba(224, 27, 27, 0.18) !important;
}
