/* --- RESET NECESARIO PARA QUE TODO OCUPE 100% --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* PREVENIR LIMITES DE ANCHO DE BOOTSTRAP */
#main-wrapper {
    width: 100vw;
    min-height: 100%;
    overflow-x: hidden;
}

.logo-container {
    padding: 0.5rem;
    width: fit-content;
    position: absolute;
}

.logo-container img {
    height: 50px;
    border-radius: 50%;
}

/* --- BANNER A PANTALLA COMPLETA REAL --- */
.banner {
    /*height: 100dvh; /* altura dinámica real en mobile */
    width: 100vw;
    display: flex;
    flex-direction: column;
    background-image:
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        url('../imgs/iglesia_ldr_edit.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #000;
}

.social-icons-container {
    width: 33% !important;
    background-color: #00000082 !important;
    padding: 0.4rem;
    display: flex;
    justify-content: end;
    gap: 1rem;
    border-radius: 0 10px 0 0;
}

.social-icons-container a {
    color: rgb(100, 100, 96) !important;
}

.social-icons-container a:hover {
    color: beige !important;
    transition: all 0.3s ease;
}

.social-media {
    width: 100%;
    margin: auto;
    padding: 1rem;
    background-color: #00000082;
}

.social-media:hover {
    background-color: #000000c4;
    transition: background-color 0.3s ease;
}

.social-media:hover .bi-youtube {
    color: #ff0000 !important; /* Color rojo YouTube */
    transition: all 0.6s ease;
}

.social-media a {
    color: beige !important;
}

.bi-youtube{
    color: white !important
}

.place-span{
    color: #add8e6;
}

.nav-menu{
    position: fixed;
    z-index: 1000;
}

/* --- NAVBAR --- */
.nav-menu ul {
    margin: 0;
    padding: 1rem 0;
}

.nav-li{
    padding: 12px;
}

.nav-menu ul li a {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.nav-menu ul li a:hover {
    border-bottom: 2px solid #CDEDF6;
}

.title-float {
    float: left;
    font-size: 2rem;
    font-weight: 900;
    color: #F5F7F6;
    margin-right: 10px;
    margin-bottom: 5px;
}

/* --- SECCIONES DE ABAJO (PUEDES CAMBIAR EL HEIGHT) --- */
.section {
    min-height: 60vh;
}
.section-1 {
    background-color: #F5F7F6;
}

.title-section {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    margin: 1rem 0;
    text-align: left;
}

#banner-in {
    text-align: center;
    height: 100vh !important;
    /*border-bottom: 1px solid lightblue;*/
}

.inner-banner {
    max-width: 600px; /* para que el texto no quede demasiado ancho */
    padding: 1.5rem;
}

.title-banner-in {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: #F5F7F6;
    margin: 1rem 0;
}

.texto-banner {
    color: #F5F7F6;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.versiculo {
  border-radius: 8px;
  padding: 10px;
  background-color: #00000060;
}

.text-align-center {
    text-align: center;
}

.nav-menu {
    position: fixed;
    background: linear-gradient(lightblue, transparent);

}

.scrolled {
    background: lightblue;
}

#services-container table{
    font-size: 0.7rem;
}

.border-bottom-wheat{
    border-bottom: 3px solid wheat;
}

/*#services-container table > tbody {
    border-top: 3px solid wheat;
}*/
#services-container table > tbody > tr > td {
    text-align: center;
}
.border-right-table {
    border-right: 3px solid lightblue;
}

