/* DECLARACIONES GLOBALES */

/* Los colores están definidos como variables */

:root {
  --rosa: #f00078;
  --fondo: #1f1e1c;
  --texto: #ffffff;
  --padding-mobile: 10px;
  --padding-desktop: 20px;
  --margin-mobile: 10px;
  --margin-desktop: 40px;
  --border-radius-mobile: 10px;
  --border-radius-desktop: 20px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
  text-wrap: pretty;
  cursor: none;
}

html {
  scroll-behavior: smooth;
}

/* Creo el cursor personalizado */

.custom-cursor {
  width: 40px;
  height: 40px;
  background-color: var(--rosa);
  border-radius: 50%;
  filter: blur(5px);
  mix-blend-mode: difference;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
  will-change: transform, filter;
}

/* Ocultar cursor por defecto en elementos interactivos */
button {
  cursor: none;
  position: relative;
}

/* Área extendida invisible para el cursor */
button::before {
  content: '';
  position: absolute;
  top: -5px;
  right: -5px;
  bottom: -5px;
  left: -5px;
  cursor: none;
}

a, .boton-menu, .boton-menu-sticky {
  cursor: none;
}

/* Mantener cursor oculto durante hover */
a:hover, button:hover, .boton-menu:hover, .boton-menu-sticky:hover {
  cursor: none;
}

/* Media query para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
  * {
    cursor: auto !important;
  }

  .custom-cursor {
    display: none !important;
  }
}

/* Estilo del body */

body {
  background-color: var(--fondo);
  color: var(--texto);
  font-family: "DM Sans", sans-serif;
  font-weight: 200;
  font-style: normal;
  line-height: 1;
  font-size: 1rem;
  padding: var(--padding-mobile);

  overflow-x: hidden;
  height: 100%;
  width: 100%;
  position: relative;
}

@media screen and (min-width: 768px) {
  body {
    font-size: 1.5rem;
    padding: var(--padding-desktop);
  }
}

/* Color de selección */

::selection {
  color: var(--fondo);
  background-color: var(--rosa);
}

/* ESTILOS DE LOS ELEMENTOS */

/* Estilos de los encabezados */

h1 {
  font-weight: 200;
  text-align: center;
  font-size: clamp(10vw, 15vw, 15vw);
  line-height: 0.8;
}

h2 {
  font-weight: 200;
  letter-spacing: 0.2rem;
  font-size: 1rem;
}

@media screen and (min-width: 768px) {
  h2 {
    font-size: 2rem;
  }
}

.titulo-seccion {
  font-weight: 400;
  font-size: 1.5rem;
  padding-bottom: calc(var(--padding-mobile) / 2);
}

@media screen and (min-width: 768px) {
  .titulo-seccion {
    font-size: 2rem;
    padding-bottom: calc(var(--padding-desktop) / 2);
  }
}

/* Estilos de los cuerpos de texto */

.line-break {
  padding-top: calc(var(--padding-mobile) / 1);
}

@media screen and (min-width: 768px) {
  .line-break {
    padding-top: calc(var(--padding-desktop) / 1);
  }
}

.rosa {
  color: var(--rosa);
  font-weight: 400;
}

.bold {
  font-weight: 400;
}

a {
  text-decoration: none;
  color: var(--texto);
}

.enlace {
  color: var(--rosa);
  font-weight: bold;
}

.enlace:hover {
  text-decoration: underline;
}

.descripcion {
  font-size: 2rem;
}

@media screen and (min-width: 768px) {
  .descripcion {
    font-size: 3rem;
  }
}

.quote {
  color: var(--rosa);
  font-family: "DM sans", sans-serif;
  font-style: italic;
  font-size: 2rem;
  width: 75vw;
  line-height: 0.8;
  margin-bottom: var(--margin-mobile);
}

@media screen and (min-width: 768px) {
  .quote {
    font-size: 8rem;
    margin-bottom: var(--margin-desktop);
  }
}

