/* ═══════════════════════════════════════════════════════════════════════════
   GasolinerasPR — Premium Modern CSS Stylesheet
   Inspired by Notion, Linear, Stripe | Pastel & Professional
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   1. CSS RESET & CUSTOM PROPERTIES
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* Color Palette */
  --bg-base: #f5f7ff;
  --bg-card: #ffffff;
  --bg-soft: #eef1ff;
  --brand-dark: #1a2550;
  --brand-mid: #2d3a8c;
  --accent: #e8567a;
  --accent-hover: #d44068;
  --fuel-regular: #00b894;
  --fuel-premium: #4a90d9;
  --fuel-diesel: #f0a500;
  --text-dark: #1a2550;
  --text-body: #4a5568;
  --text-muted: #94a3b8;
  --border: #e8ecf4;

  /* Shadows */
  --shadow-soft: 0 4px 24px rgba(26, 37, 80, 0.07);
  --shadow-card: 0 8px 32px rgba(26, 37, 80, 0.10);
  --shadow-hover: 0 16px 48px rgba(26, 37, 80, 0.16);

  /* Border Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 100;
  --z-modal: 9998;
  --z-toast: 9999;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. BASE STYLES & TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────────────── */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
  color: var(--text-body);
  background-color: var(--bg-base);
  line-height: 1.6;
  letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--trans-fast);
}

