@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

:root {
  --color-green: #006341;
  --color-red: #ce1126;
  --color-white: #ffffff;
  --color-gray: #333;
  --header-padding: 10px 20px;
  --header-margin-top: 80px;
  --btn-hover: #004c31;
  --font-family: 'Montserrat', sans-serif;
}

/* Reset básico */
body {
  margin: 0;
  font-family: var(--font-family);
}

/* Estructura y estilos del header */
.header {
  background: var(--color-white);
  border-bottom: 5px solid var(--color-green);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--header-padding);
  position: relative;
  margin-top: var(--header-margin-top);
}

/* Logo */
.header__logo {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--color-green);
}

/* Navegación */
.header__nav {
  flex-grow: 1;
  margin-left: 40px;
}

.header__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.header__menu-item {
  position: relative;
  margin-left: 25px;
}

/* Enlaces del menú (botones en caja) */
.header__menu-link {
  display: inline-block;
  text-decoration: none;
  color: var(--color-gray);
  font-size: 1em;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.header__menu-link:hover {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}

/* Submenús */
.header__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  padding: 0;
  list-style: none;
  min-width: 150px;
  z-index: 100;
}

.header__menu-item:hover > .header__submenu {
  display: block;
}

.header__submenu-item {
  margin: 0;
}

/* Enlaces del submenú con efecto de caja */
.header__submenu-link {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: var(--color-gray);
  border: 1px solid transparent;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.header__submenu-link:hover {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}

/* Botón Ingresar - Efecto espectacular */
.header__btn {
  background: linear-gradient(45deg, var(--color-green), var(--btn-hover));
  border: none;
  color: var(--color-white);
  padding: 12px 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  margin-left: 15px;
  text-decoration: none;
}

.header__btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.header__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2);
}

.header__btn:hover::before {
  width: 200%;
  height: 500%;
}
