/* Estilos Globales para prevenir el desbordamiento horizontal */
body, html {
    width: 100%;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
}

.hero-video-section {
position: relative;
height: 80vh;
overflow: hidden;
padding-top: 0; 
padding-bottom: 0; 
}

.hero-video-section .hero-video {
width: 100%;
height: 100%;
object-fit: cover; /* Escala el video para cubrir todo el contenedor, recortando si es necesario */
filter: brightness(0.7);
position: absolute;
top: 0;
left: 0;
z-index: 1;
}

/* Estilos para la sección de "Nuestra iglesia" */
.nuestra-iglesia-section {
    background-color: #BFBFBF;
    padding: 40px 15px;
    text-align: center;
}

/* Contenedor del texto */
.nuestra-iglesia-section .services-content {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    width: 100%;
    max-width: 800px; /* Ancho máximo para el contenido */
    margin: 0 auto; /* Centra el contenedor horizontalmente */
}

/* Estilos del título */
.nuestra-iglesia-section h2 {
    font-size: 28px;
    color: #222222;
    text-align: center;
    margin-bottom: 20px;
}

/* Estilos del párrafo */
.nuestra-iglesia-section p {
    font-size: 16px;
    color: #222222;
    line-height: 1.6;
    text-align: justify; /* La clave para distribuir el texto */
}