a:hover {
  color: var(--accent-hover);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Selection */
::selection {
  background: var(--accent);
  color: white;
}

::-moz-selection {
  background: var(--accent);
  color: white;
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. TOP BAR (34px slim dark strip)
   ───────────────────────────────────────────────────────────────────────────── */

.top-bar {
  height: 34px;
  background: linear-gradient(90deg, var(--brand-dark) 0%, #233258 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 2rem;
}

.top-bar-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.top-bar-link {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  color: #9ca3af;
  text-decoration: none;
  transition: color var(--trans-fast);
  letter-spacing: 0.5px;
}

.top-bar-link:hover {
  color: white;
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. MAIN HEADER (110px dark navy with gradient & pattern)
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Sticky wrapper que mantiene header + nav al hacer scroll ───── */
#sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Sombra que aparece al hacer scroll (via JS) */
  transition: box-shadow .3s ease;
}
#sticky-header.scrolled {
  box-shadow: 0 4px 32px rgba(10, 14, 39, .35);
}

.main-header {
  position: relative;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
  background-color: black;
}

.main-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(232, 86, 122, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(74, 144, 217, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.main-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.main-header > * {
  position: relative;
  z-index: 2;
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. LOGO STYLES
   ───────────────────────────────────────────────────────────────────────────── */

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  transition: transform var(--trans-fast);
  flex-shrink: 0;
}

.logo-link:hover {
  transform: translateX(-2px);
}

.logo-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent) 0%, #d44068 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  font-weight: var(--weight-extrabold);
  box-shadow: 0 8px 24px rgba(232, 86, 122, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}

.logo-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: var(--weight-extrabold);
  font-size: 1.35rem;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-subtitle {
  font-size: 10px;
  color: #cbd5e1;
  font-weight: var(--weight-medium);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. PRICE CARDS (Gas station sign aesthetic)
   ───────────────────────────────────────────────────────────────────────────── */

.price-cards-container {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  flex-shrink: 0;
}

.price-card {
  position: relative;
  min-width: 140px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #0f1420 0%, #1a2550 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 20px 40px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-normal), box-shadow var(--trans-normal);
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
  pointer-events: none;
}

.price-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 20px 40px rgba(0, 0, 0, 0.5),
    0 12px 32px rgba(0, 0, 0, 0.4);
}

.price-card-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 8px;
  font-weight: var(--weight-extrabold);
  letter-spacing: 0.12em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.price-card-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.price-card-regular .price-card-dot {
  background: var(--fuel-regular);
  box-shadow: 0 0 10px var(--fuel-regular);
}

.price-card-premium .price-card-dot {
  background: var(--fuel-premium);
  box-shadow: 0 0 10px var(--fuel-premium);
}

.price-card-diesel .price-card-dot {
  background: var(--fuel-diesel);
  box-shadow: 0 0 10px var(--fuel-diesel);
}

.price-card-display {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1;
  color: white;
  display: flex;
  align-items: flex-start;
  margin: 2px 0 4px 0;
  letter-spacing: 0.02em;
}

.price-card-regular .price-card-display {
  color: var(--fuel-regular);
  text-shadow: 0 0 20px rgba(0, 184, 148, 0.6);
}

.price-card-premium .price-card-display {
  color: var(--fuel-premium);
  text-shadow: 0 0 20px rgba(74, 144, 217, 0.6);
}

.price-card-diesel .price-card-display {
  color: var(--fuel-diesel);
  text-shadow: 0 0 20px rgba(240, 165, 0, 0.6);
}

.price-digits {
  display: inline-block;
  letter-spacing: 0.02em;
}

.price-fraction {
  font-size: 0.50em;
  vertical-align: super;
  margin-left: 3px;
  opacity: 0.8;
  font-weight: 700;
}

.price-card-unit {
  font-size: 8px;
  color: #64748b;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Loading state */
.price-digits.loading {
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. NAVIGATION BAR (sticky, white, blurred)
   ───────────────────────────────────────────────────────────────────────────── */

.main-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  color: var(--text-body);
  font-weight: var(--weight-semibold);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-link i {
  font-size: 13px;
}

.nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: var(--weight-bold);
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. HERO SECTION (decorative blobs, gradient text)
   ───────────────────────────────────────────────────────────────────────────── */

.hero-wrap {
  position: relative;
  padding: 3.5rem 0 3rem;
  background: linear-gradient(180deg, var(--bg-base) 0%, white 100%);
  overflow: hidden;
}

.hero-wrap::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 86, 122, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-wrap::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -200px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 650px;
  line-height: 1.7;
  opacity: 0.9;
}

/* ─────────────────────────────────────────────────────────────────────────────
   9. AD BANNER (elegant dark card with gradient overlay)
   ───────────────────────────────────────────────────────────────────────────── */

.ad-banner-wrap {
  padding: 2rem 0;
  background: var(--bg-base);
}

.ad-banner {
  position: relative;
  height: 150px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.ad-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 40%, rgba(232, 86, 122, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
  z-index: 1;
}

.ad-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.ad-banner-title {
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.ad-banner-text {
  font-size: 0.95rem;
  color: #cbd5e1;
  opacity: 0.9;
}

/* ─────────────────────────────────────────────────────────────────────────────
   10. MAP SECTION
   ───────────────────────────────────────────────────────────────────────────── */

.map-section {
  padding: 2.5rem 0;
}

.map-container {
  position: relative;
  height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

#map {
  width: 100%;
  height: 100%;
}

.map-overlay-top {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  pointer-events: none;
}

.map-overlay-top > * {
  pointer-events: auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   11. FILTER BAR (glass panel with selects)
   ───────────────────────────────────────────────────────────────────────────── */

.filter-bar {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar label {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-bar select,
.filter-bar input {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--trans-fast);
  font-family: inherit;
}

.filter-bar select:focus,
.filter-bar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 86, 122, 0.15);
}

.map-legend {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 12px;
  font-weight: var(--weight-medium);
  flex-wrap: wrap;
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-body);
}

.map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   12. SECTION TITLE (left accent bar)
   ───────────────────────────────────────────────────────────────────────────── */

.section-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: var(--weight-extrabold);
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1.5rem 0;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 32px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-subtitle {
  color: var(--text-body);
  margin: -1rem 0 1.5rem 0;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* ─────────────────────────────────────────────────────────────────────────────
   13. STATION CARDS (hover lift + left border reveal)
   ───────────────────────────────────────────────────────────────────────────── */

.station-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: all var(--trans-normal);
  position: relative;
  overflow: hidden;
}

.station-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--fuel-premium) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans-slow);
  z-index: 1;
}

.station-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(232, 86, 122, 0.2);
}

.station-card:hover::before {
  transform: scaleX(1);
}

.station-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.station-card-title {
  font-size: 1.1rem;
  font-weight: var(--weight-bold);
  color: var(--text-dark);
}

.station-card-brand {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: var(--weight-medium);
}

.station-card-prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 1rem 0;
}

.price-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.price-row-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-row-value {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 900;
}

.price-row.regular .price-row-value {
  color: var(--fuel-regular);
}

.price-row.premium .price-row-value {
  color: var(--fuel-premium);
}

.price-row.diesel .price-row-value {
  color: var(--fuel-diesel);
}

/* ─────────────────────────────────────────────────────────────────────────────
   14. RANK BADGES
   ───────────────────────────────────────────────────────────────────────────── */

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-weight: var(--weight-extrabold);
  font-size: 1.2rem;
  color: white;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

