.contenedor_principal {
    padding-inline: 10%;
    padding-top: 65px;
    padding-bottom: 65px;
}

/*  ========= Estilos para el banner ========= */
.c-banner {
    width: 100%;
    position: relative;
    padding-inline: 10%;
}

.c-banner .banner_capillas {
    width: 100%;
    display: block;
}

.banner_texto {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%); */
    padding: 40px 20px 20px;
    color: white;
    text-align: center;
}

.banner_titulo {
    font-size: var(--size-h1);
    font-family: var(--font-tertiary);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner_descripcion {
    font-size: var(--size-text-sm);
    font-family: var(--font-tertiary);
    line-height: 1.6;
    margin-bottom: 15px;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}



/* ====== Estilos para el buscador ======= */
.buscador-container {
    margin: 30px auto;
    width: 100%;
    position: relative;
}

/* Estilo del input con icono */
.buscador-input {
    position: relative;
    width: 100%;
    transition: transform 0.3s ease;
}

.buscador-input:hover {
    transform: translateY(-2px);
}

.buscador-input i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
    transition: color 0.3s ease;
}

.buscador-input input {
    width: 100%;
    padding: 15px 25px 10px 55px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: white;
    position: relative;
    z-index: 1;
}

.buscador-input input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px #d8876444;
    padding-left: 60px;
}