.square-map {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Proporción cuadrada */
    min-height: 300px;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

 .floating-image {
    float: left;
    margin: 0 2rem 1rem 0;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
        
.text-content {
    text-align: justify;
    line-height: 1.6;
}
        
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

p, ol {
    font-size: 0.8rem;
}

/* === ESTILOS PARA PETICIONES DE ORACIÓN === */
.prayer-section {
    background: linear-gradient(
    83deg, #3d3e3e 0%, #add8e6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
}

.prayer-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.prayer-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.prayer-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.prayer-info-card:hover {
    transform: translateY(-5px);
}

.prayer-icon-container {
    text-align: center;
    margin-bottom: 2rem;
}

.prayer-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.prayer-svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.prayer-content-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.prayer-verse {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    text-align: center;
    opacity: 0.9;
}

.prayer-reference {
    display: block;
    text-align: center;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.prayer-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.feature-item i {
    font-size: 1.2rem;
}

/* Formulario */
.prayer-form-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.form-header h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.prayer-form .form-floating label {
    color: #6c757d;
}

.prayer-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.prayer-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.1);
}

.btn-prayer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-prayer:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-prayer:active {
    transform: translateY(0);
}

.form-footer {
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Animaciones de carga */
.btn-prayer.loading .btn-text {
    display: none;
}

.btn-prayer.loading .btn-loading {
    display: inline-block !important;
}

/* === ESTILOS PARA SERVICIOS MEJORADOS === */
.services-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.events-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.services-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.past-events-wrapper {
    position: relative;
    width: 100%;
}

.viewport {
    width: 100%;
    overflow: hidden; /* Ventana que muestra solo 4 */
}

#past-events-container {
    display: flex;
    transform: translateX(0);
    transition: transform 0.4s ease;
}

.card-past-events {
    /* CALCULAR 25% MENOS LOS MÁRGENES */
    flex: 0 0 calc(25% - 10px);
    max-width: calc(25% - 10px);
    margin: 0 5px;
    max-height: 450px;
    height: 450px;
}

.event-footer > button {
    cursor: default;
}

.card-events-img {
    height: 50%;
    aspect-ratio: 1/1;
    object-fit: contain;
}

/* Estilo común de flechas */
.past-events-wrapper i {
  position: absolute;
  top: 50%;
  z-index: 10;
  transform: translateY(-50%);
  font-size: 2rem;
  cursor: pointer;
}

/* Izquierda y derecha */
.arrow-left {
  left: 0.5rem;
}

.arrow-right {
  right: 0.5rem;
}

.title-section{
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.services-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #667eea, #764ba2);
    margin: 0 auto;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.loaded {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--bs-primary), var(--bs-secondary));
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.service-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.service-time .day {
    font-weight: 600;
    color: #495057;
}

.service-time .time {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.service-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.service-action {
    text-align: center;
}

/* === MAPA MEJORADO === */
.map-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.map-card:hover {
    transform: translateY(-5px);
}

.map-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.map-header h4 {
    margin: 0;
    font-weight: 600;
}

.interactive-map {
    width: 100%;
    height: 300px;
    border: none;
}

.map-footer {
    padding: 1.5rem;
    background: #f8f9fa;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.contact-item i {
    color: #667eea;
}

/* === CTA SECTION === */
.cta-section {
    margin-top: 3rem;
}

.cta-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #667eea, #764ba2);
}

.cta-card h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-card p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Para navegadores que no soportan aspect-ratio */
@supports not (aspect-ratio: 1) {
    .square-map {
        height: 400px;
    }
}

@media screen and (max-width: 576px) {

    .inner-banner {
        padding: 8rem 1rem 1rem 1rem !important;
    }
    .texto-banner {
        width:80% !important;
        font-size: 0.8rem !important;
    }

    .versiculo{
      font-size: 0.5rem !important;
    }

    .banner-subtitle {
        font-size: 1rem !important;
    }
    #services-container {
        flex-direction: column;
        align-items: center;
    }

    .hide-sm {
        display: none;
    }

    .column-sm {
        flex-direction: column;
    }

    .prayer-section {
        padding: 2rem 0;
    }
            
    .prayer-title, .services-title, .events-title {
        font-size: 1.8rem !important;
    }
    .prayer-subtitle, .services-subtitle, .events-subtitle {
        font-size: 0.7rem !important;
    }

    .card-past-events {
    margin: 0 !important;
    flex: 0 0 100%;    /* 4 visibles */
    max-width: 100%;
    height: auto;
}


}
@media screen and (min-width: 577px) and (max-width:  768px) {

    .card-past-events {
    margin: 0 !important;
    flex: 0 0 50%;    /* 4 visibles */
    max-width: 50% !important;
    height: auto;
    }


    .title-banner-in {
        font-size: 1.8rem;
    }

    .texto-banner {
        font-size: 0.9rem;
    }
    #banner-in{
        padding-top: 80px;
    }

    .section-content {
        flex-direction: column !important;
    }

    .section-content .w-50 {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid lightblue !important;
    }

    .services-title {
        font-size: 2.2rem;
    }

    .title-section {
        font-size: 2.2rem;
    }
            
        .services-grid {
            grid-template-columns: 1fr;
        }
            
        .interactive-map {
            height: 250px;
        }
            
        .cta-buttons {
            flex-direction: column;
            width: 100%;
        }
            
        .cta-buttons .btn {
            width: 100%;
        }

        .prayer-title {
            font-size: 2.2rem;
        }
            
        .prayer-info-card,
        .prayer-form-card {
            padding: 1.5rem;
        }
            
        .prayer-features {
            grid-template-columns: 1fr;
        }
    }

/* === ESTILOS PARA EVENTOS === */
.events-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 60vh;
}

.events-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.events-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #e9ecef;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.event-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
}

.event-date {
    text-align: left;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.event-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.event-time i {
    font-size: 1rem;
}

.event-body {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: wheat;
    margin-bottom: 1rem;
}

.event-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.event-footer {
    padding: 0.6rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.event-footer .btn {
    border-radius: 12px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
}

/* Responsive para eventos */
@media (max-width: 768px) {
    .banner {
        background-size: auto 60%;
    }
    
    #banner-in {
        height: 100vh !important;
    }
    
    .social-icons-container {
        border: 1px solid white;
        border-left: none !important;
    }
    .events-title {
        font-size: 2.5rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .date-day {
        font-size: 1.2rem;
    }
    
    .event-date {
        text-align: center;
    }
}

