#a3p-agenda  table{margin-bottom:0!important;}
#a3p-agenda  th{background:#fafafa;}
#a3p-agenda  td.fc-day{background:#fcfcfc;}
#a3p-agenda  td .fc-time{display:none}
#a3p-agenda  td .fc-title{color:#fff;}
#a3p-agenda  .fc-list-item-time{display:none;}
#a3p-agenda  .fc-event {border-radius:0!important;padding:2px 4px;text-decoration:none!important;}
#a3p-agenda  .fc-event:hover {text-decoration:none!important;}
#a3p-agenda  .fc-button{color:#333;padding:0 10px;margin:10px 3px;
    border-radius:0!important;
    text-shadow:none!important;
    box-shadow:none!important;
    background:#fff;
    border-color:#999;
}
#a3p-agenda  .fc-button.fc-state-active{
    background-color:#59CBE8;
    border-color:#59CBE8;
    color:#fff;
}


#a3p-agenda  .fc-button:hover{
    border-color:#E5554F;
    background:#E5554F;
    color:#fff;
}

/* ── Ficha de evento ──────────────────────────────────────────────────── */
.agenda-ficha {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    margin-bottom: 32px;
    overflow: hidden;
    font-size: 0.95em;
}

/* Columna izquierda: bloque de fecha */
.agenda-ficha__col-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a73b8;
    color: #fff;
    padding: 16px 8px;
    text-align: center;
    min-width: 90px;
}
.agenda-ficha__dia {
    font-size: 2.4em;
    font-weight: 700;
    line-height: 1;
}
.agenda-ficha__mes {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 2px;
}
.agenda-ficha__anyo {
    font-size: 0.85em;
    opacity: 0.8;
    margin-top: 2px;
}

/* Columna derecha: meta + media */
.agenda-ficha__col-body {
    padding: 16px 20px;
    display: flex;
    gap: 16px;
    overflow: hidden;
}
.agenda-ficha__col-meta {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.agenda-ficha__col-media {
    flex: 0 0 440px;
    max-width: 440px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 0 3px 3px 0;
    margin: -16px -20px -16px 0;
}
.agenda-ficha__col-media iframe,
.agenda-ficha__col-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    border: 0;
}
.agenda-ficha__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.9em;
    color: #333;
}
.agenda-ficha__label {
    font-weight: 600;
    color: #555;
    width: 130px;
    flex-shrink: 0;
}

