/* Paleta de colores */

/*  
msu-green: #154734
philiphine-green: #007848
tiger's-eye: #E99A3C
mint-cream: #F6FFFE
eeire-black: #1A1C1C
 */

* {
  /* outline: 1px solid rgb(208, 223, 8); */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Cuerpo de la pagina */
body {
  font-family: Comfortaa, Verdana;
  background-size: cover;
  overflow-x: hidden; /* Oculta el desplazamiento horizontal */
}

.root {
  --msu-green: #154734;
  --philiphine-green: #007848;
  --tigers-eye: #e99a3c;
  --mint-cream: #f6fffe;
  --eeire-black: #1a1c1c;
}

/* SCROLLBAR - diseñar mas adelante */

/* ------------------------------------------------------------------------------------ */

/* CONTENIDO - SECTIONS */
.wrapper,
.content {
  position: relative;
  width: 100%;
  z-index: 1;
}

.content .section {
  width: 100%;
  height: auto; /* Alto automatico dependiendo del contenido de cada section */
}

.section {
  scroll-margin-top: 90px; /* Espacio de margen del scroll con respecto al header */
}

.inicio {
  background-color: var(--philiphine-green);
  width: 100%;
  height: 100vh;
}

.content-inicio {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  top: 0 !important;
  z-index: 1;
  align-items: flex-start;
  justify-content: space-between;
}

.content-inicio::before {
  /* Mitad izquierda */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background-color: #007848; /* lado izquierdo */
  z-index: -1;
}

.content-inicio::after {
  /* Mitad derecha */
  content: "";
  position: absolute;
  top: 0;
  right: 0 !important;
  width: 40%;
  height: 100%;
  background-color: #154734; /* lado derecho */
  z-index: -1;
}

/* ------------------------------------------------------------------------------------ */

/* Header - Navbar */
header {
  background: transparent;
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 0;
  left: 0 !important;
  right: 0 !important;
  z-index: 10;
}

header.scroll {
  background-color: #154734;
  box-shadow: 0 2px 4px rgb(0 0 0 / 70%);
}

.logo {
  margin-top: 10px;
  fill: #e99a3c;
}

.menu {
  justify-items: center;
  display: flex;
}

.menu a {
  clear: right;
  text-decoration: none;
  margin-left: 20px;
  line-height: 30px;
  letter-spacing: 0.9px;
  transition: all 250ms ease;
}

/* ------------------------------------------------------------------------------------ */
.botones-login {
  position: absolute;
  display: flex;
  gap: 20px;
  margin: 0.15rem 2rem 0 0; /* Top-right-bottom-left */
  place-items: center center;
  right: 0;
}

/* Boton inicia sesion */
.btn-iniciar-sesion {
  cursor: pointer;
  padding: 0.9em 1.4em;
  font-family: Comfortaa;
  color: #1a1c1c;
  background-image:
    linear-gradient(325deg, #e99a3c 0%, #f8c78c 55%, #e99a3c 90%),
    linear-gradient(45deg, #e99a3c, #fff);
  border: 2px solid transparent;
  border-radius: 14px;
  box-shadow:
    0 0 20px #e99a3c80,
    0 5px 5px -1px #c8782840,
    inset 4px 4px 8px #ffd2aa80,
    inset -4px -4px 8px #b4641459;
}

.btn-iniciar-sesion:hover {
  box-shadow:
    0 0 20px #e99a3c80,
    0 20px 30px -6px rgb(233 154 60 / 50%),
    inset 4px 4px 8px #ffd2aa80,
    inset -4px -4px 8px #b4641459;
}

/* Boton de registro */
.btn-registrar {
  cursor: pointer;
  padding: 0.9em 1.4em;
  font-family: Comfortaa;
  color: #f6fffe;
  background-image:
    linear-gradient(325deg, #154734 0%, #007848 55%, #154734 90%),
    linear-gradient(45deg, #007848, #fff);
  border: 2px solid transparent;
  border-radius: 16px;
  box-shadow:
    0 0 20px #00784880,
    0 5px 5px -1px #113b2b40,
    inset 4px 4px 8px #0078485e,
    inset -4px -4px 8px #15473459;
}

/* ------------------------------------------------------------------------------------ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  right: 0;
  left: 0;
}

/* Navbar links-menu */
.navbar-links {
  display: flex; /* Visible por defecto en pantallas grandes */
  align-items: center;
  gap: 20px;
  padding: 0;
  color: #f6fffe;
}

.navbar-links a {
  position: relative;
  text-decoration: none;
  color: inherit;
}

.navbar-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #e99a3c;
  transition: width 0.3s ease;
}

/* Animación al pasar el cursor */
.navbar-links a:hover::after {
  width: 100%; /* Expande el subrayado a todo el ancho del enlace */
}

.navbar-links a.active-link::after {
  width: 100%;
}

/* Estilos del botón toggle (Ocultado por defecto en pantallas grandes) */
.navbar-toggler {
  position: absolute;
  gap: 10px;
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  left: 4rem;
  justify-content: center;
  margin: 1.5rem 2rem 0 0; /* Top-right-bottom-left */
}

/* ------------------------------------------------------------------------------------ */

/* FOOTER */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #e99a3c;
  color: #1a1c1c;
  font-family: Comfortaa, verdana;
  right: 0;
  left: 0;
}

.logo-container {
  align-self: flex-start;
}

.logoarea {
  width: 70%;
  text-align: left;
}

.afiliados,
.area {
  width: 30%;
}

.logoFooter {
  margin: 0 auto;
  margin-bottom: 1vw;
  display: block;
}

.nosotros {
  padding: 6px;
  font-size: 1.1em;
  line-height: 1.5;
}

/* Línea divisoria (horizontal en computadora) */
.lineafooter {
  width: 90%;
  height: 3px;
  background-color: #1a1c1c; /* Color de la línea */
  margin: 6px 20px -15px; /* Top-right-bottom-left */
}

.ListFooter {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: flex-start;
  margin: 20px 0 10px; /* Top-right-bottom-left */
  padding: 0 20px;
  gap: 4rem;
}

.ListFooter ul {
  list-style: none;
  padding: 0;
}

.ListFooter h2 {
  font-size: 1.2em;
}

.ListFooter li {
  margin-bottom: 2vw;
}

.area-copy {
  padding: 25px 25px 30px; /* Top-right-bottom-left */
  width: 100%;
  display: flex;
  flex-direction: column;
  color: #1a1c1c;
}

.copyFooter {
  text-align: center;
  font-size: 0.9em;
  margin-top: 10px;
}

/* Navbar Responsivo */
@media (width <= 660px) {
  /* Ocultar enlaces inicialmente en modo responsivo */
  header {
    background: #154734;
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    border-radius: 0 0 5px 5px;
    padding: 10px 0;
    gap: 10px;
    background-color: #154734;
    z-index: 100;
  }

  .navbar-toggler {
    display: block;
    margin-left: 5px;
    color: #f6fffe;
  }

  /* Estilo del menú activado */
  .navbar-links.active {
    display: flex;
  }

  .menu {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .botones-login {
    position: static;
    flex-direction: column;
    gap: 10px;
    margin: 1rem 0;
    align-items: center;
    width: 100%;
  }
}

/* Footer */
@media (width <= 768px) {
  footer {
    left: 0;
    right: 0 !important;
  }

  .ListFooter {
    flex-direction: column;
    gap: 2rem;
  }

  .logoarea,
  .afiliados {
    width: 100%;
    text-align: center;
  }

  .logo-container {
    align-self: center;
  }
}
