@font-face{font-family: Times;
    src: url(../fonts/JetBrainsMono-Regular.ttf);
}
@font-face{font-family: Veka;
    src: url(../fonts/Satoshi-Variable.ttf);
}


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


.nav_list {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #060b14dc;
  padding: 1rem;
  gap: 1rem;
  display: none; /* solo activado en mobile */
  flex-direction: column;
  width: 200px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 999;
}
.nav_list li a{
  text-decoration: none;
  color: #f4f4f4;
}
/* FORMATO DE LA BARRA DE NAVEGACIÓN */
nav {
  background-color: #0b111d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 12vh;
  width: 100%;
  padding: 1rem;
  position: sticky;
  top: 0px;
  right: 0px;
  z-index: 20;
  box-shadow: 5px 5px 10px 2px rgba(7, 4, 14, 0.8);
}

.nav_links_container{
  flex: 1;
    display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.burg_menu_container{
  display: none;
  flex:0;
}
.nav_links {
  color: #f9fafb;
  text-decoration: none;
  font-size: 1.4rem;
  transition: transform 0.2s;
  gap: 4rem;
}



.nav_links:hover {
  text-decoration: underline;
  transform: scale(1.08);
  text-decoration: none;
}

/* FORMATO GLOBAL DEL BODY */
body {
  font-family: veka;
  background-color: #f4f4f4;
  color: #2b2929;
  line-height: 1.6;
  
  /*background-image: url("../assetts/bg.webp");  /*Asegúrate que el nombre de carpeta sea 'assets' */
  /*background-size: cover;             /*Esto hace que la imagen ocupe todo el área */
  /*background-repeat: no-repeat;      /* Evita que se repita */
  /*background-position: center center;/* La centra tanto horizontal como verticalmente */
  /*background-attachment: fixed;      /* Hace que se mantenga fija al hacer scroll */



  min-height: 100vh;                 /* Asegura que el body tenga al menos toda la altura visible */
  background-color: #f4f4f4;         /* Color de respaldo si no carga */
}

.header_mobile{
  display: none;
}
header{
  background-color: #040514d8;
}
/* FORMATO DEL HEADER */
.header_pc {
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  z-index: 19;
  height: 27vh;
  font-family: veka;
  scroll-margin-top: 80px;
}

.header_pc h1 {
  font-family: times;
  font-size: 1.55rem;
  margin-bottom: 0.5rem;
}

.header_pc a{
  font-size: 1.2rem;
}

.header_pc {
  font-size: 1.2rem;
}

.header_correo {
  align-items: center;
  color: #fff;
  transition: font-size 0.2s ease; 
  text-decoration: none;
}

.imagen_redes{
  height: 3vh;
  margin-right: 1vh;
}

.imagen_correo{
  height: 2vh;
  margin-right: 1vh;
}


.header_links {
  display: inline-block;
  align-items: center;
  color: #ffffff;
  transition: transform 0.2s; 
  text-decoration: none;
  margin-right: 2vh;
}

.header_links:hover {
  transform: scale(1.2);
  color: #ffffff;
  text-decoration: underline;
}

.header_flexbox {
    display: flex;
}


.header_flexchild:first-child {
    flex:0;
    margin-right: 0vh;
    margin-left: 9vh;
}

.header_flexchild:nth-child(2) {
    flex: 2;
    margin-right: 2vh;
    margin-bottom: 2vh;
}

.header_flexbox .header_flexchild:nth-child(3) {
    flex: 1.5;
    font-family: veka;
}

/* FORMATO DEL CORREO ELECTRÓNICO */
.correo_container {
  position: relative;
  display: inline-block;
  margin-top: 7vh;
}

.copiar_btn {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-left: 10px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.correo_container:hover .copiar_btn {
  opacity: 1;
  pointer-events: auto;
}



.toast {
  position: absolute;
  top: -30px;
  left: 0;
  background-color: #10b981;
  color: white;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.toast.visible {
  opacity: 1;
}


/* FORMATO DEL CUERPO DE LA PÁGINA */
h2 {
  color: #ffffff;
  font-size: 1.5rem;
  font-family: times;
  text-shadow: 
            -1px -1px 0 #000,  /* Top-left shadow */
            1px -1px 0 #000,   /* Top-right shadow */
            -1px 1px 0 #000,   /* Bottom-left shadow */
            1px 1px 0 #000;    /* Bottom-right shadow */
        /* For a thicker outline, add more shadows with varying offsets */
}

section {
  max-width: 1000px;
  margin: 1rem auto;
  padding: 1rem;
  margin-bottom: 2rem;
}


.about_section {
  scroll-margin-top: 80px;
}

.about_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about_details {
  font-family: veka;
  font-size: 1.2rem;
  background-color:#040514d8;
  padding: 3.5vh;
  border-radius: 8px;
}

.about_text {
  color: #ffffff;
}


.projects_section {
  scroll-margin-top: 80px;
}
.projects {
  display: grid;
  gap: 4vh;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); /* Ajusta el número de columnas según el espacio disponible */
  padding: 1vh;
}

.project {
  display: flex;
  flex-direction: column;   /* Coloca imagen y texto en columna */
  align-items: center;      /* Centra horizontalmente */
  justify-content: center;  /* Centra verticalmente */
  text-align: center;       /* Alinea el texto si ocupa más de una línea */
  

  background-color: #040514d8;
  border-radius: 9px;
  min-height: 480px;
  color: #f4f4f4;
  font-size: 3vh;
  padding: 1vh;
  border-radius: 9px;
  transition: transform 0.2s;
}


  .project:hover{
  transform: scale(1.03);
}

.project_preview {
  width: 75%;
  aspect-ratio: 16 / 9; /* Mantiene la proporción 16:9 */ 
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;

  position: relative;
  overflow: hidden;
}

.desktop_screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que la imagen cubra todo el contenedor sin distorsionarse */
  transition: transform 0.3s ease; /* Agrega una transición suave para el efecto hover */
}

.mobile_screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que la imagen cubra todo el contenedor sin distorsionarse */
  transition: transform 0.3s ease; /* Agrega una transición suave para el efecto hover */
}


