/* ═══════════════════════════════════════════════════════════════════════════
   SINGLE EVENTO — single-evento.php
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fila de badges (modalidad + finalizado) ── */
.ev-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.ev-badges-row .ev-modalidad-badge {
    margin-bottom: 0;
}

/* ── Badge modalidad ── */
.ev-modalidad-badge {
    display: block;
    width: fit-content;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #fff;
    color: var(--color-black, #111);
    border: 1.5px solid var(--color-black, #111);
    line-height: 1.4;
}

/* ── Badge "Evento finalizado" ── */
.ev-finalizado-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 1px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--color-black, #111);
    color: #fff;
    line-height: 1.4;
}

/* ── Botón "Registro cerrado" ── */
.btn-registro-cerrado {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    background: #d1d5db;
    color: #6b7280;
    border: none;
    cursor: default;
    letter-spacing: 0.01em;
}

/* ── Acciones: botones lado a lado ── */
.evento-info-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* Reset común para ambos botones */
.btn-evento-registro,
.btn-evento-cal {
    height: 46px;
    box-sizing: border-box;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    flex: 1;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
}

/* Botón Registrarme — sólido negro */
.btn-evento-registro {
    background: var(--color-black, #111);
    color: var(--color-white, #fff) !important;
    border: 1.5px solid var(--color-black, #111);
    transition: background 0.15s;
}
.btn-evento-registro:hover {
    background: #000;
    border-color: #000;
}

/* ── Dropdown calendario ── */
.cal-dropdown {
    position: relative;
    flex: 1;
    display: flex;
    height: 46px;
}

/* Botón Agregar al calendario — outline */
.btn-evento-cal {
    background: transparent;
    color: var(--color-black, #111);
    border: 1.5px solid var(--color-black, #111);
    transition: background 0.15s, color 0.15s;
    width: 100%;
    flex: 1;
}
.btn-evento-cal:hover,
.btn-evento-cal[aria-expanded="true"] {
    background: var(--color-black, #111);
    color: var(--color-white, #fff);
}
.btn-evento-cal svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}
.btn-evento-cal[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .btn-compartir { display: none; }
}

/* ── Otros eventos ── */
.otros-eventos-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: none !important;
}
.otros-eventos-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-text-muted);
}
.otro-evento-item:first-child {
    border-top: none;
}
.otro-evento-cat {
    color: var(--color-primary) !important;
}
.otro-evento-detalle {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 2px;
    display: block;
}
.otros-eventos-ver-todos {
    display: block;
    text-align: right;
    margin-top: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.otros-eventos-ver-todos:hover {
    color: var(--color-primary-dark);
}

/* ── Menú desplegable ── */
.cal-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 200;
    list-style: none;
    margin: 0;
    padding: 4px 0;
}
.cal-dropdown-menu.is-open {
    display: block;
}

.cal-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.875rem;
    color: var(--color-black, #111);
    text-decoration: none;
    transition: background 0.1s;
    border-bottom: 1px solid #f3f4f6;
}
.cal-dropdown-item:last-child {
    border-bottom: none;
}
.cal-dropdown-item:hover {
    background: #f9fafb;
}
