/* Responsive Styles */
/* Estilo general del encabezado */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 2px solid #ccc;
    position: relative;
    z-index: 1000;
}

.header .icon {
    max-width: 150px; /* Ajusta el tamaño del logo */
}

.bar {
    display: flex;
    align-items: center;
}

.bar_nav {
    display: flex;
    gap: 15px;
}



.bar_nav a {
    text-decoration: none;
    color: #000;
    
    transition: color 0.3s;
    padding: 5px 10px;
}

.bar_nav a:hover {
    color: #f00; /* Cambia este color según el diseño */
}

/* Botón del menú hamburguesa */
.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Mostrar el botón en móviles */
    }

    .bar_nav {
        display: none; /* Ocultar el menú inicialmente */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Asegurar que el menú aparezca debajo del encabezado */
        right: 0;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 20px;
        border-top: 2px solid #ccc;
        z-index: 1000;
    }

    .bar_nav.active {
        display: flex; /* Mostrar el menú cuando esté activo */
    }

    .bar_nav a {
        font-size: 18px;
        padding: 10px 0;
        text-align: center;
    }
}

/* Animación al aparecer */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsividad */
@media (max-width: 768px) {
    .bar_nav {
        display: none; /* Ocultar navegación horizontal */
    }

    .hamburger {
        display: flex; /* Mostrar menú hamburguesa */
    }
}

/* Estilos generales para la sección del chatbot */
.chat-bot {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
    background-color: #b30000; /* Fondo rojo */
    color: white;
    flex-wrap: wrap; /* Permite que los elementos se adapten en pantallas pequeñas */
}

.chat-bot .left {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.chat-bot .chat_img {
    width: 100%;
    max-width: 200px; /* Tamaño máximo de la imagen */
    height: auto;
    object-fit: contain;
}

.chat-bot .right {
    flex: 2;
    text-align: center;
    padding: 10px;
}

.chat-bot .chat_h1,
.chat-bot .chat_h1-2 {
    font-size: 36px; /* Tamaño grande para pantallas grandes */
    font-weight: bold;
    margin: 0;
}

.chat-bot .chat_h1-2 {
    color: #fff; /* Resalta el "CHATBOT" en blanco */
}

.chat-bot .chat_p {
    font-size: 16px;
    line-height: 1.5;
    margin: 15px auto;
    max-width: 90%; /* Limita el ancho del párrafo */
}

.chat-bot .chat_button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #b30000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 10px;
}

.chat-bot .chat_button img.icon {
    width: 20px; /* Ajustar tamaño del ícono */
    height: auto;
    margin-right: 10px;
}

/* Adaptaciones para dispositivos pequeños */
@media (max-width: 768px) {
    .chat-bot {
        flex-direction: column; /* Coloca elementos en columna */
        text-align: center;
    }

    .chat-bot .chat_h1,
    .chat-bot .chat_h1-2 {
        font-size: 28px; /* Reducir tamaño del título */
    }

    .chat-bot .chat_p {
        font-size: 14px; /* Reducir tamaño del párrafo */
        max-width: 100%; /* Asegurarse de que ocupe todo el ancho disponible */
    }

    .chat-bot .chat_img {
        max-width: 150px; /* Reducir tamaño máximo de la imagen */
    }

    .chat-bot .chat_button {
        padding: 8px 16px; /* Reducir espacio en el botón */
        font-size: 12px; /* Reducir tamaño de fuente */
    }
}

/* Contenedor principal de "Acerca de Nosotros" */
.acerca {
    text-align: center;
    margin: 40px auto;
    padding: 20px;
    max-width: 1200px;
}

/* Título "ACERCA DE NOSOTROS" */
.acerca_h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

/* Contenido centrado */
.content_acerca {
    display: flex;
    flex-direction: column; /* Alinear en columna para mejor ajuste */
    align-items: center;
    gap: 30px;
}

/* Texto de "Acerca de Nosotros" */
.text_acerca {
    max-width: 800px;
    text-align: justify;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #555;
}

.acerca_button:hover {
    background-color: #0056b3;
}

/* Carrusel centrado */
.carousel_acerca {
    flex: 1;
    position: relative;
    width: 90%; /* Permitir que ocupe el 90% del ancho */
    max-width: 600px; /* Ancho máximo para pantallas grandes */
    margin: 0 auto;
    overflow: hidden;
    height: auto; /* Altura ajustable */
}

.carousel_acerca .img_acerca {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel_acerca img {
    min-width: 100%;
    height: auto; /* Mantener proporción de la imagen */
    object-fit: cover; /* Ajustar la imagen dentro del contenedor */
    border-radius: 5px;
}

/* Flechas de navegación */
.carousel_acerca .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    z-index: 2;
}

.carousel_acerca .arrow.left {
    left: 10px;
}

.carousel_acerca .arrow.right {
    right: 10px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .carousel_acerca {
        max-width: 100%; /* Abarcar el ancho completo */
        height: auto;
    }

    .carousel_acerca img {
        height: 250px; /* Aumentar tamaño en dispositivos pequeños */
    }

    .carousel_acerca .arrow {
        font-size: 20px; /* Flechas más grandes */
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .carousel_acerca img {
        height: 300px; /* Incrementar altura en pantallas muy pequeñas */
    }

    .carousel_acerca .arrow {
        font-size: 24px; /* Flechas más visibles */
        padding: 14px;
    }
}


/* Para dispositivos pequeños (max-width: 768px) */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 14px;
    }

    header {
        text-align: center;
        padding: 10px 0;
    }

    header nav ul {
        flex-direction: column;
        padding: 0;
    }

    header nav ul li {
        margin: 10px 0;
    }

    main section {
        text-align: center;
        padding: 10px;
    }

    main section h1, 
    main section h2 {
        font-size: 18px;
    }

    main section p {
        font-size: 14px;
    }

    footer {
        padding: 10px 0;
        font-size: 12px;
    }
}

/* Para tablets (min-width: 768px y max-width: 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    header nav ul {
        flex-direction: row;
        gap: 15px;
    }

    main section {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        text-align: left;
        padding: 20px;
    }

    main section h2, main section p {
        width: 48%;
    }
}

/* 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;
    }
}
