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

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

html { background:#000; }

html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
}



body {
  font-family: system-ui, sans-serif;
  /* background: #880000; */
  color: #fff;
  overflow-y: auto;
  overflow-x: hidden;
}



/* Para eliminar borde blanco al cargar la página */
body {
  opacity: 0;
}

body.loaded {
  opacity: 1;
  transition: opacity .6s ease;
}



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

/* body {
  visibility: hidden;
}  */

.page {
  opacity: 0;
  transition: opacity 0.6s ease;
}


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

.page-transition {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* background: #7d0202; */
  background: #000000;
  backdrop-filter: blur(20px);

  z-index: 99999;
  pointer-events: none;

  transform: translateX(100%);
}







/* Para boton play en ipad */
.hero-video::-webkit-media-controls {
  display: none !important;
}

.hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

/* * {
    border: 1px solid red !important;
} */


/* ===================================================== */
/* FONTS
/* ===================================================== */

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


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



/* ===================================================== */
/* SCROLL PROGRESS — LIQUID GLASS PRO */
/* ===================================================== */

.scroll-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;

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

  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);

  border-top: 1px solid rgba(255,255,255,0.18);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 -2px 10px rgba(0,0,0,0.4);

  overflow: hidden;
  z-index: 1;
}

.scroll-progress-bar {
  position: relative;
  width: 100%;
  height: 100%;

  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.9),
    rgba(255,255,255,0.45)
  );

  transform-origin: left center;

  box-shadow:
    0 0 8px rgba(255,255,255,0.45),
    inset 0 1px 1px rgba(255,255,255,0.6);
}

/* reflejo líquido */

.scroll-progress-bar::after {

  content: "";
  position: absolute;

  top: -200%;
  left: -50%;

  width: 200%;
  height: 400%;

  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(245, 0, 0, 1) 50%,
    transparent 0%
  );

  transform: rotate(25deg);

  animation: liquidMove 6s linear infinite;
}

@keyframes liquidMove {

  0% {
    transform: translateX(-40%) rotate(25deg);
  }

  100% {
    transform: translateX(40%) rotate(25deg);
  }

}


/* ===================================================== */
/* INDICADOR SCROLL LATERLA
/* ===================================================== */

html::-webkit-scrollbar {
    width: 3px;
    opacity: 1;
    background: #000000;
    border-radius: 5px;
}

html::-webkit-scrollbar-thumb {
    /* background: #0a425d; */
    background: #ff0202;
    border-radius: 5px;
}


.nav-down{
    background: rgb(255, 0, 0);
}


/* ===================================================== */
/* LAYOUT GENERAL */
/* ===================================================== */

.page {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}


/* ========================================================= */
/* BASE GRID
/* ========================================================= */


.section {
  display: grid;
  height: 100vh;
  width: 100%;

  grid-template-columns:
    minmax(1rem, 1fr)
    repeat(12, minmax(0, 1fr))
    minmax(1rem, 1fr);

  padding-block: clamp(4rem, 10vh, 8rem);
}



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


.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
  background: transparent;
}









/* ========================================================= */
/* BOTON DEL MENU
/* ========================================================= */

:root {
  --menu-gap: 40px;
}

.menu-button {
  width: clamp(28px, 4vw, 40px);
  height: clamp(28px, 4vw, 40px);

  position: fixed;
  top: 60px;
  right: 100px;

  cursor: pointer;
  z-index: 20;

  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}


.menu-button .shape {
  position: absolute;
  inset: 0;

  border-radius: 50%;
  background:
    linear-gradient(
    145deg,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0.05)
    );

  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);

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

  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.4),
    inset 0 -1px 2px rgba(0,0,0,0.25),
    0 10px 30px rgba(0,0,0,0.35);

  transition:
    border-radius 0.55s cubic-bezier(0.22,1,0.36,1),
    transform 0.55s cubic-bezier(0.22,1,0.36,1),
    box-shadow 0.55s cubic-bezier(0.22,1,0.36,1),
    background 0.55s ease;
}


.menu-button .shape::before {
  content: "";
  position: absolute;
  inset: 2px;

  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.55),
    rgba(255,255,255,0.05) 40%,
    transparent 70%
  );

  pointer-events: none;
}



.menu-button .shape::after {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: inherit;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255,255,255,0.25),
      transparent 60%
    );

  mix-blend-mode: overlay;
  pointer-events: none;
}


.menu-button:hover .shape {
  transform: scale(1.12);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.5),
    inset 0 -2px 4px rgba(0,0,0,0.35),
    0 14px 40px rgba(0,0,0,0.45);
}


.menu-button.open .shape {
  border-radius: 22%;
  transform: scale(1.18);
}


.menu-button .line {
  background: rgba(255, 50, 50, 0.9);
  box-shadow: 0 0 6px rgba(255,0,0,0.45);

  color: #014458;

}

.l1 { transform: translateY(-10px); }
.l2 { transform: translateY(0); }
.l3 { transform: translateY(10px); }


.menu-button.open .l1 {
  transform: rotate(45deg);
}

.menu-button.open .l2 {
  opacity: 0;
}

.menu-button.open .l3 {
  transform: rotate(-45deg);
}







/* ========================================================= */
/* BARRA LATERAL MENU - LIQUID GLASS
/* ========================================================= */

/* Variables */
:root {
  --bar-width: 64px;
  --glass-tint: 255, 255, 255; /* default */
}

/* Contenedor barra */
.menu-bar {
  position: fixed;
  top: 0;
  right: calc(-1 * var(--bar-width));
  width: var(--bar-width);
  height: 100vh;



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


  


  /* Fondo líquido */
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.28),
    rgba(255,255,255,0.06)
  );

  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);

  border-left: 1px solid rgba(255,255,255,0.25);

  /* Profundidad interna y sombra externa */
  box-shadow:
    inset 0 1px 1px rgba(0,0,0,0.25),         /* línea oscura interna */
    inset 0 0 0.5px rgba(255,255,255,0.35),   /* línea clara fina interna */
    -18px 0 40px rgba(0,0,0,0.45);           /* sombra externa */

  transition:
    right 1.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);

  z-index: 8;
}

@keyframes fadeMenu {

  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }

}

/* Reflejo vivo */
.menu-bar::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to left,
    rgba(var(--glass-tint), 0.25),
    transparent 40%
  );

  pointer-events: none;
}

/* Textura líquida sutil */
.menu-bar::after {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at 20% 30%,
    rgba(255,255,255,0.25),
    transparent 20%
  );

  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Barra abierta */
