/* ===========================
   ESTILOS GENERALES
=========================== */
body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans', sans-serif;
    background-color: #f8f9fa;
    padding-top: 80px;
}

.carousel-inner {
    border-radius: 1rem;
    overflow: hidden;
}

/* ===========================
   SLIDER / CAROUSEL
=========================== */

.carousel-item {
    position: relative;
    height: 40vh; 
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

/* Efecto cuando no hay imagen */
.placeholder-img {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

/* Overlay del contenido */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* ===========================
   TEXTOS DEL SLIDE (MÓVILES)
=========================== */
.hero-slide h1 {
    font-size: 1.8rem;   /* IGUAL QUE EL SEGUNDO CÓDIGO */
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-slide p {
    font-size: 0.9rem;   /* IGUAL QUE EL SEGUNDO CÓDIGO */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ===========================
   RESPONSIVE
=========================== */

/* Tablets */
@media (min-width: 768px) {
    .carousel-item {
        height: 60vh;
    }
    .carousel-img {
        height: 60vh;
    }

    .hero-slide h1 {
        font-size: 2.5rem;  /* IGUAL QUE EL SEGUNDO CÓDIGO */
    }

    .hero-slide p {
        font-size: 1rem;    /* IGUAL QUE EL SEGUNDO CÓDIGO */
    }
}

/* Desktop */
@media (min-width: 992px) {
    .carousel-item {
        height: 80vh;
    }
    .carousel-img {
        height: 80vh;
    }

    .hero-slide h1 {
        font-size: 3.5rem;  /* IGUAL QUE EL SEGUNDO CÓDIGO */
    }
}

/* Ajustes extras para móviles */
@media (max-width: 576px) {
    .hero-slide {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .hero-slide h1 {
        font-size: 1.8rem;  /* TAMBIÉN SE MANTIENE */
    }
    .hero-slide p {
        font-size: 0.9rem;
    }

    .carousel-img {
        object-position: center top;
    }
}

/* ===========================
   INDICADORES DEL SLIDER
=========================== */
.carousel-indicators [data-bs-target] {
    background-color: #fff;
    width: 12px;
    height: 12px;
    border-radius: 100%;
    opacity: 0.5;
}

.carousel-indicators .active {
    opacity: 1;
}

/* ===========================
   BOTÓN PERSONALIZADO
=========================== */
.btn-custom {
    background-color: #b2d0e5;
    color: #101518;
    font-weight: bold;
    border: none;
}

.btn-custom:hover {
    background-color: #b2d0e5 !important;
    opacity: 0.9;
}

/* ===========================
   NAV / FOOTER
=========================== */
.nav-link {
    color: #101518;
    font-weight: 500;
    font-size: 0.875rem;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dropdown-item {
    font-size: 0.875rem;
}

.footer-link {
    color: #5c778a;
    min-width: 160px;
}

.social-icon {
    color: #5c778a;
    font-size: 1.5rem;
}

.header-divider {
    border-bottom: 1px solid #eaeef1;
}

.profile-pic {
    width: 40px;
    height: 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
}

.church-name {
    color: #101518;
    font-size: 1.125rem;
    font-weight: bold;
    text-decoration: none;
}

.church-name:hover {
    color: #101518;
}

/* ===========================
   TARJETAS DE VALORES
=========================== */
.value-card {
    border: 1px solid #d0dde7;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    height: 100%;
}




 .horizontal-timeline .items {
     border-top: 3px solid #e9ecef;
 }

 .horizontal-timeline .items .items-list {
     display: block;
     position: relative;
     text-align: center;
     padding-top: 70px;
     margin-right: 0;
 }

 .horizontal-timeline .items .items-list:before {
     content: "";
     position: absolute;
     height: 36px;
     border-right: 2px dashed #dee2e6;
     top: 0;
 }

 .horizontal-timeline .items .items-list .event-date {
     position: absolute;
     top: 36px;
     left: 0;
     right: 0;
     width: 75px;
     margin: 0 auto;
     font-size: 0.9rem;
     padding-top: 8px;
 }

 .nosotros-hero {
     background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
         url('/assets/img/nosotros.png');
     background-size: cover;
     background-position: center;
     height: 300px;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     color: white;
     border-radius: 16px;
     margin-bottom: 3rem;
 }

 .service-card {
     background-color: #f8f9fa;
     border-radius: 0.5rem;
     padding: 1rem;
     margin-bottom: 0.5rem;
 }

 .service-icon {
     background-color: #e7eef3;
     width: 48px;
     height: 48px;
     border-radius: 0.5rem;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
 }


 @media (min-width: 1140px) {
     .horizontal-timeline .items .items-list {
         display: inline-block;
         width: 24%;
         padding-top: 45px;
     }

     .horizontal-timeline .items .items-list .event-date {
         top: -40px;
     }
 }



 :root {
     --primary: #1990e5;
     --primary-light: #e6f2fb;
     --dark: #101518;
     --gray: #5c778a;
     --light-gray: #eaeef1;
     --white: #ffffff;
 }

 /* Devocionales */
 .devotional-card {
     background: white;
     border-radius: 16px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
     overflow: hidden;
     transition: all 0.3s ease;
     height: 100%;
     border: 1px solid rgba(0, 0, 0, 0.05);
 }

 .devotional-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
 }

 .devotional-img {
     width: 100%;
     height: 200px;
     object-fit: cover;
     transition: transform 0.3s ease;
 }

 .devotional-card:hover .devotional-img {
     transform: scale(1.03);
 }

 .devotional-category {
     position: absolute;
     top: 1rem;
     right: 1rem;
     background: white;
     color: var(--primary);
     padding: 0.25rem 0.75rem;
     border-radius: 50px;
     font-size: 0.75rem;
     font-weight: 700;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
 }

 .devotional-body {
     padding: 1.5rem;
 }

 .devotional-meta {
     display: flex;
     align-items: center;
     gap: 1rem;
     color: var(--gray);
     margin-bottom: 0.5rem;
     font-size: 0.875rem;
 }

 .devotional-author {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     color: var(--gray);
     margin-bottom: 0.5rem;
 }

 .author-img {
     width: 32px;
     height: 32px;
     border-radius: 50%;
     object-fit: cover;
 }

 .devotional-stats {
     display: flex;
     gap: 1rem;
     color: var(--gray);
     font-size: 0.75rem;
     margin-top: 1rem;
 }

 .stat-item {
     display: flex;
     align-items: center;
     gap: 0.25rem;
 }

 /* Botones de filtro */
 .filter-btn {
     border: 1px solid var(--light-gray);
     background: white;
     color: var(--dark);
     border-radius: 50px;
     padding: 0.5rem 1.25rem;
     font-weight: 600;
     transition: all 0.3s ease;
     margin-right: 0.5rem;
     margin-bottom: 0.5rem;
 }

 .filter-btn:hover,
 .filter-btn.active {
     background: var(--primary);
     color: white;
     border-color: var(--primary);
 }

 /* Social icon hover nuevo */
 .social-icon:hover {
     color: var(--primary);
     transform: translateY(-3px);
 }

 /* Paginación */
 .page-item.active .page-link {
     background-color: var(--primary);
     border-color: var(--primary);
 }

 .page-link {
     color: var(--primary);
 }

 /* Responsive */
 @media (max-width: 768px) {
     .upcoming-devotionals {
         position: static;
         margin-bottom: 2rem;
     }
 }


 /* Event Cards */
 .event-card {
     background: white;
     border-radius: 16px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
     overflow: hidden;
     transition: all 0.3s ease;
     height: 100%;
     border: 1px solid rgba(0, 0, 0, 0.05);
 }

 .event-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
 }

 .event-img {
     width: 100%;
     height: 200px;
     object-fit: cover;
     transition: transform 0.3s ease;
 }

 .event-card:hover .event-img {
     transform: scale(1.03);
 }

 .event-date {
     position: absolute;
     top: 1rem;
     left: 1rem;
     background: var(--primary);
     color: white;
     padding: 0.5rem 1rem;
     border-radius: 8px;
     font-weight: 700;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
 }

 .event-category {
     position: absolute;
     top: 1rem;
     right: 1rem;
     background: white;
     color: var(--primary);
     padding: 0.25rem 0.75rem;
     border-radius: 50px;
     font-size: 0.75rem;
     font-weight: 700;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
 }

 .event-body {
     padding: 1.5rem;
 }

 .event-time {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     color: var(--gray);
     margin-bottom: 0.5rem;
 }

 .event-location {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     color: var(--gray);
 }

 /* Upcoming events item */
 .upcoming-event-item {
     display: flex;
     gap: 1rem;
     padding: 1rem 0;
     border-bottom: 1px solid var(--light-gray);
     transition: all 0.2s ease;
 }

 .upcoming-event-item:hover {
     background-color: rgba(255, 255, 255, 0.5);
     border-radius: 8px;
     padding-left: 0.5rem;
     padding-right: 0.5rem;
 }

 .upcoming-event-item:last-child {
     border-bottom: none;
 }

 .upcoming-event-date {
     background: white;
     border-radius: 8px;
     padding: 0.75rem;
     text-align: center;
     min-width: 70px;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
 }

 .upcoming-event-day {
     font-size: 1.5rem;
     font-weight: 700;
     color: var(--primary);
     line-height: 1;
 }

 .upcoming-event-month {
     font-size: 0.75rem;
     font-weight: 600;
     text-transform: uppercase;
     color: var(--gray);
 }

 .upcoming-events {
     background: var(--primary-light);
     border-radius: 16px;
     padding: 2rem;
     position: sticky;
     top: 20px;
 }

/* ===================== */
/*     ESTILO HERO GALERÍA      */
/* ===================== */

.galeria-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
        url('https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?auto=format&fit=crop&w=600&q=80');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

/* ===================== */
/*     FILTROS / BUSCAR  */
/* ===================== */

.filter-btn {
    padding: .4rem 1rem;
    margin: .3rem;
    background: #eaeef1;
    border-radius: 20px;
    color: #101518;
    font-weight: 600;
}

.filter-btn.active {
    background: #0d6efd;
    color: white;
}


.zoom-container {
    overflow: hidden;
    position: relative;
    touch-action: none;
}

.modal-image {
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    cursor: grab;
}
/* ===================== */
/*      TITULOS          */
/* ===================== */

.gallery-section {
    padding: 1.5rem 0;
}

.gallery-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #101518;
}

/* ===================== */
/*     MASONRY GRID      */
/* ===================== */

.masonry {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 576px) {
    .masonry {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .masonry {
        column-count: 3;
    }
}

/* ===================== */
/*  TARJETAS MASONRY     */
/* ===================== */

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: #fff;
    cursor: pointer;
    transition: transform .3s ease;
}

.masonry-item:hover {
    transform: scale(1.03);
}

.masonry-img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ===================== */
/*      CAPTIONS         */
/* ===================== */

.masonry-caption {
    padding: 1rem;
    text-align: center;
}

.masonry-caption h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #101518;
}

/* ===================== */
/*       MODAL           */
/* ===================== */

.modal-content {
    background-color: transparent;
    border: none;
}

.modal-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}



.btn-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    z-index: 10;
}

