/* Variables */
:root {
  --bg-gradient: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%);
}

/* ===========================
   RESET WEB
=========================== */

* {
  box-sizing: border-box;
  user-select: none;
  margin: 0;
  padding: 0;
}

.section-heading {
  visibility: hidden;
}



body {
  margin: 0;
  padding: 0;
  height: 100vh;
  color: rgb(254, 254, 254);
  font-family: sans-serif;
  text-transform: uppercase;
}

html, body {
  /* background: #7d0202; */
  background: #000000;
}


/* permite esconder los titulos al cargar página */
body {
  visibility: hidden;
}


/* permite esconder parrafos al cargar página */
.second-subtext,
.third-subtext,
.fourth-subtext {
  visibility: hidden;
}

/* para transition about */
html.transitioning body {
  visibility: hidden;
}


@font-face {
    font-family: Kalvani;
    src: url("/fonts/Kalvani.ttf")
}


/* @font-face {
    font-family: Roboto;
    src: url("./fonts/Roboto-Thin.ttf")
} */

@font-face {
    font-family: Bright;
    src: url("/fonts/Bright_Cheerful.otf")
}



a {
  color: white;
  text-decoration: none;
}

h2 {
  font-size: clamp(1rem, 8vw, 10rem);
  font-weight: 600;
  text-align: center;
  margin-right: -0.5em;
  width: 90vw;
  max-width: 1200px;
  text-transform: none;
}




/* ========================================================= */
/* SECCION MAIL LATERAL
/* ========================================================= */

  .side-contact {
    position: fixed;
    right: 10px;
    top: 40%;
    transform: translateY(-50%);

    display: grid;
    grid-template-rows: auto auto;
    gap: 24px;
    align-items: center;
    justify-items: center;

    z-index: 10;
    pointer-events: auto;
  }

  /* Mail ================================== */
  /* ======================================= */

  .side-mail {
    writing-mode: vertical-rl;
    transform: rotate(180deg);

    font-size: clamp(0.7rem, 0.8vw, 0.8rem);
    font-weight: 400;
    letter-spacing: 4px;
    font-family: 'Poppins', sans-serif;

    color: #ffffff;
    text-decoration: none;
    opacity: 1;
    transition: opacity .3s ease, color .3s ease;

  }

  .side-mail:hover {
    opacity: 1;
    color: #ff0000;
  }


  /* Rocket ================================ */
  /* ======================================= */

  .side-rocket img {
    width: 42px;
    transition: transform .3s ease, filter .3s ease;
    transform: translateY(-10px);
  }

  .side-rocket:hover img {
    transform: translateY(-6px) scale(1.05);
    filter: drop-shadow(0 0 8px rgba(255,0,0,.8));
}














/* ========================================================= */
/* RSS — SOCIAL ICONS
/* ========================================================= */


.side-socials {
  position: fixed;
    right: 22px;
    top: 75%;
    transform: translateY(-50%);

    display: grid;
    grid-template-rows: auto auto;
    gap: 30px;
    align-items: center;
    justify-items: center;

    z-index: 10;
    pointer-events: auto;
}


.social-link:hover {
    filter: drop-shadow(0 0 8px rgba(255,0,0,.8));
}


/* Instagram (más ancho visualmente) */
.social-link.instagram img {
  width: clamp(5px, 10vw, 20px);
  height: auto;
}

/* LinkedIn (más compacto) */
.social-link.linkedin img {
  width: clamp(5px, 10vw, 20px);
  height: auto;
}






/* ========================================================= */
/* NAME HACK 
/* ========================================================= */


