/* Estilos generales */
body{
    background: rgb(255, 255, 255);
    color: #fff; /* Este color se sobrescribirá en el body del HTML */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

/* Estilos específicos para el navbar */
.nav-bar{
    width: 100%;
    height: 99px;
    background:#021264a5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    z-index: 1000;
        top: 0; /* Inicialmente en la parte superior */
    left: 0;
    z-index: 1000; /* Asegúrate de que esté por encima de todo */
    transition: transform 0.3s ease-in-out; /* Para una transición suave */
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 10px;
}

.logo-principal {
    display: flex;
    align-items: center;
    margin-bottom: 5px; /* Aumenté un poco el espacio inferior */
}

.logo-nav {
    height: auto;
    width: auto;
    max-height: 60px; /* Aumenté el tamaño del isotipo */
    margin-right: 8px; /* Aumenté un poco el espacio */
}

.logo-deag-texto {
    height: auto;
    width: auto;
    max-height: 50px; /* Aumenté el tamaño del texto DEAG */
}

.logo-soluciones {
    height: auto;
    width: auto;
    max-width: 275px; /* Aumenté el ancho del texto Soluciones Adm */
}

.nav-bar ul#menu-nav {
    list-style: none;
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.nav-bar ul#menu-nav li{
    color: #fff;
    margin: 0px 10px;
    font-size: 20px;
    cursor: pointer;
}

.nav-bar ul#menu-nav li a {
    text-decoration: none;
    color: inherit;
}

.nav-bar ul#menu-nav li:hover a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.main-menu{
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.menuBtn-nav, .closeBtn-nav{
    font-size: 28px;
    margin: 0px 20px;
    display: none;
    cursor: pointer;
}

/*.......CSS MEDIA QUERIES DEL NAVBAR....................*/

@media only screen and (max-width:700px){
    .nav-bar ul#menu-nav{
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 99px;
        left: 0;
        width: 100%;
        height: auto;
        background: #021264e3;
        text-align: center;
        padding: 10px 0;
        z-index: 1000;
        justify-content: center;
        align-items: center;
    }

    .nav-bar ul#menu-nav li{
        display: block;
        margin: 10px 0;
    }

    .nav-bar ul#menu-nav li a {
        text-decoration: none;
        color: inherit;
    }

    .nav-bar ul#menu-nav li:hover a {
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .menuBtn-nav{
        display: block;
    }
}
.contenedor-personalizado {
    background-color: #f8f9fa;
    /* Fondo claro */
    border-radius: 0.5rem;
    /* Bordes redondeados */
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.25);
    /* Sombra elegante */
    padding: 2rem;
    /* Espacio interno */
}

/* ========== Variables ========== */
:root {
    --color-primario: #021264;
    --color-secundario: #e8491d;
    --color-texto: #ffffff;
    --color-fondo-seccion: #f4f4f4;
    --color-hover-btn: #c63c17;
    --color-carrusel: rgb(236, 241, 250);
}


/* ========== Header ========== */
header {
    text-align: center;
    padding:11em 0em;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed; /* Agrega esta línea */
}

.lead-text {
    font-size: 1.8em;
    color: #847450;
    margin-bottom: 25px;
}

header h1 {
    margin-bottom: 0.5em;
    font-size: 2.8em;
}

header p {
    font-size: 1.5em;
}


/* ========== Secciones Principales ========== */
.container {
    background-color: var(--color-carrusel);
    width: 100%;
    margin: auto;
    overflow: hidden;
}

p {
    text-align: center;
}

#servicios-detallados {
    padding: 0.2em 0;
}



.section-title {
    color: #021264;
    font-size: 2.5em;
    margin-bottom: 0px;
    border-bottom: 3px solid #eac405; /* La misma definición de la línea */
    padding-bottom: 5px;
    display: inline-block; /* La línea solo ocupa el ancho del texto */
    text-align: center; /* Centra el texto *dentro* del elemento inline-block */
    margin-left: auto;  /* Establece el margen izquierdo automático para centrar */
    margin-right: auto; /* Establece el margen derecho automático para centrar */
    width: fit-content; /* Hace que el ancho del elemento se ajuste a su contenido */
}

#servicios-inicio {
    padding: 1em 0;
    text-align: center; /* Centra el elemento inline-block .section-title */
}

#inicio {
    padding: 2em 0;
    text-align: center; /* Centra el elemento inline-block .section-title */
}

.section-subtitle {
    color: #333;
    font-size: 2em;
    margin-top: 30px;
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.8em;
    color: #555;
    margin-bottom: 25px;
}

#servicios-inicio {
    padding: 1em 0;
    background-color: var(--color-carrusel);
}

#servicios-inicio .servicio {
    text-align: center;
    padding: 1em;
    margin-bottom: 1em;
}

.splide {
    margin-bottom: 10px;
    width: 100%;
    max-width: 600px;
}

.splide__slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.thumbs .splide__slide {
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.thumbs .splide__slide.is-active {
    opacity: 1;
    border: 2px solid #007bff;
    border-radius: 6px;
}

.thumbs img {
    height: 80px;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .splide {
        /* You might want to adjust max-width for smaller screens too */
        max-width: 100%; /* Allow it to take full width on small screens */
    }
    .splide__slide img {
        /* You might want to set a max-height or min-height for smaller screens */
        max-height: 250px; /* Example max-height for mobile */
        object-fit: contain;
    }
    .thumbs img {
        height: 60px; /* Adjust thumbnail height for smaller screens if needed */
    }
}



.container-carrusel {
    text-align: center;
    border: 2px;
    border-radius: 1.2rem;
    padding: 20px;
    background-color: #ffffff;
    margin-left: 10px;
    min-height: 100%;
}


/* ========== Media Queries ========== */

@media only screen and (max-width: 700px) {

    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1.1em;
    }
}

