/* ========================================== VARIABLES GLOBALES ======================================== */
/*CUERPO GENERAL DE LA PÁGINA LAPTOP*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}


body{
  width: 100%;    
  margin: 0 auto;        
  padding: 0 20px; 
  padding-top: 80px;  

}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

html {
  scroll-behavior: smooth;
}

a, .button, .email-button {
  transition: all 0.3s ease;
}



/* =========================== ESTILO DEL MENU DE NAVEGACIÓN =============================*/
/*Logo y menu de navegaciópn*/
.nav-container {
  position: fixed;   
  top: 0;           
  left: 0;
  width: 100%;       
  z-index: 1000;     

  display: grid;
  grid-template-columns: auto 300px;
  align-items: center;
  padding: 10px 20px;
  gap: 50px;

  background-color: white; 
}

.logo img {
  max-height: 50px;
  width: auto;
}

.nav-group {
  display: grid;
  grid-template-columns: 1fr 1fr; 
}

.nav-item {
  display: flex;
  justify-content: center;
}

.nav-item a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

@media (max-width: 768px) {

  .nav-container {
    grid-template-columns: auto 1fr;
    gap: 15px;
    padding: 10px;
  }

  .logo img {
    max-height: 35px; /* Logo más pequeño */
  }

  .nav-group {
    display: flex;           /* Cambiamos grid por flex */
    justify-content: flex-end;
    gap: 15px;
  }

  .nav-item a {
    font-size: 14px; /* Texto más pequeño */
  }

}

/* ============================================ HOME ================================================*/
/* ESTILO DEL HERO PAGE*/
/*titulo*/
.home .title-style{
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 130px;
}

.home .title-one{
  font-size: 6rem;
  margin: 0px;
}

.home .title-two{
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 400;
  margin: 0px;
}

@media (max-width: 768px) {
  .home .title-one {
    font-size: 3rem;
    text-align: center;
  }

  .home .title-two {
    font-size: 3rem;
    text-align: center;
  }

}

/*imagenes*/
.home .container-img-home{
  width: 75vw;
  max-width: 1000px;
  min-width: 320px;
  margin: auto;
  position: relative;
}

.home .img-floatone {
  width: 15%;
  height: auto;
  display: block;
  position: absolute; 
  --rotate: 0deg;
  transform: rotate(var(--rotate));
  bottom: 35vh;
  right: 10vw;
  animation: float 3s ease-in-out infinite;
}

.home .img-floattwo {
 width: 10%;
  position: absolute; 
  --rotate: 12deg;
  transform: rotate(var(--rotate));
  right: 60vw;
  top: -10vh;
  animation: float 3s ease-in-out infinite;
}

.home .img-staticone {
  height: auto;
  display: block;
  width: 10%;
  position: absolute; 
  --rotate: -15deg;
  transform: rotate(var(--rotate));
  left: 2vw;
  bottom: 40vh;
}

.home .img-statictwo {
  width: 6%;
  position: absolute; 
  --rotate: 12deg;
  transform: rotate(var(--rotate));
  left: 60vw;
  bottom: 2vh;
}


@media (max-width: 768px) {

  .home .img-floatone,
  .home .img-floattwo,
  .home .img-staticone,
  .home .img-statictwo {
    display: none;
  }

}


 @keyframes float {
      0% {
        transform: rotate(var(--rotate)) translateY(0);
      }

      50% {
        transform: rotate(var(--rotate)) translateY(-20px);
      }

      100% {
        transform: rotate(var(--rotate)) translateY(0);
      }
      }




/*descriptción*/
.home article  {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 120px 0px 0px 0px;
}

.home .text {
  text-align: center;
  max-width: 800px;
}

.home .text p{
  text-align: center;
  font-size: 1.8rem;
  margin: 80px 0px;
}

@media (max-width: 768px) {
  .home .text p {
    font-size: 1.2rem;
    margin: 40px 0px;
  }
}



