/* ==========================================================
   ESTILOS GENERALES - AGENCIA 32 BARILOCHE
   Identidad visual: Naranja (#F07B1E) & Verde (#7FA231)
   Base: Dark Luxury, inspirado en la40.netlify.app
   ========================================================== */

:root {
  /* Paleta Oficial Agencia 32 */
  --orange: #F07B1E;
  --orange-dark: #C45E0F;
  --orange-light: #FF9E4A;
  --orange-glow: rgba(240, 123, 30, 0.45);
  
  --green: #7FA231;
  --green-dark: #5F7D1F;
  --green-light: #9BCA34;
  --green-glow: rgba(127, 162, 49, 0.45);

  --gold: #FFB800;
  --gold-dark: #CC9200;
  --gold-light: #FFF3CC;

  --rn-blue: #0057A8;
  --rn-blue-dark: #003E7A;
  
  --dark: #0A0F14;
  --dark2: #121820;
  --dark3: #1A222D;
  --dark4: #242E3C;
  --dark5: #2E3A4B;

  --white: #FFFFFF;
  --off-white: #F4F6F9;
  --text-muted: rgba(255, 255, 255, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--dark);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ==========================================================
   TIPOGRAFÍAS Y ENCABEZADOS COMUNES
   ========================================================== */
.section {
  padding: 5.5rem 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.tag-orange {
  background: rgba(240, 123, 30, 0.15);
  border: 1px solid rgba(240, 123, 30, 0.35);
  color: var(--orange-light);
}

.tag-green {
  background: rgba(127, 162, 49, 0.15);
  border: 1px solid rgba(127, 162, 49, 0.35);
  color: var(--green-light);
}

.tag-gold {
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid rgba(255, 184, 0, 0.35);
  color: var(--gold);
}

.section-h {
  font-family: 'Black Han Sans', 'Paytone One', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: var(--white);
}

.section-p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 1.5rem 5rem;
  overflow: hidden;
  background: 
    radial-gradient(circle at 10% 20%, rgba(240, 123, 30, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(127, 162, 49, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(10, 15, 20, 0.6) 0%, var(--dark) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatUp infinite linear;
}

@keyframes floatUp {
  0% { transform: translateY(105vh) scale(0.6); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { transform: translateY(-10vh) scale(1.1); opacity: 0; }
}

.hero-content {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-content {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-institution {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.hero-inst-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
}

.hero-inst-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-inst-loc {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-title {
  font-family: 'Black Han Sans', 'Paytone One', sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-title .line-orange {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--orange-light) 40%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .line-green {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--green-light) 40%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.hero-desc strong {
  color: var(--white);
}

.hero-legacy-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 580px;
  margin-bottom: 2.25rem;
  padding: 0.9rem 1.15rem;
  background: linear-gradient(135deg, rgba(240, 123, 30, 0.16) 0%, rgba(127, 162, 49, 0.12) 100%);
  border: 1px solid rgba(240, 123, 30, 0.4);
  border-left: 4px solid var(--orange);
  border-radius: 14px;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 10px 25px -8px rgba(240, 123, 30, 0.3);
}

.hero-legacy-highlight strong {
  color: var(--gold-light);
  font-weight: 800;
  background: linear-gradient(90deg, #FFF3CC 0%, #FFB800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-legacy-icon {
  color: var(--gold);
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255, 184, 0, 0.55));
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 0.95rem 2rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--orange-glow);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(240, 123, 30, 0.65);
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 0.95rem 2rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--green-glow);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(127, 162, 49, 0.65);
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 0.95rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Hero Right: Ficha 3D y Widget La Fija */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.hero-chip-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-chip-wrap {
    width: 330px;
    height: 330px;
  }
}

.hero-chip-glow {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-glow) 0%, var(--green-glow) 70%, transparent 100%);
  filter: blur(25px);
  animation: chipGlow 6s ease-in-out infinite alternate;
}

@keyframes chipGlow {
  0% { transform: scale(0.92) rotate(0deg); opacity: 0.6; }
  100% { transform: scale(1.08) rotate(180deg); opacity: 0.9; }
}

.hero-chip-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
  animation: chipFloat 5s ease-in-out infinite alternate;
}

@keyframes chipFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
  100% { transform: translateY(4px) rotate(-1deg); }
}

/* Card "La Fija del Día" */
.hero-lafija {
  background: rgba(26, 34, 45, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(240, 123, 30, 0.35);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), 0 0 20px -5px rgba(240, 123, 30, 0.15);
}

.hero-lafija-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hero-lafija-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-lafija-date {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.hero-lafija-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-lafija-item {
  background: rgba(10, 15, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  transition: all 0.25s ease;
}

.hero-lafija-item:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.hero-lafija-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 3px;
}

.hero-lafija-val {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.05em;
}

.hero-lafija-val.num-4 {
  color: var(--gold);
}

.hero-lafija-val.num-3 {
  color: var(--orange-light);
}

.hero-lafija-val.num-2 {
  color: var(--green-light);
}

/* ==========================================================
   TICKER / CARRUSEL CONTINUO (Tarjetas Verde & Naranja)
   Inspirado en cotillonfiestaymas / la40 - Sin Emojis
   ========================================================== */
.ticker {
  background: #0A0F14;
  border-top: 1px solid rgba(240, 123, 30, 0.3);
  border-bottom: 1px solid rgba(127, 162, 49, 0.3);
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  z-index: 2;
  pointer-events: none;
}

.ticker::before {
  left: 0;
  background: linear-gradient(to right, #0A0F14, transparent);
}

.ticker::after {
  right: 0;
  background: linear-gradient(to left, #0A0F14, transparent);
}

.ticker-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  animation: tickerLoop 36s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerLoop {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  transition: filter 0.2s ease, transform 0.2s ease;
  user-select: none;
  cursor: default;
}

.ticker-card.orange {
  background: var(--orange);
}

.ticker-card.green {
  background: var(--green);
}

.ticker-card:hover {
  filter: brightness(1.15);
}

/* ==========================================================
   SECCIÓN: TODOS LOS JUEGOS DE RÍO NEGRO
   ========================================================== */
.juegos-section-wrap {
  background: var(--dark);
  border-bottom: 1px solid var(--border-subtle);
}

.juegos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.juego-card {
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.juego-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-color, var(--orange));
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.juego-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color, var(--orange));
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), 0 0 20px -5px var(--accent-glow, var(--orange-glow));
}

.juego-card:hover::before {
  opacity: 1;
}

.juego-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 14px;
  width: 100%;
  min-height: 92px;
}

