/* ===== Estilos base (Tus colores originales) ===== */
:root {
  --color-primario: #1e63b5;
  --color-secundario: #f5f7fa;
  --color-texto: #333;
  --color-muted: #000000;
  --color-footer: #143d73;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: white;
  color: var(--color-texto);
  line-height: 1.6;
}
a { color: var(--color-primario); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header (Consolidado) ===== */
header {
  background: var(--color-primario);
  color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
}
.container {
  width: min(1200px, 90%);
  margin: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { width: 50px; }
.brand-text .title {
  font-weight: 700;
  font-size: 1.3rem;
}
.brand-text span { color: #ffd700; }

/* ===== Navegación ===== */
nav {
  display: flex;
  align-items: center;
}
nav a {
  margin: 0 10px;
  color: white;
  font-weight: 500;
}
nav a.btn-socio {
  background: #ffd700;
  color: var(--color-primario);
  padding: 6px 12px;
  border-radius: 4px;
}

/* ===== Botón Hamburguesa (Arreglado) ===== */
.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ===== Responsive (Solución definitiva sin romper colores) ===== */
@media (max-width: 1024px) {
  .hamburger {
    display: block; /* Ahora sí se verá */
  }

  nav {
    display: none; /* Se oculta en móvil por defecto */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-primario);
    padding: 1rem 0;
    box-shadow: 0 4px 5px rgba(0,0,0,0.1);
  }

  /* Esta es la regla que activa el JS */
  header.nav-open nav {
    display: flex;
  }

  nav a {
    margin: 10px 0;
    width: 100%;
    text-align: center;
  }
}

/* ===== El resto de tus secciones (Sin cambios) ===== */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin: 3rem 0; }
@media (max-width: 768px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { color: var(--color-primario); font-size: 2rem; }
.lead { color: var(--color-muted); margin: 1rem 0; }
.btn { display: inline-block; background: var(--color-primario); color: white; padding: 0.6rem 1.2rem; border-radius: 4px; font-weight: 600; }
.highlight-grid { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.highlight { flex: 1; min-width: 150px; background: var(--color-secundario); border-radius: 8px; text-align: center; padding: 1rem; }
.card { background: var(--color-secundario); padding: 1rem; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; }

section { margin-bottom: 3rem; }
h2 { color: var(--color-primario); margin-bottom: 1rem; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.muted { color: var(--color-muted); }

footer { background: var(--color-footer); color: white; padding: 2rem 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
footer h4 { margin-bottom: 0.6rem; font-size: 1.1rem; color: #ffd700; }
footer a { color: #fff; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.2); margin-top: 1.5rem; padding-top: 1rem; font-size: 0.9rem; color: #ddd; }



/* Ocultamos por defecto para evitar el salto visual */
nav a[href*="login.html"], 
nav a[href*="registro.html"] {
    display: none;
}