body.menu-open .menu-bar {
  right: 0;

  box-shadow:
    inset 0 1px 1px rgba(0,0,0,0.35),       /* línea oscura interna */
    inset 0 0 0.5px rgba(255,255,255,0.45), /* línea clara interna ligeramente más fuerte */
    -22px 0 50px rgba(0,0,0,0.55);          /* sombra externa más intensa */
}















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

/* Lista ================================= */
/* ======================================= */
.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: right;
  font-weight: 300;
}

/* Items ================================= */
/* ======================================= */
.menu-list button {
  background: none;
  border: none;
  color: rgb(157, 155, 155);
  font-family: 'Roboto', sans-serif;
  font-size: clamp(0.8rem, .75vw, .85rem);
  font-weight: 300;
  letter-spacing: 0.08rem;
  cursor: pointer;
  opacity: 1;
  /* transition: opacity 0.3s ease; */
}

.menu-list button:hover {
  opacity: 1;
}


/* EFECTO HOVER MENU ========================================= */
/* =========================================================== */
.menu-list button {
  position: relative;
  overflow: hidden;
  z-index: 1; /* crea contexto */
  padding: 0.1rem 0.5rem;
  min-height: 1rem;
}

/* Bloque rojo */
.menu-list button::before {
  content: "";
  position: absolute;
  inset: -1px -2px;
  background: #b40000; 
  border-radius: 50px 0px 0px 50px;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);

  z-index: -1; /* detrás del texto pero dentro del botón */
}

/* Hover */
.menu-list button:hover::before {
  transform: scaleX(1);
}

.menu-list li.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 100%;
  height: .5px;
  background: #ff0000;
}

.menu-list li.active button::before {
  transform: scaleX(0);
}

/* PERO active + hover SÍ */
.menu-list li.active button:hover::before {
  transform: scaleX(1);
}


.menu-list li {
  position: relative;
}









/* ========================================================= */
/* BOTON DEL MENU - EXPERIMENTACIÓN
/* ========================================================= */

/* BOTON ENGLISH */

:root {
  --menu-gap: 40px;
}

.menu-button_en {
  width: clamp(27px, 1.5vw, 37px);
  height: clamp(27px, 1.5vw, 37px);

  position: fixed;
  top: -90px;
  right: 6px;

  cursor: pointer;
  z-index: 20;

  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.shape_en{
display:flex;
align-items:center;
justify-content:center;
position:relative;
z-index:2;

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

}



.menu-button_en .shape_en {
  position: absolute;
  inset: 0;

  border-radius: 50%;
  background:
    linear-gradient(
    145deg,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0.05)
    );

  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);

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

  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.4),
    inset 0 -1px 2px rgba(0,0,0,0.25),
    0 10px 30px rgba(0,0,0,0.35);

  transition:
    border-radius 0.55s cubic-bezier(0.22,1,0.36,1),
    transform 0.55s cubic-bezier(0.22,1,0.36,1),
    box-shadow 0.55s cubic-bezier(0.22,1,0.36,1),
    background 0.55s ease;
}


.menu-button_en .shape_en::before {
  content: "";
  position: absolute;
  inset: 2px;

  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.55),
    rgba(255,255,255,0.05) 40%,
    transparent 70%
  );

  pointer-events: none;
}



.menu-button_en .shape_en::after {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: inherit;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255,255,255,0.25),
      transparent 60%
    );

  mix-blend-mode: overlay;
  pointer-events: none;
}


.menu-button_en:hover .shape_en {
  transform: scale(1.12);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.5),
    inset 0 -2px 4px rgba(0,0,0,0.35),
    0 14px 40px rgba(0,0,0,0.45);
}


.menu-button_en.open .shape_en {
  border-radius: 22%;
  transform: scale(1.18);
}



/* BOTON SPANISH */

:root {
  --menu-gap: 40px;
}

.menu-button_es {
  width: clamp(27px, 1.5vw, 37px);
  height: clamp(27px, 1.5vw, 37px);

  position: fixed;
  top: -40px;
  right: 6px;

  cursor: pointer;
  z-index: 20;

  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.shape_eS{
display:flex;
align-items:center;
justify-content:center;
position:relative;
z-index:2;

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

}



.menu-button_es .shape_es {
  position: absolute;
  inset: 0;

  border-radius: 50%;
  background:
    linear-gradient(
    145deg,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0.05)
    );

  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);

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

  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.4),
    inset 0 -1px 2px rgba(0,0,0,0.25),
    0 10px 30px rgba(0,0,0,0.35);

  transition:
    border-radius 0.55s cubic-bezier(0.22,1,0.36,1),
    transform 0.55s cubic-bezier(0.22,1,0.36,1),
    box-shadow 0.55s cubic-bezier(0.22,1,0.36,1),
    background 0.55s ease;
}


.menu-button_es .shape_es::before {
  content: "";
  position: absolute;
  inset: 2px;

  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.55),
    rgba(255,255,255,0.05) 40%,
    transparent 70%
  );

  pointer-events: none;
}



.menu-button_es .shape_es::after {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: inherit;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255,255,255,0.25),
      transparent 60%
    );

  mix-blend-mode: overlay;
  pointer-events: none;
}


.menu-button_es:hover .shape_es {
  transform: scale(1.12);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.5),
    inset 0 -2px 4px rgba(0,0,0,0.35),
    0 14px 40px rgba(0,0,0,0.45);
}


.menu-button_es.open .shape_es {
  border-radius: 22%;
  transform: scale(1.18);
}




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


.lang-switch{
display:flex;
flex-direction:column;
align-items:center;
gap:12px;
margin-bottom:20px;
}


.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);
}








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

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

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

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



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

  @keyframes fadeMenu {

  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }

}

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

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

    font-size: clamp(0.7rem, 0.8vw, 0.8rem);
    font-weight: 300;
    letter-spacing: 4px;
    font-family: 'Roboto', 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: 84%;
    transform: translateY(-50%);

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

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



    /* Efecto aparecer */
    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(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(17px, 3.7vw, 90px);  
  bottom: 3%;
  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(0.08rem, 1vw, .7rem);
  font-weight: 200;
  letter-spacing: 5px;
  white-space: nowrap;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease;
  opacity: 1;
  }

  .name_hack:hover{
  color: #ff0000;
  }


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

    .name_hack{
    font-size: 9.5px;
    letter-spacing: 2.5px;
    }

    .name-wrapper{
    left: 26%;
    bottom: 9%;
    }


}