/*tarjetas de proyectos*/
.home .card-proyect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 100px 0px;
}

.home .cont-description {
  display: grid;
   grid-template-rows: 0.3fr 0.3fr auto;
}

.home .cont-description h4{
  font-size: 6vh;
}

.home  .img-container {
  width: 100%; 
  position: relative;
}

.home .img-container h4{
  font-size: 4vh;
}

.home .tech-tags{
  height: 0px;
}

.home .cont-description p{
  font-family: 'Inter', sans-serif;
}

.home .cont-btn{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.home .cont-btn a{
  text-decoration: none;
  color: #000;
}

.home .btn:hover {
  color: #F76C0B;
}

/*Span como botones pequeños*/
.home .tech-tags span {
  display: inline-block;
  background: #f0f0f0;
  padding: 4px 10px;
  margin: 0 2px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #676565;
}

@media (max-width: 768px) {
  .home .cont-proyect {
    padding: 0 16px;
  }

  /* Card del proyecto */
  .home .card-proyect {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
  }

  /* Imagen */
  .home .img-container img {
    width: 100%;
    height: auto;
  }

  /* Contenido */
  .home .cont-description {
    text-align: left;
  }

  .home .cont-description h4 {
    font-size: 18px;
  }

  .home .cont-description p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Tech tags */
  .home .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 60px;
  }

  .home .tech-tags span {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 5px;
  }

  /* Botones */
  .home .cont-btn {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    height: 80px;
  }

  .btn {
    width: 100%;
    font-size: 15px;
    border-radius: 24px;
  }
}

/* =========================================== SOBRE MI =====================================*/
.about main {
  margin: 50px 100px 0px 100px;
}

@media (max-width: 768px) {
  .about main {
    margin: 40px 20px 0px 20px;
  }
}

.about h1 {
  font-size: 2rem;
  font-weight: bolder;
}

.about h2 {
  font-size: 2rem;
  font-weight: bolder;
}

.about .cont-about {
  display: grid;
  grid-template-columns: 2fr 2fr;
  margin-top: 40px;
  gap: 12px;
}

@media (max-width: 768px) {
  .about .cont-about {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/*texto de presentación*/
.about .cont-text p {
  font-size: 1.3em;
  text-align: left;
}

.about .text-one p {
  font-size: 1.5rem;
  font-weight: 600;
}

.about .cont-img {
  width: 100%;
  max-width: 600px;
}

.about iframe {
  height: 300px;
  width: 300px;
  position: absolute; 
  cursor: grab;
  top: 700px;
  left: 700px;
}

.about #hunter {
  width: 200px;
  position: absolute; 
  cursor: grab;
  bottom: -80px;
  right: 130px;
}

.about #vann {
  width: 150px;
  position: absolute; 
  cursor: grab;
  top: 200px;
  left: 1120px;
  transform: rotate(10deg);
}

.about #fresa {
  width: 150px;
  position: absolute; 
  cursor: grab;
  top: 800px;
  left: 1100px;
  transform: rotate(0deg);
}

.about #matcha {
  width: 100px;
  position: absolute; 
  cursor: grab;
  top: 500px;
  left: 880px;
  transform: rotate(-15deg);
}

@media (max-width: 768px) {

  .about iframe,
  .about #hunter,
  .about #vann,
  .about #fresa,
  .about #matcha {
    display: none;
  }
}

.about .vivi-img  {
  width: 350px;
  display: block;
  margin: 0 auto;
  max-width: 10%;
  height: auto;
}

@media (max-width: 768px) {
   .about .vivi-img {
    min-width: 300px;
    
  }
}


.about .cont-text {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 40px;
}

/* SKILLS */
.about .cont-skills {
  margin: 120px;
}

.about .cont-skills .cont-designer {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  width: 50%;         
  max-width: 800px;
  margin: 50px auto;
  text-align: center;
}