.quote-small {
  color: var(--rosa);
  font-family: "DM sans", sans-serif;
  font-style: italic;
  font-size: 1.5rem;
  margin-bottom: var(--margin-mobile);
}

@media screen and (min-width: 768px) {
  .quote-small {
    font-size: 2rem;
    margin-bottom: var(--margin-desktop);
  }
}

.item-nombre {
  font-size: 2rem;
  padding-top: 0.25rem;
  font-weight: 400;
  width: fit-content;
  display: block;
}

@media screen and (min-width: 768px) {
  .item-nombre {
    font-size: 3rem;
    padding-top: 0.5rem;
  }
}

.hover-rosa {
  transition: transform 0.3s ease-in-out;
  will-change: transform;
}

.hover-rosa:hover {
  transform: translateX(0);
  color: var(--rosa);
}

.inscripcion {
  font-size: 2rem;
  padding-top: 0.25rem;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .inscripcion {
    font-size: 3rem;
    padding-top: 0.5rem;
  }
}

.boton-cta {
  font-size: 2rem;
  line-height: 1.1rem;
  background-color: transparent;
  color: var(--texto);
  border: 1px solid var(--texto);
  width: fit-content;
  border-radius: 999px;
  padding: 20px 40px;
  display: block;
  transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out, border 0.3s ease-in-out;
}

.boton-cta:hover {
  background-color: var(--rosa);
  color: var(--texto);
  border: 1px solid var(--rosa);
}

@media screen and (min-width: 768px) {
  .boton-cta {
    font-size: 3rem;
    padding: 30px 60px;
  }
}

.cta-inscripcion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media screen and (min-width: 768px) {
  .cta-inscripcion {
    gap: 40px;
  }
}

.cta-volver {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 20px;
}

@media screen and (min-width: 768px) {
  .cta-volver {
    gap: 40px;
  }
}

.boton-volver {
  font-size: 1rem;
  line-height: 1.1rem;
  background-color: transparent;
  color: var(--texto);
  border: 1px solid var(--texto);
  border-radius: 20px;
  text-align: center;
  width: fit-content;
  height: 40px;
  padding: 10px 20px;
  display: block;
  position: absolute;
  top: var(--padding-mobile);
  left: var(--padding-mobile);
  z-index: 20;
  transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out, border 0.3s ease-in-out;
}

.boton-volver:hover {
  background-color: var(--rosa);
  color: var(--texto);
  border: 1px solid var(--rosa);
}

@media screen and (min-width: 768px) {
  .boton-volver {
    top: var(--padding-desktop);
    left: var(--padding-desktop);
  }
}

/* El menú está dentro de un header, y está situado en la columna izquierda */

.logotipos {
  display: flex;
  gap: calc(var(--margin-mobile) * 1);
  justify-content: center;
  align-items: flex-end;
  text-align: center;
  height: 40px;
  margin-top: calc(var(--margin-mobile) * 6);
}

@media screen and (min-width: 768px) {
  .logotipos {
    gap: calc(var(--margin-desktop) * 2);
    height: 80px;
    margin-top: 0;
  }
}

.logotipos a {
  display: flex;
  height: fit-content;
}

.logotipos > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

/* .logotipos svg {
  height: 21px;
  width: auto;
}

@media screen and (min-width: 768px) {
  .logotipos svg {
    height: 54px;
  }
} 

.logotipos div:first-child svg {
  height: 40px;
  width: auto;
}

@media screen and (min-width: 768px) {
  .logotipos div:first-child svg {
    height: 80px;
  }
} */

.logotipos svg {
  height: 30px;
  width: auto;
}

@media screen and (min-width: 768px) {
  .logotipos svg {
    height: 60px;
  }
} 


.logotipos p {
  color: var(--rosa);
  font-weight: normal;
  font-size: 1rem;
  line-height: 0.8;
  margin-bottom: 6.2px;
  width: 100%;
  white-space: nowrap;
}

@media screen and (min-width: 768px) {
  .logotipos p {
    margin-bottom: 10px;
    font-size: 1.5rem;
  }
}

