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

:root{
  --bg: #1a1a1a;
  --bg-contrast: #262626;
  --accent: #ff9800;
  --text: #ffffff;
  --nav-height: 72px;
  --logo-height: 56px;
  --break: 768px;
  --gap: 20px;
  --radius: 8px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

html{
  font-family:var(--font);
  font-size:16px;
}

body {
  background-color: #e3e3e3; /* verde claro pastel, muy suave */
  color: #333333;            /* texto gris oscuro para buen contraste */
  font-family: 'Montserrat', sans-serif;
}


header {
  background: #1a1a1a;
  color: white;
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1.5rem 1.5rem;
  position: fixed;  /* fijar en pantalla */
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to right, #000000, #333333);
  z-index: 1000;   /* encima de todo */
}


.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  width: 180px;
  margin-right: 10px;
}


.nav-list {
  list-style: none;
  display: flex;
}

.nav-list li {
  margin-left: 20px;
}

.nav-list a{
  text-decoration:none;
  color:var(--text);
  font-weight:600;         /* más marcado */
  font-size:1.1rem;        /* más grande */
  letter-spacing:0.3px;    /* un toque más elegante */
  padding:10px 12px;
  border-radius:6px;
  transition:color .18s, background-color .18s;
}

.nav-list a:hover {
  color: #ff9800;
}

/* Botón menú hamburguesa */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #262626;
    position: absolute;
    top: 80px;
    left: 0;
    padding: 10px 0;
  }

  .nav-list li {
    text-align: center;
    padding: 10px 0;
    margin: 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-list.active {
    display: flex;
  }
  
  .nav-list a{
    font-size:1.2rem; /* un poco más grande en móvil */
    padding:14px 16px; /* más cómodo al tocar */
  }
}
#welcome-section {
  background-color: #e3e3e3; /* gris plomo clarito, para que combine con el fondo */
  color: #2c2c2c;
  padding: 80px 20px; /* espacio arriba y abajo, y algo en los lados */
  text-align: center;
  min-height: 60vh; /* para que tenga buen tamaño visual */
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome-container {
  max-width: 700px;
}

.welcome-logo {
  width: 140px; /* tamaño cómodo para el logo */
  height: auto;
  margin-bottom: 20px;
}

#welcome-section h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

#welcome-section p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #444444;
  text-align: justify; 
}

#certificaciones {
  background-color: #2c3e50;
  color: #f0f0f0;
  padding: 60px 20px;
  text-align: center;
}

#certificaciones h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #ff9800; /* color acento */
}

.cert-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.cert-card {
  background-color: #34495e;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  width: 280px;
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
}

.cert-card img {
  width: 100%;
  max-width: 420px; 
  border-radius: 6px;
  margin-bottom: 15px;
}

.cert-info h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #ffb74d;
}

.cert-info p {
  font-size: 1rem;
  color: #ddd;
}

#project-tile {
  background-color: #e3e3e3; /* mismo gris claro que welcome */
  padding: 60px 20px;
  text-align: center;
}

#project-tile h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #2c2c2c;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.project-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 15px;
}

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.project-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 15px;
  color: #2c2c2c;
}

.project-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #555555;
  margin-top: 8px;
  line-height: 1.3;
}

#contact {
  background-color: #2c3e50;
  color: #f0f0f0;
  padding: 60px 20px;
  text-align: center;
}

#contact h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #ff9800;
}

#contact-form {
  max-width: 500px;
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact-form label {
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
}

#contact-form input,
#contact-form textarea {
  padding: 10px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: 2px solid #ff9800;
}

#contact-form button {
  background-color: #ff9800;
  border: none;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

#contact-form button:hover {
  background-color: #e67e22;
}

#contact p {
  font-size: 1rem;
  color: #ddd;
}

#contact a#profile-link {
  color: #ffb74d;
  text-decoration: none;
  font-weight: 600;
}

#contact a#profile-link:hover {
  text-decoration: underline;
}

footer {
  background-color: #2c3e50;
  color: #f0f0f0;
  padding: 20px 10px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
   border-top: 4px solid #ff9800; /* línea naranja elegante y visible */
}

.footer-container a {
  color: #ffb74d;
  text-decoration: none;
  font-weight: 600;
  margin: 0 6px;
}

.footer-container a:hover {
  text-decoration: underline;
}