.name-wrapper{
  position: fixed;
  left: clamp(14px, 8vw, 130px);  
  bottom: 8%;
  transform: translateY(0%);

  display:block;
  align-items: center;
  gap: clamp(10px, 4vw, 40px);    /* separación entre iconos */
  z-index: 5;
}

 .name_hack {
  display: inline-block;
  text-align: left;
  font-family: 'Roboto', sans-serif; 
  font-size: clamp(10px, 4vw, 12px);
  letter-spacing: 5px;
  white-space: nowrap;
  color: #b4b1b1;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease;
  opacity: 0.5;
  }

  .name_hack:hover{
  color: #ff0000;
  }


  /* MEDIA QUERIE PARA MOVILE */
  @media (max-width: 768px) {

    .name_hack{
    font-size: 9.5px;
    letter-spacing: 2.5px;
    transform: translateX(4%) translateY(-3%);
    }

}






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

.clip-text {
  overflow: hidden;
  display: inline-block; /* muy importante para que cada char se comporte de forma independiente */
}

header {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  width: 100%;
  z-index: 3;
  height: 7em;
  font-size: clamp(0.66rem, 2vw, 1rem);
  letter-spacing: 0.5em;
}

section {
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  position: fixed;
  visibility: visible;
  opacity: 1;
}

section .outer,
section .inner {
  width: 100%;
  height: 100%;
  overflow-y: hidden;
}

/* ===========================
   CENTRADO DEL TEXTO EN PANTALLA
   =========================== */
.bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;        /* ancho del viewport */
  height: 100vh;       /* alto del viewport */
  display: flex;
  align-items: center;  /* centra verticalmente el texto */
  justify-content: center; /* centra horizontalmente el texto */
  
  background-size: cover;       /* la imagen cubre toda la pantalla */
  background-position: center center; /* centrada perfectamente */
  background-repeat: no-repeat; /* evita repeticiones */
  overflow: hidden;             /* evita que algo sobresalga */
}

/* Centrar el h2 dentro del contenedor */
.bg h2 {
  position: relative;
  text-align: center;
  width: 100%;
  font-size: clamp(1rem, 8vw, 10rem);
  font-weight: 600;
  text-transform: none;
  z-index: 999;
  margin: 0; /* evita desplazamientos */
}

/* 🎯 CLAVE para SplitText */
.clip-text {
  overflow: hidden;
  display: inline-block;
}







/* MAIL LATERAL SECTION ====================================== */
/* =========================================================== */

  .side-contact {
    position: fixed;
    right: 10px;
    bottom: 140px;

    display: grid;
    grid-template-rows: auto auto;
    gap: 24px;
    align-items: center;
    justify-items: center;

    z-index: 10;
    pointer-events: auto;
  }


  /* Mail ================================== */
  /* ======================================= */

  .side-mail {
    writing-mode: vertical-rl;
    transform: rotate(180deg);

    font-size: clamp(0.7rem, 0.7vw, 0.8rem);
    font-weight: 400;
    letter-spacing: 4px;
    font-family: 'Pppins', sans-serif;

    color: #989898;
    text-decoration: none;
    opacity: 1;
    transition: opacity .3s ease, color .3s ease;

  }

  .side-mail:hover {
    opacity: 1;
    color: #ff0000;
  }


  /* Rocket ================================ */
  /* ======================================= */

  .side-rocket img {
    width: 42px;
    transition: transform .3s ease, filter .3s ease;
    transform: translateY(-10px);
  }

  .side-rocket:hover img {
    transform: translateY(-6px) scale(1.05);
    filter: drop-shadow(0 0 8px rgba(255,0,0,.8));
}







/* =========================================================
   RSS — SOCIAL ICONS
   ========================================================= */

.side-socials {
  position: fixed;

  left: clamp(16px, 4vw, 50px);   /* distancia al borde izq */
  bottom: clamp(24px, 2vh, 40px); /* distancia al borde inf */

  display: flex;
  align-items: center;

  gap: clamp(12px, 3vw, 32px);    /* separación entre iconos */

  z-index: 9;
}