/* ============================================= */
/* BOTON TOP =================================== */
/* ============================================= */

  .back-to-top {
    position: fixed;
    right: var(--bar-width);
    bottom: 5%;
    
    transform: translateX(50%) translateY(50px) scale(0.9);

    width: 45px;
    height: 45px;
    border-radius: 30%;
    border: 1px solid rgba(255, 255, 255, 0.35);

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);

    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 12;
    font-weight: 100;

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

    opacity: 0;
    pointer-events: none;

    /* ⬅️ Efecto profundidad y línea interna */
    box-shadow:
      inset 0 1px 2px rgba(0,0,0,0.25),   /* línea oscura sutil */
      inset 0 0 1px rgba(255,255,255,0.35), /* brillo interno */
      0 4px 12px rgba(0,0,0,0.35);          /* sombra externa */

    transition: 
      background 0.3s ease,
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.4s ease,
      color 0.3s ease;
  }

  .back-to-top::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30%;
    background: linear-gradient(
      135deg,
      rgba(var(--glass-tint, 255,255,255), 0.35),
      transparent 40%
    );
    pointer-events: none;
    filter: blur(1.5px);
    transition: background 0.4s ease;
  }

  /* Hover líquido */
  .back-to-top:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ff0000;
    transform: translateX(-50%) translateY(0px) scale(1.05);
    box-shadow:
      inset 0 2px 3px rgba(0,0,0,0.35),   /* línea interna más marcada al hover */
      inset 0 0 1px rgba(255,255,255,0.45),
      0 6px 18px rgba(0,0,0,0.45);
}




/* =============================== */
/* CUSTOM GLASS CURSOR */
/* =============================== */

/* ocultamos el cursor real */
/* body {
  
cursor: none;
} */

.cursor-glass {
  position: fixed;
  top: 0;
  left: 0;

  width: 60px;
  height: 60px;

  border-radius: 50%;

  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.35);

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

  transform: scale(0);
  transition: 
  transform 0.18s cubic-bezier(.2,.8,.2,1),
  width 0.25s ease,
  height 0.25s ease;

  pointer-events: none;
  z-index: 9999;
}

.cursor-label {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: white;
}

/* Estado activo */
.cursor-glass.active {
  transform: scale(1);
}


/* DESACTIVADO TABLETS */

@media (min-device-width: 820px) and (max-device-width: 1180px) and (orientation: portrait) {
  .cursor-glass, .cursor-label {
    display: none;
  }
  body {
    cursor: auto;
  }
}

@media (max-width: 768px){
  .cursor-glass {
    display: none;
  }
  body {
    cursor: auto;
  }
}















/* ========================================================================================== */
/* HOME SECTION */
/* ========================================================================================== */


.home {
  background: #000000;
}


  /* VIDEO ===================================================== */
  /* =========================================================== */

  .hero-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* 👈 AÑADIR */
    transition: opacity 0.6s ease;
  }

  body.hide-hero-video .hero-video {
    opacity: 0;
    pointer-events: none;
    z-index: -1; /* 👈 CLAVE */
  }


  .hero-overlay {
    position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
  pointer-events: none;
  }
 

  /* CONTENEDOR SALUDO ========================================= */
  /* =========================================================== */

  .hero-content {
  position: relative;
  z-index: 2;
  grid-column: 2 / span 4;

  display: flex;
  flex-direction: column;
  justify-content: center;

  min-height: 70vh;
  gap: 15px;
}



  @media (max-width: 768px) {
  .hero-content {
    margin-top: -15vh;
    row-gap: 15px;
  }
  }




  /* CONTENT =================================================== */
  /* =========================================================== */

  .content {
    grid-column: 2 / span 5;
  }


  /* Logo ================================== */
  /* ======================================= */


  .nav-logo {
  
  position: relative;

  opacity: 0;
  transform: translateY(0px);
  transition: opacity 2.8s ease, transform 2.8s ease;
  transform: translateY(0) scale(1);

  margin-top: clamp(40px, 5vw, 120px);
  margin-left: clamp(40px, 7vw, 120px);

  width: clamp(55px, 10vw, 140px);
  height: auto;

  z-index: -1;

  pointer-events: auto;
  
}

/* estado visible */
.nav-logo.logo-visible {
  opacity: 1;
  transform: translateY(0);
}




  @media (max-width: 768px) {
    .nav-logo {
      margin-top: 50px;
      grid-column: 2 / span 6;
      width: clamp(40px, 50vw, 60px);
    }
  }


    .logo-link {
    display: inline-block;
  }

  .nav-logo {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .logo-link:hover .nav-logo {
    transform: scale(1.05);
    opacity: 0.85;
  }


  /* Welcome =============================== */
  /* ======================================= */
  .hero-greeting {
    position: relative;
    height: clamp(.1rem, 5vh, 4rem);
    overflow: hidden;
    width: 200px;

    display: flex;
    align-items: center;
    margin-top: clamp(6px, 3vh, 34px);
  }

  .text-saludo {
    position: absolute;
    opacity: 0;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.3rem, 1.4vw, 1.7rem);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
  }


  /* Name ================================== */
  /* ======================================= */
  .hero-content h1 {
    margin-top: -10px;
    white-space: nowrap;
    font-size: clamp(1.7rem, 5vw, 4rem);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: 5px;
    width: 100px;
  }

   @media (max-width: 768px) {
      .hero-content h1 {
      margin-top: -15px;
      }
   }

 


  /* Description =========================== */
  /* ======================================= */
  .hero-content p {
  font-size: clamp(1.1rem, 1.2vw, 2rem);
  line-height: 1.4;
  max-width: 50ch;
  letter-spacing: 3px;
  font-weight: 100;
  font-family: 'Roboto', sans-serif;
  color: #ffffff;
  }

  @media (max-width: 768px) {
  .hero-content p {
  margin-top: 10px;
  }
}