.pastores {
    background: linear-gradient(180deg, #BFBFBF, #A6A6A6);
    padding: 50px 20px;
    display: flex;
    justify-content: center;
}

.pastores-container {
    width: 70%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.pastores-texto {
    flex: 1;
    min-width: 300px;
}

.pastores-texto h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.pastores-texto p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.pastores-img {
    flex: 0 0 30%;
    max-width: 30%;
    overflow: hidden;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.pastores-img img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
    display: block;
}

.pastores-img:hover img {
    transform: scale(1.05);
}

.services {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../images/ministracion.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    padding: 100px 0;
}

.services-content {
    text-align: center;
}

.services-content1 h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    line-height: 50px;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.services-content1 p {
    font-size: 20px;
    color: #000;
    margin-bottom: 50px;
    padding: 0 100px;
}

.services-content2 h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 40px;
    line-height: 50px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
}

.services-content2 p {
    font-size: 20px;
    color: #fff;
    margin-bottom: 50px;
    padding: 0 100px;
    text-align: center;
}

.services-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.services-1 {
    padding: 0 5px;
    align-items: center;
}

.services-1 img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.services-1 h3 {
    color: #fff;
    font-size: 18px;
    padding: 20px;
}

/* Estilos para la nueva sección de actividades */
.actividades-section {
    background: linear-gradient(180deg, #BFBFBF, #A6A6A6);
    padding: 80px 20px;
    text-align: center;
}

.actividades-section h2 {
    font-size: 40px;
    color: #222222;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.actividades-resena {
    font-size: 18px;
    color: #444444;
    line-height: 1.6;
    margin-bottom: 40px;
    padding: 0 100px;
}

.actividades-content {
    margin-bottom: 40px;
}

.actividades-lista {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.actividades-lista li {
    background-color: rgba(255, 255, 255, 0.8);
    color: #222222;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.actividades-imagen-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.actividades-imagen {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.actividades-imagen:hover {
    transform: scale(1.05);
}

/* Estilos para el texto de redes sociales */
.contactos-redes {
    text-align: center;
    margin-top: 30px;
}

.contactos-redes p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
}

/* Estilos para los iconos de redes sociales */
.redes-sociales-iconos a {
    text-decoration: none;
    margin: 0 10px;
    font-size: 2.5rem;
    transition: color 0.3s ease;
}

.facebook-icon {
    color: #ce967b; /* Tono rosa claro */
}

.instagram-icon {
    color: #ce967b; /* Tono rosa claro */
}

.redes-sociales-iconos a:hover .facebook-icon,
.redes-sociales-iconos a:hover .instagram-icon {
    color: #a67b61; /* Tono más oscuro al pasar el cursor */
}

/* Contenedor principal del carrusel */
.actividades-carrusel-container {
    display: block;
    max-width: 500px; /* Ancho máximo fijo */
    max-height: 500px; /* Alto máximo fijo */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Contenedor de las diapositivas */
.carrusel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

/* Estilo de cada imagen */
.carrusel-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Para que la imagen se vea completa sin recortar */
    display: block;
}

/* Botones de control (no cambiaron) */
.carrusel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: background-color 0.3s;
}

.carrusel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* ======== Responsive CSS Completo ======== */
@media (max-width: 991px) {
    /* Ajustes Generales */
    body {
        font-size: 16px;
    }
    .container {
        padding: 0 15px;
    }
    h1 {
        font-size: 36px !important;
        line-height: 40px !important;
        text-align: center;
    }
    h2 {
        font-size: 28px !important;
        line-height: 32px !important;
        text-align: center;
    }
    p {
        font-size: 16px !important;
        text-align: justify;
    }
    
    /* Menú */
    .menu label {
        display: block;
        padding: 20px;
        cursor: pointer;
    }
    .menu .navbar {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        display: none;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    #menu:checked ~ .navbar {
        display: flex;
    }
    .menu .navbar ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .menu .navbar ul li {
        width: 100%;
    }
    .menu .navbar ul li a {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Header */
    .header {
        min-height: auto;
        padding: 40px 0;
    }
    .header-content {
        padding: 60px 20px;
    }
    .header-content h1 {
        font-size: 32px;
        line-height: 36px;
    }
    .header-content p {
        padding: 0;
        font-size: 14px;
        text-align: center;
    }
    .btn-1 {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    /* Sección "Quebranta tu corazón" */
    .general {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .general-video, .general-texto {
        width: 100%;
        padding: 20px 15px;
    }
    .general-texto h2 {
        font-size: 24px;
        line-height: 28px;
        text-align: center;
    }
    .general-texto p {
        font-size: 16px;
        text-align: justify;
    }
    .general-video video {
        width: 100%;
        height: auto;
    }
    
    /* Sección "Estás más cerca" */
    .general-3, .general-n {
        width: 100%;
        padding: 40px 15px;
    }
    .general-n h2 {
        font-size: 24px;
        line-height: 28px;
        text-align: center;
    }
    .boton-contenedor {
        margin-top: 20px;
    }
    
    /* Sección "Nuestra iglesia" (texto y video separados) */
    .hero-video-section {
        height: 40vh;
    }
    .nuestra-iglesia-section {
        background-color: #BFBFBF;
        padding: 40px 15px;
        text-align: center;
    }
    .nuestra-iglesia-section .services-content {
        background-color: transparent;
        box-shadow: none;
        padding: 0;
    }
    .nuestra-iglesia-section h2 {
        font-size: 28px;
        color: #fff;
    }
    .nuestra-iglesia-section p {
        font-size: 16px;
        color: #fff;
        text-align: justify;
    }
    
    /* Sección "Mi aporte" (pastores) */
    .pastores-container {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
    .pastores-texto {
        min-width: unset;
        text-align: center;
    }
    .pastores-texto h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .pastores-texto p {
        font-size: 16px;
        text-align: justify;
    }
    .pastores-img {
        max-width: 80%;
        margin-top: 20px;
    }
    
    /* Sección "Queremos servirte" */
    .services {
        padding: 50px 0;
    }
    .services-content p {
        padding: 0 15px;
        text-align: justify;
        color: #222222;
    }
    .services-group {
        flex-direction: column;
        align-items: center;
    }
    .services-1 {
        padding: 20px 0;
    }
    .services-1 img {
        width: 150px;
        height: 150px;
    }
    .services-1 h3 {
        padding: 10px;
    }

    .actividades-section {
        padding: 40px 15px;
    }
    .actividades-section h2 {
        font-size: 28px;
    }
    .actividades-resena {
        font-size: 16px;
        padding: 0;
        margin-bottom: 30px;
    }
    .actividades-lista {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .actividades-lista li {
        width: 100%;
        max-width: 300px;
        font-size: 14px;
    }

    .actividades-carrusel-container {
        max-width: 90%; /* Se adapta mejor a la pantalla móvil */
    }
    .actividades-imagen-container {
        width: 100%;
        border-radius: 10px;
    }

    .actividades-carrusel-container {
        border-radius: 10px;
    }

    .carrusel-control {
        font-size: 18px;
        padding: 5px 10px;
    }
}