.side-socials {
  position: fixed;

  left: clamp(14px, 8vw, 130px);   /* distancia al borde izq */
  bottom: clamp(24px, 4vh, 60px); /* distancia al borde inf */

  display: flex;
  align-items: center;

  gap: clamp(10px, 4vw, 40px);    /* separación entre iconos */

  z-index: 7000;
}


.social-link {
  display: flex;
  align-items: center;
}

/* Instagram (más ancho visualmente) */
.social-link.instagram img {
  width: clamp(54px, 11vw, 90px);
  height: auto;
}

/* LinkedIn (más compacto) */
.social-link.linkedin img {
  width: clamp(14px, 40vw, 20px);
  height: auto;
}








/* Fondos de cada sección */
/* .first .bg { background-image: var(--bg-gradient), url("https://images.unsplash.com/photo-1758736553564-488a2508dc1c?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1631"); } */
.first .bg { background-image: var(--bg-gradient), url("https://images.unsplash.com/photo-1702200620987-6c4b2be6eca6?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1632"); }
.second .bg { background-image: var(--bg-gradient), url("https://images.unsplash.com/photo-1593062096033-9a26b09da705?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"); }
.third .bg { background-image: var(--bg-gradient), url("https://images.unsplash.com/photo-1493653996588-060ebfafb460?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1176"); }
.fourth .bg { background-image: var(--bg-gradient), url("https://images.unsplash.com/photo-1638722843622-0127be5741dd?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1170"); }
.fifth .bg { background-image: var(--bg-gradient), url("https://images.unsplash.com/photo-1484807352052-23338990c6c6?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"); background-position: 50% 45%; }

h2 * {
  will-change: transform;
}

.second-subtext {
  position: absolute;
  top: 75%;
  left: 50%;
  max-width: 950px;
  max-height: 600px;
  transform: translate(-50%, -50%);
  text-align: left;
  font-size: 1.2rem;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 2px;
  font-weight: 200;
  line-height: 30px;
  color: #ffffff;
  text-transform: none !important; 
}

.third-subtext {
  position: absolute;
  top: 75%;
  left: 50%;
  max-width: 950px;
  max-height: 600px;
  transform: translate(-50%, -50%);
  text-align: left;
  font-size: 1.2rem;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 2px;
  font-weight: 200;
  line-height: 30px;
  color: #ffffff;
  text-transform: none !important;
}


.fourth-subtext {
  position: absolute;
  top: 69%;
  left: 50%;
  max-width: 950px;
  max-height: 600px;
  transform: translate(-50%, -50%);
  text-align: left;
  font-size: 1.2rem;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 2px;
  font-weight: 200;
  line-height: 30px;
  color: #ffffff;
  text-transform: none !important; 
}





/* ===========================
  SECCIÓN BOTÓN CIERRE Y VOLVER (Versión glossy)
  =========================== */

.close-btn {
  position: fixed;
  top: 85%;
  right: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  z-index: 9999;

  /* Fondo translúcido con brillo */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);

  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

  transition: box-shadow 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
  opacity: 0.8;
}

.close-btn:hover {
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  opacity: 1;
}

/* Las dos líneas blancas (la X) */
.close-btn span {
  position: absolute;
  width: 24px;
  height: 3px;
  background: rgb(255, 255, 255);
  border-radius: 2px;
  transition: transform 0.4s ease;
  transform-origin: center;
}

/* Línea ↘ */
.close-btn span:first-child {
  transform: rotate(45deg);
}

/* Línea ↙ */
.close-btn span:last-child {
  transform: rotate(-45deg);
}

/* Efecto de rotación al hover */
.close-btn:hover span:first-child {
  transform: rotate(225deg);
}
.close-btn:hover span:last-child {
  transform: rotate(-225deg);
}





/* ===========================
   PAGE TRANSITION (GLOBAL)
=========================== */

.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* background: #7d0202; */
  background: #000000;
  z-index: 999999;
  pointer-events: none;

  transform: translateX(100%);
}


