/* =========================================================
   MODULO PREDICAS
   VIDA ABUNDANTE COLOMBIA
========================================================= */


/* =========================================================
   PANEL GENERAL DE FILTROS
   AMARILLO SOLIDO - SIN DEGRADADO
========================================================= */

.predicas-filter-panel {
    position: relative;

    padding: 1.5rem;

    border: 1px solid #facc15;
    border-radius: 26px;

    /*
    |--------------------------------------------------------------------------
    | UN SOLO TONO AMARILLO
    |--------------------------------------------------------------------------
    */

    background: #facc15;

    box-shadow:
        0 20px 55px rgba(15, 55, 85, .14);

    overflow: visible;
}


/* =========================================================
   ETIQUETAS DE LOS FILTROS
========================================================= */

.filter-label {
    display: block;

    margin-bottom: .55rem;

    color: #0c4375;

    font-size: .76rem;
    line-height: 1;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .08em;
}


/* =========================================================
   INPUTS
========================================================= */

.filter-input-wrap {
    height: 52px;

    display: flex;
    align-items: center;

    gap: .7rem;

    padding: 0 1rem;

    border: 1px solid rgba(12, 67, 117, .18);
    border-radius: 15px;

    background: #ffffff;

    color: #195fa8;

    box-shadow:
        0 5px 16px rgba(84, 74, 14, .06);

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.filter-input-wrap:hover {
    border-color: rgba(12, 67, 117, .35);
}


.filter-input-wrap:focus-within {
    transform: translateY(-1px);

    background: #ffffff;

    border-color: rgba(12, 67, 117, .60);

    box-shadow:
        0 0 0 4px rgba(12, 67, 117, .09),
        0 8px 20px rgba(84, 74, 14, .08);
}


.filter-input {
    width: 100%;
    height: 100%;

    border: 0;
    outline: none;

    background: transparent;

    color: #153c5f;

    font-size: .94rem;
}


.filter-input::placeholder {
    color: #91a4b6;
}


/* =========================================================
   BOTON DE FECHA
========================================================= */

.filter-date-button {
    position: relative;

    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 1rem;

    border: 1px solid rgba(12, 67, 117, .18);
    border-radius: 15px;

    background: #ffffff;

    color: #195fa8;

    font-size: .94rem;
    font-weight: 700;

    box-shadow:
        0 5px 16px rgba(84, 74, 14, .06);

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.filter-date-button:hover {
    transform: translateY(-1px);

    background: #ffffff;

    border-color: rgba(12, 67, 117, .40);

    box-shadow:
        0 9px 24px rgba(84, 74, 14, .10);
}


/* =========================================================
   CALENDARIO GLASS
   CONSERVA SU DISEÑO INDEPENDIENTE
========================================================= */

.calendar-glass {
    position: absolute;

    z-index: 80;

    width: min(355px, calc(100vw - 2rem));

    margin-top: .7rem;

    padding: 1.1rem;

    border: 1px solid rgba(255, 255, 255, .70);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(247, 252, 255, .94),
            rgba(221, 241, 255, .88)
        );

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    box-shadow:
        0 30px 70px rgba(4, 44, 80, .22);
}


.calendar-header {
    display: grid;

    grid-template-columns: 42px 1fr 42px;

    align-items: center;

    gap: .5rem;

    margin-bottom: 1rem;
}


.calendar-title {
    text-align: center;

    color: #0c4f85;

    text-transform: capitalize;
}


.calendar-nav {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(25, 95, 168, .12);
    border-radius: 12px;

    background: rgba(255, 255, 255, .65);

    color: #195fa8;

    transition:
        transform .2s ease,
        background .2s ease;
}


.calendar-nav:hover {
    transform: translateY(-2px);

    background: #ffffff;
}


.calendar-weekdays,
.calendar-days {
    display: grid;

    grid-template-columns: repeat(7, 1fr);

    gap: .25rem;
}


.calendar-weekdays {
    margin-bottom: .4rem;
}


.calendar-weekdays span {
    text-align: center;

    color: #195fa8;

    font-size: .72rem;
    font-weight: 800;
}


.calendar-day {
    aspect-ratio: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: #155482;

    font-size: .82rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .15s ease,
        background .15s ease,
        color .15s ease;
}


.calendar-day:hover {
    transform: scale(1.07);

    background: rgba(250, 204, 21, .28);
}


.calendar-day.is-other-month {
    opacity: .25;

    pointer-events: none;
}


.calendar-day.is-selected {
    background: #facc15;

    color: #123752;

    box-shadow:
        0 8px 18px rgba(250, 204, 21, .32);
}


.calendar-day.is-range {
    background: rgba(250, 204, 21, .18);

    border-radius: 8px;
}


.calendar-day.is-today {
    border: 1px solid rgba(25, 95, 168, .45);
}


.calendar-footer {
    margin-top: 1rem;
    padding-top: .9rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    border-top: 1px solid rgba(25, 95, 168, .10);
}


.calendar-clear {
    color: #195fa8;

    font-size: .8rem;
    font-weight: 800;
}


.calendar-help {
    color: #68879e;

    font-size: .72rem;
}


/* =========================================================
   BOTON LIMPIAR
   AZUL PARA CONTRASTE CON EL AMARILLO
========================================================= */

.btn-clear-filters {
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: .6rem;

    padding: 0 1.15rem;

    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 15px;

    background: #0c4375;

    color: #ffffff;

    font-size: .9rem;
    font-weight: 800;

    box-shadow:
        0 10px 24px rgba(12, 67, 117, .20);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.btn-clear-filters:hover {
    transform: translateY(-2px);

    background: #09385f;

    box-shadow:
        0 14px 32px rgba(12, 67, 117, .28);
}


/* =========================================================
   TARJETAS DE PREDICAS
========================================================= */

.predica-card {
    overflow: hidden;

    border: 1px solid #e4edf4;
    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 10px 30px rgba(15, 55, 85, .055);

    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}


.predica-card:hover {
    transform: translateY(-7px);

    border-color: #cfe1ee;

    box-shadow:
        0 24px 55px rgba(15, 55, 85, .13);
}


.predica-image {
    position: relative;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #082f51;

    cursor: pointer;
}


.predica-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .45s ease;
}


.predica-card:hover .predica-image img {
    transform: scale(1.055);
}


.predica-image-overlay {
    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            to top,
            rgba(5, 34, 56, .38),
            rgba(5, 34, 56, .02)
        );
}


