/* CONTENEDOR GENERAL */
.church-events {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 60px auto;
    padding: 0 20px;
}

/* TARJETA EVENTO */
.church-event {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}

.church-event-desc {
    padding: 0 15px;
    margin-bottom: 15px;
}

.church-event-footer {
    margin-top: auto; /* 👈 ESTO ES LA MAGIA */
}


.church-event:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

/* IMAGEN */
.church-event img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* CONTENIDO */
.church-event h3 {
    font-size: 20px;
    margin: 18px 20px 8px;
    color: #1f2933;
}

.church-event p {
    margin: 6px 20px;
    font-size: 14px;
    color: #555;
}

/* DESCRIPCIÓN */
.church-event-desc {
    margin: 12px 20px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

/* BOTÓN */
.church-asistir { 
    background: #DCA54A;
    border: none;
    width: calc(100% - 30px);
    margin: 15px;
    padding: 12px;
    border-radius: 10px;
    color: #ffffff !important;
    cursor: pointer;
    font-weight: 600;
    transition: all .25s ease;
}



.church-asistir.active {
    animation: pulse .25s ease;
    background: #2e7d32; /* verde */
    color: #ffffff !important;     /* TEXTO BLANCO */
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}


.church-asistir:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #da901b,);
    color: white;
}


.short-etiquetas{
    margin: 0; /* Elimina todos los márgenes (arriba, abajo, izquierda, derecha) */
    line-height: 1.2; /* Ajusta la altura de línea si necesitas pegarlos un poco */
}



.church-asistir-disabled {
    width: calc(100% - 30px);
    margin: 15px;
    padding: 12px;
    border-radius: 10px;
    
    opacity: 0.6;
    background-color: #ccc !important;
    color: #555 !important;
    border: none;
}

.login-message{
    background: #e6ffe6;
    padding: 12px 15px;
    border-left: 4px solid #044eee;
    border-radius: 6px;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 600px;
    font-weight: 600;
    color: #044eee;
}

.church-asistir.loading {
    opacity: .6;
    pointer-events: none;
}

.church-events-filter {
    margin-bottom: 20px;
    text-align: right;
}

#church-filter-tipo {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.church-events-container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}

.church-events-filter {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.church-events-filter select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-weight: 600;
}

.event-past {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}



.event-past-button{
    width: calc(100% - 30px);
    margin: 15px;
    padding: 12px;
    border-radius: 10px;
    
    opacity: 0.6;
    background-color: #ccc !important;
    color: #555 !important;
    border: none;
    cursor: not-allowed;
}

.church-asistir-remove {
    border: none;
    width: calc(100% - 30px);
    margin: 15px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all .25s ease;
    animation: pulse .25s ease;
    background: #2e7d32; /* verde */
    color: #ffffff !important;     /* TEXTO BLANCO */
}

.church-asistir-remove:hover{
    background: #2e7d32; /* verde */
}



