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

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

html, body {
  width: 100%;
  height: 100%;
}

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

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

/* body {
  visibility: hidden;
} */


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

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


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

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





/* BARRA SCROLL LATERAL ====================================== */
/* =========================================================== */

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



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

.section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(1rem, 1fr) repeat(12, minmax(0, 1fr)) minmax(1rem, 1fr);
  align-items: center;
  position: relative;
}


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


  /* MEDIA QUERIE PARA MOVILE */
      @media (max-width: 768px) {
        .side-contact {
        position: fixed;
        right: 10px;
        bottom: 230px;
      }

      }


  /* 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, 4vh, 60px); /* 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;
}


/* ocultamos negros por completo */
.social-link .black {
  display: none;
}


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

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

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

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

  cursor: pointer;
  z-index: 20;

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

.menu-button .shape {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.1px solid rgb(209, 207, 207);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  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.4s ease;
}

.menu-button:hover .shape {
  transform: scale(1.08);
  box-shadow: 0 0 14px rgb(147, 147, 147);
}

.menu-button .line {
  position: absolute;
  width: 55%;
  height: 2px;
  background: rgb(250, 2, 2);
  border-radius: 10px;
  transition: all 0.45s cubic-bezier(0.22,1,0.36,1);
  opacity: 0;
}

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


/* OPEN STATE */
.menu-button.open .shape {
  border-radius: 20%;
  transform: scale(1.15);
}

.menu-button.open .line {
  opacity: 1;
}

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

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

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




/* BARRA LATERAL MENU ======================================== */
/* =========================================================== */

:root {
  --bar-width: 64px;
}

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

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: -12px 0 30px rgba(0,0,0,0.55);

  transition: right 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 8;
}

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


/* PANEL DEL MENU ============================================ */
/* =========================================================== */

.menu-panel {
  position: fixed;
  top: clamp(1px, 8vw, 500px);
  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;
}

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

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

/* Items ================================= */
/* ======================================= */
.menu-list button {
  background: none;
  border: none;
  color: rgb(157, 155, 155);
  font-family: '', sans-serif;
  font-size: clamp(0.7rem, .75vw, .85rem);
  font-weight: 500;
  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: 1px;
  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;
}











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

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


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

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

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


/* Name ================================== */
/* ======================================= */
h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  letter-spacing: 5px;
  transform: translateY(clamp(-5px, -15vw, 10px));
}


/* Description =========================== */
/* ======================================= */
p {
  margin-top: 1rem;
  max-width: 40ch;
  opacity: 0.85;
}
.descritption_phrase {
font-size: clamp(1.1rem, 1.1vw, 1.5rem);
max-width: 40ch;
letter-spacing: 2px;
font-weight: 100;
font-family: 'Poppins', sans-serif;
color: #ffffff;
transform: translateY(clamp(-5px, -15vw, 10px));
}





/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .content,
  .hero-content {
    grid-column: 2 / -2;
  }
}







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

.nav {
  display: grid;
  grid-template-columns:
    minmax(1rem, 1fr)
    repeat(12, minmax(0, 1fr))
    minmax(1rem, 1fr);
  align-items: center;
  height: auto;
  padding: 1rem 0;
  background: transparent;
  padding-top: clamp(32px, 5vh, 80px);
}

.nav-logo {
  grid-column: 2 / span 3;   /* juega con esto: span 2, 3, 4… */
  justify-self: start;

  width: clamp(60px, 38vw, 140px); /* tamaño responsive */
  height: auto;

  pointer-events: auto;
  transform: translateY(20%);
}

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


.nav-links {
  grid-column: 6 / span 6;
  display: flex;
  gap: 2rem;
  list-style: none;
  pointer-events: auto;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}





/* 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
SECTION HOME
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
*/

  section#home {
    width: 100%;
    height: 100vh;
    background: #000000;
  }


  .hero-content {
  position: relative;
  z-index: 2;
  grid-column: 2 / span 4;
  display: grid;
  row-gap: clamp(4px, 1vh, 10px);

  margin-top: clamp(40px, 12vh, 140px); /* 🔥 baja TODO el bloque */
  }


  /* ================= HERO ================= */
  .hero {
    background: #000;
    z-index: 1;
  }

  .seccion {
    position: relative;
    z-index: 2; /* las secciones pasan por encima del video */
  }


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


  /* transición */
  .hero-video {
    opacity: 1;
    transition: opacity 0.6s ease;
  }

  body.hide-hero-video .hero-video {
    opacity: 0;
    pointer-events: none;
  }



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