/* ========================================================================================== */
/* ABOUT SECTION */
/* ========================================================================================== */
  :root {
    --about-split: 30%;   /* Cambia aquí a 25%, 40%, lo que quieras */
  }

  .about {
  display: grid;
  grid-template-columns: var(--about-split) 1fr;
  overflow: hidden;
  background: transparent; /* 🔥 quitamos negro aquí */
  gap: 10px; /* 🔥 separación entre bloques */
  padding: 20px; /* 🔥 margen exterior */
  height: 100dvh;
  

  /* ====================================================== */
  /* ABOUT — FADE STRUCTURAL LAYER */
  /* ====================================================== */

  /* Capa que contiene el fondo negro + fade */
  .about-fade-layer {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 0;
      

  /* Fade solo en esta capa */
  -webkit-mask-image: linear-gradient(
  to bottom,
  black 75%,
  transparent 100%
  );

  mask-image: linear-gradient(
  to bottom,
  black 87%,
  transparent 100%
  );

  pointer-events: none;
  }
  }


  @media (max-width: 768px) {
  .about {
  grid-template-columns: 1fr;
  height: 100vh;
  }

  .about_content_left {
  height: 93dvh;
  }
  }



  /* ====================================================== */
  /* SECCIÓN IZQUERDA */
  /* ====================================================== */

    /* FONDO CARD IZQUERDA ==================== */
    /* ======================================= */

      .about-bg_1 {
        
        position: absolute;
        inset: 10px; /* 👈 respira como el layout */
        z-index: 0;

        overflow: hidden;
        border-radius: 10px;

        /* Liquid glass más sutil */
        backdrop-filter: blur(15px) saturate(130%);
        -webkit-backdrop-filter: blur(15px) saturate(130%);

        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.18);

        box-shadow:
        0 8px 25px rgba(0,0,0,0.35),
        inset 0 1px 1px rgba(255,255,255,0.25);
        opacity: 1;
        }

        @media (max-width: 768px){
        .about-bg_1 {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        transform: translateX(-20px); /* muy sutil */
        }
        }

        @media (max-width: 768px){
        .about {
        padding: 10px; /* 👈 menos margen en móvil */
        }

        .about-bg_1 {
        inset: 0px; /* 👈 proporcional */
        }
    }



    /* CONTENEDOR GLOBAL IZQUERDA ============ */
    /* ======================================= */

    .about_content_left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* centra vertical */
    align-items: center;
    gap: clamp(2px, 1vw, 10px);
    }

    @media (max-width:768px){
    .about_content_left {
    justify-content: flex-start; /* centra vertical */
    }
    }



    /* IMAGE ME ============================== */
    /* ======================================= */

    .about-image {
    width: clamp(300px, 28vw, 450px);
    margin-left: 0;
    z-index: 5;
    }

    .about-image img {
    width: 100%;
    display: block;
    }

    @media (max-width:768px){
    .about-image{
    margin-top: 25%;
    }
    }



    /* ==================================================== */
    /* TEXTO — LADO IZQUERDO */
    /* ==================================================== */

      /* Contenedor etiqueta ================================= */

       .about_etiqueta {
        width: auto;
        height: auto;
        line-height: 1.4;
        z-index: 5;
        margin-top: -40px;
        }


      /* Etiqueta ================================= */

        .texto_name{
        margin: 0px;
        font-size: clamp(1rem, 1.5vw, 1.6rem);
        letter-spacing: 4px; 
        font-size: clamp(.9rem, 1.4vw, 1.3rem);
        font-weight: 500;
        font-family: 'Roboto', sans-serif;
        letter-spacing: 5;
        }


        .texto_project_manager{
        margin: 0px;
        font-size: clamp(.8rem, 1vw, 1.3rem);
        font-weight: 100;
        font-family: 'Roboto', sans-serif;
        letter-spacing: 3;
        }


        /* Contenedor Subtitulos ================================= */

        .texto_designing{  
        letter-spacing: 6;
      }

       .about_line{
          border: 0.01px solid rgba(255,255,255,0.18);
          width: auto;
        }

        .about_subtitle {
        position: relative;
        display: inline-block;

        margin-top: 100px;
        /* margin-left: 80px; */
        width: auto;

        font-size: clamp(.8rem, 1.2vw, 1rem);
        font-weight: 100;
        font-family: 'Roboto', sans-serif;
        letter-spacing: 4;
        line-height: 3;
        text-align: center;
  }






  /* ====================================================== */
  /* SECCIÓN DERECHA */
  /* ====================================================== */

    /* FONDO CARD DERECHA ==================== */
    /* ======================================= */

      .about-bg_2 {
      position: absolute;
      margin-left: 3%;
      margin-right: 3.5%;
      inset: 10px;
      z-index: 0;
      justify-content: flex-start;

      overflow: hidden;
      border-radius: 10px;

      /* Liquid glass más sutil */
      backdrop-filter: blur(15px) saturate(130%);
      -webkit-backdrop-filter: blur(15px) saturate(130%);

      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.18);

      box-shadow:
      0 8px 25px rgba(0,0,0,0.35),
      inset 0 1px 1px rgba(255,255,255,0.25);
      opacity: 1;
      }

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


    /* CONTENEDOR GLOBAL DERECHA ============= */
    /* ======================================= */

    .about_content_right {
    position: relative; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: clamp(5px, 8vw, 180px); /*para dar margen dentro de contenedor*/
    }



    /* TEXTO - LADO DERCHO =================== */
    /* ======================================= */

    /* CONTENEDOR DE TITULOS ================= */
    /* ======================================= */

    .about_title {
    position: relative;
    display: flex;
    top: 100px;
    flex-direction: column;
    white-space: nowrap;
    width: 450px;
    height: clamp(5px, 15vw, 280px);
    z-index: 1;
    }

    .about_title h2{
    position: absolute;
    margin-top: clamp(1px, 1vw, 45px);
    margin-left: 10px;
    margin-top: 90px;
    }

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



    /* Who I am Small ======================== */
    /* ======================================= */

    .about_title .who_small {
    position: relative;
    line-height: 110px;

    font-size: clamp(2.5rem, 3vw, 5rem);
    font-family: 'Kalvani', sans-serif;
    font-weight: 200;
    letter-spacing: 2px;
    color: white;
    opacity: .6;
    width: 250px;
    z-index: 2;
    }

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



    /* Who I am Big ========================== */
    /* ======================================= */

    .about_title .who_big {
    position: absolute;
    top: 0;
    left: 0;
    line-height: 180px;

    font-size: clamp(4rem, 5vw, 8rem);
    font-family: 'Kalvani', sans-serif;
    font-weight: 100;
    letter-spacing: 2px;
    color: white;
    opacity: .04;
    width: 400px;
    z-index: 1;
    }

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



    /* CONTENEDOR DE PARRAFOS ================ */
    /* ======================================= */

    .about_text_block {
    display: flex;
    flex-direction: column;
    width: clamp(30px, 45vw, 680px);
    gap: 15px;

    margin-top: auto;
    margin-bottom: auto;
    }

    .about_text_block {
    transform: translateY(-60px);
    }



    /* CARACTERISTICAS PARRAFOS ============== */
    /* ======================================= */

    .about-right-text {
    position: relative;
    max-width: 65ch;

    transition: color 0.4s ease;
    z-index: 2;

    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    font-weight: 100;
    letter-spacing: 1px;
    line-height: 1.5;
    }

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

    /* IMAGEN MOAI =========================== */
    /* ======================================= */

    .moai_picture{
    position: absolute;
    margin-top: clamp(10px, 37vw, 17px);
    left: -15%;
    width: clamp(10px, 37vw, 530px);
    height: auto;
    object-fit: cover;
    opacity: .1;
    }

    .about-bg_2{
    transform: scaleX(-1);
    }

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


    /* ====================================================== */
    /* CONTENEDOR TELL ME MORE */
    /* ====================================================== */

    .block_tell_me {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 500px;

    bottom: 10%;
    pointer-events: auto;
    z-index: 10;height: 150px;
    }

    .block_tell_me .tellme-more--big,
    .block_tell_me .tellme-more--small{
    position: absolute;
    margin-top: 10px;
    margin-left: 20px;
    text-decoration: none;
    white-space: nowrap;
    pointer-events: auto;
    transition: color 0.4s ease;


    font-weight: 100;
    font-family: 'Kalvani';
    }


    /* TELLME MORE BIG ================================= */

    .tellme-more--big {
    font-size: clamp(3rem, 8vw, 5.4rem);
    opacity: 0.1;
    letter-spacing: 6;

    height: 150px;
    position: relative;
    padding: 60px;
    }


    /* TELL ME MORE SMALL ============================== */

    .tellme-more--small {
    font-size: clamp(1.5rem, 3vw, 3rem);
    letter-spacing: 5;
    opacity: 1;

    height: 100px;
    position: relative;
    z-index: 20;
    padding: 40px;
    }


    @media (max-width:768px){

    .block_tell_me {
    position: absolute;
    width: 300px;
    height: 100px;
    top: -180PX;
    align-items: center;
    }

    .tellme-more--small {
    margin-top: 0px;
    font-size: 2rem;

    }

  }
  


