* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;

}

body{
  width: 100%;    
  margin: 0 auto;        
  padding: 0 20px;   
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

html {
  scroll-behavior: smooth;
}

/*Logo y menu de navegaciópn*/
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  margin: 0px 58px;
  background-color: #fff;
  padding-top: 20px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: 700;
}

.logo img{
  width: 100px;
}

.logo a{
  cursor: pointer;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #333;
  padding: 5px 0;
  transition: color 0.3s ease;
  font-family: 'Roboto Condensed', sans-serif;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #F76C0B; 
  transition: width 0.3s ease;
  
}

.nav-links a:hover::after {
  width: 100%;
}

/*CELULAR*/
@media (max-width: 600px) {
/*MENU DE NAVEGACIÓN*/
header {
  padding: 20px;
  position: sticky;
  top: 0;            
  margin: 0;          
  background: white;  
  z-index: 1000;       
}

 .nav-container {
    display: flex;
    flex-direction: row;        
    justify-content: center;    
    width: 100%;               
    gap: 20px;                  
    margin: 0 auto;             
    font-size: 0.9em;
  }

  .nav-container .logo{
    width: 30px;
  }

.nav-links{
  gap: 30px;
  margin: 0px;
}
}

/*Estilo del titulo del proyecto*/
.title{
  display: flex;
  flex-direction: column;
}

h1{
  font-size: 3em;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 10px;
}

/*Estilo de datos del proyecto*/
.data-proyect {
  width: 100%;
}

/* GRID */
.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 */
.data-proyect li {
  padding: 14px;
  text-align: center;

  border: 1px solid #ddd;
  font-size: 0.95rem;
}

/* HEADERS */
.data-proyect .head {
  font-weight: 600;
  background: #f5f5f5;
}

/* CELULAR */
@media (max-width: 768px) {

  .data-proyect ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .data-proyect li {
    display: flex;
    justify-content: space-between;
    text-align: left;
    border-radius: 8px;
  }

  /* Simular etiquetas */
  .data-proyect li:nth-child(1)::before {
    content: "Industria";
    font-weight: 600;
  }

  .data-proyect li:nth-child(2)::before {
    content: "Rol";
    font-weight: 600;
  }

  .data-proyect li:nth-child(3)::before {
    content: "Herramientas";
    font-weight: 600;
  }

  .data-proyect li:nth-child(4)::before {
    content: "Año";
    font-weight: 600;
  }

  .data-proyect .head {
    display: none;
  }
}

/*Estilo de la navegación lateral*/
.nav-casestudy {
  position: fixed;
  top: 50%;
  left: 50px;
  display: flex;
  flex-direction: column;
  position: sticky;
  height: fit-content;
}

.nav-casestudy ul{
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;

}

ul a{
    text-decoration: none;
}
.nav-casestudy a{
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  color: black;
}

/* Hover */
.nav-casestudy a:hover {
  color: #F76C0B;
}

/* Estado activo */
.nav-casestudy a.active {
  color: #F76C0B;
  font-weight: 600; 
}

/* CELULAR */
@media (max-width: 600px) {
  .nav-casestudy {
    display: none;
  }
}


/*Estilo del contenido del proyecto*/
.cont-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 1200px;
  margin: 0 auto;
  gap: 48px;
}

.cont-body main {
  overflow-y: auto;
  padding: 48px;
}

ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}


p{
     text-align: justify;
     margin: 20px 0px;
}

main {
  display: grid;
  grid-template-rows: repeat(5, auto);
  row-gap: 25px;
}

/* CELULAR */
@media (max-width: 768px) {

  /* Cambia a una sola columna */
  .cont-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Reduce padding del contenido */
  .cont-body main {
    padding: 20px;
  }

  /* Ajusta textos */
  p {
    font-size: 15px;
    line-height: 1.6;
  }

  ul {
    margin-left: 16px;
  }

  /* Ajusta grid interno */
  main {
    row-gap: 16px;
  }

}



/*MODAL IMAGENES*/
/* Style the Image Used to Trigger the Modal */
.open-modal {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.open-modal:hover {opacity: 0.7;
}


/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  inset: 0;              
  z-index: 9999;         

  background-color: rgba(0,0,0,0.9);
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}


/*Botón ver prototipo*/
/*BOTÓN*/
.button{
  padding: 8px 18px;
  font-size: 1em;
  font-weight: 600;
  border-radius: 30px;
  background-color: #F76C0B;
  border: none;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  color: white;
}

.button:hover {
  background-color: #AA4B09;
}

.bt {
  margin-top: 25px;
  text-align: center;
}

/*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;
    padding: 0px 0px 20px 0px;
    font-weight: 100;
    font-size: 0.8em;
}

/*CELULAR*/
@media (max-width: 600px) {

    /*FOOTER*/
.icon-pages img {
  width: 20px;
}

.icon-pages{
  gap: 15px;
}

footer h5 {
  font-size: 0.5em;
  text-align: center;
  justify-content: center;
}
}

/*VIDEO*/
video {
  max-width: 100%;
  height: auto;
  border-radius: 8px; 
}