/* Efecto de búsqueda activa */
.buscador-input.searching input {
    padding-right: 50px;
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Contador de resultados */
.resultados-contador {
    position: absolute;
    top: -30px;
    right: 20px;
    background: var(--color-secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.resultados-contador.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mensaje de no resultados */
.no-resultados {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: var(--color-linea-titulo);
    grid-column: 1 / -1;
    animation: fadeIn 0.5s ease;
}

/* Efecto para las tarjetas al buscar */
.prueba_tarjeta {
    transition: all 0.5s ease;
    animation: fadeIn 0.5s ease;
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 500px;
    overflow: hidden;
}

.prueba_tarjeta.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: none;
    transition: all 0.5s ease, max-height 0.5s ease, padding 0.5s ease, margin 0.5s ease;
    z-index: -10000;
    position: absolute;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efecto de enfoque en resultados */
.prueba_tarjeta:not(.hidden) {
    animation: highlight 0.8s ease;

}

@keyframes highlight {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    100% {
        transform: scale(1);
    }
}

.prueba_contenedor {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    transition: all 0.3s ease;

}



/* tarjeta */
.prueba_contenedor {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.prueba_tarjeta {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prueba_imagen {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.prueba_contenido {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
}

.prueba_titulo {
    font-size: var(--size-text);
    font-family: var(--font-primary);
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 400;
}

.prueba_texto {
    font-size: var(--size-text-sm);
    color: var(--color-linea-titulo);
    margin-bottom: 15px;
    font-family: var(--font-tertiary);
    font-weight: 300;
}

.prueba_botones {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 0 15px;
}

.prueba_boton {
    padding: 8px 7px;
    border-radius: 8px;
    border: 2px solid var(--color-primary);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.prueba_boton--primario {
    background: var(--color-primary);
    color: #fff;
    font-size: var(--size-text-sm);

}

.prueba_boton--primario:hover {
    background: #fff;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.prueba_boton--secundario {
    background: #fff;
    color: var(--color-primary);
    font-size: var(--size-text-sm);
}

.prueba_boton--secundario:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#modal-mapa-direccion {
    font-size: var(--size-text-sm);
    font-family: var(--font-tertiary);
    color: var(--color-linea-titulo);
}

.modal.mostrar {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-contenido {
    background: white;
    border-radius: 12px;
    width: auto;
    height: auto;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.507);
    position: relative;
    transform: translateY(-30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
    max-width: 90%;
    max-height: 85vh;
    opacity: 0;
}

.modal-imagen,
.modal-info {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modal.mostrar .modal-contenido {
    transform: translateY(0) scale(1);
    opacity: 1;
    animation: modalContentIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    width: 40%;
}

.modal.cerrando .modal-contenido {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    animation: modalContentOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-cerrar {
    position: absolute;
    color: var(--color-tertiary);
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-cerrar:hover {
    color: var(--color-secondary);
    background-color: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg) scale(1.1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.modal-titulo {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 0;
    padding-right: 30px;
    text-transform: uppercase;
    font-family: var(--font-secondary);
    font-weight: 800;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-mapa {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    border: none;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.modal-mapa:hover {
    transform: translateY(-2px);
}

.modal-horarios {
    margin-top: 15px;
    text-align: left;
}

.modal-horarios-titulo {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.modal-icono {
    color: var(--color-tertiary);
    font-size: 15px;
    padding-right: 5px;
}

.modal-lista-horarios {
    list-style: none;
    padding: 0;
}

.modal-item-horario {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
    padding-left: 8px;
}

.modal-item-horario:hover {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding-left: 8px;
}

.modal-dia {
    font-weight: 600;
    min-width: 100px;
    color: var(--color-primary);
}

.info_horario {
    font-family: var(--font-tertiary);
    color: var(--color-linea-titulo);
}


@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalContentIn {
    0% {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }

    50% {
        transform: translateY(-10px) scale(0.98);
        opacity: 0.7;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes modalContentOut {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
}


@media (max-width: 768px) {
    .modal-contenido {
        max-width: 95%;
        max-height: 90vh;
        padding: 16px;
        margin: 20px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-titulo {
        font-size: 1.3rem;
        padding-right: 40px;
    }

    .modal-mapa {
        height: 200px;
    }

    .modal-cerrar {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

/* Efecto de overlay al hacer hover en el botón de cerrar */
.modal-cerrar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.modal-cerrar:hover::after {
    width: 100%;
    height: 100%;
}

.modal {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* modal horarios misa */
.compartir-enlaces {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.compartir-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    position: relative;
}

.compartir-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.copiar-link {
    position: relative;
}

.tooltip-text {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    white-space: nowrap;
}

.sacerdote-info {
    margin-top: 20px;
    align-items: center;
}

.sacerdote-icono {
    color: var(--color-secondary);
    margin-right: 5px;
    font-size: 15px;
}

.sacerdote-nombre {
    color: var(--color-secondary);
    font-weight: 500
}

/* Celular responsive */
@media (min-width: 360px) {
    .banner_titulo {
        font-size: var(--size-h1);
    }

    .banner_descripcion {
        font-size: var(--size-text-sm);
    }

    .banner_texto {
        padding: 20px 15px 10px;
    }

    .c-banner {
        width: 100%;
        position: relative;
        padding-inline: 5%;
        margin-top: 2rem;
    }

    .banner_capillas {
        object-fit: cover;
        height: 60vh;
    }

    .contenedor_principal {
        padding-inline: 5%;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    /* modal */
    .modal.mostrar .modal-contenido {
        width: 100%;
        height: 80vh;
    }

    .modal.mostrar .modal-contenido {
        transform: translateY(0) scale(1);
        opacity: 1;
        animation: modalContentIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        width: 95%;
    }

    .modal-body,
    .modal-header {
        padding: 10px;
    }

    .modal-mapa {
        height: 55vh;
    }

    .modal-imagen {
        width: 100%;
        height: 35vh;
        object-fit: cover;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .c-banner {
        width: 100%;
        position: relative;
        padding-inline: 5%;
        margin-top: 1rem;
    }

    .contenedor_principal {
        padding-inline: 5%;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .banner_capillas {
        height: 55vh;
    }

    .banner_titulo {
        font-size: var(--size-h1);
    }

    .banner_descripcion {
        font-size: var(--size-text-sm);
        margin-bottom: 10px;
    }

    .prueba_contenido {
        padding: 8px;
    }

    .banner_texto {
        padding: 20px 15px 15px;
    }

    /* modal */
    .modal.mostrar .modal-contenido {
        width: 80%;
        height: auto;
    }

    .modal-body,
    .modal-header {
        padding: 15px;
    }

    .modal-mapa {
        height: 30vh;
    }

    .modal-imagen {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

/* laptop */
@media (min-width: 1024px) {
    .c-banner {
        width: 100%;
        position: relative;
        padding-inline: 5%;
        margin-top: 1rem;
    }

    .contenedor_principal {
        padding-inline: 5%;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .banner_capillas {
        height: auto;
    }

    .banner_titulo {
        font-size: var(--size-h1);
    }

    .prueba_contenedor {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .banner_descripcion {
        font-size: var(--size-text-sm);
        margin-bottom: 10px;
    }

    .prueba_contenido {
        padding: 8px;
    }

    .prueba_boton {
        padding: 8px 5px;
    }

    .banner_texto {
        padding: 20px 15px 15px;
    }

    /* modal */
    .modal.mostrar .modal-contenido {
        width: 55%;
        height: auto;
    }

    .modal-body,
    .modal-header {
        padding: 15px;
    }

    .modal-mapa {
        height: 30vh;
    }

    .modal-imagen {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

/* laptop 1440px */
@media (min-width: 1440px) {
    .c-banner {
        width: 100%;
        position: relative;
        padding-inline: 10%;
        margin-top: 0rem;
    }

    .contenedor_principal {
        padding-inline: 10%;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .banner_capillas {
        height: auto;
    }

    .banner_titulo {
        font-size: var(--size-h1);
    }

    .banner_descripcion {
        font-size: var(--size-text-sm);
        margin-bottom: 10px;
    }

    .prueba_contenido {
        padding: 8px;
    }

    .prueba_boton {
        padding: 8px 5px;
    }

    .banner_texto {
        padding: 20px 15px 15px;
    }

    .prueba_contenedor {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    /* modal */
    .modal.mostrar .modal-contenido {
        width: 40%;
        height: auto;
    }
}

/* laptop 1440px */
@media (min-width: 1600px) {
    .c-banner {
        width: 100%;
        position: relative;
        padding-inline: 10%;
        margin-top: 1rem;
    }

    .contenedor_principal {
        padding-inline: 10%;
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .banner_capillas {
        height: auto;
    }

    .banner_titulo {
        font-size: var(--size-h1);
    }

    .banner_descripcion {
        font-size: var(--size-text-sm);
        margin-bottom: 10px;
    }

    .prueba_contenido {
        padding: 8px;
    }

    .prueba_boton {
        padding: 8px 7px;
    }

    .banner_texto {
        padding: 20px 15px 15px;
    }

    .prueba_contenedor {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .modal.mostrar .modal-contenido {
        width: 45%;
        height: auto;
    }

}