/* ============================================================
   CONTENEDOR Y GRID PRINCIPAL
   ============================================================ */
.aje-contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.aje-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* ============================================================
   TARJETA (CARD)
   ============================================================ */
.aje-card {
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    display: flex;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #f2f2f2;
    height: 100%;
}

.aje-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

.aje-card-live {
    border: 2px solid #ff0000 !important;
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.12) !important;
}

.aje-card-upcoming {
    border: 1px solid rgb(255, 193, 7) !important;
    background-color: #fffdf5;
}

/* ============================================================
   FRANJA DE FECHA
   ============================================================ */
.aje-fecha {
    width: 115px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    padding: 15px 5px;
    flex-shrink: 0;
}

.aje-dia-nombre {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    opacity: 0.85;
}

.aje-dia {
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
}

.aje-color-presencial { background-color: rgb(64, 178, 201); }
.aje-color-streaming { background-color: rgb(255, 193, 7); }
.aje-color-comunidad { background-color: rgb(171, 71, 188); }

/* ============================================================
   CONTENIDO
   ============================================================ */
.aje-info {
    padding: 25px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aje-proximo-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: rgb(180, 130, 0);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.aje-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
}

.aje-badge-live { background-color: #ff0000; color: #fff; }
.aje-color-presencial-bg { background-color: rgba(64, 178, 201, 0.12); color: rgb(40, 140, 160); }
.aje-color-streaming-bg { background-color: rgba(255, 193, 7, 0.12); color: rgb(180, 130, 0); }
.aje-color-comunidad-bg { background-color: rgba(171, 71, 188, 0.12); color: rgb(140, 40, 150); }

.aje-titulo {
    font-size: 1.6rem;
    margin: 8px 0 25px 0;
    color: #1a1a1a;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.6px;
}

/* ============================================================
   BOTONES
   ============================================================ */
.aje-btn-live {
    color: #ff0000 !important;
    border: 1.5px solid #ff0000;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex !important;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.85rem;
    align-items: center;
    gap: 8px;
}

.aje-live-dot {
    height: 10px;
    width: 10px;
    background-color: #ff0000;
    border-radius: 50%;
    animation: aje-blink 1.2s infinite;
}

@keyframes aje-blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* BOTÓN VER TODO (FIJO) */
.aje-ver-todo-container {
    text-align: right;
    margin-top: 40px;
}

.aje-link-ver-todo {
    color: rgb(171, 71, 188);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.aje-link-ver-todo:hover {
    transform: translateX(5px);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .aje-card { flex-direction: column; }
    .aje-fecha { width: 100%; flex-direction: row; gap: 15px; }
}