:root{
    --font-heading: 'Outfit', sans-serif;
    --font-base: 'Inter', sans-serif;
    --font-code: 'Source Code Pro', monospace;
    --color-secundary: #5E2129;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}
html {
    scroll-behavior: smooth;
  }
.links{
    text-decoration: none;
}

.a-liobarrozo{
    color: grey;
    cursor: pointer;

}

.a-liobarrozo:hover{
  color: rgb(131, 51, 192);
}

.a-mendoapi:hover{
  color: var(--color-secundary);
  cursor: default;
}


.headers{
    font-family: var(--font-heading);
}

.body-text{
    font-family: var(--font-base);
}
.navbar{
    display: flex;
    flex-direction: row;
    padding: 1rem 2rem;
    background-color: #ffffff;
    position: relative;
    z-index: 10;
    justify-content: space-between;
    align-items: center;
}


.nav-links{
    display: flex;
    flex-direction: row;
    gap: 13px;
    margin-right: 5%;
    margin-left: auto;
    align-items: center;
}

#mendoAPI-logo{
    margin-left: 20px;
    margin-right: auto;
    width: 130px;
    height: auto;
}

ul  {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul a{
    color: black;
    text-decoration: none;
    font-family: Arial;
    font-size: 17px;
}

ul a:hover{
    color: #5E2129;
}


.hamburger{
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background-color: #f8f8f8;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: right 0.3s ease-in-out;
  z-index: 20;
}

.side-menu.active {
  right: 0;
}

.close-btn {
  align-self: flex-end;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-links-mobile {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  width: 100%;
}
.nav-links-mobile li {
  margin-bottom: 1rem;
}

.nav-links-mobile a {
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
}

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

  .hamburger {
    display: block;
  }
}

/*INICIO*/

#inicio{
    height: 80vh;
    display: flex;
    flex-direction: column;
    
    padding: 20px;
}

.h1-inicio{
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 40px;
    cursor: default;
}

.subtitle-inicio{
    font-family: var(--font-base);
}

@media (min-width:769px) {
    #inicio{
        flex-direction: row;
    }
}

.inicio__izquierda{
    margin-left: 5%;
    margin-right: auto;
    width: 40%;
}

.inicio__derecha{
    width: 60%;
}
#imagen-mendoza{
    height: 300px;
    width: auto;
}


.hero__botones {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.7rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Botón primario (destacado) */
.btn--primario {
  font-family: var(--font-base);
  background-color: #8e323f;
  color: white;
}

.btn--primario:hover {
  background-color: var(--color-secundary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 204, 0.2);
}

/* Botón secundario (GitHub, etc.) */
.btn--secundario {
  font-family: var(--font-base);
  background-color: #f5f8fa;
  color: #333;
  border: 2px solid #ccc;
}

.btn--secundario:hover {
  background-color: #eaeff2;
  border-color: #999;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}


/*USOS*/
#usos{
    
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    padding: 4rem 1rem;
    background-color: #fdfdfd;
    text-align: center;
}
.usos__cards{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 90%;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.uso{
    background-color: #ffffff;
    width: 35%;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    display: flex;
    flex:1 1 260 px;
    box-shadow: 0 0 0 transparent;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    align-items: center;
    flex-direction: column;
    padding: 2.75px;
}

@media(max-width:769px){
  .uso{
    width: 80%;
  }
}
.uso:hover{
    box-shadow: 0px 12px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);

}
.uso p{
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    text-align: center;
}

#h2-usos{
    font-size: 35px;
}

.icono{
    height: 4.5rem;
    width: auto;
    margin-bottom: 2px;
    text-align: center;
}

.uso h3{
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
    color: #1a1a1a;
}

/*ENDPOINTS*/

#endpoints{
  display: flex;
  flex-direction: column;
  align-items: center;
}

#p-endpoints{
  width: 60%;
  text-align: center;
}

@media(max-width:769px){
  #p-endpoints{
    width: 80%;
  }
}
.endpoints__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
  }
  
  .endpoint-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 400px;
    flex: 1 1 280px;
    box-shadow: 0 0 0 transparent;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border 0.3s ease;
  }
  .endpoint-card p{
    font-family: var(--font-base);
  }
  
  .endpoint-card:hover {
    box-shadow: 0px 12px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    border: 1px solid #444;
  }
  
  .endpoint-card code {
    display: block;
    font-family: var(--font-code);
    background: #f3f3f3;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .base-url {
    text-align: center;
    margin-top: 2rem;
    font-family: var(--font-code);
    font-size: 0.95rem;
  }

  .uso-tecnico {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-left: 4px solid #2196f3;
    border-radius: 8px;
    width: 80%;
  }
  
  .conocimientos-minimos {
    margin-top: 1rem;
    padding-left: 1.5rem;
    list-style: none;
  }
  
  .conocimientos-minimos li::before {
    content: "✔️";
    margin-right: 0.5rem;
  }
  
/*SOBRE EL PROYECTO*/
#sobre {
    background-color: #f6fafd;
    padding: 4rem 2rem;
    border-top: 2px solid #d3e5f3;
  }
  
  .sobre__contenido {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    text-align: left;
  }
  
  #h2-sobre {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 32px;
  }

  
  /*FAQ*/

  #faq{
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .faq__contenedor {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .faq__item {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
  }
  
  .faq__pregunta {
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: #f5f8fa;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-align: left;
    font-size: 1.1rem;
    transition: background 0.3s;
  }
  
  .faq__pregunta:hover {
    background-color: #e0e7ef;
  }
  
  .faq__respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    background-color: white;
  }
  
  .faq__respuesta p {
    margin: 1rem 0;
    font-family: var(--font-base);
  }
  
/*CONTACTO*/

#contacto {
    padding: 4rem 2rem;
    background-color: #f5f8fa;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .contacto__contenedor {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .title__github{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #icono-github{
    height: 80px;
    width: auto;
  }
  .colaboracion, .formulario {
    flex: 1 1 48%;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    width: auto; /* ← Asegura que no herede un 100% molesto */
    max-width: none;
  }
  .colaboracion p,
  .formulario form {
    margin-top: 1rem;
  }
  
  .github-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #24292e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 400;
    font-family: var(--font-heading);
  }
  
  form input,
  form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
  }

  form label{
    font-family: var(--font-base);
  }
  
  form button {
    background-color: #8e323f;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  form button:hover {
    background-color: var(--color-secundary);
  }

  @media (max-width: 768px) {
    .contacto__contenedor {
      flex-direction: column;
    }
  
    .colaboracion, .formulario {
      flex: 1 1 100%;
    }
  }

  /*FOOTER*/
  .footer {
    background-color: black;
    color: #e0e0e0;
    padding: 2rem 1.5rem;
    font-size: 0.95rem;
  }

  @media(max-height:769px){
    .footer{
      height: 15vh;
    }
  }
  
  .footer__contenedor {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .footer__texto {
    text-align: center;
    font-family: var(--font-base);
  }
  
  .footer__enlaces {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer__enlaces a {
    color: var(--color-secundary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .footer__enlaces a:hover {
    color: #ffffff;
  }
  