/* ============================================= */
/* OVERLAY ABOUT =============================== */
/* ============================================= */

  /* ABOUT con fondo blanco base */
  section#about {
  position: relative;
  transition: background 1s ease; /* transición suave */
  }

  /* Cuando se activa el overlay, el fondo se oscurece */
  #about.about-overlay-blue {
  background: rgb(1, 36, 58);
  }

  /* Aseguramos que los textos sigan siendo visibles */
  .tellme-more--small {
  color: #ffffff; /* blanco por defecto cuando el fondo es oscuro */
  transition: color 2s ease;
  }

  #about.about-overlay-blue .moai_picture{
    opacity: 0.2;
    transition: color 3s ease-in-out;
  }

  #about.about-overlay-blue .about-right-text{
    display: none;
  }

  /* Si quieres que solo cambien al hacer hover */
  #about.about-overlay-blue .tellme-more--big{
  color: #ffffff;
  }
  
  #about.about-overlay-blue .tellme-more--small{
  color: rgb(1, 36, 58, 0); 
  }
  
  #about.about-overlay-blue .about-text P{
    color: rgb(1, 36, 58, 0); 
  }

  #about.about-overlay-blue .about-text H2{
    color: rgb(1, 36, 58, 0);
}














      

/* ========================================================================================== */
/* PROJECTS SECTION */
/* ========================================================================================== */

.projects {
  position: relative;
  min-height: 100dvh; 
  overflow: hidden;
  background: transparent; /* 🔥 quitamos negro aquí */
}


/* ====================================================== */
/* IMAGEN BACKGROUND */
/* ====================================================== */

  .background-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.background-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.projects-bg-active .background-bg {
  display: block;
}

.section,
.seccion {
  position: relative;
  z-index: 1;
}



/* ====================================================== */
/* TEXTO — VERTICAL IZQUERDO */
/* ====================================================== */

      /* TXT BIG PROJECTS ============================== */

      .Cont_txt_big_projects,
      .Cont_txt_small_projects {
        position: absolute;
        top: 0;
        left: 10px; /* separación del borde */

        height: 100%;
        display: flex;
        align-items: flex-start;

        pointer-events: none;
      }


      .txt_projects_big,
      .txt_projects_small {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        white-space: nowrap;
        font-family: 'Roboto', sans-serif;
        font-weight: 200;
        letter-spacing: clamp(3px, 0.5vw, 8px);
      }

      .txt_projects_big {
        font-size: clamp(11rem, 13vw, 14rem);

        opacity: 0.1;  /* 🔥 branding sutil */
        color: #ffffff;

        transform: rotate(180deg) translateY(37%);
        z-index: 1;
      }

      /* TXT SMALL PROJECTS ============================== */

      .txt_projects_small {
        font-size: clamp(5rem, 8vw, 9rem);

        color: #ffffff;
        opacity: 0.4;

        margin-top: 290px; /* lo baja un poco */
        margin-left: 17px;
        z-index: 3;
      }

      @media (max-width: 768px){
        .txt_projects_small {
          margin-top: 300px; /* lo baja un poco */
        }
}



/* ====================================================== */
/* PROJECT'S CARD
/* ====================================================== */

.projects-cards{
  position:absolute;
  top:40px;
  bottom:60px;
  left:0;
  right:0;
}


/* ====================================================== */
/* PROJECT CARD BASE */
/* ====================================================== */

.project-card{

  position:absolute;

  width: clamp(10px,30vw,400px);
  height:100%;

  border-radius:14px;
  overflow: hidden;

  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%); /* 🔥 Safari */
  background-color: rgba(255,255,255,0.08);

  box-shadow:
  0 10px 30px rgba(0,0,0,.4),
  inset 0 1px 1px rgba(255,255,255,.3);

  text-decoration:none;

  transform-origin: left center;

  will-change: transform, width;

  transition:
  /* width 1.5s cubic-bezier(.7,0,.2,1), */
  transform .6s cubic-bezier(.7,0,.2,1),
  filter .4s ease;
}


/* ====================================================== */
/* REFLEJO */
/* ====================================================== */

.project-card::after{

  content:"";
  position:absolute;
  inset:-40%;

  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255,255,255,.25),
    transparent 60%
  );

  transform: translateX(-120%);
  transition: transform 3.1s ease;

}

.project-card:hover::after{
  transform: translateX(120%);
}


/* ====================================================== */
/* CARD POSITIONS */
/* ====================================================== */

.project-bg_1{
  margin-top:-10px;

  left: 22%;
  height:87%;
  z-index:1;
}



.project-bg_2{
  margin-top:35px;
  left: 25%;
  height:88%;

  z-index:2;
}



.project-bg_3{
  margin-top:80px;
  left: 28%;
  height:88%;

  z-index:3;
}


