/* ------------------------------
   ESTILOS GENERALES
--------------------------------*/
body {
  background-color: #0d0d0f;
  color: #dcd7ff;
  font-family: "Inter", "Segoe UI", sans-serif;
  margin: 0;
  line-height: 1.6;
  animation: fadeIn 0.8s ease;
}

/* Animación general */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------
   NAVEGACIÓN
--------------------------------*/
nav {
  background-color: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(6px);
  padding: 1rem;
  border-bottom: 1px solid #b388ff;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #b388ff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.2s ease;
}

nav ul li a:hover {
  color: #ff77e9;
  transform: translateY(-2px);
}

/* Móvil */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 15px;
  }
}

/* ------------------------------
   HEADER
--------------------------------*/
header {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #1a1a1d, #0d0d0f);
  border-bottom: 1px solid #ff77e9;
  box-shadow: 0 0 20px rgba(255, 119, 233, 0.15);
}

#minombre {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #b388ff;
  text-shadow: 0 0 10px rgba(179, 136, 255, 0.5);
}

#titulo {
  font-size: 1.2rem;
  color: #ff77e9;
  margin-bottom: 20px;
}

header a {
  margin: 0 10px;
  color: #b388ff;
  transition: 0.3s ease;
}

header a:hover {
  color: #ff77e9;
  transform: scale(1.1);
}

/* ------------------------------
   SECCIONES GENERALES
--------------------------------*/
main {
  width: 90%;
  max-width: 900px;
  margin: auto;
  padding: 3rem 0;
}

section {
  margin-bottom: 3rem;
  background-color: #0f0f12;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #b388ff;
  box-shadow: 0 0 15px rgba(179, 136, 255, 0.15);
  transition: 0.3s ease;
  animation: fadeIn 0.6s ease;
}

section:hover {
  border-color: #ff77e9;
  box-shadow: 0 0 25px rgba(255, 119, 233, 0.25);
}

section h2 {
  color: #b388ff;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid #ff77e9;
  padding-left: 10px;
}

/* ------------------------------
   PROYECTOS
--------------------------------*/
#proyectos h3 a {
  color: #ff77e9;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

#proyectos h3 a:hover {
  text-decoration: underline;
  transform: translateX(3px);
}

/* ------------------------------
   FORMULARIO DE CONTACTO
--------------------------------*/
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #0b0b0d;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #b388ff;
  box-shadow: 0 0 15px rgba(179, 136, 255, 0.15);
}

input, select, textarea {
  padding: 1rem;
  border: 1px solid #b388ff;
  border-radius: 5px;
  background-color: #0f0f12;
  color: #dcd7ff;
  font-size: 1rem;
  transition: 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: #ff77e9;
  box-shadow: 0 0 10px rgba(255, 119, 233, 0.2);
}

button {
  background-color: #b388ff;
  color: #0d0d0f;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #ff77e9;
  transform: scale(1.03);
}

/* ------------------------------
   TABLAS
--------------------------------*/
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #dcd7ff;
}

th, td {
  border: 1px solid #b388ff;
  padding: 6px;
  font-size: 14px;
  word-wrap: break-word;
}

thead {
  background-color: #1a1a1d;
  color: #ff77e9;
}

/* Móvil */
@media (max-width: 768px) {
  th, td {
    font-size: 12px;
    padding: 4px;
  }
}

/* ------------------------------
   FOOTER
--------------------------------*/
footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #0b0b0d;
  color: #b388ff;
  border-top: 1px solid #ff77e9;
  margin-top: 3rem;
  box-shadow: 0 -5px 15px rgba(255, 119, 233, 0.1);
}
