/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(220, 24%, 12%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  line-height: 1.5;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
}


ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

ol {
  margin-left: 50px;
  line-height: 2.0;
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 100%;
  margin-inline: 1.5rem;
  /*Divide el contenido en Columnas para ajustarse ala pantalla */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}

.nav__logo img {
  width: 25%;
}

.nav__logo,
.nav__burger,
.nav__close {
  color: black;
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-semi-bold);
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger,
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }

  .nav__menu::-webkit-scrollbar {
    width: 0;
  }

  .nav__list {
    background-color: white;
    padding-top: 1rem;
  }
}

.nav__link {
  color: black;
  background-color: white;
  font-weight: 800;
  width: 80px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
}

.nav__link:hover {
  color: red;
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}

.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
  color: black;
}

.dropdown__arrow:hover {
  color: red;
}

.dropdown__link,
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: black;
  background-color: white;
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}

.dropdown__link i,
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover,
.dropdown__sublink:hover {
  color: white;
  background-color: #023E8A;
}

.dropdown__menu,
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
  background-color: white;
}

/* Show dropdown menu & submenu */
.dropdown__item:hover .dropdown__menu,
.dropdown__subitem:hover>.dropdown__submenu {
  max-height: 1000px;
  transition: max-height .4s ease-in;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--black-color-lighten);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }

  .nav__toggle {
    display: none;
  }

  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }

  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }

  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item,
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu,
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }

  .dropdown__link,
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
  }

  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top .3s;
  }

  /* Show dropdown submenu */
  .dropdown__subitem:hover>.dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top .3s;
  }
}

/* ----------------- CONTENIDO --------------- */
.hero-section {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  padding-top: 650px;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
}

.hero-content h1 {
  font-size: 48px;
  margin: 0;
}

.hero-content p {
  font-size: 24px;
  margin-top: 10px;
}

.hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(2, 62, 138, 0.3), rgba(2, 62, 138, 0.7));
  z-index: 1;
}

.hero-section::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: url('assets/imagen/invu-img-1.webp') no-repeat center center;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.section {
  padding-top: 80px;
  padding-bottom: 50px;
  padding-right: 30px;
  padding-left: 30px;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 36px;
  margin-bottom: 20px;
}

.section-text {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 20px auto;
}

.section-image {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  margin: 20px 0;
}

.section-image-1 {
  background-image: url('assets/imagen/invu-img-2.webp');
  height: 400px;
  box-shadow: rgba(2, 62, 138, 0.664) 0px 5px,
    rgba(2, 62, 138, 0.384) 0px 10px,
    rgba(2, 62, 138, 0.205) 0px 15px,
    rgba(2, 62, 138, 0.164) 0px 20px,
    rgba(2, 62, 138, 0.178) 0px 25px;
}

.section-image-2 {
  background-image: url('assets/imagen/invu-img-3.webp');
  box-shadow: rgba(2, 62, 138, 0.466) 0px 30px 90px;
}

.section-image-3 {
  background-image: url('assets/imagen/invu-img-4.jpg');
  box-shadow: rgba(2, 62, 138, 0.466) 0px 30px 90px;
}

.flex-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.flex-item {
  flex: 1;
  padding: 10px;
}

.right {
  margin-left: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-text {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .flex-container {
    flex-direction: column;
    display: block;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-text {
    font-size: 14px;
  }

  .section-image {
    height: 250px;
  }

  /* Ajustes para que las imágenes .section-image-2 y .section-image-3 se vean en pantallas pequeñas */
  .section-image-2,
  .section-image-3 {
    background-size: contain;
    /* Asegura que la imagen sea completamente visible */
    height: 200px;
    /* Ajusta la altura en pantallas pequeñas */
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-text {
    font-size: 12px;
  }

  .section-image {
    height: 200px;
  }

  .section-image-2,
  .section-image-3 {
    background-size: contain;
    height: 180px;
  }
}

/* FOOTER */
footer {
  width: 100%;
  background-color: #023E8A;
  color: white;
  padding: 50px 40px;
  text-align: center;
}

.footer {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

footer {
  flex: 1;
  min-width: 200px;
}

footer h2 {
  border-bottom: 2px solid white;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.social-media {
  margin-top: 20px;
}

footer ul {
  list-style: none;
  padding: 0;
  padding-bottom: 20px;
}

.footer-section ul li {
  margin: 5px 0;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-year {
  margin-top: 30px;
}

/* Estilos para móviles  */
@media (max-width: 600px) {
  .container {
    flex-direction: column;
  }
}

/* Estilos para tabletas */
@media (min-width: 601px) and (max-width: 1024px) {
  .container {
    flex-direction: row;
    padding: 10px;
  }
}