/* 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
ABOUT SECTION
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
*/

  section#about {
  width: 100%;
  height: 100vh;
  background: #000000;
  position: relative;
  overflow: hidden;
  }

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

    /* ABOUT - BIG ======================================== */
  
    .Cont_txt_big_about {
      position: absolute;
      top: -10;
      left: 40px;

      z-index: 5;
      opacity: 0.08;
      pointer-events: none;

      transform:
        translateY(clamp(-30vh, -20vw, -10vh));
    }

    .txt_about_big {
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      white-space: nowrap;
      font-family: 'Roboto', sans-serif;
      font-size: clamp(10rem, 12vw, 20rem);
      letter-spacing: clamp(5px, 4vw, 6px);
      font-weight: 800;
      color: #000;
    }


    /* ABOUT - SMALL ====================================== */

    .Cont_txt_small_about {
      position: absolute;
      top: clamp(10%, 20vw, 60%);
      left: clamp(-30px, 25vw, 10px);
      z-index: 5;
      opacity: 0.5;
      pointer-events: none;
    }

    .txt_about_small {
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      white-space: nowrap;
      font-family: 'Roboto', sans-serif;
      font-size: clamp(6rem, 7vw, 9rem);
      letter-spacing: 8px;
      font-weight: 800;
      color: #000;
    }

    /* ESTO SEGURAMENTE NO VA !!!!!!!!!!!!!!!*/
    @media (min-width: 1540px) {
      .Cont_txt_small_about {
      top: clamp(10%, 16vw, 60%);
      left: clamp(-30px, 25vw, 10px);
      }
  }









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

    .about-content {
    grid-column: 2 / -2;

    /* ↑ controla márgenes laterales del bloque completo */

    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);

     align-items: center; 
    /* ↑ alinea imagen y texto verticalmente entre sí */

    gap: clamp(24px, 4vw, 80px);
    /* ↑ separación entre imagen y texto */
    }


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

      .about-image {
      grid-column: 1 / span 5;
      grid-row: 2 / span 5;


      transform: translateY(120%);
      transform: translateX(5%);
      }


      .about-image img {
      width: clamp(460px, 55vw, 620px);
      height: auto;
      display: block;
      object-fit: cover;
      }

   

    /* QUERIES - IMAC ===================================== */

    @media (min-width: 1540px) {
      .about-image {
      grid-column: 2 / span 5;
      grid-row: 2 / span 5;
      }

      .about-image img {
      width: clamp(460px, 95vw, 720px);
      }

    }


    /* ==================================================== */
    /* TEXTO — LADO DERECHO */
    /* ==================================================== */

    .about-text {
      grid-column: 7 / span 5;
      grid-row: 1 / span 5;
    }

    .about-text h2 {
      font-size: clamp(1.8rem, 3vw, 2.5rem);
      margin-bottom: 1rem;
      font-family: 'Poppins', sans-serif;
      color: #000;
    }

    .about-text p {
      font-size: clamp(1rem, 1.2vw, 1.2rem);
      line-height: 1.6;
      max-width: 40ch;
      color: #000;
    }


    /* ====================================================== */
    /* NOMBRES */
    /* ====================================================== */

      /* CONTENEDOR NOMBRES ================================= */

        .about-names {
        position: absolute;
        inset: 0;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(12, 1fr);
        pointer-events: none; /* evita conflictos */
        z-index: 6;
        }

        .my_name {
          font-family: 'Kalvani';
          text-decoration: none;
          white-space: nowrap;
          pointer-events: auto;
          transition: color 0.4s ease;
          display: inline-flex;
          align-items: center;
      }


      /* NAME BIG ================================= */

        .my_name--big {
          grid-column: 6 / span 3;
          grid-row: 9 / span 2;
          line-height: 2.5; /* 👈 CLAVE */
          font-size: clamp(2.8rem, 4.5vw, 3.8rem);
          letter-spacing: clamp(4px, 0.8vw, 8px);
          font-weight: 100;
          color: rgba(0, 0, 0, 0.10);
        }

        .my_name-inner_big {
          display: inline-block;
          transform: translateX(20%) translateY(10%);
      }


      /* NAME SMALL ================================= */

      .my_name--small {
        grid-column: 7 / span 2;
        grid-row: 9 / span 1;
        line-height: 2; /* un poco más aire */

        font-size: clamp(1.6rem, 2.5vw, 2.2rem);
        letter-spacing: clamp(5px, 1vw, 9px);
        font-weight: 100;

        color: rgba(0, 0, 0, 0.9);
      }

      .my_name-inner_small {
        display: inline-block;
        transform: translateX(5%) translateY(30%);
      }


      /* MEDIA QUERIES ============================== */

      @media (max-width: 768px) {
        .my_name--big {
          display: grid;
        }

        .my_name-inner_big {
        display: inline-block;
        transform: translateX(-50%) translateY(70%);
        }

        .about-names {
          display: grid;
        }

        .my_name-inner_small {
        display: inline-block;
        transform: translateX(-50%) translateY(270%);
        }
    }






    /* ===================================================== */
    /* RESPONSIVE */
    /* Imagen arriba / texto abajo */
    /* ===================================================== */

    /* QUERIES - MOVIL ==================================== */

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

      .about-image,
      .about-text {
        grid-column: 1 / -1;
      }

      .about-image {
        margin: 0 auto;
        /* ↑ centra la imagen en móvil */
      }

      .about-image img {
        /* reduce el desplazamiento vertical en móvil */
        transform: translateY(clamp(20px, 6vh, 60px));
      }

      .about-image img {
        max-width: 380px;
      }

      .about-text {
        text-align: center;
      }
  }


  


  


    



        