#prevImage { left: 0; }
#nextImage { right: 0; }

.btn-close {
    filter: invert(1);
    font-size: 1.5rem;
}



 /* Contact Page Hero Section */
 .contact-hero {
     background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
         url('https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1200&q=80');
     background-size: cover;
     background-position: center;
     height: 300px;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     color: white;
     border-radius: 16px;
     margin-bottom: 3rem;
 }

 /* Redes sociales para íconos de contacto */
 .whatsapp {
     background-color: #25D366;
 }

 .facebook {
     background-color: #1877F2;
 }

 .instagram {
     background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
 }

 .twitter {
     background-color: #1DA1F2;
 }

 /* Información de contacto */
 .contact-info-item {
     display: flex;
     align-items: center;
     gap: 1rem;
     margin-bottom: 1.5rem;
 }

 .contact-info-icon {
     width: 50px;
     height: 50px;
     background-color: var(--primary-light);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--primary);
     font-size: 1.25rem;
 }

 /* Mapa */
 .map-container {
     border-radius: 16px;
     overflow: hidden;
     height: 100%;
     min-height: 300px;
 }

 /* Inputs */
 .form-control {
     border-radius: 8px;
     padding: 0.75rem 1rem;
     border: 1px solid var(--light-gray);
 }

 .form-control:focus {
     box-shadow: 0 0 0 3px rgba(25, 144, 229, 0.2);
     border-color: var(--primary);
 }

 /* Social icon hover para contacto */
 .social-icon:hover {
     transform: scale(1.1);
     transition: transform 0.3s ease;
 }


 .servicios-hero {
     background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
         url('https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?auto=format&fit=crop&w=600&q=80');
     background-size: cover;
     background-position: center;
     height: 300px;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     color: white;
     border-radius: 16px;
     margin-bottom: 3rem;
 }


 .predicaciones-hero {
     background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
         url('https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?auto=format&fit=crop&w=600&q=80');
     background-size: cover;
     background-position: center;
     height: 300px;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     color: white;
     border-radius: 16px;
     margin-bottom: 1.5rem;
 }


 /* Hero Devocional */
 .devotional-hero {
     height: 500px;
     position: relative;
     border-radius: 16px;
     overflow: hidden;
     margin-bottom: 3rem;
 }

 .devotional-hero-img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     filter: brightness(0.7);
 }

 .devotional-hero-content {
     position: absolute;
     bottom: 0;
     left: 0;
     right: 0;
     padding: 3rem;
     background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
     color: white;
 }

 /* Tags */
 .tag {
     display: inline-block;
     background-color: var(--light-gray);
     color: var(--dark);
     padding: 0.5rem 1rem;
     border-radius: 50px;
     font-size: 0.8rem;
     font-weight: 600;
     margin-right: 0.5rem;
     margin-bottom: 0.5rem;
 }


 /* Comments */
 .comment-card {
     background: white;
     border-radius: 12px;
     padding: 1.5rem;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
     margin-bottom: 1.5rem;
 }

 .comment-avatar {
     width: 50px;
     height: 50px;
     border-radius: 50%;
     object-fit: cover;
 }



 .video-preview {
     object-fit: cover;
     cursor: pointer;
     width: 100%;
     height: 100%;
     display: block;
 }

 .play-btn {
     background-color: rgba(0, 0, 0, 0.4);
     border-radius: 50%;
     border: none;
     width: 60px;
     height: 60px;
     display: flex;
     justify-content: center;
     align-items: center;
 }

  .casas-hero {
     background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
         url('/assets/img/casapaz.png');
     background-size: cover;
     background-position: center;
     height: 300px;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     color: white;
     border-radius: 16px;
     margin-bottom: 3rem;
 }