.project_desc{
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  flex-grow: 1; /* Permite que esta sección ocupe el espacio restante */
  gap: 1rem;
}

.project_desc p {
  max-width: 35ch;
  margin: 0 auto;
  line-height: 1.6;
}

.project a {
  color: rgb(190, 192, 255);
  text-decoration: none;
  transition: transform 0.2s;
}

.project a:hover{
  text-decoration: underline;
}

.project a:visited {
  color: rgb(190, 192, 255);
  text-decoration: none;
}



/* CARDS DE LAS HABILIDADES */
.skills {
  display: grid;
  gap: 4vh;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 4vh;
}

.skill {
  display: flex;
  flex-direction: column;   /* Coloca imagen y texto en columna */
  align-items: center;      /* Centra horizontalmente */
  justify-content: center;  /* Centra verticalmente */
  text-align: center;       /* Alinea el texto si ocupa más de una línea */

  background-color: #040514d8;
  color: #f4f4f4;
  font-size: 3vh;
  padding: 3vh;
  border-radius: 9px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.project_imagen{
  height: 26vh;
  width: 32vh;
  
  margin-bottom: 1vh;
  margin-top: 1vh;
}

.imagen_skill{
  height: 9vh;
  max-width: 60px;
  margin-bottom: 1vh;
}

.contact{
  display: none;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

input, textarea {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

button {
  background-color: #2563eb;
  color: white;
  padding: 0.7rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background-color: #1d4ed8;
}

footer {
  display: hidden;
  text-align: center;
  padding: 2rem 0.5rem;
  color: #fff;
  background-color: #060b16ce;
  font-size: 0.9rem;
  height: 15vh;
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }
}

.foto{
  border-radius: 50%;
  width: 18vh;
}

.cvButton button{
  font-family: veka;
  font-size: 2.5vh;

  padding: 0.8rem 2rem;
  cursor: pointer;

  background-color: #0f0e5e;
  
}

.cvButton button:hover{
  background-color: #05043a;
}

