/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  --primary-color: #4a5a9b; /* Un azul/morado corporativo */
  --primary-color-alt: #3c4a8a;
  --title-color: #2c3e50; /* Un azul oscuro, casi negro, para títulos */
  --text-color: #021742; /* Un gris suave para texto */
  --accent-color: #f39c12; /* Un acento naranja/amarillo para CTAs */
  --body-color: #fdfdff;
  --container-color: #ffffff;
  --border-color: #e1e3e9;

  /*========== Font and typography ==========*/
  --body-font: 'Inter', sans-serif;
  --h1-font-size: clamp(2.5rem, 5vw, 3.5rem);
  --h2-font-size: clamp(1.8rem, 4vw, 2.5rem);
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: .875rem;

  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-bold);
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; outline: none; }

/*=============== REUSABLE CSS CLASSES ===============*/
.container { max-width: 1120px; margin-left: 1.5rem; margin-right: 1.5rem; }
.grid { display: grid; gap: 1.5rem; }
.section { padding: 6rem 0 2rem; }
.section__title { font-size: var(--h2-font-size); text-align: center; margin-bottom: 1rem; }
.section__subtitle { text-align: center; margin-bottom: 3rem; color: var(--text-color); max-width: 600px; margin-left: auto; margin-right: auto; }
.section__title--left { text-align: left; }
.section__tag { color: var(--primary-color); font-weight: var(--font-semibold); display: block; margin-bottom: 0.5rem; }