/* ====================================================== */
/* RESPONSIVE */
/* ====================================================== */

@media (max-width:768px){


  .project-card{
  width: clamp(8px,55vw,400px);
  height:100%;
  }

  .project-bg_1{
  margin-top:-10px;
  left: 5%;
  height:60%;
  }


  .project-bg_2{
  margin-top:35px;
  left: 13%;
  height:60%;
  }


  .project-bg_3{
  margin-top:80px;
  left: 22%;
  height:60%;
  }
}


/* ====================================================== */
/* CARD CONTENT */
/* ====================================================== */

.card-content{
  position:absolute;
  inset:0;

  padding:
  70px
  60px
  120px
  60px;
}


/* ====================================================== */
/* CARD EXPANSION HOVER */
/* ====================================================== */

.project-card:hover{
  width: calc(120% - var(--about-split) - 100px);
  z-index:10;
  border: 0.5px solid red; 
  transition: ease-out 1.4s;
  background: rgba(255,255,255,0.12);
}


/* ====================================================== */
/* BLUR SYSTEM */
/* ====================================================== */

.projects:has(.project-card:hover)
.project-card:not(:hover){

  filter: blur(1px) opacity(.6);
  border: 1px solid white;
}


/* ====================================================== */
/* CARD GLASS HIGHLIGHT */
/* ====================================================== */

.project-card::before{

  content:"";
  position:absolute;
  inset:0;

  border-radius:inherit;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0.05) 40%,
    transparent 60%
  );
  pointer-events:none;

}


/* ====================================================== */
/* TEXT PARRAFO BASE*/
/* ====================================================== */

/* CONTENEDOR TEXTO */
.cont_text_card{
  position:absolute;
  bottom:clamp(1%,16vh,35%);
  left:90px;
  width: clamp(5px,55vw,250px);
  
}


/* PARRAFO */
.cont_text_card p{
  margin-bottom:.8rem;
  margin-left: 0px;
  
  width: clamp(6px,19vw,240px);

  font-size: clamp(.75rem,.66vw,6rem);
  line-height:1.27;
  font-family:'Roboto', sans-serif;
  font-weight: 200;
  letter-spacing:2px;
  color:white;

  opacity:.9;
  transition:.4s;
}


/* HOVER */
.project-card:hover .cont_text_card P{
  bottom: 20%;
  margin-left:0px;
  width: clamp(-50px,190vh,390px);
  line-height:1.5;
  font-size: clamp(.76rem,.7vw,3rem);
}


/* ====================================================== */
/* TITULO VERTICAL*/
/* ====================================================== */

.text_card_vertical{
  position:absolute;
  display: flex;
  left: clamp(10.5px,0.9vw,20px);
  top:100px;

  writing-mode: vertical-rl;
  transform: rotate(180deg);

  font-size: clamp(0.7rem, 0.8vw, 2rem);
  font-weight:500;
  letter-spacing:4px;

  font-family:'Roboto', sans-serif;

  color:#ffffff;
  opacity:.9;

  pointer-events:none;

}



/* ====================================================== */
/* LIQUID GLASS BUTTON */
/* ====================================================== */

.boton_card{

  position:absolute;

  left:80px;
  bottom:50px;

  padding: clamp(0.4rem, 0.8vw, 2rem);

  border-radius:40px;

  font-family:'Roboto', sans-serif;
  font-size:.7rem;
  letter-spacing:2px;
  text-transform:uppercase;

  color:#fff;
  text-decoration:none;

  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(255,255,255,.08);

  border:0.5px solid rgba(255,255,255,.25);

  box-shadow:
  0 4px 12px rgba(0,0,0,.35),
  inset 0 1px 1px rgba(255,255,255,.4);

  transition:
  transform .35s ease,
  background .35s ease,
  box-shadow .35s ease;

}

/* hover */

.boton_card:hover{

  background: rgba(255,255,255,.18);

  transform: translateY(-3px);

  box-shadow:
  0 8px 18px rgba(0,0,0,.45),
  inset 0 1px 2px rgba(255,255,255,.5);

}




/* ====================================================== */
/* CARDS SECTIONE - 1 */
/* ====================================================== */

/* IMAGEN ============================== */


/* PARRAFO ============================== */

.contact_text_card_1{
  position:absolute;
  bottom:clamp(1%,16vh,35%);
  left:90px;
  width: clamp(5px,55vw,250px);
}


.cont_text_card_1 p{
  margin-bottom:.8rem;
  margin-left: 0px;
  
  width: clamp(6px,19vw,240px);

  font-size: clamp(.75rem,.66vw,6rem);
  line-height:1.27;
  font-family:'Roboto', sans-serif;
  font-weight: 200;
  letter-spacing:2px;
  color:white;

  opacity:.9;
  transition:.4s;
}

/* HOVER */
.project-card:hover .cont_text_card_1 {
  margin-top: -50%;
  margin-left: 3%;
  width: clamp(-50px,190vh,390px);
  line-height:1.5;
  font-size: clamp(.76rem,.7vw,3rem);
}


/* MOVILE MEDIA */


@media (max-width:768px){


.text_card_1_1, .text_card_1_2, .text_card_1_3{
  display: none;
}
}


/* MINI BROWSER 1 ============================== */

.mini_browser_1{
width:clamp(10px, 22vw, 500px);
height:clamp(10px, 90vw, 470px);

margin-left: clamp(2rem, 27vw, 40rem);
margin-top: -4px;

border-radius:12px;
overflow:hidden;

box-shadow:
0 10px 30px rgba(0,0,0,0.4);

background:#000;
opacity: 1;
}



  

.mini_browser_1 .iframe_1{
width:clamp(10px, 23vw, 500px);
height:clamp(10px, 100vw, 470px);
border:none;
transform: scale(1);
transform-origin: top left;
}


/* QUERIE MINIBROWSER ============================== */

@media (max-width: 768px){
.mini_browser_1{
width:120%;
height:clamp(10px, 70vw, 470px);

margin-left: 3px;
margin-top: -50px;

border-radius:12px;
overflow:hidden;

box-shadow:
0 10px 30px rgba(0,0,0,0.4);

background:#000;
opacity: 1;
  }

.mini_browser_1 .iframe_1{
width:208%;
height:300%;
border:none;
transform: scale(0.50);
transform-origin: top left;
}

}







/* ====================================================== */
/* CARDS SECTIONE - 2 */
/* ====================================================== */


/* IMAGEN ============================== */

