/* Fuente y colores base */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #0d1117;
  color: #e5e7eb;
}

:root {
  --color-primario: #3b82f6;
  --color-secundario: #22c55e;
  --color-fondo: #161b22;
  --color-texto-claro: #94a3b8;
}

/* Header */
header {
  background: var(--color-primario);
  color: white;
  padding: 3rem 1rem 2rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
}

header h1 {
  margin: 0;
  font-weight: 700;
  font-size: 2.5rem;
}

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

/* Navegación */
nav {
  background: var(--color-primario);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 1rem 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-secundario);
  transition: 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* Responsive menu */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--color-primario);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 1rem 0;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    text-align: center;
    margin: 1rem 0;
  }
}

/* Main */
main {
  max-width: 800px;
  background: var(--color-fondo);
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.2);
}

.post {
  margin-bottom: 3rem;
}

.post h2 {
  font-weight: 700;
  color: var(--color-primario);
  margin-bottom: 0.5rem;
}

.date {
  color: var(--color-texto-claro);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post p {
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #d1d5db;
}

/* Imagen destacada */
.featured-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.featured-image:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Contacto */
#contacto {
  margin-top: 3rem;
  padding: 2rem;
  background-color: #1f2937;
  border-radius: 8px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

#contacto h2 {
  margin-bottom: 1rem;
  color: white;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  padding: 0.75rem;
  border: 1px solid #374151;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background-color: #111827;
  color: #e5e7eb;
}

button {
  width: 150px;
  padding: 0.75rem;
  background-color: var(--color-primario);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: center;
}

button:hover {
  background-color: #2563eb;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: opacity 0.3s ease;
  margin-left: auto;
  margin-right: auto;
}

.form-message.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.form-message.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--color-primario);
  color: white;
  font-weight: 500;
  box-shadow: 0 -2px 8px rgb(0 0 0 / 0.1);
}
