

@font-face {
    font-family: 'sfpro';
    src: url('https://javier-latorre.com/assets/font/sf-pro-text-regular.ttf') format('truetype');
    font-weight: 400; /* Regular */
    font-style: normal;
}

@font-face {
    font-family: 'sfpro';
    src: url('https://javier-latorre.com/assets/font/sf-pro-text-semibold.ttf') format('truetype');
    font-weight: 600; /* Semibold */
    font-style: normal;
}





body {
    font-family: 'sfpro';
    font-weight: 400; 
    font-size: 13px;
    line-height: 120%;
    min-height: 100vh;
    background-color: #FDFDFF;
    transition: background-color 0.5s ease;
    color: #3F3F3F;
}

   body.dark-mode {
      background-color: #121212;
      color: #ffffff;
    }


    .switch {
      position: fixed;
      display: inline-block;
      width: 52px;
      height: 28px;
      top: 20px;
      right: 20px;
    }

    .switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #e5e5e5;
      transition: 0.4s;
      border-radius: 34px;
    }

    .slider:before {
      position: absolute;
      content: "";
      height: 22px;
      width: 22px;
      left: 3px;
      bottom: 3px;
      background-color: white;
      transition: 0.4s;
      border-radius: 50%;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    input:checked + .slider {
      background-color: #4cd964;
    }

    input:checked + .slider:before {
      transform: translateX(24px);
    }





.topbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);

  width: 400px;
  height: 45px;
 background: rgba(224, 224, 224, 0.7); 
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  z-index: 999;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .topbar  {
      background: rgba(224, 224, 224, 0.3);
      color: black;
    }

.topbar h1 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -2%;
  margin: 0;
  line-height: 1;
  text-align: center;
 
}