.projects-image_2{
  position:absolute;
  top:clamp(3%,5vh,100%);
  margin-left: 12px;

  transition:left 2s cubic-bezier(.7,1,.2,1);
  z-index: 5;
}

.projects-image_2 img{

  width: clamp(10px,59%,200px);
  height:clamp(10px,59%,200px);
  object-fit:contain;
}


/* PARRAFO ============================== */

/* PARRAFO 2 */

@media (max-width:768px){
  .text_card_2_2, .text_card_2_3{
    display: none;
  }

  .text_card_2_1{
   transform: translateY(30px); 
  }
}


/* MINI BROWSER 2 ============================== */

.about_card{

  position: absolute;
  margin-left: 30px;
  margin-top: -20px;

  width: clamp(5px, 17vw, 250px);
  height: clamp(5px, 17vw, 250px);
  /* height: fit-content;  */
  overflow: hidden;

  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-radius: 17px;
  padding: 3rem 2rem;

  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);

  z-index: 1;
}

.project-bg_2:hover .about_card {
  position: absolute;
  margin-left: 30px;
  margin-top: -20px;
  width: clamp(140px, 18vw, 280px);
  height: clamp(120px, 18vw, 280px);
}


.about_card_dk{
  display: flex;
  position:absolute ;
  margin-left: 355px;
  margin-top: 70px;

  width: 60px;
  height: 60px; 
  /* height: fit-content; */
  overflow: hidden;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);

  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-family: "Roboto",sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  
  z-index: 2;
}

.project-bg_2:hover .about_card_dk {
  display: flex;
  position:absolute ;
  margin-left: clamp(5px, 25vw, 380px);
  margin-top: -20px;
}



@media (max-width:768px){
  .project-bg_2:hover .about_card_dk{
    display: none;
  }
  .card-content  .text_digital_kids{
    visibility: hidden;
  }
}



.text_digital_kids{
  position: absolute;
  margin-left: 425px;
  margin-top: 82px;
  white-space: nowrap;
  color: #ffffff;
  letter-spacing: 2px;
  font-family: "Roboto",sans-serif;
  font-weight: 600;
  z-index: 3;
}

.project-bg_2:hover .text_digital_kids {
  display: flex;
  position:absolute ;
  margin-left: clamp(5px, 31vw, 450px);
  margin-top: -8px;
}






/* ====================================================== */
/* CARDS SECTIONE - 3 */
/* ====================================================== */

/* IMAGEN ============================== */

.projects-image_3 img{
  position:absolute;
  top:clamp(3px,8vh,180px);
  left: clamp(70px,7vw,280px);

  /* transition:left 2s cubic-bezier(.7,1,.2,1);
  z-index: 5; */

  width: clamp(-20px,27vw,220px);
  height:auto;
  /* object-fit:contain; */
}

.project-bg_3:hover .projects-image_3 img{
  position:absolute;
  left: 85px;
  transition: 1s ease;
  width: clamp(130px,15vw,260px);
  height:auto;
}


/* PARRAFO ============================== */

/* PARRAFO 3 */
@media (max-width:768px){
  .text_card_3_2, .text_card_3_3{
    display: none;
  }

  .text_card_3_1{
    text-transform: uppercase;
    line-height:1.9;
    font-size: 7rem;
  }

  .project-card:hover .cont_text_card P{
    width: 150px;
  }
}

/* MINI BROWSER 3 ============================== */

.mini_browser_3{
width:clamp(10px, 30vw, 660px);
height:clamp(10px, 50vw, 190px);

margin-left: clamp(5rem, 28.5vw, 40rem);
margin-top: -2px;

border-radius:12px;
overflow:hidden;

box-shadow:
0 10px 30px rgba(0,0,0,0.4);

background:#000;
opacity: 1;
}


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

.mini_browser_3 .iframe_3{
width:clamp(10px, 30vw, 660px);
height:clamp(10px, 50vw, 190px);
border:none;

}



/* ====================================================== */
/* RESPONSIVE */
/* ====================================================== */

/* @media (max-width:768px){

  .project-bg_1,
  .project-bg_2,
  .project-bg_3{

    display:none;

  }

} */



        



/* ========================================================================================== */
/* EXPERIENCE SECTION */
/* ========================================================================================== */

.experience {
  /* background: #000000; */
  background: transparent;
  position: relative;
  height: 100vh;
  overflow: hidden;
}


/* ====================================================== */
/* IMAGEN BACKGROUND 2 DERECHA */
/* ====================================================== */

    .experience-bg {
    position: absolute;
    top: 8px;
    bottom: 12px;
    right: 8px;
    /* left: calc(var(--about-split) + 5px); */
    left: 8px;
    transform: scaleX(-1);

    overflow: hidden;
    border-radius: 0px;

    /* 🔥 Liquid glass */
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);

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

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

    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.4),
      inset 0 1px 1px rgba(255, 255, 255, 0.3);

      opacity: 0.3;
    }

    .experience:has(.experience-card.active) .experience-bg{
    background: rgba(0,0,0,0.9); /* 🔥 más oscuro */
    transition: background 0.6s ease;
}

   .about-bg_1 img {
        width: 100%;
        height: 160%;
        object-fit: cover;
        object-position: 90% center;
        opacity: 1;
        filter: brightness(50%);
    } 


    @media (max-width: 768px) {
      /* .about-bg_2 {
        display: none;
      } */

 
      .about-bg_1 {
      left: 20px;
      right: 20px;
      }
    }


    /* DESACTIVAR BLUR EN SMARTPHONE "RENDIMIENTO" ================================= */

    @media (max-width: 768px) {
      .about-bg_1,
      .about-bg_2,
      .project-bg,
      .menu-bar {
        backdrop-filter: blur(8px);
      }
  }


  .moai_background{
  
  width: 30%;
  height: auto;
  opacity: 0.1;
  }

  /* TXT BIG PROJECTS ============================== */

      .Cont_txt_big_experience{
        position: absolute;
        margin-top: clamp(5px, 70vh, 500px);
        left: clamp(10px, 57vh, 700px);

        height: 100%;
        display: flex;
        align-items: flex-start;
        pointer-events: none;
        z-index: 10;
      }

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


      .txt_experience_big{
        white-space: nowrap;
        font-family: 'Roboto', sans-serif;
        font-weight: 200;
        letter-spacing: clamp(3px, 0.5vw, 8px);
        font-size: clamp(4rem, 6vw, 10rem);
        opacity: 0.08;  
        color: #ffffff;
      }

    


/* ========================= */
/* TIMELINE */
/* ========================= */