/* 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
SECTION PROJECTS
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
*/

  .projects {
  width: 100%;
  height: 100vh;
  background: #fdfbfb;
  position: relative;
  overflow: hidden;
  }

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

      /* Contenedor de la imagen */
      .projects-bg {
        position: absolute;
        inset: 0;
        overflow: hidden;
        
      }

      /* Imagen como fondo */
      .projects-bg img {
        width: 100%;
        height: 140vh;              /* 🔥 MÁS GRANDE QUE LA SECCIÓN */
        object-fit: cover;
        object-position: center bottom;
        will-change: transform;     /* mejora rendimiento */
      }


      /* Overlay opcional */
      /* .projects::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.65);
        z-index: 1;
    } */








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

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

        .Cont_txt_big_projects {
          position: absolute;
          top: -300;
          left: 40px;

          z-index: 5;
          opacity: 0.08;
          pointer-events: none;

          transform:
            translateY(clamp(-30vh, -20vw, -10vh));
        }

        .txt_projects_big {
          writing-mode: vertical-rl;
          transform: rotate(180deg);
          white-space: nowrap;
          font-family: 'Roboto', sans-serif;
          font-size: clamp(10rem, 12vw, 20rem);
          letter-spacing: clamp(5px, 4vw, 6px);
          font-weight: 200;
      }


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

        .Cont_txt_small_projects {
          position: absolute;
          top: clamp(35%, 10vw, 20%);
          left: clamp(-30px, 25vw, 10px);
          z-index: 5;
          opacity: 0.8;
          pointer-events: none;

          /* 🔧 AJUSTE FINO */
          transform:
            translateX(clamp(0px, 4vw, 80px))
            translateY(clamp(20px, 6vw, 140px));
        }

        .txt_projects_small {
          writing-mode: vertical-rl;
          transform: rotate(180deg);
          white-space: nowrap;
          font-family: 'Roboto', sans-serif;
          font-size: clamp(2rem, 6vw, 5rem);
          letter-spacing: 6px;
          font-weight: 100;
  }








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

    .projects-content {
    grid-column: 2 / -2; 
    /* ↑ controla márgenes laterales del bloque completo */

    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);

    align-items: center; 
    /* ↑ alinea imagen y texto verticalmente entre sí */

    gap: clamp(24px, 4vw, 80px);
    /* ↑ separación entre imagen y texto */
    }
  

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

      .projects-image {
      grid-column: 1 / span 5;
      grid-row: 1 / span 1;
      z-index: 2;

      transform:
        translateX(clamp(40px, 10vw, 320px))
        translateY(clamp(200px, 20vh, 390px));
      }

      .projects-image img {
      width: clamp(10px, 70vw, 360px);
      height: auto;
      display: block;
      object-fit: contain;
    }


    

    /* MEDIA QUERIES ============================== */

      @media (min-width: 1540px) {
      .projects-image {
      grid-column: 1 / span 5;
      grid-row: 1 / span 1;
      z-index: 2;

      transform:
        translateX(clamp(40px, 20vw, 320px))
        translateY(clamp(200px, 30vh, 390px));
      }
    }


    /* ====================================================== */
    /* TEXTO — LADO DERECHO */
    /* ====================================================== */

      .projects-text {
        grid-column: 5 / span 5;
        grid-row: 1 / span 1;
        z-index: 2;

        transform:
          translateX(clamp(40px, 15vw, 320px))
          translateY(clamp(200px, 30vh, 390px));
      }


      .link_logo_7thdesignr{
        text-decoration: none;
      }


      .projects-text h2 {
        font-size: clamp(1.9rem, 5vw, 6rem);
        margin-bottom: 1rem;
        font-family: 'Poppins', sans-serif;
        color: #ffffff;
        font-weight: 500;
        letter-spacing: clamp(5px, 4vw, 6px);
      }

      .projects-text p {
        font-size: clamp(1rem, 1.2vw, 1.2rem);
        line-height: 1.6;
        max-width: 50ch;
        color: #ffffff;
        font-family: 'Roboto', sans-serif;
        font-weight: 200;
        letter-spacing: clamp(1px, 1.5vw, 2px);
    }

    .projects-text .txt_marca_personal {
      font-size: clamp(1rem, 1.2vw, 1.2rem);
      line-height: 1.6;
      max-width: 50ch;
      color: #ffffff;
      font-family: 'Roboto', sans-serif;
      font-weight: 500;
      letter-spacing: clamp(1px, 1.2vw, 4px);
      transform: translateY(10px);
    }

    

    



    /* =========================================================
    RESPONSIVE — MOBILE
    Imagen arriba / texto abajo
    ========================================================= */

    @media (max-width: 768px) {

      .projects-content {
        grid-template-columns: 1fr;
      }

      .projects-image,
      .projects-text {
        grid-column: 1 / -1;
      }

      .projects-image {
        margin: 0 auto;
        /* ↑ centra la imagen en móvil */
      }

      .projects-image img {
        /* reduce el desplazamiento vertical en móvil */
        transform: translateY(clamp(20px, 6vh, 60px));
      }

      .projects-image img {
        max-width: 380px;
      }

      .projects-text {
        text-align: center;
      }

  }










