/* Horizon Padel - sedes.css */
/* Home sedes cards + dedicated sedes page */

.sed-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5.5rem 5% 6rem;
  background: linear-gradient(180deg, #050810 0%, #07101f 100%);
}

.sed-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 52% at 18% 22%, rgba(0, 87, 255, 0.18) 0%, transparent 72%),
    radial-gradient(ellipse 44% 40% at 78% 26%, rgba(255, 206, 69, 0.12) 0%, transparent 62%),
    radial-gradient(ellipse 56% 48% at 74% 80%, rgba(0, 170, 255, 0.12) 0%, transparent 68%);
}

.sed-hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sed-hero-lines::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 0 43%, rgba(255, 255, 255, 0.045) 43.2%, transparent 44.4%),
    linear-gradient(112deg, transparent 0 57%, rgba(0, 170, 255, 0.08) 57.2%, transparent 58.2%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 55%);
}

.sed-hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
  text-align: center;
}

.sed-hero-label {
  margin: 0 0 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #9fdfff;
}

.sed-hero h1 {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 11vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0.03em;
  color: var(--white);
}

.sed-hero h1 span {
  display: block;
  color: #ffd76a;
}

.sed-hero-sub {
  width: min(100%, 720px);
  margin: 1.4rem auto 0;
  font-size: clamp(1rem, 2.2vw, 1.24rem);
  line-height: 1.72;
  color: rgba(232, 240, 252, 0.78);
}

.sed-hero-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.1rem;
}

.sed-hero-slash {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 116px;
  background: var(--navy);
  clip-path: polygon(0 100%, 100% 100%, 100% 16%, 0 86%);
}

.sed-section {
  padding: 7rem 5%;
}

.sed-section.dark {
  background: var(--dark);
}

.sed-inner {
  width: min(100%, 1240px);
  max-width: 1200px;
  margin: 0 auto;
  min-width: 0;
}

.sed-overview {
  display: none;
}

.sed-overview-card {
  display: none;
}

.sed-overview-kicker {
  margin: 0 0 0.3rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-glow);
}

.sed-overview-value {
  margin: 0 0 0.35rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: var(--white);
}

.sed-overview-text {
  margin: 0;
  color: var(--gray-light);
  font-size: 0.9rem;
  line-height: 1.55;
}

.sed-intro p {
  color: var(--gray-light);
  font-size: 1rem;
  line-height: 1.75;
}

.sed-section .sede-card {
  display: flex;
  flex-direction: row;
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.018) 100%);
  border: 1px solid rgba(0,100,255,0.15);
  border-radius: 20px;
  margin-bottom: 2rem;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  align-items: stretch;
  min-width: 0;
}

.sed-section .sede-card:hover {
  border-color: rgba(0,170,255,0.28);
  box-shadow: 0 20px 50px rgba(0,87,255,0.12);
}

.sede-visual {
  width: min(31vw, 320px);
  flex-shrink: 0;
  min-height: 300px;
  position: relative;
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(6,10,18,0.15), rgba(6,10,18,0.72));
}

.sede-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transition: opacity 0.35s ease;
  display: block;
}

.sed-section .sede-card:hover .sede-visual img {
  opacity: 0.52;
}

.sede-visual::before {
  content: '';
  position: absolute;
  inset: 10% 12%;
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  pointer-events: none;
}

.sede-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(4,9,18,0.74) 100%),
    linear-gradient(135deg, rgba(0,87,255,0.08), transparent 55%);
}

.sede-visual-num,
.sede-visual-glow,
.sede-visual-label,
.sede-visual-name,
.sede-visual-district {
  position: relative;
  z-index: 1;
}

.sede-visual-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 7rem;
  line-height: 0.85;
  color: rgba(255,255,255,0.10);
  margin-bottom: 0.6rem;
}

.sede-visual-glow {
  position: absolute;
  inset: auto auto 14% 10%;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0,87,255,0.24), transparent 70%);
  filter: blur(10px);
}

.sede-visual-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9fdfff;
  margin-bottom: 0.35rem;
}

.sede-visual-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 0.4rem;
}

.sede-visual-district {
  font-size: 0.9rem;
  color: rgba(230,239,255,0.82);
  margin: 0.05rem 0 0.8rem;
}

.sede-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  min-width: 0;
}

.sede-body {
  flex: 1;
}

.sede-info-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.05rem;
}

.sede-info-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,87,255,0.08);
  border: 1px solid rgba(0,100,255,0.16);
}

.sede-info-text {
  min-width: 0;
}

.sede-info-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 0.15rem;
}

.sede-info-value {
  font-size: 0.95rem;
  color: #d8e1ee;
  line-height: 1.55;
  margin: 0;
}

.sed-facilities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sed-facility-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.46rem 0.74rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #d5e6ff;
  font-size: 0.78rem;
  line-height: 1.2;
}

.sede-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sed-section .sede-actions a {
  flex: 1 1 220px;
  justify-content: center;
}

.sede-btn-map,
.sede-btn-events {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.sede-btn-map {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--white);
}

.sede-btn-map:hover {
  transform: translateY(-2px);
  border-color: rgba(0,170,255,0.28);
  background: rgba(0,87,255,0.08);
}

