/* ===== GLOBAL ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Rubik', sans-serif;
  background: #000; /* fallback si no carga la imagen */
  color: #fff8dc; /* dorado suave */
  line-height: 1.6;
  font-size: 16px;
  position: relative;
  z-index: 1;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/fondo-espacial.jpg?v=2') no-repeat center center fixed;
  background-size: cover;
  z-index: -1;
  opacity: 1;
}

/* ===== ENLACES ===== */
a {
  color: #ffdd66; /* dorado brillante */
  text-decoration: none;
}

a:hover {
  color: #ffe596;
  text-decoration: underline;
}

/* ===== HEADER ===== */
.site-header {
  background-color: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid #555;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.logo {
  font-size: 1.7rem;
  font-weight: bold;
  color: #ffd700;
}

.main-nav a {
  margin-left: 1rem;
  font-weight: 500;
}

.main-nav a.active {
  color: #fff;
  font-weight: bold;
}

/* ===== HERO ===== */
.hero {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ffd700;
}

.hero p {
  font-size: 1.1rem;
  color: #fff8dc;
}

/* ===== CONTAINER Y LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
}

.layout {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ===== ARTICLES ===== */
.articles {
  flex: 3;
}

.post-card {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid #555;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s ease-in-out;
}

.post-card:hover {
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.1);
}

.post-content {
  padding: 1rem;
}

.post-content h2 {
  font-size: 1.3rem;
  color: #ffd700;
  margin-bottom: 0.5rem;
}

.post-content p {
  font-size: 1rem;
  color: #eee;
}

.meta {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 0.5rem;
}

/* ===== SIDEBAR ===== */
.sidebar {
  flex: 1;
  border-left: 1px solid #444;
  padding-left: 1rem;
}

.sidebar h3 {
  font-size: 1.2rem;
  color: #ffd700;
  margin-bottom: 1rem;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar ul li {
  margin-bottom: 0.5rem;
}

/* ===== INFO BOX (OPCIONAL) ===== */
.info-box {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #ffdd66;
  padding: 1.5rem;
  margin-top: 2rem;
  border-radius: 8px;
}

.info-box h2,
.info-box h3 {
  margin-bottom: 0.5rem;
}

.info-box ul {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.info-box ul li::before {
  content: '✨';
  margin-right: 0.5rem;
  color: #ffdd66;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 3rem;
  border-top: 1px solid #444;
}

.site-footer a {
  color: #ffdd66;
}

/* ===== FORMULARIOS ===== */
form {
  margin-top: 2rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #aaa;
  border-radius: 6px;
  font-family: 'Rubik', sans-serif;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

button,
input[type="submit"] {
  background-color: #ffdd66;
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
  background-color: #ffe596;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .topbar {
    flex-direction: column;
    gap: 1rem;
  }

  .sidebar {
    border-left: none;
    padding-left: 0;
    margin-top: 2rem;
  }

  .main-nav a {
    margin: 0.5rem;
  }
}
