/* --- Encabezado --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f4f4f4;
    position: relative; /* Cambiar a "relative" para evitar desapariciones */
}

.bar {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.bar_nav {
    display: flex;
    gap: 20px;
}

.bar_nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

/* Menú hamburguesa para pantallas pequeñas */
@media (max-width: 768px) {
    .bar_nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #fff;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .bar_nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    max-width: 500px; /* Ajusta según tu diseño */
    margin: 0 auto;
}

video {
    width: 100%;
    height: auto;
    border: none;
}

/* --- Estilo para el texto "QUIENES SOMOS" --- */
.right-text {
    text-align: center; /* Centra el texto */
    margin-top: 20px;
    padding: 20px;
    font-size: 1.2rem;
    color: #333;
}

/* --- Responsividad para pantallas pequeñas --- */
@media (max-width: 768px) {
    .video-container {
        padding: 10px;
    }

    .video-container iframe {
        width: 100%; /* Asegura el ajuste al contenedor */
        height: auto; /* Mantiene proporción */
    }

    .right-text {
        text-align: center; /* Centra el texto */
        margin-top: 20px; /* Mueve el texto hacia abajo */
        font-size: 1rem; /* Ajusta el tamaño del texto */
    }
}


/* --- Estilo para el texto "QUIENES SOMOS" --- */
.right-text {
    text-align: center;
    margin-top: 0;
    padding: 20px;
    font-size: 1.2rem;
    color: #333;
}

.right-text h2 {
    font-size: 24px;
    text-transform: uppercase;
}

.right-text p {
    margin: 10px 0;
    color: #555;
}

/* Responsividad del texto a la derecha */
@media (max-width: 768px) {
    .right-text {
        width: 100%; /* Se adapta a pantallas pequeñas */
        text-align: justify;
    }

    .right-text h2 {
        font-size: 20px; /* Reduce el tamaño del título */
    }
}

/* --- Banner horizontal centrado --- */
.centered-banner img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
    margin: 18% 0;
}

/* Responsividad del banner */
@media (max-width: 768px) {
    .centered-banner img {
        max-height: 200px; /* Reduce la altura del banner */
    }
}

/* --- Chatbot sección --- */
.chat-bot {
    text-align: center;
    padding: 20px;
}

.chat-bot h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.chat-bot img {
    width: 100px;
    height: auto;
}

.chat-bot .chat_button {
    background-color: #ffffff;
    color: rgb(255, 0, 0);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Responsividad para el Chatbot */
@media (max-width: 768px) {
    .chat-bot img {
        width: 80px; /* Reduce el tamaño del icono */
    }

    .chat-bot h1 {
        font-size: 18px; /* Reduce el tamaño del título */
    }
}

/* --- Galería de imágenes --- */
.image-gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.image-item img {
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsividad de la galería */
@media (max-width: 768px) {
    .image-gallery {
        flex-direction: column;
        align-items: center;
    }

    .image-item img {
        width: 90%; /* Imágenes más grandes en pantallas pequeñas */
    }
}

/* Escritorios grandes (min-width: 1024px) */
@media (min-width: 1024px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 40px;
    }

    header img {
        max-width: 120px;
    }

    main section {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    main section h2, main section p {
        width: 45%;
    }

    footer {
        font-size: 14px;
    }
}