.juego-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 10px 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 240px;
  min-height: 70px;
}

.juego-logo img {
  display: block;
  height: 54px;
  width: auto;
  max-width: 195px;
  object-fit: contain;
}

.juego-logo-rionegrina img {
  height: 44px;
  max-width: 205px;
}

.juego-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.juego-schedule {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.juego-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: 4px;
}

.juego-link:hover {
  background: var(--accent-color, var(--orange));
  color: #0A0F14;
  border-color: transparent;
}

/* Colores de acento individuales para los 11 juegos oficiales */
.j-rionegrina   { --accent-color: #0057A8; --accent-glow: rgba(0,87,168,0.4); }
.j-quini6       { --accent-color: #E8192C; --accent-glow: rgba(232,25,44,0.4); }
.j-telebingo    { --accent-color: #7B2D8B; --accent-glow: rgba(123,45,139,0.4); }
.j-minibingo    { --accent-color: #F47920; --accent-glow: rgba(244,121,32,0.4); }
.j-unificada    { --accent-color: #00A651; --accent-glow: rgba(0,166,81,0.4); }
.j-lotoplus     { --accent-color: #FFB800; --accent-glow: rgba(255,184,0,0.4); }
.j-telekino     { --accent-color: #D32F2F; --accent-glow: rgba(211,47,47,0.4); }
.j-quiniexpress { --accent-color: #0057A8; --accent-glow: rgba(0,87,168,0.4); }
.j-pozoquiniela { --accent-color: #7CB342; --accent-glow: rgba(124,179,66,0.4); }
.j-money        { --accent-color: #00A651; --accent-glow: rgba(0,166,81,0.4); }
.j-brinco       { --accent-color: #F47920; --accent-glow: rgba(244,121,32,0.4); }

/* ==========================================================
   SECCIÓN: CASINO CLUB ONLINE (Reemplazo de BetSur)
   ========================================================== */
.casinoclub-wrap {
  background: linear-gradient(135deg, #0A0E17 0%, #17152A 50%, #0A0E17 100%);
  border-top: 1px solid rgba(240, 123, 30, 0.2);
  border-bottom: 1px solid rgba(240, 123, 30, 0.2);
  position: relative;
  overflow: hidden;
}

.casinoclub-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}

.casinoclub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.casinoclub-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.casinoclub-logo-text {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  background: linear-gradient(135deg, #FFB800 0%, #F07B1E 50%, #FF5566 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.03em;
  line-height: 1;
}

.casinoclub-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.2);
}

.casinoclub-subtitle {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.casinoclub-pill {
  background: rgba(240, 123, 30, 0.15);
  border: 1px solid rgba(240, 123, 30, 0.4);
  border-radius: 100px;
  padding: 8px 22px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.casinoclub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.casinoclub-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(240, 123, 30, 0.2);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.casinoclub-card:hover {
  border-color: var(--orange);
  background: rgba(240, 123, 30, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 12px 25px -8px rgba(0, 0, 0, 0.7);
}

.casinoclub-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(240, 123, 30, 0.15);
  border: 1px solid rgba(240, 123, 30, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.casinoclub-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}

.casinoclub-card-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.casinoclub-cta-banner {
  background: linear-gradient(135deg, rgba(240, 123, 30, 0.2) 0%, rgba(127, 162, 49, 0.15) 100%);
  border: 1px solid rgba(240, 123, 30, 0.35);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8);
}

.casinoclub-cta-title {
  font-family: 'Black Han Sans', 'Paytone One', sans-serif;
  font-size: 1.8rem;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.casinoclub-cta-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 580px;
}

.casinoclub-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================
   TABLA DE LOS SUEÑOS (¿Soñaste algo esta noche?)
   ========================================================== */
.suenos-section-wrap {
  background: var(--dark2);
  border-bottom: 1px solid var(--border-subtle);
}

.suenos-search-box {
  max-width: 520px;
  position: relative;
  margin-bottom: 2.5rem;
}

.suenos-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 1rem 1.5rem 1rem 3.2rem;
  font-size: 1rem;
  color: var(--white);
  outline: none;
  font-family: inherit;
  transition: all 0.25s ease;
}

.suenos-input:focus {
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px var(--orange-glow);
}

.suenos-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suenos-search-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.suenos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
}

@media (min-width: 540px) {
  .suenos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .suenos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .suenos-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.sueno-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s ease;
}

.sueno-card:hover {
  background: rgba(240, 123, 30, 0.12);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.sueno-num {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1.45rem;
  color: var(--orange-light);
  line-height: 1;
}

.sueno-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
  flex: 1;
}

/* ==========================================================
   TESTIMONIOS & RESEÑAS GOOGLE MAPS
   ========================================================== */
.reviews-section-wrap {
  background: var(--dark3);
  border-bottom: 1px solid var(--border-subtle);
}

.reviews-header-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.reviews-score-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-score-num {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 3.2rem;
  color: var(--gold);
  line-height: 1;
}

.reviews-stars {
  color: var(--gold);
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.reviews-source {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s ease;
}

.review-card:hover {
  border-color: rgba(255, 184, 0, 0.35);
  transform: translateY(-3px);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1.05rem;
  color: #FFFFFF;
  flex-shrink: 0;
}

.review-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.review-quote {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  font-style: italic;
  flex: 1;
}

/* ==========================================================
   HORARIOS, CONTACTO Y MAPA DE BARILOCHE
   ========================================================== */
.contact-section-wrap {
  background: var(--dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: all 0.25s ease;
}

.contact-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(240, 123, 30, 0.15);
  border: 1px solid rgba(240, 123, 30, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange-light);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-card.green .contact-icon {
  background: rgba(127, 162, 49, 0.15);
  border-color: rgba(127, 162, 49, 0.3);
  color: var(--green-light);
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.contact-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

.contact-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}

.contact-map-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 380px;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8);
}

.contact-map-iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* ==========================================================
   FLOATING ACTION BUTTONS (FABs)
   ========================================================== */
.fabs {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.fabs.fabs-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fab-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.fab-btn:hover {
  transform: scale(1.1) translateY(-3px);
}

.fab-wsp {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green-dark) 100%);
  color: #FFFFFF;
}

.fab-wsp svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.fab-rv {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange-dark) 100%);
  color: #FFFFFF;
}

.fab-rv svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Tooltip FAB */
.fab-tooltip {
  position: absolute;
  right: 68px;
  background: rgba(10, 15, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #FFFFFF;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s ease;
}

.fab-btn:hover .fab-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================
   FOOTER INSTITUCIONAL
   ========================================================== */
.site-footer {
  background: #080C10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 1.5rem 2.5rem;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 0.5rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-btn:hover {
  background: var(--orange);
  color: #0A0F14;
  border-color: var(--orange);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: var(--orange-light);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #F07B1E 0%, #D45D06 100%);
  border: 1.5px solid #FFB366;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: 0 6px 20px -4px rgba(240, 123, 30, 0.55);
}

.footer-plus18-box {
  font-weight: 900;
  background: #121820;
  color: #FFB800;
  border: 1.5px solid #FFB800;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.footer-admin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  margin-left: 8px;
  padding: 4px;
  border-radius: 6px;
  vertical-align: middle;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.footer-admin-icon:hover {
  color: var(--orange-light);
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.12);
}

/* ==========================================================
   ADAPTACIONES RESPONSIVAS MOBILE (Smartphones y Tablets)
   ========================================================== */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

@media (max-width: 768px) {
  /* Hero */
  .hero {
    padding: 5.5rem 1rem 2.5rem;
    min-height: auto;
  }

  .hero-content {
    gap: 2.25rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 8vw, 3rem);
    line-height: 1.1;
  }

  .hero-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1rem;
  }

  .hero-legacy-highlight {
    font-size: 0.92rem;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    gap: 10px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.4rem;
    font-size: 0.9rem;
  }

  .hero-chip-wrap {
    width: 220px;
    height: 220px;
  }

  .hero-lafija {
    max-width: 100%;
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }

  .hero-lafija-nums {
    gap: 6px;
  }

  .hero-lafija-item {
    padding: 8px 4px;
    border-radius: 10px;
  }

  .hero-lafija-val {
    font-size: 1.3rem;
  }

  /* Ticker */
  .ticker-card {
    padding: 10px 16px;
    font-size: 0.74rem;
  }

  /* Secciones genéricas */
  .section {
    padding: 3.5rem 1rem;
  }

  .section-h {
    font-size: clamp(1.85rem, 7vw, 2.3rem);
    line-height: 1.12;
    margin-bottom: 0.65rem;
  }

  .section-p {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
  }

  /* Juegos Grid */
  .juegos-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .juego-card {
    padding: 1.35rem 1.15rem;
    border-radius: 16px;
    gap: 12px;
  }

  .juego-pill {
    min-height: 56px;
    padding: 8px 12px;
  }

  .juego-logo img {
    height: 30px;
    max-width: 125px;
  }

  .juego-desc {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  /* Casino Club */
  .casinoclub-inner {
    padding: 3.5rem 1rem;
  }

  .casinoclub-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
  }

  .casinoclub-logo-text {
    font-size: 1.85rem;
  }

  .casinoclub-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .casinoclub-card {
    padding: 1.25rem 1rem;
    border-radius: 14px;
  }

  .casinoclub-cta-banner {
    padding: 1.5rem 1.15rem;
    border-radius: 16px;
    gap: 1.25rem;
  }

  .casinoclub-cta-title {
    font-size: 1.4rem;
  }

  .casinoclub-cta-sub {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .casinoclub-cta-btns {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .casinoclub-cta-btns .btn-primary,
  .casinoclub-cta-btns .btn-secondary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    font-size: 0.88rem;
  }

  /* Tabla de los Sueños */
  .suenos-search-box {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .suenos-input {
    padding: 11px 14px 11px 42px;
    font-size: 0.88rem;
  }

  .suenos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .sueno-item {
    padding: 8px 4px;
    border-radius: 10px;
  }

  .sueno-num {
    font-size: 1.15rem;
  }

  .sueno-name {
    font-size: 0.7rem;
    line-height: 1.15;
  }

  /* Reseñas / Premios */
  .reviews-header-stats {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  .reviews-score-box {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .review-card {
    padding: 1.25rem 1.15rem;
    border-radius: 16px;
  }

  /* Contacto y Mapa */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-cards {
    gap: 10px;
  }

  .contact-card {
    padding: 1.1rem;
    border-radius: 14px;
    gap: 12px;
  }

  .contact-map-iframe {
    min-height: 280px;
    height: 280px;
    border-radius: 16px;
  }

  /* FABs Flotantes */
  .fabs {
    bottom: 1rem;
    right: 1rem;
    gap: 10px;
    z-index: 1000;
  }

  .fab-btn {
    width: 50px;
    height: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  }

  .fab-wsp svg {
    width: 26px;
    height: 26px;
  }

  .fab-rv svg {
    width: 24px;
    height: 24px;
  }

  .fab-tooltip {
    display: none;
  }

  /* Footer */
  .site-footer {
    padding: 3.5rem 1rem 2rem;
  }

  .footer-top {
    gap: 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-chip-wrap {
    width: 190px;
    height: 190px;
  }

  .suenos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .sueno-item {
    padding: 6px 2px;
  }

  .sueno-num {
    font-size: 1.05rem;
  }

  .sueno-name {
    font-size: 0.65rem;
  }
}

/* ==========================================================
   SECCIÓN: RED DE SUBAGENCIAS Y MAPA INTERACTIVO BARILOCHE
   ========================================================== */
.subagencias-wrap {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 50%, var(--dark) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.sub-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: var(--dark3);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1rem 1.25rem;
}

.sub-filters-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.sub-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Outfit', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.55rem 1.05rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sub-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.sub-filter-btn:active {
  transform: scale(0.96);
}

.sub-filter-btn.active {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  border-color: var(--orange-light);
  color: #FFFFFF;
  box-shadow: 0 6px 18px -4px rgba(240, 123, 30, 0.55);
}

.sub-search-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 320px;
  justify-content: flex-end;
}

.sub-search-box {
  position: relative;
  flex: 1;
  max-width: 290px;
}

.sub-search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.sub-search-input {
  width: 100%;
  background: rgba(10, 15, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 0.58rem 1rem 0.58rem 2.35rem;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sub-search-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.sub-search-input:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(127, 162, 49, 0.2);
}

.sub-nearest-btn {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border: 1px solid rgba(155, 202, 52, 0.45);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 0.83rem;
  font-weight: 800;
  padding: 0.58rem 1.05rem;
  border-radius: 100px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 6px 18px -4px rgba(127, 162, 49, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sub-nearest-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(127, 162, 49, 0.75);
}

.sub-nearest-btn:active {
  transform: scale(0.96);
}

/* Grid Principal: Directorio + Mapa */
.sub-explorer-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.sub-sidebar {
  background: var(--dark3);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  height: 540px;
  overflow: hidden;
}

.sub-sidebar-head {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 15, 20, 0.45);
}

.sub-sidebar-count {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--green-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sub-fit-all-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sub-fit-all-btn:hover {
  border-color: var(--orange);
  color: var(--orange-light);
}

.sub-fit-all-btn:active {
  transform: scale(0.96);
}

.sub-directory-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sub-directory-list::-webkit-scrollbar {
  width: 6px;
}

.sub-directory-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.sub-directory-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}

.sub-list-card {
  background: rgba(18, 24, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.22s ease;
}

.sub-list-card:hover {
  background: rgba(36, 46, 60, 0.9);
  border-color: rgba(127, 162, 49, 0.45);
  transform: translateY(-2px);
}

.sub-list-card:active {
  transform: scale(0.98);
}

.sub-list-card.is-hq {
  background: linear-gradient(135deg, rgba(240, 123, 30, 0.16) 0%, rgba(18, 24, 32, 0.95) 100%);
  border-color: rgba(240, 123, 30, 0.45);
}

.sub-list-card.active {
  border-color: var(--green-light);
  background: rgba(127, 162, 49, 0.16);
  box-shadow: 0 6px 20px -6px rgba(127, 162, 49, 0.4);
}

.sub-list-card-main {
  min-width: 0;
  flex: 1;
}

.sub-list-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.sub-list-zone {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-light);
}

.sub-list-zone.zone-hq {
  color: var(--orange-light);
}

.sub-item-dist {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(127, 162, 49, 0.22);
  color: #D4FF70;
  padding: 1px 7px;
  border-radius: 100px;
}

.sub-list-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-list-addr {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sub-list-addr svg {
  color: var(--orange);
  flex-shrink: 0;
}

.sub-list-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sub-btn-locate,
.sub-btn-gmaps {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sub-btn-locate:hover {
  background: var(--green);
  border-color: var(--green-light);
}

.sub-btn-gmaps:hover {
  background: var(--orange);
  border-color: var(--orange-light);
}

.sub-btn-locate:active,
.sub-btn-gmaps:active {
  transform: scale(0.92);
}

/* Contenedor del Mapa Leaflet */
.sub-map-container-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(240, 123, 30, 0.28);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.7);
  height: 540px;
  background: #121820;
}

#subagenciasMap {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.sub-map-legend {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 400;
  background: rgba(10, 15, 20, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #FFFFFF;
  pointer-events: none;
}

.sub-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sub-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.sub-legend-dot.hq {
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

.sub-legend-dot.sub {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* Pines personalizados SVG en Leaflet */
.sub-custom-div-icon {
  background: transparent;
  border: none;
}

.sub-map-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.55));
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

.sub-map-pin:hover {
  transform: scale(1.16) translateY(-3px);
}

.sub-map-pin-head {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--pin-bg, #7FA231);
  border: 2.5px solid var(--pin-border, #FFFFFF);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-map-pin-tip {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid var(--pin-bg, #7FA231);
  margin-top: -2px;
}

.sub-pin-hq .sub-map-pin-head {
  box-shadow: 0 0 0 4px rgba(240, 123, 30, 0.35);
}

/* Popup de Leaflet personalizado */
.sub-leaflet-popup .leaflet-popup-content-wrapper {
  background: #121820;
  color: #FFFFFF;
  border: 1px solid rgba(240, 123, 30, 0.4);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75);
  padding: 2px;
}

.sub-leaflet-popup .leaflet-popup-tip {
  background: #121820;
}

.sub-leaflet-popup .leaflet-popup-content {
  margin: 12px 14px;
  font-family: 'Outfit', sans-serif;
}

.sub-popup-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sub-popup-photo-wrap {
  width: 100%;
  height: 175px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
  border: 1px solid rgba(240, 123, 30, 0.45);
  background: #0A0F14;
}

.sub-popup-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.sub-popup-badge,
.sub-popup-badge-hq {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 100px;
}

.sub-popup-badge {
  background: rgba(127, 162, 49, 0.2);
  color: var(--green-light);
}

.sub-popup-badge-hq {
  background: rgba(240, 123, 30, 0.25);
  color: var(--orange-light);
}

.sub-popup-title {
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.sub-popup-addr {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.78);
}

.sub-popup-addr svg {
  color: var(--orange);
  flex-shrink: 0;
}

.sub-popup-dist {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green-light);
}

.sub-popup-btn {
  margin-top: 6px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #FFFFFF !important;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sub-popup-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.sub-popup-btn:active {
  transform: scale(0.96);
}

.sub-empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sub-reset-link {
  margin-top: 0.75rem;
  background: rgba(240, 123, 30, 0.18);
  border: 1px solid var(--orange);
  color: var(--orange-light);
  padding: 6px 14px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 991px) {
  .sub-explorer-grid {
    grid-template-columns: 1fr;
  }

  .sub-map-container-wrap {
    order: 1;
    height: 400px;
  }

  .sub-sidebar {
    order: 2;
    height: 390px;
  }

  .sub-search-actions {
    width: 100%;
    justify-content: stretch;
  }

  .sub-search-box {
    max-width: none;
  }
}

@media (max-width: 576px) {
  .sub-controls-bar {
    padding: 0.85rem;
  }

  .sub-filters-group {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .sub-filters-group::-webkit-scrollbar {
    display: none;
  }

  .sub-filter-btn {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0.48rem 0.9rem;
  }

  .sub-search-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sub-nearest-btn {
    justify-content: center;
    width: 100%;
    min-height: 44px;
  }

  .sub-map-container-wrap {
    height: 350px;
  }
}
