 body {
     font-family: 'Plus Jakarta Sans', 'Noto Sans', sans-serif;
     background-color: #f8f9fa;
     padding-top: 80px;
 }

 .carousel-inner {
     border-radius: 1rem;
     overflow: hidden;
 }

 .carousel-item {
     height: 40vh;
     /* Altura para móviles */
     position: relative;
 }

 .carousel-img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     /* Mantiene la proporción de la imagen */
     position: absolute;
     top: 0;
     left: 0;
 }

 .placeholder-img {
     background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
 }

 .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);
     /* Fondo semitransparente para mejor legibilidad */
     z-index: 1;
 }

 /* Ajustes para tablets */
 @media (min-width: 768px) {
     .carousel-item {
         height: 60vh;
     }
 }

 /* Ajustes para escritorio */
 @media (min-width: 992px) {
     .carousel-item {
         height: 80vh;
         /* Altura original para desktop */
     }
 }

 .carousel-indicators [data-bs-target] {
     background-color: #fff;
     width: 12px;
     height: 12px;
     border-radius: 100%;
     opacity: 0.5;
 }

 .carousel-indicators .active {
     opacity: 1;
 }

 .btn-custom {
     background-color: #b2d0e5;
     color: #101518;
     font-weight: bold;
     border: none;
 }

 .btn-custom:hover {
     background-color: #b2d0e5 !important;
     opacity: 0.9;
 }

 /* Ajustes de texto para móviles */
 .hero-slide h1 {
     font-size: 1.8rem;
     margin-bottom: 1rem;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
 }

 .hero-slide p {
     font-size: 0.9rem;
     text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
 }

 @media (min-width: 768px) {
     .hero-slide h1 {
         font-size: 2.5rem;
     }

     .hero-slide p {
         font-size: 1rem;
     }
 }

 @media (min-width: 992px) {
     .hero-slide h1 {
         font-size: 3.5rem;
         /* Tamaño original para desktop */
     }
 }

 .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;
 }


 .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;
 }

 /* Estilos adicionales para la galería */
 .gallery-section {
     padding: 1.5rem 0;
 }

 .gallery-title {
     font-size: 2rem;
     font-weight: 700;
     margin-bottom: 2rem;
     color: #101518;
 }

 .gallery-category {
     font-size: 1.5rem;
     font-weight: 600;
     margin: 2rem 0 1rem;
     color: #101518;
     border-bottom: 2px solid #b2d0e5;
     padding-bottom: 0.5rem;
 }

 .gallery-item {
     margin-bottom: 1.5rem;
     transition: transform 0.3s ease;
     overflow: hidden;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
     cursor: pointer;
 }

 .gallery-item:hover {
     transform: scale(1.03);
 }

 .gallery-img {
     width: 100%;
     height: 250px;
     object-fit: cover;
     transition: opacity 0.3s ease;
 }

 .gallery-img:hover {
     opacity: 0.9;
 }

 .gallery-caption {
     background-color: white;
     padding: 1rem;
     text-align: center;
 }

 .gallery-caption h3 {
     font-size: 1.1rem;
     margin-bottom: 0.5rem;
     color: #101518;
 }

 .gallery-caption p {
     font-size: 0.9rem;
     color: #5c778a;
     margin-bottom: 0;
 }

 .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;
 }

 /* Estilos para el modal de imagen */


 .polaroid {
     background: white;
     padding: 15px 15px 40px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
     transform: rotate(-1deg);
     transition: transform 0.3s ease;
     margin-bottom: 30px;
     max-width: 100%;
     position: relative;
 }

 .polaroid:hover {
     transform: rotate(0deg) scale(1.05);
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
 }

 .polaroid img {
     width: 100%;
     height: 250px;
     object-fit: cover;
     cursor: pointer;
 }

 .polaroid-caption {
     text-align: center;
     margin-top: 15px;
     font-family: 'Comic Sans MS', cursive, sans-serif;
 }



 .modal-content {
     background-color: transparent;
     border: none;
     position: relative;
 }

 .modal-header {
     border-bottom: none;
     position: absolute;
     top: 10px;
     right: 10px;
     z-index: 1;
 }

 .modal-body {
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 0;
     position: relative;
 }

 .modal-image-container {
     display: flex;
     flex-direction: column;
     position: relative;
     max-width: 900px;
     width: 100%;
     align-items: center;
     /* Centrar la imagen y la descripción */
 }

 .modal-image {
     display: block;
     width: 100%;
     max-height: 80vh;
     object-fit: contain;
 }

 .image-caption {
     background: rgba(0, 0, 0, 0.7);
     color: white;
     padding: 1rem;
     text-align: center;
     width: fit-content;
     /* Ajusta al ancho de la imagen */
     max-width: 100%;
     /* Nunca exceda el contenedor */
     margin: 0 auto;
     /* Centrado */
     border-radius: 5px;
 }


 .btn-close {
     filter: invert(1);
     opacity: 0.8;
     font-size: 1.5rem;
 }

 .btn-close:hover {
     opacity: 1;
 }

 /* Botones de navegación */
 .btn-nav {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     z-index: 2;
     font-size: 2rem;
     opacity: 0.7;
 }

 .btn-nav:hover {
     opacity: 1;
 }

 #prevImage {
     left: 0;
 }

 #nextImage {
     right: 0;
 }



 /* 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;
 }