.predica-play {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding-left: 4px;

    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;

    background: rgba(255, 255, 255, .18);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: #ffffff;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .17);

    transition:
        transform .25s ease,
        background .25s ease,
        color .25s ease;
}


.predica-card:hover .predica-play {
    transform: scale(1.1);

    background: #facc15;

    color: #0b3d67;
}


.predica-card-body {
    padding: 1.35rem;
}


.predica-meta {
    display: flex;
    flex-wrap: wrap;

    gap: .4rem .7rem;

    color: #71869a;

    font-size: .76rem;
}


.predica-title {
    margin-top: .65rem;

    color: #102f49;

    font-size: 1.1rem;
    line-height: 1.35;

    font-weight: 800;
}


.predica-pastor {
    margin-top: .65rem;

    color: #195fa8;

    font-size: .86rem;
    font-weight: 700;
}


.predica-versiculo {
    margin-top: .9rem;

    display: inline-flex;

    padding: .4rem .7rem;

    border-radius: 999px;

    background: #fff7c9;

    color: #735d00;

    font-size: .75rem;
    font-weight: 700;
}


/* =========================================================
   LOADER
========================================================= */

.predicas-loader {
    width: 44px;
    height: 44px;

    border: 4px solid #d9eaf5;
    border-top-color: #195fa8;

    border-radius: 50%;

    animation:
        predicasSpin .7s linear infinite;
}


@keyframes predicasSpin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   SIN RESULTADOS
========================================================= */

.empty-predicas {
    padding: 4rem 2rem;

    border: 1px dashed #cadbe7;
    border-radius: 26px;

    text-align: center;

    background: rgba(255, 255, 255, .65);
}


.empty-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 1rem;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background: #eaf5fc;

    color: #195fa8;
}


.empty-predicas h3 {
    color: #153c5f;

    font-size: 1.25rem;
    font-weight: 800;
}


.empty-predicas p {
    margin-top: .4rem;

    color: #758b9d;
}


/* =========================================================
   PAGINACION
========================================================= */

.pagination-button {
    padding: .7rem 1rem;

    border: 1px solid #d7e6f0;
    border-radius: 999px;

    background: #ffffff;

    color: #195fa8;

    font-size: .82rem;
    font-weight: 800;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease;
}


.pagination-button:hover:not(:disabled) {
    transform: translateY(-2px);

    background: #195fa8;

    color: #ffffff;
}


.pagination-button:disabled {
    opacity: .35;

    cursor: not-allowed;
}


.pagination-info {
    color: #668297;

    font-size: .8rem;
    font-weight: 700;
}


/* =========================================================
   MODAL DE VIDEO
========================================================= */

.predica-modal {
    position: fixed;

    inset: 0;

    z-index: 200;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 1rem;
}


.predica-modal.hidden {
    display: none;
}


.predica-modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(4, 25, 43, .72);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.predica-modal-dialog {
    position: relative;

    z-index: 1;

    width: min(100%, 1050px);

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 28px;

    background: rgba(7, 47, 84, .96);

    box-shadow:
        0 40px 110px rgba(0, 0, 0, .42);

    animation:
        predicaModalIn .28s ease;
}


@keyframes predicaModalIn {

    from {
        opacity: 0;

        transform:
            translateY(20px)
            scale(.975);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}


.predica-modal-top,
.predica-modal-bottom {
    padding: 1rem 1.25rem;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;
}


.modal-close {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;

    background: rgba(255, 255, 255, .08);

    color: #ffffff;

    transition:
        transform .2s ease,
        background .2s ease;
}


.modal-close:hover {
    transform:
        rotate(6deg)
        scale(1.04);

    background: rgba(255, 255, 255, .15);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767px) {

    .predicas-filter-panel {
        padding: 1rem;

        border-radius: 20px;

        /*
        |--------------------------------------------------------------------------
        | MISMO AMARILLO SOLIDO EN CELULAR
        |--------------------------------------------------------------------------
        */

        background: #facc15;
    }


    .calendar-glass {
        position: fixed;

        left: 1rem;
        right: 1rem;
        bottom: 1rem;

        width: auto;

        margin: 0;
    }


    .btn-clear-filters {
        width: 100%;
    }


    .predica-modal {
        padding: .6rem;
    }


    .predica-modal-dialog {
        border-radius: 22px;
    }


    .predica-modal-bottom {
        align-items: flex-start;

        flex-direction: column;
    }

}