/* --- Botón hamburguesa (2 líneas) --- */
.menu-btn {
  width: 25px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;

  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.menu-btn span {
  display: block;
  height: 2px;
  background: black;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-btn span:nth-child(3) {
  display: none;
}

/* Opcional: animación para 2 líneas */
.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
.menu-btn.active span:nth-child(2) {
  transform: rotate(-45deg) translate(3px, -3px);
}




.menu {
  position: fixed;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  /* min-width: 506px; */ /* <-- Comenta o elimina esto si no es necesario */

  background:transparent;


  z-index: 2000;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;

  transition: 
    max-height 0.8s ease-in-out,
    opacity 0.6s ease-in-out,
    padding 0.6s ease-in-out;
}






.menu .about {
  background: rgba(224, 224, 224, 0.9);
  width: 405px; /* <-- Aquí fijas el ancho */
  margin: 0 auto; /* <-- Para centrar dentro de .menu */
  border-radius: 8px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: 15px;
  margin-bottom: 10px;
}

.menu .menusss {

  background: rgba(224, 224, 224, 0.9);
  width: 185px; /* <-- Aquí fijas el ancho */
  margin: 0 auto; /* <-- Para centrar dentro de .menu */
  border-radius: 8px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: 15px;
  float: left;

  margin-right: 5px;
}

.menu .menussss {

  background: rgba(224, 224, 224, 0.9);
  width: 185px; /* <-- Aquí fijas el ancho */
  margin: 0 auto; /* <-- Para centrar dentro de .menu */
  border-radius: 8px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: 15px;
  float: left;

    margin-left: 5px;
}



.menu.active {
  max-height: 1000px;
  opacity: 1;
  pointer-events: auto;
  padding-top: 20px;
  padding-bottom: 20px;


}


.menu p {
    margin: 0; 
}


/* Selección de texto */
::selection {
    background-color: transparent;
    color: #868686;
}
.header {display: none}
a {
    color: #393939;
    text-decoration: none;
    transition: 0.5s;
}

a:hover {
    text-shadow: 0 0 3px black;
    color: transparent;
    transition: 0.5s;
}


a {
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;

    
  }




.info {
    width: calc(25vw - 30px);
    padding-left: 20px;
    margin-top: 20px;
    float: left;
    position: fixed;
}

.hola{
    width: calc(25vw - 30px);
    padding-left: 20px;
    margin-top: 20px;
    float: left;
    position: fixed;
}


.about-module {
    display: grid;
    gap: var(--mb) 0;
    grid-template-columns: 1fr 4fr;
    grid-auto-rows: max-content;
}

.color-grey {
    color: #868686;
    font-size: clamp(12px, 16px, 0.75vw);
    font-family: 'sfpro';
}

.project-index {
   margin: 0 auto;
    width: 80vw;

    font-size: clamp(12px, 16px, 0.75vw);
    line-height: 120%;
 
  margin-bottom: 100px;

}

.narrowcolumn {
    max-width: 80vw;
    overflow: hidden;
      margin: 0 auto;
     margin-top: 80px;
}

.project {
    display: grid;
    grid-template-rows: 1fr max-content;
    height: fit-content;
    width: calc(50% - 30px);
    margin-left: 15px;
     margin-right: 15px;
    counter-increment: count;
    float: left;
    margin-top: 20px;
    margin-bottom: 20px;
}

        .project {
  
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .project.fade-in-visible {
            opacity: 1;
            transform: translateY(0);
        }



.project .titulo {
    font-size: 25px;
    font-weight: 400;
    margin-top: 20px;
    margin-bottom: 10px;
}



.tiulo {
    font-family: 'sfpro';
    font-size: clamp(12px, 16px, 0.75vw);
    line-height: 120%;
    color: #393939;
    margin-top: 20px;
}

.wrapper .thumbnail-container {
    position: relative;
    border-radius: 5px;
    background-color: black;
    min-height: 20vw;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 10px;
    overflow: hidden; /* importante */
}

.wrapper .thumbnail-container .thumbnail-hover {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.wrapper .thumbnail-container:hover .thumbnail-hover {
    opacity: 1;
}




.wrapper video {
    max-width: calc(75vw - 80px);
    margin: auto;
    margin-left: -20px;
    z-index: 100;
    border-radius: 5px;
}

.wrapper img {
    max-width: calc(75vw - 80px);
    min-width: calc(75vw - 80px);
    height: auto;
    margin: auto;
    margin-left: -20px;
    z-index: 100;
    border-radius: 5px;
}

.degradado {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10%;
    background: linear-gradient(to top, white, rgba(255, 255, 255, 0));
    z-index: 99;
}

.backgrounddegradado {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, white, rgba(255, 255, 255, 0));
    z-index: -100;
}

.infobottom {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
}

.infobottom .left {
  writing-mode: vertical-rl; /* Hace el texto vertical de abajo hacia arriba */
  transform: rotate(180deg); /* Para que se lea de arriba hacia abajo */
  margin-left: 10px;
  font-size: 14px;
  color: #000; /* Ajusta según tu diseño */
}

.infobottom .right {
    float: right;
    margin-right: 20px;
    margin-bottom: 10px;
}



    @keyframes slideUp {
      from {
        transform: translateY(50px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }





    .menubottom {
      position: fixed;
      bottom: 20px;
      width: 100%;
      display: flex;
      justify-content: center;
      z-index: 999;
    }

    .menubottom > div {
      background: rgba(224, 224, 224, 0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 8px;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      height: 45px;
      padding: 0 1rem;
      margin: 0 5px;
      opacity: 0;
      animation-duration: 0.6s;
      animation-timing-function: ease-out;
      animation-fill-mode: forwards;
      will-change: transform, opacity;
    }

    .email {
      animation-name: slideUp;
      animation-delay: 0.2s;
    }

    .resume {
      animation-name: slideUp;
      animation-delay: 0.4s;
    }

    .socialmedia {
      animation-name: slideUp;
      animation-delay: 0.6s;
        gap: 15px; /* Espacio entre íconos */
    }