/* Estilo inicial del body para la animación de fade-in */
body {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Clase para mostrar el body después de la carga */
body.loaded {
    opacity: 1;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header .nav-link {
    font-size: 0.8rem;
    color: #6c757d;
}

header .nav-link:hover {
    color: #333;
}

header .nav-item i {
    font-size: 1rem;
    color: #6c757d;
}

header .nav-item i:hover {
    color: #333;
}

header .nav-link.d-inline {
    display: inline;
    padding: 0 5px;
    color: #007bff;
}

header .nav-link.d-inline:hover {
    color: #0056b3;
}

header .logo img {
    height: 50px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.nav.flex-grow-1 {
    justify-content: center;
}

.social-media-icons {
    display: flex;
    align-items: center;
}

.social-media-icons a {
    font-size: 1.1rem;
    color: #6c757d;
    margin-left: 1px;
}

.social-media-icons a:hover {
    color: #333;
}

#carouselExampleCaptions .carousel-item {
    max-height: 600px;
    overflow: hidden;
}

#carouselExampleCaptions .hero-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

#carouselExampleCaptions .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.carousel-item {
    max-height: 600px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.about-item h2 {
    color: #004080;
}

.about-item p {
    color: #333;
}

.projects .project-item img {
    border-radius: 10px;
}

footer .social-media a {
    margin: 0 10px;
}

footer .social-media img {
    height: 30px;
}

.sustainability-item {
    padding: 20px;
    border-radius: 10px;
    color: #fff;
}

.sustainability-primary {
    background-color: #004080;
}

.sustainability-warning {
    background-color: #ff6600;
    color: #fff;
}

.sustainability-light {
    background-color: #f8f9fa;
    color: #333;
}

.sustainability-item h3 {
    color: #fff;
    position: relative;
}

.sustainability-light h3 {
    color: #000;
    position: relative;
}

.sustainability-item p {
    color: #fff;
    position: relative;
}

.sustainability-light p {
    color: #000;
    position: relative;
}

.sustainability-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

.about h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.milestones h2 {
    text-align: center;
    margin-bottom: 40px;
}

.carousel-item img {
    max-height: 400px;
    object-fit: cover;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: bold;
}

.carousel-caption p {
    font-size: 1rem;
}

.history h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.history p {
    font-size: 1.1rem;
}

.pilares-relevantes h2 {
    text-align: center;
    margin-bottom: 40px;
}

.pilares-relevantes .card {
    background-color: #fff;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.pilares-relevantes .card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #004080;
}

.pilares-relevantes .card-text {
    font-size: 1rem;
}

.executive-committee .executive-box {
    background-color: #004080;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    text-align: center;
}

.executive-committee h2 {
    text-align: center;
    margin-bottom: 40px;
}

.executive-committee img {
    max-height: 240px;
    object-fit: cover;
    width: 100%;
}

.executive-committee h5 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
}

.executive-committee p {
    font-size: 1rem;
    color: #333;
}

.executive-committee .executive-image-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: 100%;
}

.executive-committee .executive-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 10px;
    display: none;
}

.executive-committee .executive-image-container:hover .executive-name {
    display: block;
}
/* Estilo general para los enlaces de "Volver" */
a.btn-link {
    color: #ff6600; /* Color naranja */
    text-decoration: none;
    margin-bottom: 20px;
}

a.btn-link:hover {
    text-decoration: underline;
}

/* Estilos para la sección "Contacto de Prensa" */
.contact-press {
    padding: 50px 0;
}

.contact-press .btn-link {
    display: inline-block;
    color: #ff6600;
    text-decoration: none;
    margin-bottom: 20px;
}

.contact-press .btn-link:hover {
    text-decoration: underline;
}

.contact-press h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-press p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-press .fas.fa-newspaper {
    font-size: 7rem;
    color: #ff6600;
}

.contact-press strong {
    font-size: 1.2rem;
}


/* Estilos para las cards de los proyectos y tecnologías */
.project-card {
    margin-bottom: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.project-card img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.project-card .card-body {
    padding: 20px;
}

.project-card .card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-card .card-body p {
    margin-bottom: 0.5rem;
}

.project-card .btn-warning {
    background-color: #ff6600;
    border: none;
}

.project-card .btn-warning:hover {
    background-color: #e65c00;
}
/* Ajustar imagen del mapa */
.projects .mapa-img {
    max-width: 100%;
    max-height: 1000px;
    margin: 0 auto;
    display: block;
}

.projects .section-title {
    margin-top: 100px; /* Ajusta el valor según sea necesario para que el texto no quede cubierto */
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-align: center;
}