/*
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
SECTION EXPERIENCE
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
*/

  section#experience {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    z-index: 3;
  }

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

      /* Contenedor de la imagen */
      .experience-bg {
        position: absolute;
        inset: 0;
        overflow: hidden;
      }

      /* Imagen como fondo */
      .experience-bg img {
        width: 100%;
        height: 120%;
        object-fit: cover;
        object-position: center bottom;
      }


      /* Overlay opcional */
      .projects::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.65);
        z-index: 1;
    }







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

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

      .Cont_txt_big_experience {
        position: absolute;
        top: -500;
        left: 40px;

        z-index: 5;
        opacity: 0.08;
        pointer-events: none;

        transform:
          translateY(clamp(-30vh, -20vw, -10vh));
      }

      .txt_experience_big{
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        white-space: nowrap;
        font-family: 'Roboto', sans-serif;
        font-size: clamp(10rem, 12vw, 20rem);
        letter-spacing: clamp(5px, 4vw, 6px);
        font-weight: 200;
        color: #000;
      }


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

      .Cont_txt_small_experience {
        position: absolute;
        top: clamp(22%, 5vw, 5%);
        left: clamp(-30px, 25vw, 10px);
        z-index: 5;
        opacity: 0.8;
        pointer-events: none;
      }

      .txt_experience_small {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        white-space: nowrap;
        font-family: 'Roboto', sans-serif;

        font-size: clamp(4rem, 7vw, 9rem);
        letter-spacing: clamp(6px, 1vw, 12px);

        font-weight: 90;
        color: #000;

        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
      }