.rank-badge-1 {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.35);
}

.rank-badge-2 {
  background: linear-gradient(135deg, #cbd5e1 0%, #64748b 100%);
  box-shadow: 0 6px 20px rgba(148, 163, 184, 0.35);
}

.rank-badge-3 {
  background: linear-gradient(135deg, #fb923c 0%, #c2410c 100%);
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.35);
}

/* ─────────────────────────────────────────────────────────────────────────────
   15. BADGES (verified, unverified, warning)
   ───────────────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.3px;
  border: 1px solid transparent;
}

.badge-verified {
  background: rgba(0, 184, 148, 0.12);
  color: #047857;
  border-color: rgba(0, 184, 148, 0.25);
}

.badge-unverified {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-body);
  border-color: var(--border);
}

.badge-warning {
  background: rgba(240, 165, 0, 0.12);
  color: #d97706;
  border-color: rgba(240, 165, 0, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────────────
   16. BUTTONS
   ───────────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: var(--weight-semibold);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--trans-fast);
  border: none;
  font-family: inherit;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(232, 86, 122, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232, 86, 122, 0.5);
}

/* Secondary Button */
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-dark);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-card);
}

/* Dark Button */
.btn-dark {
  background: var(--brand-dark);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-dark:hover:not(:disabled) {
  background: var(--brand-mid);
  transform: translateY(-2px);
}

/* Google Button */
.btn-google {
  background: white;
  color: var(--text-dark);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  width: 100%;
}

.btn-google:hover:not(:disabled) {
  box-shadow: var(--shadow-card);
  border-color: #4285F4;
}

.btn-google i {
  font-size: 16px;
}

/* Size Variants */
.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 12px;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────────
   17. FORM INPUTS
   ───────────────────────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: var(--weight-semibold);
  color: var(--text-dark);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 14px;
  color: var(--text-dark);
  transition: all var(--trans-fast);
  font-family: inherit;
  letter-spacing: 0.2px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 86, 122, 0.12);
  background: white;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.form-input-icon {
  position: relative;
}

.form-input-icon input {
  padding-left: 2.6rem;
}

.form-input-icon > i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 14px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   18. AUTH CARD (centered, max-width 460px)
   ───────────────────────────────────────────────────────────────────────────── */

.auth-wrap {
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  position: relative;
  overflow: hidden;
}

.auth-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(232, 86, 122, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(74, 144, 217, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.auth-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: var(--weight-extrabold);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 15px;
  color: var(--text-body);
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 14px;
  color: var(--text-body);
}

.auth-footer a {
  color: var(--accent);
  font-weight: var(--weight-semibold);
}

/* ─────────────────────────────────────────────────────────────────────────────
   19. NEWS GRID
   ───────────────────────────────────────────────────────────────────────────── */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--trans-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(232, 86, 122, 0.15);
}

.news-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-mid));
  position: relative;
  overflow: hidden;
}

.news-card-image::after {
  content: '📰';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  opacity: 0.15;
}

.news-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-title {
  font-weight: var(--weight-bold);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
  color: var(--text-dark);
}

.news-card-excerpt {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  opacity: 0.85;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.news-card-author {
  font-weight: var(--weight-semibold);
}

/* ─────────────────────────────────────────────────────────────────────────────
   20. STATS CARDS
   ───────────────────────────────────────────────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all var(--trans-normal);
  box-shadow: var(--shadow-soft);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(232, 86, 122, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  position: relative;
  z-index: 1;
}

.stat-card-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: var(--weight-extrabold);
  color: var(--text-dark);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.stat-card-label {
  font-size: 13px;
  color: var(--text-body);
  margin-top: 0.5rem;
  font-weight: var(--weight-medium);
}

/* ─────────────────────────────────────────────────────────────────────────────
   21. CTA SECTION (dark navy gradient)
   ───────────────────────────────────────────────────────────────────────────── */

.cta-section {
  position: relative;
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 100%);
  overflow: hidden;
  text-align: center;
  color: white;
  margin: 3.5rem 0;
  box-shadow: var(--shadow-card);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(232, 86, 122, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(74, 144, 217, 0.15) 0%, transparent 50%);
  z-index: 1;
}

.cta-section > * {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2rem;
  font-weight: var(--weight-extrabold);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 1.75rem;
  opacity: 0.95;
}

/* ─────────────────────────────────────────────────────────────────────────────
   22. FOOTER
   ───────────────────────────────────────────────────────────────────────────── */