/* Badge de estado de inscripción */
.agenda-ficha__estado {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #fff;
}
.agenda-ficha__estado--inactive { background: #1a73b8; }
.agenda-ficha__estado--open     { background: #D73333; }
.agenda-ficha__estado--closed   { background: #9e9e9e; }

/* Botones de calendario en línea */
.agenda-ficha__cal-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Bloque "Agregar al calendario" de ical.php */
.a3p-add-to-calendar a {
    text-decoration: none !important;
}
.a3p-add-to-calendar a:hover {
    text-decoration: underline !important;
}

/* Botones */
.agenda-ficha__btn {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid #1a73b8;
    border-radius: 3px;
    color: #1a73b8;
    background: #fff;
    font-size: 0.85em;
    text-decoration: none !important;
    line-height: 1.4;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.agenda-ficha__btn:hover {
    background: #1a73b8;
    color: #fff;
    text-decoration: none !important;
}
.agenda-ficha__btn--primary {
    background: #1a73b8;
    color: #fff;
}
.agenda-ficha__btn--primary:hover {
    background: #155d99;
    border-color: #155d99;
    color: #fff;
}
.agenda-ficha__btn--cta {
    background: #D73333;
    border-color: #D73333;
    color: #fff;
    font-size: 1.05em;
    padding: 10px 36px;
    font-weight: 600;
    cursor: pointer;
}
.agenda-ficha__btn--cta:hover {
    background: #b82a2a;
    border-color: #b82a2a;
    color: #fff;
    text-decoration: none !important;
}
.a3p-reg-cta-wrap {
    text-align: center;
    margin: 32px 0 16px;
}

/* ── Popup de registro ───────────────────────────────────────────────── */
.a3p-reg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.a3p-reg-overlay[hidden] { display: none; }

.a3p-reg-modal {
    background: #fff;
    border-radius: 6px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
}

.a3p-reg-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6em;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 4px 8px;
}
.a3p-reg-close:hover { color: #333; }

.a3p-reg-titulo {
    margin: 0 0 20px;
    font-size: 1.2em;
    font-weight: 700;
    color: #222;
}

/* Campos */
.a3p-reg-field {
    margin-bottom: 14px;
}
.a3p-reg-field label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}
.a3p-reg-opcional {
    font-weight: 400;
    color: #888;
}
.a3p-reg-field input,
.a3p-reg-field textarea {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.95em;
    box-sizing: border-box;
    transition: border-color .15s;
}
.a3p-reg-field input:focus,
.a3p-reg-field textarea:focus {
    outline: none;
    border-color: #1a73b8;
}

/* Error */
.a3p-reg-error {
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f5c6c6;
    border-radius: 3px;
    padding: 8px 12px;
    font-size: 0.85em;
    margin-bottom: 12px;
}
.a3p-reg-error[hidden] { display: none; }

/* Texto legal */
.a3p-reg-legal {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 0.78em;
    color: #888;
    line-height: 1.5;
}
.a3p-reg-legal p { margin: 0 0 4px; }

/* Botón enviar */
.a3p-reg-submit {
    display: block;
    width: 100%;
    padding: 10px;
    background: #D73333;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background .15s;
}
.a3p-reg-submit:hover  { background: #b52a2a; }
.a3p-reg-submit:disabled { opacity: .6; cursor: default; }

/* Gracias */
.a3p-reg-thanks {
    display: block;
    text-align: center;
    padding: 20px 0 8px;
}
.a3p-reg-thanks[hidden] { display: none; }
.a3p-reg-thanks__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #27ae60;
    color: #fff;
    font-size: 2em;
    margin: 0 auto 16px;
}
.a3p-reg-thanks h3 { margin: 0 0 8px; font-size: 1.3em; }
.a3p-reg-thanks p  { color: #555; margin: 0 0 20px; }
.a3p-reg-accept {
    display: inline-block;
    margin-top: 0;
    padding: 9px 28px;
    background: #1a73b8;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 1em;
    cursor: pointer;
    transition: background .15s;
}
.a3p-reg-accept:hover { background: #155d99; }

/* Responsive */
@media (max-width: 640px) {
    .a3p-reg-modal { padding: 24px 18px; }
}

/* ── Responsive ficha ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .agenda-ficha {
        grid-template-columns: 1fr;
    }
    .agenda-ficha__col-date {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 12px 16px;
    }
    .agenda-ficha__dia {
        font-size: 1.8em;
    }
    .agenda-ficha__col-body {
        flex-direction: column;
        padding: 12px 16px;
    }
    .agenda-ficha__col-media {
        flex: none;
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        margin: 0 0 0 0;
        min-height: 200px;
    }
    .agenda-ficha__label {
        width: 100px;
    }
}

/* Mapa */
.agenda-map {
    margin-top: 30px;
    width: 100%;
}
.agenda-map iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* Resumen compacto en listados */
.agenda-box i {
    margin: 0 !important;
}
.agenda-btn {
    float: right;
    margin-top: -10px;
}
.agenda-box {
    padding-bottom: 30px;
    clear: both;
}

/* ── Shortcode a3p-agenda-mini ──────────────────────────────────────────── */

.a3p-mini { margin-bottom: 32px; }

/* Filtros */
.a3p-mini__filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}
.a3p-mini__filtro {
    padding: 5px 14px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 0.85em;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.a3p-mini__filtro:hover {
    border-color: #1a73b8;
    color: #1a73b8;
}
.a3p-mini__filtro.is-active {
    background: #1a73b8;
    border-color: #1a73b8;
    color: #fff;
}

/* Grid de tarjetas */
.a3p-mini__grid {
    display: grid;
    grid-template-columns: repeat(var(--a3p-cols, 3), 1fr);
    gap: 20px;
}
.a3p-mini[data-cols="1"] .a3p-mini__grid { grid-template-columns: 1fr; }
.a3p-mini[data-cols="2"] .a3p-mini__grid { grid-template-columns: repeat(2, 1fr); }
.a3p-mini[data-cols="3"] .a3p-mini__grid { grid-template-columns: repeat(3, 1fr); }

/* Tarjeta */
.a3p-mini__card {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: box-shadow .18s;
}
.a3p-mini__card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

/* Imagen */
.a3p-mini__img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f0f0f0;
    text-decoration: none !important;
}
.a3p-mini__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.a3p-mini__img--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 2px;
}
.a3p-mini__img--placeholder span:first-child {
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1;
}
.a3p-mini__img--placeholder span:last-child {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Badge de estado */
.a3p-mini__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
}
.a3p-mini__badge--inactive { background: #1a73b8; }
.a3p-mini__badge--open     { background: #D73333; }
.a3p-mini__badge--closed   { background: #9e9e9e; }

/* Cuerpo */
.a3p-mini__body {
    display: flex;
    flex: 1;
    gap: 0;
}
.a3p-mini__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    width: 52px;
    padding: 10px 6px;
    color: #fff;
    text-align: center;
    flex-shrink: 0;
}
.a3p-mini__day {
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1;
}
.a3p-mini__month {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 2px;
}
.a3p-mini__content {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.a3p-mini__title {
    font-size: 1em;
    font-weight: 600;
    color: #222;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.a3p-mini__title:hover { color: #1a73b8; }
.a3p-mini__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8em;
    color: #777;
}
.a3p-mini__btn {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #1a73b8;
    border-radius: 3px;
    font-size: 0.8em;
    color: #1a73b8;
    text-decoration: none !important;
    align-self: flex-start;
    transition: background .15s, color .15s;
}
.a3p-mini__btn:hover {
    background: #1a73b8;
    color: #fff;
}
.a3p-mini__btn--cta {
    background: #D73333;
    border-color: #D73333;
    color: #fff;
}
.a3p-mini__btn--cta:hover {
    background: #b82a2a;
    border-color: #b82a2a;
    color: #fff;
}
.a3p-mini__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    align-items: center;
}
.a3p-mini-empty { color: #888; font-style: italic; }

@media (max-width: 640px) {
    .a3p-mini[data-cols="2"] .a3p-mini__grid,
    .a3p-mini[data-cols="3"] .a3p-mini__grid {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 641px) and (max-width: 900px) {
    .a3p-mini[data-cols="3"] .a3p-mini__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}