/* 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
CONTACT SECTION
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
*/

  .contact {
  width: 100%;
  height: 100vh;
  background: #000000;
  position: relative;
  overflow: hidden;
  }

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

      /* Contenedor de la imagen */
      .contact-bg {
        position: absolute;
        inset: 0;
        overflow: hidden;
      }

      /* Imagen como fondo */
      .contact-bg img {
      width: 100%;
      height: 120vh;              /* 🔥 MÁS GRANDE QUE LA SECCIÓN */
      object-fit: cover;
      object-position: center bottom;
      will-change: transform;     /* mejora rendimiento */
      }


      /* Overlay opcional */
      .contact::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.65);
        z-index: 1;
      }







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

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

      .Cont_txt_big_contact {
        position: absolute;
        top: clamp(-6%, -10vw, -20%);
        left: clamp(-40px, 5vw, -40px);
        z-index: 5;
        opacity: 0.2;
        pointer-events: none;
      }


      /* TXT BIG CONTACT =================================== */

      .txt_contact_big{
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        white-space: nowrap;
        font-family: 'Roboto', sans-serif;
        font-size: clamp(13rem, 19vw, 21rem);
        letter-spacing: clamp(5px, 4vw, 6px);
        font-weight: 400;
        color: #727272;
      }


      /* CONTENEDOR TXT BIG PROJECTS ======================== */
        .Cont_txt_small_contact {
          position: absolute;
          top: clamp(35%, 10vw, 20%);
          left: clamp(-30px, 25vw, 10px);
          z-index: 5;
          opacity: 0.8;
          pointer-events: none;
        }


        /* TXT SMALL CONTACT =================================== */

        .txt_contact_small {
          writing-mode: vertical-rl;
          transform: rotate(180deg);
          white-space: nowrap;
          font-family: 'Roboto', sans-serif;
          font-size: clamp(6rem, 7vw, 9rem);
          letter-spacing: 6px;
          font-weight: 100;
          color: #000;
      }








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

    .contact-content {
      grid-column: 2 / auto;
      display: grid;
      place-items: center;
      z-index: 2;
      position: relative; /* 🔥 CLAVE */
    
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      text-align: flex-start;
      gap: clamp(12px, 2vh, 24px);
      transform: translateY(25%);
    }


    

   


    /* ====================================================== */
    /* TEXTO — LADO DERECHO */
    /* ====================================================== */

        .contact-content {
        grid-column: 2 / span 5;
        grid-row: 1;
        align-self: center;
        z-index: 2;
        position: relative;
      }

      .contact-center {
        transform: 
        translateY(clamp(-40px,-20vh , 240px))
        translateX(clamp(10px,20vh , 240px));
      }

       /* MEDIA QUERIE PARA MOVILE */
      @media (max-width: 768px) {
        .contact-center {
        transform: 
        translateY(-10px)
        translateX(80px);
        }
      }



      
      
      .franja_gris {
        position: absolute;
        left: 0;
        right: 0;        /* 🔥 ocupa todo el ancho */
        bottom: .5%;        /* ajusta verticalmente */
        
        height: 80px;
        background: rgba(35, 35, 35, 0.5);
        z-index: 3;
      }

      .contact-content a {
        font-size: clamp(.7rem, .8vw, 4rem);
        font-family: 'Roboto', sans-serif;
        font-weight: 100;
        letter-spacing: 2px;
        color: #fff;
        transform: translateY(25%);
        pointer-events:painted;
        text-decoration: none;
      }

      .contact-content .name_hack {
        font-family: 'Roboto', sans-serif;
        font-size: clamp(1.3rem, 1.2vw, 3rem);
        letter-spacing: 5px;
        opacity: 1;
        color: #fff;
        white-space: nowrap;
        font-weight: 200;
        min-height: 1.2em;

        transform: 
        translateY(clamp(-20px,4vh , 340px))
        translateX(clamp(8px,-10vh , 210px));
      }


      .contact-content .name_back {
        display: block;
        font-family: 'kalvani', sans-serif;
        font-size: clamp(1.4rem, 2.7vw, 6rem);
        letter-spacing: 5px;
        opacity: 0.2;
        transform: none;
        margin-top: -35px;
        white-space: nowrap;

        min-height: 1em;
       line-height: 1.4;
        padding-top: 1em;
        padding-bottom: 0.25em;
        box-sizing: content-box;
      }


      /* MEDIA QUERIE PARA MOVILE */
      @media (max-width: 768px) {
        .contact-content .name_hack{
        transform:
        translateY(5px);
       }

      }



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

        .contact-content .name_hack,
        .contact-content .name_back {
        width: 25ch;              /* 🔥 fija el ancho */
        display: inline-block;
        }

       .contact-content .name_hack {

        font-size: clamp(0.9rem, 2vw, 3rem);
        letter-spacing: 5px;
        opacity: 1;
        white-space: nowrap;
        min-height: 1.2em;
        }

        .contact-content{
        position: absolute;
        left: clamp(1%, 2vw, 250px);
        bottom: clamp(130px, -50vh, 120px);
        }

      }








      
       /* TXT AÑO =================================== */

      .contact-content .año {
        font-family: 'Roboto', sans-serif;
        font-size: clamp(0.7rem, 0.6vw, 3rem);
        letter-spacing: 5px;
        opacity: 1;
        transform: 
        translateX(clamp(2px, 26vw, 430px))
        translateY(-35px);

      }


      @media (max-width: 768px) {

         .contact-content .año {
        transform: 
        translateX(210px)
        translateY(-20px);

      }
      } 

     

    
   

    /* ====================================================== */
    /* LOGO 7TH DESIGNER */
    /* ====================================================== */

     .contact-logo {
      position: absolute;
      right: 80px;
      bottom: 120px;

      width: clamp(28px, 40vw, 70px);
      z-index: 15;
      }
    

    /* ====================================================== */
    /* LOGO CHRISTIAN */
    /* ====================================================== */


    .logo {
      position: absolute;
      left: 0%;
      bottom: clamp(10px, 46%, 480px);

      border-radius: 50%;
      width: clamp(2px, 15vw, 110px);
      animation: pulse-brand 1.5s infinite;
      z-index: 14;
    }

    @keyframes pulse-brand {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(256, 256, 256, .3);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(256, 256, 256, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(256, 256, 256, 0);
    }
}

    /* =========================================================
    RESPONSIVE — MOBILE
    Imagen arriba / texto abajo
    ========================================================= */

    @media (max-width: 768px) {

      .contact-content {
        grid-template-columns: 1fr;
      }

      .contact-image,
      .contact-text {
        grid-column: 1 / -1;
      }

      .contact-image {
        margin: 0 auto;
        /* ↑ centra la imagen en móvil */
      }

      .contact-image img {
        /* reduce el desplazamiento vertical en móvil */
        transform: translateY(clamp(20px, 6vh, 60px));
      }

      .contact-image img {
        max-width: 380px;
      }

      .contact-text {
        text-align: center;
      }



     

  }














  /* SCROLL PROGRES */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgb(0, 0, 0);
  z-index: 4;
  border-radius: 10px;
}