.about .cont-skills .cont-program {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.about .cont-skills .cont-program img {
  width: 50px;
  height: auto;
  object-fit: contain;
}

.about .cont-skills .cont-program p {
  font-size: 1.2rem;
}

.about .cont-skills .cont-developer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 50%;
  max-width: 800px;
  margin: 50px auto;
  text-align: center;
}

.about .cont-skills .title-skill {
  font-size: 1.8rem;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 768px) {

  .about .cont-skills {
    margin: 60px 20px; /* reducimos márgenes */
    text-align: center;
  }

.about h2 {
  margin: 30px 0px; 
}

.about .title-skill{
  margin: 30px 0px;
}

  .about .cont-skills .cont-designer,
  .about .cont-skills .cont-developer {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    width: 100%;
    max-width: 100%;
    gap: 20px; /* espacio entre items */
  }

  .about .cont-skills .cont-program img {
    width: 40px; /* un poco más pequeño */
  }

  .about .cont-skills .cont-program p {
    font-size: 1rem;
  }

}

/*EDUCACIÓN*/

.about .cont-edu {
  margin: 120px;
}

@media (max-width: 768px) {
   .about .cont-edu {
    margin: 60px 20px;
  }
}

.about .cont-role {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr; /* ← aquí controlas el ancho */
  gap: 20px;
  align-items: center;
}

