*::before,
*::after {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
:root {
  --white: #ffffff;
  --black: #000000;
  --gray-100: #aaaa9f;
  --gray-200: #e0e0e0;
  --fondo-bloque: #e3e2da;
  /*--fondo: #002532;*/
  --fondo: #00161e;
  --azul-amazonnico: #004254;
}
body {
  font-family: "ForFutureSans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.56;
  margin: 0;
  text-decoration: none;
  text-transform: none;
  color: var(--fondo);
  text-rendering: optimizeSpeed;
  background-color: var(--fondo);
}
.menu--main .dropdown-menu {
  display: none !important;
  position: absolute;
  z-index: 1000;
  list-style: none;
  padding: 0;
  margin: 0;
  width: auto;
  padding: 60px 14px 20px 14px;
  background-color: var(--fondo-bloque);
}
.menu--main .dropdown-menu::before {
}
.menu--main .dropdown-menu li:last-child a {
  border: none !important;
  padding: 0 !important;
}
.menu--main .dropdown-menu li a {
  padding: 6px 0px !important;
}
.menu--main .dropdown:hover > .dropdown-menu {
  display: block !important;
}
h1 {
  font-size: 96px;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 120%;
}
h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 120%;
  margin: 0 0 20px 0;
}
h3 {
  font-size: 36px;
  line-height: 120%;
  margin: 0 0 20px 0;
}
h4 {
  margin: 0 0 20px 0;
}
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  position: relative;
}
img {
  max-width: 100%;
  display: inline-block;
}
a.site-logo {
  display: flex;
}
a.site-logo img {
  width: 150px;
}
header {
  position: fixed;
  top: 20px;
  z-index: 1;
  width: 100%;
}
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  z-index: 2; /* encima del fondo */
}
.header__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--fondo-bloque);
  clip-path: polygon(
    15px 0,
    /* esquina superior izquierda */ calc(100% - 15px) 0,
    /* parte superior */ 100% 15px,
    /* esquina superior derecha */ 100% calc(100% - 15px),
    /* lateral derecho */ calc(100% - 15px) 100%,
    /* esquina inferior derecha */ 15px 100%,
    /* parte inferior */ 0 calc(100% - 15px),
    /* esquina inferior izquierda */ 0 15px /* lateral izquierdo */
  );
  z-index: -1; /* detrás del contenido */
}
.region-header {
  display: flex;
  align-items: center;

  width: 100%;
}
#block-hackaton-main-menu ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 60px;
}
#block-hackaton-main-menu ul li a {
  text-decoration: none;
  color: var(--fondo);
  font-size: 20px;
  font-weight: 500;
}
footer #block-hackaton-contactenos img {
  height: auto;
}
#block-hackaton-main-menu ul > li:last-child > a {
  border: solid 1px var(--fondo);
  padding: 5px 10px;
  border-radius: 10px;
}
#block-hackaton-main-menu ul > li.expanded:last-child > a {
  border: none !important;
}
/*Hamburguer*/

/* Estilos básicos para el botón */
.hamburger-menu {
  display: none; /* Por defecto, oculto. Lo mostraremos solo en móviles */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 15px;
  position: relative;
}