.timeline{
  position: absolute;
  top: clamp(8px, 57%, 475px);
  left: clamp(7px, 4vw, 90px);
  transform: translateY(-50%);

  width: 1.5%;
  padding: 10% 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;

  border-radius: 20px;

  backdrop-filter: blur(20px) saturate(140%);
  background: rgba(255,255,255,0.08);
  border: .5px solid rgba(255,255,255,0.2);
  z-index: 10;
}

/* línea vertical */
.timeline::before{
  top: 5%;
  content:"";
  position:absolute;
  width:1px;
  height:90%;
  background:rgba(255,255,255,0.3);
}

/* items */
.timeline-item{
  position: relative;
  cursor: pointer;
  color: white;
  font-family: 'Roboto', sans-serif;
  text-align: left;
  letter-spacing: 1;
  width: 150px;
  font-weight: 300;


  transform: translateX(clamp(15px, 25vw, 110px));
  opacity: .7;
  transition: .3s;
}

.timeline-item.active{
  transform: translateX(clamp(5px, 25vw, 120px));
  opacity: 1;
}


.timeline-item .year{
  font-weight: 500;
  display:block;
}

.timeline-item .label{
  font-size: clamp(.8rem, 1vw, .9rem);
  opacity: .8;
  white-space: nowrap;
  line-height: 1.1;
}

/* ========================= */
/* EXPERIENCE CARD */
/* ========================= */

.experience-card{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;
  opacity: 1;
  /* tarda 1 segundo en desaparecer */
  transition: none;
  transform: translateX(clamp(2px, 7vw, 40px));
}

@media (max-width: 768px){
.experience-card{

  transform: 
  translateY(-240px)
  translateX(-60px);
}

}

.experience-card.active{
  opacity: 1;
  pointer-events: auto;
}


/* CARD estilo projects */
.card-inner{
  border: 2px solid red;
  border: 0.01px solid rgb(152, 181, 254, 0.3);
  width: clamp(1px, 55vw, 1600px);
  height: clamp(20px, 50vw, 650px);
  padding: clamp(5px, 5vw, 70px);
  font-family: "Roboto", serif;
  letter-spacing: 1;
  line-height: 1.5;
  border-radius: 14px;
  font-weight: 100;
  backdrop-filter: blur(24px) saturate(140%);
  background: rgba(255,255,255,0.01);

  box-shadow:
    0 10px 30px rgba(0,0,0,.4),
    inset 0 1px 1px rgba(255,255,255,.3);

  color: white;

  transform: scale(.9);
  opacity: 0;

  transition:
  /* escala zoom */
  transform 1s cubic-bezier(.7,0,.2,1),
  /* fade de la card */
  opacity 1s ease;
}




/* hover */
.card-inner:hover::after {
  transform: translateX(120%);
}

/* activo */
.experience-card.active .card-inner{
  /* fade-in + zoom-in */
  transform: scale(1);
  opacity: 1;
}





/* PROPIEDADES AÑO */

/* 2019 */
.experience-card.year-2019 .card-inner{
  background: rgba(0,0,0,0.3);
  letter-spacing: 2;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(.7rem, 0.9vw, 0.9rem);
  
}

/* 2020 */
.experience-card.year-2020 .card-inner{
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(30px);
}

/* 2024 */
.experience-card.year-2024 .card-inner{
  background: rgba(0,0,0,0.3);
}

/* 2026 */
.experience-card.year-2026 .card-inner{
  background: rgba(0,0,0,0.3);
}





/* ========================================================================================== */
/* CONTACT SECTION */
/* ========================================================================================== */

.contact {
  /* background: #000000; */
  background: transparent;
}


/* =============================== */
/* FOOTER - DESIGN BY */
/* =============================== */

footer{
  position: absolute;
  bottom: clamp(90px, 14vh, 140px); /* distancia sobre la barra glass */

  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  text-align: center;
  white-space: nowrap;

  z-index: 6;
}

@media (max-width:768px ){
footer{
  left: 45%;
  bottom: 15%;
}

}

/* Design by */

.design_by{
  font-family: 'Roboto';
  font-size: clamp(.7rem,.8vw,.9rem);
  font-weight: 500;
  letter-spacing: 3px;
  color: #ffffff;
  margin-bottom: -15px;
}

/* BIG NAME */

.my_name{
  font-family: 'Kalvani';
  font-size: clamp(1.4rem,3vw,2.7rem);
  font-weight: 900;
  letter-spacing: 6px;
  padding: 40px;
  height: 110px;
  margin-bottom: 0px;

  text-decoration: none;
  color: #ffffff;

  opacity: .12;
}

/* SMALL NAME */

.my_name_2{
  font-family: 'Roboto';
  font-size: clamp(.7rem,1.5vw,1.3rem);
  font-weight: 200;
  letter-spacing: 5px;
  margin-top: -60px;

  text-decoration: none;
  color: #ffffff;
}

/* YEAR */

.txt_year{
  font-family: 'Roboto';
  font-size: clamp(.7rem,.9vw,.8rem);
  letter-spacing: 2px;
  opacity: .6;
  margin-left: 60%;
}




/* ========================================================= */
/* CONTACT — LIQUID GLASS FOOTER BAR */
/* ========================================================= */

.contact {
  position: relative;
}

/* =============================== */
/* BARRA CONTENEDORA */
/* =============================== */

.contact-footer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 7%;

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

  background: transparent; /* 🔥 el cristal vive en ::before */

  z-index: 5;
  overflow: hidden; /* necesario para que los pseudo no se salgan */
}

/* =============================== */
/* CAPA CRISTAL REAL */
/* =============================== */

.contact-footer-bar::before {
  content: "";
  position: absolute;
  inset: 0;

  /* 🔥 transparencia controlada aquí */
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.15),
    rgba(255,255,255,0.01)
  );

  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);

  border-top: .5px solid rgba(255,255,255,1);

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

  z-index: 0;
  pointer-events: none;
}

/* =============================== */
/* REFLEJO GLOSSY SUPERIOR */
/* =============================== */

.contact-footer-bar::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0.05) 40%,
    transparent 70%
  );

  mix-blend-mode: overlay;

  pointer-events: none;
  z-index: 1;
}

/* =============================== */
/* TEXTO (SIEMPRE SÓLIDO) */
/* =============================== */

.contact-footer-bar > * {
  position: relative;
  z-index: 2;
}

.contact-copyright {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: clamp(0.82rem, 0.8vw, 0.9rem);
  letter-spacing: 2px;
  color: #ffffff; /* sólido */
}

@media (max-width: 768px){
  .contact-footer-bar p {
    left: -7%;
  }
}







