/* ============================= */
/*         GUIA ESTILOS          */
/* ============================= */
body {
  h1 {
    font-family: "Cossette Titre", sans-serif;
    font-weight: 400;
    font-size: 30vw;
    font-style: normal;
    letter-spacing:-0.02em;
    color: black;
    text-align: center;
    margin-top: -0.01em;
  }

  h2 {
    font-family: "Source Code Pro", monospace;
    font-weight: 300;
    font-style: normal;
    font-size: 0.6em;
    letter-spacing: -0.04em;
    color: black;
  }

  h3 {
    font-family: "Zalando Sans SemiExpanded", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 12px;
    color:whitesmoke;
  }

/* ============================= */
/*            HEADER             */
/* ============================= */

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

.header a {
  text-decoration: none;
  transition:color 0.3s ease;
}
    a {
      text-decoration: none;
      color: none;
    }

    a:hover {
      font-weight: bold;
    }
}    

/* ============================= */
/*           HOMEPAGE            */
/* ============================= */
    
body.pagina-oscura {
  background-color: black; /* fondo oscuro */
  color: whitesmoke;       /* texto claro */
}
  .flexbox {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  /*HEADER*/
  
  .header {
    display: flex;
    justify-content: space-between;
    background-color: transparent;
}
  body.pagina-oscura .header {
    background-color: transparent;
    color: whitesmoke;
  }

  body.pagina-oscura .header a {
    color: white;
  }
  
    /*ANIMACIÓ HEADER*/
    a {
      text-decoration: none;
      color: white;
    }

    a:hover {
      font-weight: bold;
    }


/* ============================= */
/*           PORTFOLIO           */
/* ============================= */
body.pagina-clara {
  background-color: white; /* fondo claro */
  color: black; 
}
  .flexbox {
      display: flex;
      flex-direction: column;
      gap: 20px;
      flex-wrap: wrap;
    }

/*HEADER*/

.header {
    display: flex;
    justify-content: space-between;
    background-color: transparent;
}
  body.pagina-clara .header {
    background-color: transparent;
    color: black;
  }

  body.pagina-clara .header a {
    color: black;
  }

    /*ANIMACIÓ HEADER*/
    a {
      text-decoration: none;
      color: black;
    }

    a:hover {
      font-weight: bold;
    }

/*GRID*/

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    width: 98vw;
    height: 100vh;
    padding: 0px;
    justify-content: space-between;
  }

/* cada celda */
.item {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: space-between;
  text-align: left;
}

/* IMAGEN */
.item img {
  width: 100%;
  height: 100;
  margin-bottom: 10px;
}


/* TITULO */
.item h2 {
  font-size: 0.6em;
  font-weight: 900; 
  color: black;
  margin: 5px 0;
}

/* TEXTO DESCRIPTIVO */
.item h2 {
  font-size: 0.6em;
  font-weight: 300; 
  color: black;
  margin: 0;
  padding: 0px;
}

#video-fondo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1; /* se queda detrás del contenido */
  filter: brightness(50%); /* oscurece un poco el fondo para que el texto resalte */
}

/* Aseguramos que el contenido quede encima del video */
body.pagina-oscura h1,
body.pagina-oscura h2,
body.pagina-oscura .header {
  position: relative;
  z-index: 1;
}

/* Si quieres mantener el efecto de fusión con el fondo */
body.pagina-oscura h1 {
  mix-blend-mode: difference;
  color: white;
}

/* ============================= */
/*  VIDEO + IMAGEN SUPERPUESTOS  */
/* ============================= */

.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -2; /* se queda detrás de todo */
}

/* El video ocupa toda la pantalla */
#video-fondo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7; /* <- controla cuánto se ve el video */
  mix-blend-mode: screen; /* lo mezcla con la imagen de fondo */
}

/* Fondo de imagen */
body.pagina-oscura {
  background-image: url("../IMAGENES/FOTO_0.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
  color: white;
}

/* Contenido encima del video */
body.pagina-oscura h1,
body.pagina-oscura h2,
body.pagina-oscura .header {
  position: relative;
  z-index: 1;
}

/* Efecto fusión del título */
body.pagina-oscura h1 {
  font-size: 32vw;
  text-align: center;
  font-family: "Cossette Titre", sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: white;
  mix-blend-mode: difference; /* crea el efecto positivo/negativo */
  background: none; /* evita que herede la imagen del fondo */
  transition: mix-blend-mode 0.5s ease;
}

body.pagina-oscura h1:hover {
  mix-blend-mode: exclusion;
}

/* ============================= */
/*              CV               */
/* ============================= */

.curriculum {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  padding: 5px;
  font-family: "Source Code Pro", monospace;
}

.columna {
  flex: 1;
}

.columna h2 {
  font-size: 0.6em;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.columna p {
  font-size: 0.6em;
  margin-bottom: 10px;
}

/* Enlace con estilo */
.columna a {
  color: inherit;
  text-decoration: underline;
}

.columna a:hover {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
  .curriculum {
    flex-direction: column;
    gap: 20px;
  }
}

/* ============================= */
/*            FOOTER             */
/* ============================= */

.footer {
  width: 100%;
  text-align: center;
  padding: 15px 0;
  font-family: "Source Code Pro", monospace;
  font-size: 10px;
  letter-spacing: -0.02em;
  position: fixed; /* siempre visible al final */
  bottom: 0;
  left: 0;
  z-index: 5;
}

/* footer en página oscura */
body.pagina-oscura .footer {
  background-color: transparent;
  color: whitesmoke;
}

/* footer en página clara */
body.pagina-clara .footer {
  background-color: transparent;
  color: black;
}

/* enlaces dentro del footer */
.footer a {
  text-decoration: none;
  font-weight: 400;
  transition: 0.3s ease;
}

body.pagina-oscura .footer a {
  color: whitesmoke;
}

body.pagina-clara .footer a {
  color: black;
}

.footer a:hover {
  font-weight: 700;
  opacity: 0.7;
}

/* ============================= */
/*             MÓVIL             */
/* ============================= */
@media screen and (max-width: 800px) {
  .galeria-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .item {
    max-width: 100%;
    margin: 0 auto px;
  }
}

  

/*GRID RESPONSIVE*/
  @media screen and (min-width: px) {
    div.HOME {
      grid-template-columns: 1fr 1fr 1fr; 
      gap:10px;
    }

    div.PORTFOLIO {
      grid-template-columns: 1fr 1fr 1fr;
      gap:10px;
    }

  }