/*=============== HEADER & NAV ===============*/
.header { position: fixed; top: 0; left: 0; width: 100%; background-color: transparent; z-index: var(--z-fixed); transition: background-color 0.4s, box-shadow 0.4s; }
.nav { height: var(--header-height); display: flex; justify-content: space-between; align-items: center; }
.nav__logo { color: white; font-weight: var(--font-bold); font-size: 1.25rem; }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__toggle { color: white; font-size: 1.25rem; cursor: pointer; }
.nav__link { transition: color .3s; font-weight: var(--font-semibold); }
.nav__link:hover { color: var(--primary-color); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown__menu { position: absolute; top: 100%; left: 0; background-color: var(--container-color); list-style: none; padding: .75rem; border-radius: 0.5rem; box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.1); opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.3s; transform: translateY(10px); z-index: var(--z-fixed); }
.dropdown__link { color: var(--title-color); font-size: var(--small-font-size); padding: 0.5rem 1rem; display: block; }
.dropdown__link:hover { color: var(--primary-color); background-color: #f7f7f7; }
.dropdown:hover .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__icon { font-size: 0.75rem; transition: transform 0.3s; display: inline-block; margin-left: .25rem; }
.dropdown:hover .dropdown__icon { transform: rotate(180deg); }

.nav__logo {
    height: 2rem; /* Ajusta el tamaño si es necesario */
    width: auto;
}

/* Nav menu for mobile */
@media screen and (max-width: 767px) {
  .nav__menu { position: fixed; background-color: var(--container-color); top: 0; right: -100%; width: 100%; height: 100%; padding: 6rem 2rem 4rem; transition: right 0.4s; }
  .nav__list { display: flex; flex-direction: column; align-items: center; row-gap: 3rem; }
  .nav__link { color: var(--title-color); }
  .nav__close { position: absolute; top: 1rem; right: 1.25rem; font-size: 1.5rem; color: var(--title-color); cursor: pointer; }
  .dropdown__menu { position: static; background: none; box-shadow: none; padding: 1rem 0 0 0; opacity: 1; visibility: visible; transform: none; border-top: 1px solid var(--border-color); margin-top: 1rem; }
}

.show-menu { right: 0; }

/* Colores para el logo */
.nav__logo--light {
    color: white; /* Para fondos oscuros */
}

.nav__logo--dark {
    color: #333; /* Para fondos claros, ajusta el color si usas otro */
}

/* Colores para el logo */
.nav__logo--light {
    color: white; /* Para fondos oscuros */
}

.nav__logo--dark {
    color: #333; /* Para fondos claros */
}

/* Colores para los enlaces de navegación */
.nav__link--light {
    color: white; /* Para fondos oscuros */
}

.nav__link--dark {
    color: #333; /* Para fondos claros */
} 
/* Header scroll effect */
.scroll-header { background-color: var(--container-color); box-shadow: 0 2px 4px hsla(0, 0%, 15%, .1); }
.scroll-header .nav__logo, .scroll-header .nav__toggle { color: var(--title-color); }
.scroll-header .nav__link { color: var(--text-color); }
.scroll-header .nav__link:hover { color: var(--primary-color); }



/*=============== BUTTONS ===============*/
.button { display: inline-block; border-radius: 0.5rem; font-weight: var(--font-semibold); transition: all 0.3s; }
.button--primary { background-color: var(--primary-color); color: white; padding: 1rem 1.75rem; }
.button--primary:hover { background-color: var(--primary-color-alt); transform: translateY(-2px); }
.button--white { background-color: white; color: var(--primary-color); padding: 1rem 1.75rem; }
.button--white:hover { background-color: #f0f0f0; transform: translateY(-2px); }
.button--lg { padding: 1.25rem 2.5rem; }

/*=============== HERO & PAGE HEADERS ===============*/
.hero { padding: 8rem 0 4rem; background: linear-gradient(rgba(20, 30, 48, 0.7), rgba(36, 59, 85, 0.7)), url(assets/images/hero-background.jpg) no-repeat center center/cover; }
.hero__container { text-align: center; }
.hero__title { color: white; margin-bottom: 1rem; }
.hero__subtitle { color: rgba(255, 255, 255, 0.85); max-width: 600px; margin: 0 auto 2.5rem auto; }

.page-header { padding: 8rem 0 4rem; background-color: var(--primary-color-alt); text-align: center; color: white; }
.page-header h1 { color: white; }
.page-header p { max-width: 600px; margin: 1rem auto 0 auto; opacity: 0.9; }

/*=============== PROGRAMS ===============*/
.programs__container { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.program__card { background: var(--container-color); padding: 2.5rem 2rem; border: 1px solid var(--border-color); border-radius: 1rem; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.program__card:hover { transform: translateY(-8px); box-shadow: 0 8px 24px hsla(228, 66%, 45%, .1); }
.program__icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }
.program__title { font-size: var(--h3-font-size); margin-bottom: 0.5rem; }

/*=============== WHO WE ARE / HISTORY ===============*/
.who-we-are__container, .history__container { grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.who-we-are__image img, .history__image img { border-radius: 1rem; }

/*=============== MISSION & VISION ===============*/
.mision-vision__container { background-color: var(--primary-color); border-radius: 1rem; padding: 4rem 2rem; grid-template-columns: 1fr; gap: 3rem; }
.mision-vision__title { color: white; margin-bottom: 1rem; }
.mision__card p, .vision__card p { color: rgba(255, 255, 255, 0.85); }

/*=============== ALLIANCES ===============*/
.alliance-detail { text-align: center; max-width: 700px; margin: 0 auto 2rem auto; }
.alliance-detail h3 { margin-bottom: .5rem; font-size: 1.5rem;}
.alliances__container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3rem; margin-bottom: 4rem; }
.alliance-logo img { max-height: 60px; filter: grayscale(100%); opacity: 0.7; transition: all 0.3s; }
.alliance-logo img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }


/*=============== JOIN CTA ===============*/
.join { background: linear-gradient(160deg, var(--primary-color), var(--primary-color-alt)); border-radius: 1.5rem; margin: 0 1.5rem; }
.join__container { padding: 4rem 2rem; }
.join__content { color: white; text-align: center; }
.join__title { color: white; font-size: var(--h2-font-size); }
.join__description { margin: 1rem auto 2rem auto; max-width: 500px; opacity: 0.9; }

/*=============== FOOTER ===============*/
.footer { background-color: #f8f9fa; padding: 5rem 0 2rem; }
.footer__container { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.footer__logo { font-size: 1.25rem; font-weight: var(--font-bold); color: var(--title-color); margin-bottom: 0.5rem; display: block; }
.footer__title { font-size: var(--h3-font-size); margin-bottom: 1rem; }
.footer__social-link { font-size: 1.25rem; }
.footer__copy { text-align: center; margin-top: 5rem; font-size: var(--small-font-size); color: var(--text-color); }

/*=============== SCROLL-ON-ANIMATE ===============*/
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/*=============== MEDIA QUERIES ===============*/
@media screen and (min-width: 768px) {
  .nav__list { display: flex; align-items: center; gap: 2rem; }
  .nav__item { display: block; }
  .nav__toggle, .nav__close { display: none; }
  .who-we-are__container, .history__container { grid-template-columns: 1fr 1fr; }
  .history__container { direction: rtl; }
  .history__container > * { direction: ltr; }
  .mision-vision__container { grid-template-columns: 1fr 1fr; padding: 5rem 4rem; }
}

@media screen and (min-width: 1024px) {
  .container { margin-left: auto; margin-right: auto; }
}

.header {
    position: relative;
    width: 100%;
    height: 13vh; /* Ajusta la altura según tus necesidades */
    background-image: url('images/au.jpg'); /* Reemplaza con la ruta correcta de tu imagen */
    background-size: cover; /* Hace que la imagen cubra toda la sección */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    background-color: transparent; /* Elimina cualquier color de fondo */
}

/* Asegura que el contenido sea visible sobre la imagen */
.header .nav__logo,
.header .nav__list {
    position: relative;
    color: white; /* Ajusta el color del texto para que sea legible sobre la imagen */
}