/* ===================== PARTIDAS ABIERTAS PAGE ===================== */

/* Navbar forzado visible */
.navbar.scrolled { background: var(--bg-1) !important; }
.nav-container { justify-content: space-between; }

/* Hero */
.pa-hero {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 64px;
}

.pa-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/topographic (3) (1).webp') center/cover no-repeat;
  filter: brightness(4);
  opacity: 0.22;
}

.pa-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #0d0d0f 0%,
    transparent 40%,
    transparent 60%,
    #0d0d0f 100%
  );
}

.pa-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 24px;
}

.pa-hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 12px 0 16px;
}

.pa-hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
}

/* Sticky footer */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.pa-section {
  flex: 1;
  padding: 50px 0 60px;
  background: var(--bg-1);
}

/* Grid flexible y centrado */
.pa-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.pa-card {
  flex: 0 0 calc(33.333% - 16px);
  max-width: 400px;
}

/* Cards */
.pa-card {
  border-radius: var(--radius-lg);
  overflow: visible;
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.pa-card:hover .pa-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 100%);
}

.pa-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.2) 100%);
  transition: background 0.3s ease;
  border-radius: var(--radius-lg);
}

.pa-card-sticker {
  position: absolute;
  top: 5px;
  right: 0;
  width: 50%;
  height: auto;
  object-fit: contain;
  z-index: 4;
  pointer-events: none;
}

.pa-card-sticker--barracones {
  right: 6px;
}

.pa-card-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-end;
  flex: 1;
}

.pa-card-icon {
  font-size: 2rem;
  color: var(--red);
}

.pa-card-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  align-self: flex-start;
}


.pa-card-campo {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.12);
  align-self: flex-start;
}

.pa-card-badge--red {
  background: var(--red);
  color: #fff;
}

.pa-card h3 {
  font-size: 2rem;
  font-weight: 900;
  margin: 0;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.pa-card-horario {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.pa-card-titulo {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  margin: 4px 0 0;
}

.pa-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

.pa-card-meta i {
  color: var(--red);
  width: 14px;
  text-align: center;
}

.pa-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.pa-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pa-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}

.pa-card-features i {
  color: var(--red);
  font-size: 0.75rem;
}

/* Botón con transparencia */
.btn-glass {
  background: rgba(180, 0, 0, 0.35) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--red) !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

.btn-glass:hover {
  background: rgba(180, 0, 0, 0.85) !important;
}

/* Footer */
.pa-footer {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pa-footer a {
  color: var(--red);
  text-decoration: none;
}

.pa-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .pa-grid { flex-direction: column; align-items: center; }
  .pa-card { flex: 0 0 96%; max-width: 96%; }
  .pa-hero { height: 100px; }
  .pa-hero-content { padding: 0 16px; }
  .pa-section { padding: 40px 0 60px; }
}