.sede-btn-events {
  background: linear-gradient(135deg, var(--blue), rgba(0,150,255,0.9));
  border: none;
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0,87,255,0.22);
}

.sede-btn-events:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,87,255,0.32);
}

/* Home sedes */
#sedes .sedes-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

#sedes .sede-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0;
  overflow: hidden;
  box-shadow: none;
}

#sedes .sede-card::before,
#sedes .sede-card::after {
  content: none !important;
}

#sedes .sede-card:hover {
  border-color: rgba(0,150,255,0.3);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,87,255,0.12);
}

#sedes .sede-img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 160px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  opacity: 1;
  display: block;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

#sedes .sede-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.5rem;
}

#sedes .sede-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: rgba(0,87,255,0.15);
  line-height: 1;
  margin-bottom: 0.5rem;
}

#sedes .sede-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

#sedes .sede-ciudad {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-glow);
  margin-bottom: 1.2rem;
}

#sedes .sede-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

#sedes .sede-detail {
  font-size: 0.88rem;
  color: #c8d2e0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#sedes .ver-mapa {
  margin-top: auto;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: rgba(0,87,255,0.12);
  border: 1px solid rgba(0,100,255,0.16);
  transition: all 0.2s;
  display: inline-flex;
  justify-content: center;
}

#sedes .ver-mapa:hover {
  background: rgba(0,87,255,0.18);
  border-color: rgba(0,170,255,0.26);
}

@media (max-width: 980px) {
  .sed-hero {
    min-height: auto;
    padding: 4.6rem 5% 5rem;
  }

  .sed-hero h1 {
    font-size: clamp(3.3rem, 12vw, 6.4rem);
  }

  .sed-section .sede-card {
    flex-direction: column;
  }

  .sede-visual {
    width: 100%;
    min-height: 240px;
    padding: 1.8rem;
  }
}

@media (max-width: 768px) {
  .sed-section {
    padding: 5rem 0;
  }

  .sede-content {
    padding: 1.4rem;
  }

  .sede-actions a {
    flex-basis: 100%;
  }
}

@media (max-width: 600px) {
  .sed-section {
    padding: 4rem 5%;
  }

  .sed-hero {
    padding: 4rem 5% 4.4rem;
  }

  .sed-hero-label {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
  }

  .sed-hero-sub {
    margin-top: 1rem;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .sed-hero-btns {
    margin-top: 1.55rem;
    gap: 0.7rem;
  }

  .sede-visual {
    min-height: 200px;
  }

  .sede-visual-num {
    font-size: 6rem;
  }
}

@media (max-width: 640px) {
  .sed-intro p {
    font-size: 0.95rem;
    line-height: 1.68;
  }

  .sed-section .sede-card {
    border-radius: 18px;
  }

  .sede-content {
    padding: 1.1rem;
  }

  .sede-body {
    display: grid;
    gap: 0.85rem;
  }

  .sede-info-row {
    margin-bottom: 0;
  }

  .sed-facility-tag {
    font-size: 0.74rem;
  }

  .sede-actions {
    gap: 0.6rem;
  }

  .sede-actions a {
    flex-basis: 100%;
    min-height: 46px;
  }
}

/* Mobile-specific sedes rhythm */
@media (max-width: 768px) {
  .sed-intro {
    margin-bottom: 1.4rem;
    text-align: left;
  }

  .sed-section .sede-card {
    border-radius: 20px;
    margin-bottom: 1.15rem;
    box-shadow: 0 14px 30px rgba(0,0,0,0.16);
  }

  .sede-visual {
    min-height: 214px;
    padding: 1.2rem 1rem;
  }

  .sede-visual::before {
    inset: 9% 10%;
  }

  .sede-visual-num {
    font-size: 5.2rem;
    margin-bottom: 0.25rem;
  }

  .sede-visual-name {
    font-size: 1.62rem;
  }

  .sede-content {
    padding: 1rem;
  }

  .sed-facilities-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .sed-facility-tag {
    justify-content: center;
    text-align: center;
    min-height: 40px;
    line-height: 1.25;
  }
}

@media (max-width: 420px) {
  .sed-hero {
    padding: 3.7rem 5% 4rem;
  }

  .sed-intro {
    text-align: center;
  }

  .sed-intro .section-title {
    line-height: 0.94;
  }

  .sede-visual {
    min-height: 190px;
  }

  .sede-visual-num {
    font-size: 4.5rem;
  }

  .sede-info-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .sed-facilities-list {
    grid-template-columns: 1fr;
  }
}

/* Sedes visual polish */
.sed-hero h1 span {
  color: var(--blue-light);
  text-shadow: 0 0 34px rgba(0, 87, 255, 0.26);
}

.sed-intro {
  margin-bottom: 2.6rem;
}

.sed-facilities-list {
  margin-top: 1.2rem;
  margin-bottom: 1.15rem;
  padding-top: 1.2rem;
}

.sede-actions {
  margin-top: 1.1rem;
}

.sede-info-row + .sede-info-row {
  margin-top: 0.95rem;
}

@media (max-width: 768px) {
  .sed-intro {
    margin-bottom: 1.9rem;
  }

  .sed-facilities-list {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}