header {
  position: relative;
  margin-bottom: calc(var(--margin-mobile) * 2);
  width: 100%;
  height: calc(100svh - (var(--padding-mobile) * 2));
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  header {
    margin-bottom: calc(var(--margin-desktop) * 2);
    height: calc(100vh - (var(--padding-desktop) * 2));
  }
}

/* Video del header */

.contenedor-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100svh - (var(--padding-mobile) * 2));
  z-index: -1;
  overflow: hidden;
  border-radius: var(--border-radius-mobile);
}

@media screen and (min-width: 768px) {
  .contenedor-video {
    width: 100%;
    height: calc(100vh - (var(--padding-desktop) * 2));
    border-radius: var(--border-radius-desktop);
  }
}

.contenedor-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenido sobre el vídeo */

.contenido-header {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(100svh - (var(--padding-mobile) * 2));
  z-index: 1;
  text-align: center;
  padding: var(--padding-mobile);
}

@media screen and (min-width: 768px) {
  .contenido-header {
    height: calc(100vh - (var(--padding-desktop) * 2));
    padding: var(--padding-desktop);
  }
}

/* Galería de imágenes */

.galeria-agertokiak {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

@media screen and (min-width: 768px) {
  .galeria-agertokiak {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
}

@media screen and (min-width: 1024px) {
  .galeria-agertokiak {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
  }
}

.imagen-cuadrada {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-mobile);
  margin-bottom: var(--margin-mobile);
}

.overlay {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-mobile);
  margin-bottom: var(--margin-mobile);
}

.overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--texto);
  opacity: 1;
  z-index: 1;
  transition: background-color 0.3s ease-in-out;
}

.overlay:hover::before {
  background-color: var(--rosa);
}

@media screen and (min-width: 768px) {
  .imagen-cuadrada {
    border-radius: var(--border-radius-desktop);
    margin-bottom: calc(var(--margin-desktop) / 2);
  }
}

.imagen-cuadrada img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  mix-blend-mode: multiply;
}

/* Estilos de menús de botones */

.boton-idiomas {
  font-size: 1rem;
  line-height: 1.1rem;
  background-color: transparent;
  color: var(--texto);
  border: 1px solid var(--texto);
  border-radius: 20px;
  text-align: center;
  width: fit-content;
  height: 40px;
  padding: 10px 20px;
  display: block;
  position: absolute;
  top: var(--padding-mobile);
  right: var(--padding-mobile);
  z-index: 20;
  transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out, border 0.3s ease-in-out;
}

.boton-idiomas:hover {
  background-color: var(--rosa);
  color: var(--texto);
  border: 1px solid var(--rosa);
}

@media screen and (min-width: 768px) {
  .boton-idiomas {
    top: var(--padding-desktop);
    right: var(--padding-desktop);
  }
}

/* Dos columnas */

.dos-columnas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.dos-columnas-mobile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: var(--padding-mobile);
}

@media screen and (min-width: 768px) {
  .dos-columnas {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
  }
}

.mayuscula {
  text-transform: uppercase;
}

.just-derecha {
  justify-self: flex-end;
  align-self: flex-start;
  text-align: right;
  width: 100%;
}

.just-izquierda {
  justify-self: flex-end;
  align-self: flex-start;
  text-align: left;
  width: 100%;
  margin-left: 0;
  margin-right: auto;
}

/* ESTILOS DE BLOQUES */

section {
  margin-top: calc(var(--margin-mobile) * 4);
}

#seccion-botones {
  margin-top: 0px;
}

#seccion-descripcion {
  margin-top: calc(var(--margin-mobile) * 6);
}

section:last-of-type {
  margin-bottom: calc(var(--margin-mobile) * 4);
}

@media screen and (min-width: 768px) {
  section {
    margin-top: calc(var(--margin-desktop) * 2);
  }

  section:last-of-type {
    margin-bottom: calc(var(--margin-desktop) * 2);
  }

  #seccion-descripcion {
    margin-top: calc(var(--margin-desktop) * 2);
  }
}