/* Asegúrate de que el diseño sea flexible con un contenedor principal */
body {
    height: 100%; 
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff; /* Fondo oscuro */
    color: #fff; /* Color de texto claro para que se vea sobre el fondo oscuro */
}

.navbar {
    background-color: #fff; /* Blanco para el header */
    padding: 15px;
    z-index: 1;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #4a5da8;
    color: #ecf0f1;
    padding: 5px 20px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
}

.header-content img {
    margin-right: 15px; /* Espaciado entre la imagen y el título */
}

.header-content h1 {
    font-size: 20px;
    margin: 0;
    line-height: 1.2;
}

#fondo {
    background-color: #ffffff;
    width: 100%;
    height: 100%;
}

.navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
  
}

#regresar {
    padding: 8px 16px;
    background-color: #1abc9c; 
    color: white;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    transition: 0.5s;
    border-radius: 8px;
}

#regresar:hover {
    background-color: #16a085; 
}

.contenedor-principal {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #f4f4f9; /* Fondo claro para el contenedor principal */
    color: #333; /* Color de texto oscuro en el contenedor principal */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    height: auto;

    z-index: 1;
}

h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Estilo del buscador */
#buscador {
    width: 100% auto;
    max-width: 500px;
    padding: 7px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Contenedor de preguntas con un diseño de columna */
.pregunta-container {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    background-color: #ffffff; /* Blanco para las preguntas */
    transition: background-color 0.3s;
    align-self: center;
}

.pregunta-container:hover {
    background-color: #f9f9f9;
}

/* Estilo del modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.modal-content {
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
}



.close {
    position: absolute; /* Posiciona la "X" de forma absoluta dentro del modal */
    top: 10px; /* Espacio desde el borde superior */
    right: 10px; /* Espacio desde el borde derecho */
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #ff0000; /* Cambia el color al pasar el mouse */
}

.respuesta-container {
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
}

.admin {
    background-color: #f4f4f4;
}

.time-ago {
    font-size: 0.8rem;
    color: red; /* Rojo para time-ago */
    font-style: italic; /* Cursiva para time-ago */
}

/* Estilo para la respuesta input */
.respuesta-input {
    margin-top: 20px;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

button {
    padding: 10px 20px;
    background-color: #1abc9c; 
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: red; 
}

.pregunta-container {
    padding: 5px;
    font-size: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1 solid #ccc;
}

.pregunta-container:hover{
    transform: scale(1.03); /* Aumenta ligeramente el tamaño */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Realza la sombra para mayor impacto */
}

@media (max-width: 768px) {
    .pregunta-container {
        padding: 5px;
        font-size: 10px;
        border: 1 solid #ccc;
        box-shadow: 1px 5px 9px 2px rgba(0, 0, 0, 0.24);
    }

    #buscador {
        max-width: 100%;
    }

    .modal-content {
        width: 90%;
    }
}

/* Estilo del ícono de chat */
.chat-icon {
    position: fixed;
    bottom: 20px; /* Anclado a la parte superior */
    right: 20px; /* Anclado a la derecha */
    width: 60px;
    height: 60px;
    background-color: #1abc9c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.chat-icon img {
    width: 70%; /* Usa un porcentaje para adaptar mejor la imagen */
    height: 70%;
    object-fit: contain; /* Ajusta la imagen sin distorsionarla */
}

/* Estilo del formulario de chat */
.chat-form {
    position: fixed;
    bottom: 100px;
    right: 20px; /* Anclado a la derecha */
    width: 700px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: none; /* Inicialmente oculto */
}

.chat-form h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.chat-form textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
}

.chat-form button {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.chat-form button:hover {
    background-color: #16a085;
}

input[type="search"]{
    width: 100%;
    padding: 2px;
    margin-bottom: 10px;
    cursor: auto;

}

#btnBuscar{
    padding: 4px;
    width: 90px;
    height: 40px;
    background-color: #2fb538; 
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.5s;
    border-radius: 8px;
    box-shadow: 2px 5px 9px 2px rgba(0, 0, 0, 0.24);
}

#btnBuscar:hover {
    background-color: rgb(35, 89, 51); 
}

.inline-help {
    display: flex;
    justify-content: flex-start;
    gap: 10px;  /* Espacio entre el texto y el botón */
    font-size: 16px;  /* Tamaño de la fuente del texto */
}

