/* 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, 
.fifth-subtext {
  opacity: 1;
}

/* 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: 47%;
    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));
}




  /* Botones lenguaje ====================== */
  /* ======================================= */

  .lang-btn:hover {
    background: rgba(255,255,255,0.2);
  }

/* ========================================================= */
/* BOTONES LANGUAJE EN ES
/* ========================================================= */


.lang-switch{
position: fixed;
top: 7%;
right: 3%;
z-index: 20;

display: flex;
flex-direction:column;
align-items:center;
gap:12px;
margin-bottom:20px;
z-index: 20;
}


.lang-btn-circle{

position:relative;

width:34px;
height:34px;

display:flex;
align-items:center;
justify-content:center;

background:rgba(255,255,255,0.08);

border-radius:50%;
border:1px solid rgba(255,255,255,0.18);

cursor:pointer;

color:white;

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

transition:all .35s ease;

/* sombra exterior */
box-shadow:
0 6px 18px rgba(0,0,0,0.45),
inset 0 1px 0 rgba(255,255,255,0.25);

}


/* REFLEJO */
.lang-btn-circle::before{

content:"";

position:absolute;

top:0;
left:0;

width:100%;
height:100%;

border-radius:50%;

/* brillo superior */
background:linear-gradient(
180deg,
rgba(255,255,255,0.35),
rgba(255,255,255,0.05)
);

opacity:.35;

pointer-events:none;

}


.lang-btn-circle .shape{

position:absolute;

width:100%;
height:100%;

border:1px solid rgba(255,255,255,0.2);
border-radius:50%;

transition:all .3s ease;

}



/* TEXTO */

.lang-text{

position:relative;
z-index:2;

font-size:10px;
letter-spacing:1px;
font-weight:500;

}


/* IDIOMA ACTIVADO */

.menu-button_en.active .shape_en,
.menu-button_es.active .shape_es{

background:rgba(149, 149, 149, 0.35);

border:1px solid rgba(255,0,0,0);

box-shadow:
0 6px 20px rgba(0,0,0,0.45),
0 0 10px rgba(255, 255, 255, 0.45),
inset 0 1px 2px rgba(255,255,255,0.35);

}


/* Hover */

.lang-btn-circle:hover{

transform:translateY(-2px);

background:rgba(255,255,255,0.14);

box-shadow:
0 10px 25px rgba(0,0,0,0.55),
inset 0 1px 0 rgba(255,255,255,0.35);

}



/* TRANSICIÓN */

[data-i18n]{
transition:
opacity .9s ease,
transform .1s ease,
filter .9s ease;
}

.lang-transition{
opacity:0;
/* transform:translateY(6px); */
filter:blur(6px);
}










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


.side-socials {
  position: fixed;

  right: 2.5%;                 /* 👈 pegado al borde izquierdo */
  bottom: 5%;             /* 👈 separación del borde inferior */

  display: flex;           /* 👈 cambiamos grid → flex */
  flex-direction: row;     /* 👈 horizontal */
  align-items: center;

  gap: 20px;               /* 👈 separación entre iconos */

  padding: 10px;      /* 👈 pequeño margen para que no toque el borde */

  z-index: 3;
  pointer-events: auto;

  /* animación */
  opacity: 0;
  animation: fadeMenu 2s ease forwards;
  animation-delay: 2s;
}

    @keyframes fadeMenu {

    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }

  }


.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(2px, 5vw, 30px);
  height: auto;

}

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











/* 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 */
  padding: 60px;
}

/* 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));
}










/* 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"); } */
.first .bg { background-image: var(--bg-gradient), url("https://images.unsplash.com/photo-1763960091036-813259b59775?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"); }
.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-1563253746-350a0a877afa?q=80&w=764&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"); background-position: 50% 45%; }

h2 * {
  will-change: transform;
}

/* ========================================================= */
/* CONTENEDOR DE TEXTOS
/* ========================================================= */

.text-container {
  display: grid;
  place-items: center;
  gap: 24px;

  max-width: auto;
  padding: 0 20px;
  margin: 0 auto;
  text-align: center;
}

.text-container p {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  line-height: 1.6;
  letter-spacing: 1.5px;
  font-family: 'Roboto', sans-serif;
  text-transform: none;
  color: #ffffff;
  font-weight: 200;
  max-width: 950px;
  max-height: 600px;
}


@media (max-width: 768px) {

  h2 {
    font-size: clamp(2rem, 10vw, 4rem);
  }

  .text-container {
    padding: 0 16px;
    gap: 16px;
  }

  .text-container p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

}



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

.close-btn {
  position: fixed;
  top: 85%;
  left: 48%;
  transform: translate(-50% 0);

  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:1PX 4px 20px rgba(255, 255, 255, 0.863);
  background: rgba(234, 5, 5, 0.4);
  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%);
}




/* ========================================================= */
/* CONTENEDOR APARTADOS MENU
/* ========================================================= */

.menu-panel {
  position: fixed;
  top: 59%;
  transform: translateY(-30%);
  right: -320px;
  height: 100vh;
  width: 300px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding-right: 96px; /* espacio hasta la barra */
  transition: right 3s cubic-bezier(0.22, 1, 0.36, 1);  /*velocidad item menu*/
  z-index: 8;

  /* Efecto aparecer */
  opacity: 0;
  animation: fadeMenu 2s ease forwards;
  animation-delay: 2s;
  }

  @keyframes fadeMenu {

  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }

}


@media (max-width: 768px){
  .menu-panel {
    display: none;
  }
}


body.menu-open .menu-panel {
  right: 0;
}