@media only screen and (max-width: 480px) {
    body {
        font-size: 15px;
    }

    h3 {
        font-size: 20px;
        margin-left: 15px;
    }

    header h1 {
        font-size: 1.8em;
    }

    header p {
        font-size: 1em;
    }

    .section-title {
        text-align: center;
        color: #021264;
        font-size: 2.5em;
        margin-bottom: 0px;
        border-bottom: 3px solid #eac405;
        padding-bottom: 5px;
        display: inline-block;
}

.section-subtitle {
    color: #333;
    font-size: 2em;
    margin-top: 30px;
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.8em;
    color: #555;
    margin-bottom: 25px;
}

    #servicios-inicio h2 {
        font-size: 1.6em;
    }

    #servicios-inicio p {
        font-size: 1em;

    }

    .servicio h4 {
        font-size: 1.3em;
    }

    .servicio p {
        font-size: 0.95em;
    }
}


/* ========== styles 2 ========== */
.titulo-servicios {
    text-align: center;
    font-weight: bold;
    color: #333;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ========== listados ========== */

.lista-servicios {
    list-style: none;
    color: #555;
    padding-left: 0;
    padding: 1em;
    text-align: left;
}

.lista-servicios li {
    margin-bottom: 8px;
    font-size: 18px;
}

.contacto {
    background-color: #5b6870;
    color: white;
    font-size: 12px;
    border-radius: 5px;
}

.accordion-button {
    background-color: white;
    font-weight: 500;
    border-bottom: 1px solid #ccc;
}

.accordion-button::after {
    transform: rotate(180deg);
}

.accordion-button.collapsed::after {
    transform: rotate(0deg);
}

.servicio-imagen {
    padding: 0rem;
    text-align: center;
}

.servicio-imagen img {
    max-height: 350px;
    width: auto;
    border-radius: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

/* ========== contenedores tipo cartas ========== */
.card-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h3 {
    color: #000000;
    /* o el color exacto que quieras */
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    border: none;
    margin-left: 0;
    /* elimina el desplazamiento innecesario */
}

.card p {
    margin-bottom: 10px;
}

.card-img {
    width: 80%;
    border-radius: 8px;
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .card-container {
        flex-direction: row;
        justify-content: center;
    }

    .card {
        width: 30%;
    }
}

a[type="submit"] {
    background-color: #eac405; /* Amarillo principal */
    color: #021264; /* Azul oscuro para el texto */
    padding: 12px 25px; /* Aumentamos un poco el padding para hacerlo más espacioso */
    border: none;
    border-radius: 8px; /* Bordes más redondeados para un aspecto moderno */
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Transiciones suaves */
    margin-top: 30px; /* Aumentamos un poco el margen superior para separarlo más */
    display: block; /* Para que ocupe todo el ancho disponible para centrarlo */
    width: fit-content; /* El botón se ajusta al contenido */
    margin-left: auto; /* Centrado horizontal */
    margin-right: auto; /* Centrado horizontal */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ligera sombra para darle profundidad */
    font-weight: bold; /* Texto en negrita para destacar */
    text-decoration: none;
}

a[type="submit"]:hover {
    background-color: #f0d842; /* Amarillo más claro al pasar el ratón */
    transform: scale(1.05); /* Ligeramente más grande al pasar el ratón */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada al pasar el ratón */
}

a[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(234, 196, 5, 0.7); /* Un contorno sutil al enfocar */
}

a[type="submit"]:active {
    transform: scale(0.98); /* Ligeramente más pequeño al hacer clic */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra más suave al hacer clic */
}

/* Estilos específicos para el footer */
.main-footer {
    background-color: #333;
    color: #fff;
    padding: 10px 50px;
    font-family: sans-serif;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-content h3 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom:15px;
}

.contact-info-footer p,
.social-media-footer ul,
.quick-links-footer ul {
    margin-bottom: 10px;
}

.social-icons-footer {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.social-icons-footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.social-icons-footer a i {
    margin-right: 5px;
}

.social-icons-footer a:hover {
    color: #9c8608;
    transform: scale(1.1);
}

.quick-links-list-footer {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.quick-links-list-footer li {
    margin-bottom: 5px;
}

.quick-links-list-footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.quick-links-list-footer a:hover {
    color: #9c8608;
    transform: scale(1.05);
}

.footer-bottom-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555555;
    font-size: 0.9em;
}

.footer-bottom-footer a {
    color: #fff;
    text-decoration: underline;
}

.contact-info-footer p {
    text-align: left;
}

/* Media Query para pantallas más grandes (ejemplo: más de 992px de ancho) */
@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        align-items: flex-start;
    }

    .contact-info-footer {
        grid-column: 1 / 2;
        text-align: left;
    }

    .social-media-footer {
        grid-column: 2 / 3;
        text-align: left;
    }

    .quick-links-footer {
        grid-column: 3 / 4;
        text-align: left;
    }

    .social-icons-footer {
        justify-content: flex-start;
    }

    .quick-links-list-footer {
        justify-content: flex-start;
    }
}
