/* --- style.css DEFINITIVO --- */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #0d1117;
  color: #e6edf3;
  line-height: 1.6;
  /* Animación de entrada */
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
} 

header {
  text-align: center;
  padding: 60px 20px 20px;
}

h1 {
  font-size: 3em;
  margin-bottom: 10px;
  /* Efecto Degradado Moderno */
  background: linear-gradient(90deg, #58a6ff, #a371f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.subtitle {
  font-size: 1.2em;
  color: #8b949e;
  margin-bottom: 20px;
}

section {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

h2 {
  border-left: 4px solid #58a6ff;
  padding-left: 10px;
  margin-bottom: 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* --- TARJETAS PRO (Con efecto Glow) --- */
.project-card {
  position: relative;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: #a371f7;
  box-shadow: 0 10px 30px -10px rgba(163, 113, 247, 0.3);
}

.project-card h3 {
  margin-top: 0;
  color: #e6edf3;
}

.project-card p {
  color: #8b949e;
}

/* --- FORMULARIOS --- */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

input, textarea {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #e6edf3;
  padding: 10px;
  font-size: 1em;
  width: 100%; /* Asegura que ocupen el espacio */
  box-sizing: border-box; /* Evita que el padding rompa el ancho */
}

/* --- BOTONES UNIFICADOS (Estilo Upwork/GitHub) --- */
button, .contact-btn {
  display: inline-block;
  background: linear-gradient(90deg, #238636, #2ea043);
  box-shadow: 0 4px 15px rgba(46, 160, 67, 0.4);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s, transform 0.2s;
}

button:hover, .contact-btn:hover {
  background: linear-gradient(90deg, #2ea043, #3fb950);
  transform: scale(1.05) translateY(-2px);
}

button:disabled {
  background: #30363d;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

footer {
  text-align: center;
  padding: 30px;
  font-size: 0.9em;
  color: #8b949e;
  border-top: 1px solid #30363d;
  margin-top: 50px;
}

/* Enlaces de pie de página */
footer a {
  color: #58a6ff;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}