body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 70px;
    box-sizing: border-box;
    background-color: #F5F5F5;
    color: #333;
    width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Altura del header */
}

header {
    background: #0e72a3;
    color: #ede7e7;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    width: 100%;
}

.brand {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-family: "Orbitron", sans-serif;
}

.subtitle {
    font-size: 0.7rem;
    color: #ffffff;
    opacity: 0.7;
    margin-top: 0;
    margin-bottom: 0;
    font-family: "Orbitron", sans-serif;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
}

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    color: #2F2D2D;
    text-decoration: none;
    font-size: 1rem;
}

.navbar-light .navbar-nav .nav-link {
    color: #ede7e7;
}

.navbar-light .navbar-toggler {
    color: rgba(0, 0, 0, .5);
    border-color: rgba(0, 0, 0, 0);
}

main {
    margin-top: 80px;
    width: 100%;
    max-width: 100%;
}

#hero {
    color: #ffffff;
    padding: 0px 0px 0px;
    text-align: center;
    background-image: url('images/img_ppal.jpg');
    background-size: cover;  /* Asegura que la imagen cubra toda la sección */
    background-attachment: fixed;  /* Hace que la imagen se mantenga fija */
    background-position: center;  /* Centra la imagen */
    background-repeat: no-repeat;  /* Evita que la imagen se repita */
    margin-top: -70px;

}

.overlay {
    padding: 256px 0px 176px;
    background-color: rgba(0, 0, 0, 0.5); /* Negro con 50% de transparencia */
    
} 

#hero .container {
    max-width: 800px;
    margin: 0 auto;
}

#hero h2 {
    margin: 0 0 1rem;
    font-size: 2.5rem;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #0e72a3;
    color: #fff;
    text-decoration: none;
    border-radius: 78px;
    transition: background 0.3s;
}

.navbar {
    padding: 0rem;
}

.btn:hover {
    background: #14304e;
    color: #fff;
}

section {
    padding-top: 26px; /* Ajusta este valor según la altura de tu navbar */
    /* margin-top: -70px; */
    /* padding: 1rem 1rem; */
    width: 100%;
    max-width: 100%;
}

h2.section-title {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 0rem;
    font-size: 2rem;
    position: relative;
}

#contact-form {
    margin-bottom: 10rem;
}

.img_s h2 {
    margin-bottom: 2rem;
}

.img_s {
    padding-bottom: 80px;
    padding-top: 80px;
}

/* #features .container-fluid, #contact .container-fluid, #stats-section .container-fluid, #nordic .container-fluid, #testimonios .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    
} */

.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

#features {
    color: #ede7e7;
    background-color: #0e72a3;
    padding-bottom: 2rem;
    font-size: large;
}

.feature h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

form label {
    margin: 0.5rem 0 0.2rem;
    text-align: left;
    display: block;
}

form input, form textarea {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

.text-center {
    text-align: center;
}

#about p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.whatsapp-contact {
    margin-top: 20px;
}

.whatsapp-contact a {
    text-decoration: none;
    color: #0e72a3;
    font-size: 1.2em;
    display: inline-flex;
    align-items: center;
}

.whatsapp-contact i {
    margin-right: 8px;
    font-size: 1.5em;
}

#black{
    background: #2D3446;
}

.bg-light {
    background-color: #0e72a3 !important;
}

.btn-custom {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #e2edfa;
    color: #212529;
    text-decoration: none;
    border-radius: 0px;
    transition: background 0.3s;
}

.btn-custom:hover {
    background: #d4dae0;
}

#black {
    background: #2D3446;
}

#stats-section {
    background-color: #e8eef1;
    padding-top: 160px;
    padding-bottom: 80px;
}

.item-left {
    grid-column: 1 / 5;
    grid-row: 1 / 9;
    background-color: #e8eef1;
    padding: 16px;
}

#grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 0px;
}

.item-middle-top {
    grid-column: 5 / 9;
    grid-row: 1 / 5;
    background-color: #6C757D;
    color: white;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.item-right-top {
    grid-column: 9 / 13;
    grid-row: 1 / 5;
    background-color: #000;
    color: white;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.item-bottom {
    grid-column: 5 / 13;
    grid-row: 5 / 9;
    background-color: #0E72A3;
    color: white;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.display-3-fs {
    font-size: 2.5rem;
}

.lead {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

img {
    width: 100%; /* Ajusta el tamaño en mobile */
    margin: 0 auto; /* Centra horizontalmente */
    display: block; /* Asegura que no flote */
}

#logros {
    padding-top: 0px;
}

#logros h2 {
    text-align: center;
    background-color: #6C757D;
    color: #e2edfa;
    padding-top: 20px;
    padding-bottom: 20px;
    
}

#logros h3 {
    padding-top: 30px;
}

#logros p, li {
    font-size: 0.9rem;
}

#logros li {
    padding-bottom: 10px;
}

.styled-link {
    display: inline-flex;       /* Alinea el ícono y el texto */
    align-items: center;        /* Centra verticalmente */
    font-size: 15px;            /* Ajusta el tamaño del texto */
    color: #0E72A3;             /* Color del texto */
    text-decoration: none;      /* Sin subrayado */
    padding: 5px 10px;          /* Esquinas redondeadas */
    transition: all 0.3s ease;  /* Transición para hover */
}

.styled-link i {
    margin-right: 5px; /* Espacio entre el ícono y el texto */
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
    text-decoration: none;
    color: white;
    font-size: 24px;
    z-index:9999
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.05);
}

.card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #313233;
}

.card-text {
    font-size: 1em;
    color: #555;
}


@media (max-width: 768px) {
    .navbar {
        margin-left: 20px;
        margin-right: 20px;
    }

    .brand {
        font-size: 1rem;
    }

    .overlay {
        padding: 80px 0;
    }

    #hero h2 {
        font-size: 1.8rem;
    }

    #hero p {
        font-size: 1rem;
    }

    #grid {
        grid-template-columns: 1fr 1fr; /* 2 columnas en mobile */
        grid-template-rows: auto;
    }

    .item-left {
        grid-column: 1 / 3; /* Ocupa todo el ancho */
        grid-row: 1 / 3;
        order: 1; /* Se muestra primero */
        text-align: center;
        background-color: #e8eef1;
        padding-bottom: 260px
    }

    .item-middle-top {
        grid-column: 1 / 2; /* Ocupa la mitad izquierda */
        grid-row: 2 / 3;
        order: 2;
        margin-bottom: 0px;
    }

    .item-right-top {
        grid-column: 2 / 3; /* Ocupa la mitad derecha */
        grid-row: 2 / 3;
        order: 3;
        margin-bottom: 0px;
    }

    .item-bottom {
        grid-column: 1 / 3; /* Ocupa todo el ancho */
        grid-row: 3 / 4;
        order: 4;
    }

    #hero {
        background-attachment: scroll; /* Corrige problemas en mobile */
        min-height: 60vh; /* Asegura que el contenedor ocupe toda la pantalla */
        background-size: cover; /* Mantiene la proporción sin recortar */
        background-image: url('images/Back_Mobile.jpg'); /* Cambia la imagen para mobile */
        background-attachment: scroll; /* Opcional: Cambia a scroll para mejor rendimiento en mobile */
    }

    .overlay {
        padding: 0; /* Elimina el padding para móviles */
        height: 92vh; /* Asegura que ocupe toda la altura de la ventana */
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centra el contenido verticalmente */
        align-items: center; /* Centra el contenido horizontalmente */
    }

    html {
        scroll-padding-top: 200px; /* Altura del header */
    }
}
