/* Agenda (página completa): complementa proximos_eventos.css */

.agenda-sc-page {
    position: relative;
    max-width: min(640px, 100%);
    margin: 0 auto;
    padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.agenda-sc-ambient {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(120% 55% at 50% -8%, rgba(59, 130, 246, 0.16), transparent 55%),
        radial-gradient(80% 40% at 100% 20%, rgba(14, 165, 233, 0.08), transparent 50%);
}

.agenda-sc-page > *:not(.agenda-sc-ambient) {
    position: relative;
    z-index: 1;
}

.agenda-sc-page-head {
    margin: 4px 0 12px;
    padding: 0 2px;
}

.agenda-sc-page-head-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.agenda-sc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border: 1px solid #93c5fd;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.14);
}

.agenda-sc-eyebrow .bi {
    font-size: 0.95rem;
    opacity: 0.9;
}

.agenda-sc-head-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.agenda-sc-head-meta .bi {
    font-size: 14px;
    color: #0ea5e9;
}

.agenda-sc-page-h1 {
    margin: 0 0 8px;
    font-size: clamp(1.15rem, 4vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #0f172a;
}

.agenda-sc-page-lead {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #475569;
}

.agenda-sc-page-lead strong {
    font-weight: 600;
    color: #334155;
}

/* Ancla #agenda-ev-ID desde la home */
.agenda-sc-page .proximos-ev-sc__item[id^="agenda-ev-"] {
    scroll-margin-top: 76px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.agenda-sc-page .proximos-ev-sc__item[id^="agenda-ev-"]:target,
.agenda-sc-page .proximos-ev-sc__item.agenda-ev-sc-item--targeted {
    border-color: #60a5fa !important;
    box-shadow:
        0 0 0 2px rgba(37, 99, 235, 0.35),
        0 12px 28px -10px rgba(37, 99, 235, 0.2);
}

.proximos-ev-sc__wrap--static:active .proximos-ev-sc__card {
    transform: none;
}

/* Primer evento: más protagonismo */
.agenda-sc-page .proximos-ev-sc__card > .proximos-ev-sc__item:first-of-type {
    position: relative;
    border-radius: 16px;
    border: 1px solid #93c5fd !important;
    box-shadow: 0 8px 22px -8px rgba(37, 99, 235, 0.22);
    margin-bottom: 4px;
}

.agenda-sc-page .proximos-ev-sc__card > .proximos-ev-sc__item:first-of-type:not(.proximos-ev-sc__item--hoy) {
    padding: 16px 8px;
    background: linear-gradient(105deg, rgba(239, 246, 255, 0.65) 0%, #fff 55%);
}

.agenda-sc-page .proximos-ev-sc__card > .proximos-ev-sc__item--hoy:first-of-type {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 246, 255, 0.55) 100%);
}

/* En móvil no recortar títulos ni lugar: se lee todo el texto */
.agenda-sc-page .proximos-ev-sc__card {
    overflow: visible;
}

.agenda-sc-page .proximos-ev-sc__item:not(.proximos-ev-sc__item--hoy) .proximos-ev-sc__nombre {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.agenda-sc-page .proximos-ev-sc__lugar-ellipsis {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.agenda-sc-page .proximos-ev-sc__item:not(.proximos-ev-sc__item--hoy) .proximos-ev-sc__meta .proximos-ev-sc__lugar-ellipsis {
    flex: 1 1 100%;
    min-width: 0;
}

.agenda-sc-page .proximos-ev-sc:first-of-type {
    margin-top: 4px;
}

.agenda-sc-page .proximos-ev-sc--empty .proximos-ev-sc__empty-msg {
    padding: 8px 12px 0;
    line-height: 1.55;
}

.agenda-sc-empty-lead {
    margin: 0 12px 12px;
    padding: 0 4px 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: #94a3b8;
    text-align: center;
}

.agenda-sc-hero-title {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.agenda-sc-hero-title--single {
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 800;
    color: #0f172a;
}

.agenda-sc-hero-sub {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.4;
}

.agenda-sc-page .proximos-ev-sc__top .proximos-ev-sc__icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
}

.agenda-ev-desc {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.45;
    word-break: break-word;
}

.agenda-ev-slots {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agenda-ev-slot {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(241, 245, 249, 0.75);
    border: 1px solid #e2e8f0;
}

.proximos-ev-sc__item--hoy .agenda-ev-slot {
    background: rgba(255, 255, 255, 0.92);
    border-color: #bfdbfe;
}

.agenda-ev-slot__fecha {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.agenda-ev-slot__hora {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.agenda-ev-slot__lug {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    line-height: 1.35;
}

.agenda-ev-slot__lug i {
    font-size: 12px;
}

.agenda-ev-slot__det {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    line-height: 1.4;
}

.agenda-ev-meta-general {
    margin-top: 12px;
}

.agenda-ev-past-label {
    margin: 14px 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.agenda-ev-past-label span {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.agenda-ev-slots--pasados {
    margin-top: 0;
}

.agenda-ev-slot.agenda-ev-slot--past {
    background: rgba(248, 250, 252, 0.92);
    border-color: #e2e8f0;
    opacity: 0.92;
}

.proximos-ev-sc__item--hoy .agenda-ev-slot.agenda-ev-slot--past {
    background: rgba(241, 245, 249, 0.98);
    border-color: #cbd5e1;
}

.agenda-ev-slot__badge-realizado {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 2px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
    background: #e2e8f0;
}

.agenda-ev-slot--past .agenda-ev-slot__hora,
.agenda-ev-slot--past .agenda-ev-slot__fecha {
    color: #64748b;
}

.agenda-ev-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
}

.agenda-ev-btn-online {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid #bfdbfe;
    pointer-events: auto;
}

.agenda-ev-btn-online:active {
    opacity: 0.9;
}

/* WhatsApp: barra alargada y baja (icono + texto invitando a compartir) */
.agenda-ev-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    pointer-events: auto;
    font-family: inherit;
}

.agenda-ev-wa--bar {
    width: 100%;
    min-height: 38px;
    padding: 8px 14px;
    box-sizing: border-box;
    border-radius: 999px;
    background: linear-gradient(180deg, #25d366 0%, #1fa855 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06) inset, 0 3px 10px rgba(34, 197, 94, 0.28);
    gap: 10px;
    justify-content: flex-start;
}

.agenda-ev-wa--bar i {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}

.agenda-ev-wa__txt {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
    letter-spacing: 0.01em;
}

.agenda-ev-wa--bar:active {
    transform: scale(0.99);
    opacity: 0.95;
}

.agenda-sc-share {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px dashed rgba(59, 130, 246, 0.45);
    text-align: center;
}

.agenda-sc-share__label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.agenda-sc-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #22c55e;
    color: #fff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 13px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
}

.agenda-sc-share__btn--bar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    padding: 10px 16px;
    min-height: 40px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.25;
    background: linear-gradient(180deg, #25d366 0%, #1fa855 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.agenda-sc-share__btn--bar i {
    font-size: 18px;
    flex-shrink: 0;
}

.agenda-sc-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    max-width: 280px;
    margin: 16px auto 0;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    color: #475569;
    font-weight: 800;
    font-size: 13px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.agenda-sc-back i {
    font-size: 20px;
    margin-left: -4px;
}

.agenda-sc-back:active {
    background: #f8fafc;
    color: #334155;
}

/* Tarjeta vacía (misma familia visual) */
.agenda-sc-empty-card {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 38%, #eff6ff 100%);
    border-radius: 22px;
    border: 1px dashed #bfdbfe;
    box-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.07);
}

.agenda-sc-empty-card i {
    font-size: 42px;
    color: #3b82f6;
    opacity: 0.45;
}

.agenda-sc-empty-card h2 {
    margin: 16px 0 6px;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.agenda-sc-empty-card p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    line-height: 1.5;
}