.main-footer {
  background: linear-gradient(180deg, var(--brand-dark) 0%, #0d1627 100%);
  color: #cbd5e1;
  margin-top: 4rem;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  font-weight: var(--weight-bold);
  font-size: 13px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 13px;
  text-decoration: none;
  transition: color var(--trans-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 1.5rem 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: #64748b;
  transition: color var(--trans-fast);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────────────────────
   23. TOAST NOTIFICATIONS
   ───────────────────────────────────────────────────────────────────────────── */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-hover);
  border-left: 4px solid var(--accent);
  min-width: 300px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-success {
  border-left-color: var(--fuel-regular);
}

.toast-error {
  border-left-color: #ef4444;
}

.toast-warning {
  border-left-color: var(--fuel-diesel);
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: var(--weight-semibold);
  color: var(--text-dark);
  margin-bottom: 2px;
}

.toast-message {
  font-size: 13px;
  color: var(--text-body);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   24. MODAL
   ───────────────────────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 37, 80, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
  transform: scale(0.95);
  transition: transform var(--trans-normal);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color var(--trans-fast);
}

.modal-close:hover {
  color: var(--text-dark);
}

/* ─────────────────────────────────────────────────────────────────────────────
   25. DIGIT ANIMATION
   ───────────────────────────────────────────────────────────────────────────── */

@keyframes digitRoll {
  0% {
    transform: translateY(-25px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.digit-animate {
  display: inline-block;
  animation: digitRoll 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(232, 86, 122, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   26. RESPONSIVE DESIGN
   ───────────────────────────────────────────────────────────────────────────── */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .price-cards-container {
    gap: 0.75rem;
  }

  .price-card {
    min-width: 120px;
    padding: 0.6rem 0.85rem;
  }

  .price-card-display {
    font-size: 1.8rem;
  }

  .logo-subtitle {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .main-header {
    height: auto;
    padding: 1rem 1.2rem;
    flex-direction: column;
    gap: 1rem;
  }

  .price-cards-container {
    width: 100%;
    justify-content: space-between;
    order: 2;
  }

  .price-card {
    flex: 1;
    min-width: 0;
  }

  .price-card-display {
    font-size: 1.35rem;
  }

  .map-container {
    height: 420px;
    border-radius: var(--radius-md);
  }

  .map-overlay-top {
    flex-direction: column;
    top: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar select,
  .filter-bar input {
    width: 100%;
  }

  .map-legend {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-card {
    padding: 2rem;
  }

  .cta-section {
    padding: 2.5rem 1.5rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .toast {
    min-width: 280px;
    max-width: 100%;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .main-header {
    padding: 0.75rem 1rem;
  }

  .price-card-label {
    font-size: 7px;
  }

  .price-card-display {
    font-size: 1.2rem;
  }

  .price-card-unit {
    font-size: 7px;
  }

  .nav-link span {
    display: none;
  }

  .nav-link {
    padding: 0.8rem 0.65rem;
    font-size: 12px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .station-card {
    padding: 1rem;
  }

  .btn {
    padding: 0.6rem 1.1rem;
    font-size: 13px;
  }

  .btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 14px;
  }

  .auth-card {
    padding: 1.5rem;
  }

  .cta-section {
    padding: 1.75rem 1rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .toast {
    min-width: 260px;
  }

  .modal-content {
    padding: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .top-bar,
  .main-nav,
  .modal-overlay,
  .toast-container {
    display: none;
  }

  body {
    background: white;
  }

  .main-header {
    box-shadow: none;
  }
}

/* ── Fracción vertical de precio (estilo letrero de gasolinera) ─────────────
   Uso: <span class="pf"><span class="pf-n">9</span><span class="pf-d">10</span></span>
   Se redimensiona proporcionalmente al font-size del contenedor padre.  */
.pf {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.46em;          /* ~11px cuando el padre es text-2xl (24px)  */
    line-height: 1.15;
    vertical-align: middle;
    font-weight: 900;
    letter-spacing: 0;
    margin-left: 1px;
    font-family: inherit;
}
.pf-n {
    display: block;
    text-align: center;
    min-width: 1.4em;
    padding: 0 2px 1px;
    border-bottom: 1.5px solid currentColor;
    line-height: 1.2;
}
.pf-d {
    display: block;
    text-align: center;
    min-width: 1.4em;
    padding: 1px 2px 0;
    line-height: 1.2;
}