.hamburger-menu span {
  background: #000; /* Color de las rallitas */
  display: block;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Estilos cuando se activa el menú */
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.hamburger-menu span {
  transition: all 0.4s ease; /* 0.4 segundos de transición */
}

/* Añade transiciones para el cambio de hamburguesa a "X" */
.hamburger-menu.active span:nth-child(1) {
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.hamburger-menu.active span:nth-child(2) {
  transition: opacity 0.4s ease;
}

.hamburger-menu.active span:nth-child(3) {
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.hamburger-menu.active + #block-hackaton-main-menu ul {
  display: block;
}
.path-user #block-hackaton-content {
  margin-bottom: 4rem;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 14px 12px;
  box-sizing: border-box;
  border: solid 1px #cdcdcd;
  border-radius: 8px;
  margin-bottom: 20px;
}
label,
legend {
  font-weight: normal;
  margin-bottom: 6px;
  display: block;
  font-size: 14px;
  color: var(--white);
}
input[type="submit"] {
  display: block;
  padding: 14px 12px;
  background-color: var(--azul-amazonnico);
  color: #fff;
  border-radius: 4px;
  border: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
#user-login-form {
  width: 600px;
  display: block;
  margin: 0 auto;
}
.path-user .main-container {
  margin-top: 10rem;
}
.path-user .main-container h1 {
  color: var(--white);
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

.tabs {
  display: flex;
  justify-content: space-between;
}

.tab-title {
  display: block;
  width: 100%;

  line-height: 100%;
  padding: 40px;
  background-color: var(--gray-100);
  clip-path: polygon(
    15px 0,
    /* esquina superior izquierda */ calc(100% - 15px) 0,
    /* parte superior */ 100% 15px,
    /* esquina superior derecha */ 100% calc(100% - 15px),
    /* lateral derecho */ calc(100% - 15px) 100%,
    /* esquina inferior derecha */ 15px 100%,
    /* parte inferior */ 0 calc(100% - 15px),
    /* esquina inferior izquierda */ 0 15px /* lateral izquierdo */
  );
  cursor: pointer;
}

.tab-title.active {
  cursor: pointer;
  line-height: 100%;
  padding: 40px;
  background-color: var(--fondo-bloque);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

@media screen and (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }
  #block-hackaton-main-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }

  #block-hackaton-main-menu {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    overflow: hidden;
    z-index: 1001;
  }

  #block-hackaton-main-menu ul {
    margin: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    clip-path: polygon(
      15px 0,
      /* esquina superior izquierda */ calc(100% - 15px) 0,
      /* parte superior */ 100% 15px,
      /* esquina superior derecha */ 100% calc(100% - 15px),
      /* lateral derecho */ calc(100% - 15px) 100%,
      /* esquina inferior derecha */ 15px 100%,
      /* parte inferior */ 0 calc(100% - 15px),
      /* esquina inferior izquierda */ 0 15px /* lateral izquierdo */
    );
    background-color: var(--fondo-bloque);
    gap: 30px;
  }
  .footer__bottom {
    display: block !important;
    margin: 20px;
  }
  .contenedor {
    display: block !important;
  }
  .paragraph--type--panel .field--name-field-referencia-a-parrafo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 20px;
  }
  .paragraph--type--texto-con-fondo .cajas__global {
    margin: 20px;
  }
  .section-3 {
    grid-template-columns: 1fr !important;
  }
  .paragraph--type--texto {
    margin: 20px;
  }
  .section-1 {
    grid-template-columns: 1fr !important;
  }
  .portada__global {
    position: relative;
    width: 100%;
    height: auto !important;
    overflow: hidden;
  }
  .galeria__contenido .container,
  .portada__contenido .container {
    padding: 20px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 28px !important;
  }
  .galeria__contenido p {
    font-size: 20px;
    width: 100% !important;
  }
  .header__inner {
    margin: 0 20px;
  }
  .region-footer {
    width: 100%;
    color: var(--white);
    margin-top: 30px;
  }
  .paragraph--type--panel,
  .paragraph--type--texto,
  .paragraph--type--texto-con-fondo {
    padding: 1rem 0 !important;
  }
  h2.subtitulo {
    color: var(--white);
    margin: 0 20px;
  }
  .portada__contenido {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: left;
    text-align: left;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    padding-top: 10rem;
    box-sizing: border-box;
  }
  .tab-title h2 {
    font-size: 20px !important;
  }
  .menu--main .dropdown-menu {
    display: block !important;
    position: relative;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    padding: 0 !important;
    background-color: transparent;
    text-align: right;
    width: 100%;
    clip-path: none !important;
  }
}