@media (max-width: 768px) {

  .about .cont-role {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.about .role-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}


.about .cont-edu .title-role h3 {
  font-weight: 700;
  text-align: left;
}

.about .cont-edu .cont-school {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.about .cont-edu .role-item {
  margin-top: 30px;
}

.about .date{
  font-size: 0.9rem;
}

.about .place {
  font-size: 0.9rem;
}

/* ========================================CONTACTO===========================================*/
.contact .contacto {
  margin: 0px 100px 100px 100px;
}

@media (max-width: 768px) {
    .contacto section {
    margin: 0px 20px;
  }
}

@media (max-width: 768px) {

  .contact .contacto {
    margin: 0 20px 60px 20px;
  }

/*ubicación*/
.contacto h6 {
  font-size: 3rem;
  font-weight: 700;
}
}

@media (max-width: 768px) {
    .contacto h6 {
    font-size: 2rem;
  }
}

.contacto .location {
  font-weight: 700;
  margin-top: 20px;
}

.contacto .ubicacion {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0px;
}


/*texto*/
.contacto .cont-text {
  font-size: 6rem;
  text-align: center;
  font-weight: 700;
}

.contacto .cont-text p{
  margin: 0;
}

@media (max-width: 768px) {
  .contacto .cont-text {
    font-size: 2.5rem;
    margin-top: 50px;
  }
}

/*EMAIL BUTTON*/
.contacto .cont-button {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contacto .email-button {
  background-color:#F76C0B;
  width: 200px;
  padding: 10px 30px;
  text-decoration: none;
  border-radius: 35px;
  text-align: center;
  color: white;
  font-size: 1.5rem;
}

.contacto .email-button:hover {
  background-color: #AA4B09;
}


@media (max-width: 768px) {
   .contacto .email-button {
    width: 100%;
    max-width: 140px;
    font-size: 1rem;
    margin-top: 20px;
  }
}

/*========================================CASO DE ESTUDIO ESTILO GENERAL===========================================*/
/*Estructura de la página*/
.case-study .cont-body{
  display: grid;
  grid-template-columns: 25% 75%;
  gap: 2rem;
  margin-top: 80px;
}

@media (max-width: 768px) {
  .case-study .cont-body {
    padding: 0px 10px;
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

   .case-study .nav-casestudy {
    position: static;
    margin-bottom: 40px;
  }

  .case-study .cont-casestudy {
    margin: 0px;
  }

  .case-study .cont-proyect h3{
    margin: 20px 0px;
  }

   .case-study .cont-proyect h4{
    margin: 20px 0px;
  }

  .case-study a.button {
    width: 5%;
    font-size: 1rem;
    text-align: center;
  }
}

/*Estilo de la navegación lateral*/
.case-study .nav-casestudy {
  position: sticky;
  top: 200px; 
  align-self: start;
  height: fit-content;
}

.case-study .nav-casestudy ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-study a{
    text-decoration: none;
}
.case-study .nav-casestudy a{
  font-weight: 400;
  color: black;
}

/* Hover */
.case-study .nav-casestudy a:hover {
  color: #F76C0B;
}

/* Estado activo */
.case-study .nav-casestudy a.active {
  color: #F76C0B;
  font-weight: 600; 
}

@media (max-width: 768px) {
  .case-study .nav-casestudy {
    display: none;
  }

}

/*========================================ESTILO DEL CASO DE ESTUDIO===========================================*/
/*Estilo del titulo del proyecto*/
.case-study .cont-casestudy{
  margin: 0px 100px 0px 100px;
}

.case-study h1{
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.case-study .data-proyect {
  width: 100%;
}

/* GRID */
.case-study .data-proyect ul {
  max-width: 900px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);

  list-style: none;
  padding: 0;
  gap: 0;
}

/* CELDAS */
.case-study .data-proyect li {
  padding: 14px;
  text-align: center;

  border: 1px solid #ddd;
  font-size: 0.95rem;
}

/* HEADERS */
.case-study .data-proyect .head {
  font-weight: 600;
  background: #f5f5f5;
}


/*Estilo del contenido del proyecto*/ 
.case-study p{
     text-align: justify;
     margin: 20px 0px;
}

/* Style the Image Used to Trigger the Modal */
.case-study .open-modal {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.case-study .open-modal:hover {opacity: 0.7;
}


/* The Modal (background) */
.case-study .modal {
  display: none;
  position: fixed;
  inset: 0;              
  z-index: 9999;         

  background-color: rgba(0,0,0,0.9);
}

/* Modal Content (Image) */
.case-study .modal-content {
  margin: auto;
  display: block;
  width: 80%;
}

/* Add Animation - Zoom in the Modal */
.case-study .modal-content, .case-study #caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Close Button */
.case-study .close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 2.5rem;
  font-weight: bold;
  transition: 0.3s;
}

.case-study .close:hover, 

.case-study .close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 768px) {

  /* Contenedor general */
  .case-study .cont-casestudy {
    margin: 0 20px;
  }

  /* Título */
  .case-study h1 {
    font-size: 2rem;
    
  }

  /* GRID cambia de 4 columnas a 2 */
  .case-study .data-proyect ul {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    margin-top: 20px;
  }

  .case-study .data-proyect li {
    font-size: 0.85rem;
    padding: 10px;
  }

  /* Texto */
  .case-study p {
    font-size: 0.95rem;
  }

  /* Modal imagen más grande en móvil */
  .case-study .modal-content {
    width: 95%;
  }

  /* Botón cerrar más accesible */
  .case-study .close {
    top: 10px;
    right: 20px;
    font-size: 2rem;
  }

}

/* ===============================================BOTÓN=====================================*/
/*Botón ver prototipo*/
/*BOTÓN*/
.button{
  padding: 8px 18px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 30px;
  background-color: #F76C0B;
  border: none;
  text-decoration: none;
  color: white;
}

.button:hover {
  background-color: #AA4B09;
}

.bt {
  margin-top: 25px;
  text-align: center;
}

/* ===============================================FOOTER=====================================*/
/*ESTILO DE FOOTER*/
footer{
  margin-top: 70px;
}

.icon-pages{
  display: flex;
  justify-content: center;
  gap: 20px;
}

.bi-linkedin {
  color: #000;
}

.bi-github{
  color: #000;
}

.bi-behance{
  color: #000;
}

h5{
    text-align: center;
    font-weight: 100;
    font-size: 0.8rem;
    margin: 0px 0px 20px 0px;
}






