@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* 🎨 Paleta de colores */
:root {
  --azul-profundo: #1a2b6d;
  --magenta: #b013a6;
  --rosa-pastel: #f8b4d9;
  --negro: #111;
  --gris-claro: #f6f6f6;
  --blanco: #fff;
}

/* ===============================
   Base y Reset
   =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background-color: var(--gris-claro);
  color: var(--negro);
  line-height: 1.6;
}

/* ===============================
   Header principal
   =============================== */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Esto pone logo a la izquierda, nav en el centro, botón a la derecha */
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--azul-profundo), var(--magenta));
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: relative;
    z-index: 100;
}

.mainnav {
    display: flex;
    gap: 1rem;
    flex: 1;
    justify-content: center; /* Centra el menú */
}

.join-btn {
    margin-left: 1rem; /* Un pequeño espacio desde el nav */
}

.logo-link {
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  padding: 4px;
  background: none; /* nada de degradado */
  box-shadow: none; /* sin sombras */
  transition: all 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05); /* solo un pequeño zoom */
  box-shadow: none; /* sin sombra ni rojo */
}

.logo-img {
  height: 70px;
  width: auto;
  display: block;
  border-radius: 8px;
  transition: all 0.3s ease;
}


/* Menú principal */
.mainnav a {
  position: relative;
  color: white;
  text-decoration: none;
  margin: 0 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.mainnav a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 50%;
  background: linear-gradient(90deg, var(--magenta), var(--rosa-pastel));
  border-radius: 2px;
  transition: width 0.4s ease, left 0.4s ease;
}

.mainnav a:hover {
  color: var(--rosa-pastel);
  transform: translateY(-4px);
}

.mainnav a:hover::before {
  width: 100%;
  left: 0;
}

/* Botón Únete */
.join-btn {
  background: linear-gradient(135deg, #b52bff, #a139f6);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8em 1.8em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.join-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
  transform: skewX(-25deg);
  transition: left 0.5s ease;
  z-index: 2;
}

.join-btn:hover::before {
  left: 125%;
}

.join-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(216, 44, 225, 0.6);
}

.join-btn:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(216, 44, 225, 0.6);
}

/* ===============================
   Banner principal
   =============================== */
.main-banner {
  background: linear-gradient(135deg, var(--azul-profundo), var(--magenta));
  color: white;
  text-align: center;
  padding: 60px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.main-banner::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--gris-claro);
  border-radius: 50% 50% 0 0;
}

.main-banner h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.main-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

/* ===============================
   Fila de navegación superior (Atrás)
   =============================== */
.nav-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
}

.arrow {
  display: inline-block;
  text-decoration: none;
  color: var(--magenta);
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.arrow:hover {
  color: var(--azul-profundo);
  transform: translateX(-4px);
}

.note-text {
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
}

/* ===============================
   Filtros
   =============================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filters select,
.filters input[type="checkbox"] {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  cursor: pointer;
}

.filters label.toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* ===============================
   Contribuciones
   =============================== */
.contributions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.contribution {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contribution:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.contribution-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--magenta);
  margin-bottom: 0.3rem;
}

.contribution-content h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contribution-content a {
  color: var(--azul-profundo);
  text-decoration: none;
  font-weight: 500;
}

.contribution-content a:hover {
  text-decoration: underline;
}