.scroll-progress-bar {
  width: 100%;
  height: 100%;
  background: #9a0000;
  transform-origin: left center;
  border-radius: 10px;
}


.back-to-top {
  position: fixed;
  left: 50%;
  bottom: clamp(80px, 12vh, 160px);
  transform: translateX(-50%) translateY(50px) scale(0.9);

  width: 45px;
  height: 45px;
  border-radius: 30%;
  border: 1px solid red;

  background: rgba(90, 2, 2, 0.3);
  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;

  transition: background 0.3s ease;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #ff0000;
}





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

      /* ABOUT con fondo blanco base */
      section#about {
      width: 100%;
      height: 100vh;
      position: relative;
      background: #ffffff; /* base blanco */
      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 */
      .my_name--big {
      color: #bbbaba; /* blanco por defecto cuando el fondo es oscuro */
      transition: color 1s ease;
      }

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

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

      #about.about-overlay-blue .about-text H2{
       color: rgb(1, 36, 58, 0); /* rojo o el color que quieras */
      }



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

.page-transition {
  position: fixed;
  inset: 0;                 /* ocupa toda la pantalla */
  background: #7d0202;
  z-index: 99999;           /* por encima de TODO */
  pointer-events: none;     /* no bloquea clicks */
  transform: translateX(100%);
}

