/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}


/* Navbar */
nav {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #1e1e1e;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #0077b6;
}

/* Responsive nav */
@media (max-width: 768px) {
  .container {
    flex-direction: column !important; /* Forzar columna */
    align-items: center !important;    /* Centrar hijos */
  }

  .image-section {
    width: 100%;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 1rem;
  }

  .image-section img {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin: 0 auto !important;
    display: block;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }

  .info-section {
    width: 100%;
    text-align: justify;
  }
}


/* Encabezado */
header {
  background-color: #1e1e1e;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  font-weight: 300;
}

/* Contenedor principal */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: auto;
}

/* Imagen */
.image-section img {
  max-width: 250px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Info */
.info-section {
  flex: 1;
  min-width: 280px;
}

.info-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #1e1e1e;
}

.info-section p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Enlaces */
.contact-links a {
  display: inline-block;
  margin-right: 1rem;
  text-decoration: none;
  font-weight: 600;
  color: #1e1e1e;
  transition: all 0.3s ease;
}

.contact-links a:hover {
  color: #0077b6;
  transform: scale(1.05);
}

/* Pie de página */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #666;
  background-color: #f1f1f1;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    text-align: center;
  }

  .contact-links a {
    display: block;
    margin-bottom: 0.5rem;
  }
}

main.contenido {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.proyecto {
  margin-bottom: 2rem;
}

.proyecto img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}

.form-contacto input,
.form-contacto textarea {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-contacto button {
  background-color: #0077b6;
  color: #fff;
  border: none;
  padding: 0.7rem;
  cursor: pointer;
  border-radius: 4px;
}

.form-contacto button:hover {
  background-color: #023e8a;
}

.galeria {
  display: flex;
  flex-direction: column;
  gap: 3rem; /* más espacio entre bloques */
  margin-top: 2rem;
}

.galeria figure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
}

.galeria figcaption {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.galeria img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}


.proyecto {
  background-color: #ffffff;
  padding: 2rem;
  margin-bottom: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  transition: transform 0.2s ease;
}

.proyecto:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.proyecto h2 {
  margin-bottom: 1rem;
  color: #1e1e1e;
}

.proyecto ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.proyecto p,
.proyecto ul {
  margin-bottom: 1.5rem;
}


.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
    position: absolute;
    top: 60px; /* depende del alto de tu nav */
    left: 0;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }
}



.tech-section {
  background-color: #ffffff;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left; /* o center si preferís */
}


.tech-section h2 {
  font-size: 1.8rem;
  color: #1e1e1e;
  margin-bottom: 1.5rem;
  text-align: center;
}


.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-list li {
  background-color: #0077b6;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.tech-list li:hover {
  background-color: #023e8a;
}