#btnResponder{
    
    padding: 4px;
    width: 90px;
    height: 40px;
    background-color: #1abc9c; 
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.5s;
    border-radius: 8px;
    box-shadow: 2px 5px 9px 2px rgba(0, 0, 0, 0.24);
}

#btnResponder:hover{
    background-color: #16a085; 
}

#nuevaRespuesta{
    background-color: #f1f1f1;

}

header{
    background-color: #4a5da8;
    padding: 70px;
    text-align: center;
    
}

a.abajo{
    color: white;
    text-decoration: none;
    transition: 0.5s ease-out 10ms;
    font-size: 16px;
    font-weight:500;
}
a.abajo:hover{
    color: black;
}

img.iconos{
    height: 30px;
    width: 30px;

}
img.logoicono{
    height: 50px;
    width: 50px;
    padding: 5px;
}

/* Para pantallas grandes, los contactos deben estar a la izquierda */
@media (min-width: 1024px) {
    header .contact-section {
        text-align: left; /* Justificar los contactos a la izquierda */
    }

    header .social-section {
        text-align: center;
    }
}

.imgiconodatos{
    height: 25px;
    width: 25px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: linear-gradient(135deg, var(--jumapam-azul-titulos) 23%, var(--jumapam-azul-servicios) 100%);
    color: var(--jumapam-blanco);
}

.site-footer a {
    color: var(--jumapam-blanco);
}

.site-footer a:hover {
    color: var(--jumapam-fondo-gris-azulado);
}

.site-footer h3,
.site-footer h4 {
    color: var(--jumapam-blanco);
}

/* ==========================================================================
   FOOTER JUMAPAM - Diseño Moderno
   ========================================================================== */

/* Ocultar footer original de GeneratePress pero mostrar el personalizado */
.site-info,
.footer-widgets-container:not(:has(.jumapam-footer)) {
    display: none !important;
}

/* Asegurar que el site-footer con nuestro footer sea visible */
.site-footer:has(.jumapam-footer) {
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Fallback para navegadores sin :has() */
.site-footer {
    background: transparent !important;
    padding: 0 !important;
}

/* Footer principal */
.jumapam-footer {
    background-color: #4a5da8;
    color: white;
    padding: 60px 0 0;
    margin-top: 0;
}

.jumapam-footer-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Títulos del footer */
.jumapam-footer-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--jumapam-blanco);
    margin-bottom: 25px;
    position: relative;
}

/* Columna Contacto */
.jumapam-footer-contacto {
    text-align: left;
}

.jumapam-footer-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--jumapam-blanco);
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.jumapam-footer-link:hover {
    color: #a8d4f5;
    transform: translateX(5px);
}

.jumapam-footer-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Columna Central */
.jumapam-footer-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.jumapam-footer-logo-main {
    margin-bottom: 30px;
}

.jumapam-footer-logo-main img {
    max-width: 180px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.jumapam-footer-instituciones {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.jumapam-footer-instituciones img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.jumapam-footer-instituciones img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Columna Redes Sociales */
.jumapam-footer-social {
    text-align: right;
}

.jumapam-footer-social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 30px;
}

.jumapam-footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.jumapam-footer-social-icons a:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.jumapam-footer-social-icons img {
    width: 22px;
    height: 22px;
    filter: none;
    transition: filter 0.3s ease;
}

.jumapam-footer-social-icons a:hover img {
    filter: none;
}

/* Copyright */
.jumapam-footer-copyright {
    margin-top: 50px;
    margin-bottom: 0%;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.15);
    text-align: center;
}

.jumapam-footer-copyright p {
    margin: 0;
    margin-bottom: auto;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .jumapam-footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .jumapam-footer-center {
        grid-column: 1 / -1;
        order: -1;
    }

    .jumapam-footer-social {
        text-align: left;
    }

    .jumapam-footer-social-icons {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .jumapam-footer {
        padding: 40px 0 0;
    }

    .jumapam-footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 20px;
        text-align: center;
    }

    .jumapam-footer-contacto,
    .jumapam-footer-social {
        text-align: center;
    }

    .jumapam-footer-link {
        justify-content: center;
    }

    .jumapam-footer-social-icons {
        justify-content: center;
    }

    .jumapam-footer-instituciones {
        gap: 15px;
    }

    .jumapam-footer-instituciones img {
        height: 35px;
    }

    .jumapam-footer-copyright {
        padding: 15px 20px;
    }
}