/* ===============================
   ESPORTS HUB 2026
=============================== */

.esports-hub {
  padding: 24px 40px 120px;
}

/* ===============================
   TABS (CENTRADOS REAL)
=============================== */

.esports-tabs-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.esports-tabs {
  display: flex;
  gap: 16px;
}

.esports-tab {
  padding: 16px 34px;
  border-radius: 16px;
  background: #0b0e18;
  color: #6e7385;
  font-weight: 600;
  letter-spacing: 0.8px;
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.esports-tab.active {
  background: linear-gradient(180deg, #1a1f33, #0c1020);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 10px 40px rgba(0,0,0,0.6);
}

.esports-tab:hover {
  color: #ffffff;
}

/* ===============================
   PANEL
=============================== */

.esports-panel {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top, rgba(120,140,255,0.08), transparent 60%),
    linear-gradient(180deg, #0b0f1d, #05060c);
  box-shadow:
    0 80px 160px rgba(0,0,0,0.8),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* ===============================
   GRID
=============================== */

.esports-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 460px auto; /* 👈 MISMA ALTURA */
  gap: 32px;
}


/* ===============================
   CARDS
=============================== */

.card {
  position: relative;
  height: 280px;
  border-radius: 26px;
  overflow: hidden;
  background: #06080f;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 40px 80px rgba(0,0,0,0.7);
}

.card-main {
  height: 460px;
}

.card-top {
  height: 460px;
}

.card-wide {
  grid-column: 1 / 2;
}

/* ===============================
   CARD BACKGROUNDS
=============================== */

.card-bg {
  position: absolute;
  inset: 0;
  border-radius: 26px;
}

.card-bg.glow {
  background:
    linear-gradient(
      135deg,
      rgba(90,100,150,0.35),
      rgba(15,18,35,0.9) 60%
    );
}

.card-bg.dark {
  background: linear-gradient(180deg, #04050a, #010208);
}

/* Footer bar */
.card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: #000000;
}

/* ===============================
   LABELS
=============================== */

.card-label {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 700;
  color: #e5e7ff;
  z-index: 2;
  text-align: center;
  white-space: nowrap;
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 960px) {

  .esports-panel {
    padding: 40px 24px;
  }

  .esports-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .card,
  .card-main,
  .card-top {
    height: 280px;
  }

}
/* ===============================
   STATS CARD – TEMPORADA ACTUAL
=============================== */

.stats-card {
  padding: 26px 24px;
  position: relative;
  overflow: hidden;

  background:
    /* glow superior sutil */
    radial-gradient(
      circle at top,
      rgba(120,140,255,0.18),
      transparent 20%
    ),
    /* viñeta para legibilidad */
    linear-gradient(
      180deg,
      rgba(5,8,20,0.55),
      rgba(5,8,20,0.85)
    ),
    /* imagen de fondo */
    url("https://republica1810.com/wp-content/uploads/2026/01/background-tarjeta-de-piloto-arriba-derecha-3.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.stats-content {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stat-item {
  text-align: center;
}

.stat-title {
  font-size: 15px;
  letter-spacing: 0.8px;
  color: #cfd3ff;
  opacity: 0.85;
  margin-bottom: 6px;
}

.stat-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.stat-value .main {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stat-value .delta {
  font-size: 16px;
  font-weight: 700;
}

/* Estados */
.delta.up {
  color: #3cff6a;
}

.delta.down {
  color: #ff3b3b;
}

.delta.neutral {
  color: #4b5cff;
}

/* Dividers */
.stat-divider {
  height: 1px;
  width: 55%;
  margin: 6px auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
}
/* ===============================
   FAVORITE CARD (AUTO / SERIE)
=============================== */

.favorite-card {
  padding: 24px 22px 16px; /* 👈 menos padding abajo */
}


.favorite-content {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-items: stretch; /* 👈 CLAVE */
}

.favorite-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.favorite-item img {
  align-self: center;
}



.favorite-logo {
  max-width: 82px;
  height: auto;
  margin-bottom: 24px; /* ajusta entre 14–22px a gusto */
    /* 👇 CLAVE */
  height: 120px;
  object-fit: contain;
  display: block;
}

.favorite-text {
  margin-top: auto;        /* 👈 CLAVE */
  font-size: 16px;
  font-weight: 600;
  color: #e5e7ff;
  line-height: 1.2;
  margin-bottom: 4px;
}


.favorite-divider {
  width: 1px;
  height: 140px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
}
/* ===============================
   DRIVER CARD
=============================== */

.driver-card {
  background:
    /* glow superior */
    radial-gradient(
      circle at top,
      rgba(120,140,255,0.22),
      transparent 15%
    ),

    /* capa oscura para "bajar opacidad" del fondo */
    linear-gradient(
      180deg,
      rgba(0,0,0,0.35),
      rgba(0,0,0,0.75)
    ),

    /* imagen */
    url("https://republica1810.com/wp-content/uploads/2026/01/background-tarjeta-de-piloto-3.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}



/* Imagen */
.driver-image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.driver-image img {
  height: 460px;     /* 👈 ESTE valor controla el tamaño real */
  width: auto;
  max-height: none;
  max-width: none;
  object-fit: contain;
}
.driver-image img {
  transform: translateY(0px);
}


/* Footer */
.driver-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(0,0,0,0.85);

  display: flex;
  align-items: center;
  justify-content: center; /* 👈 CENTRA TODO */

  gap: 14px;
  padding: 0 24px;
  z-index: 2;
}


/* Bandera */
.driver-flag {
  width: 32px;
  height: auto;
  border-radius: 4px;
}

/* Nombre */
.driver-name {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}
/* ===============================
   BLOQUE FULL WIDTH INFERIOR
=============================== */

.card-full {
  margin-top: 32px;
  width: 100%;
  padding: 32px;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
}
/* ===============================
   BLOQUE FULL WIDTH – DINÁMICO
=============================== */

.dynamic-block {
  position: relative;
  padding: 60px 48px;
  margin-top: 48px;
  border-radius: 32px;
  overflow: hidden;

  background:
    radial-gradient(
      circle at top,
      rgba(120,140,255,0.25),
      transparent 65%
    ),
    linear-gradient(
      180deg,
      #0c1226,
      #060812
    );

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 60px 120px rgba(0,0,0,0.7);
}

/* Contenido dinámico */
.dynamic-content {
  margin-top: 16px;
  height: calc(100% - 56px); /* label + aire */
  overflow-y: auto;
  padding-right: 10px;
}

/* Label del bloque */
.dynamic-block .card-label {
  top: 32px;
}
.card-full.dynamic-block {
  margin-top: 32px; /* 👈 IGUAL AL GAP DEL GRID */
  height: 460px;
  position: relative;
}
/* ===============================
   ENDURANCE – FULL WIDTH
=============================== */

.endurance-block {
  margin-top: 32px;
  padding: 32px 36px 36px;
  height: auto;
}

/* Header */
.endurance-header {
  display: flex;
  justify-content: center;   /* 👈 centra el conjunto */
  align-items: center;
  gap: 80px;                 /* 👈 controla la distancia entre ambos */
  margin-bottom: 28px;
}

.endurance-title {
  line-height: 1.1;
}

.endurance-title .brand {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.7;
}

.endurance-title .main {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}

.endurance-subtitle {
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.85;
}

/* Grid */
/* ===============================
   ENDURANCE – GRID RESPONSIVE REAL
=============================== */

.endurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}


/* Item */
.endurance-item {
  background: rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 18px 12px 16px;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05);
}

.endurance-item img {
  max-width: 90px;
  height: auto;
  margin-bottom: 16px;
}

.endurance-result {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.endurance-class {
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.85;
}

/* Highlight (Daytona) */
.endurance-item.highlight {
  background: linear-gradient(
    180deg,
    rgba(120,140,255,0.18),
    rgba(20,24,45,0.9)
  );
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    0 20px 60px rgba(0,0,0,0.6);
}
.endurance-block {
  position: relative;
}

.endurance-block .card-bg {
  z-index: 0;
}
.endurance-header,
.endurance-grid {
  position: relative;
  z-index: 2;
}
.endurance-block .card-bg.glow {
  background:
    radial-gradient(
      circle at top,
      rgba(120,140,255,0.18),
      transparent 70%
    );
}
.endurance-block::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background:
    radial-gradient(
      circle at top,
      rgba(120,140,255,0.18),
      transparent 70%
    );
  z-index: 0;
}
.endurance-logo {
  color: #ffffff;      /* 👈 BLANCO */
  width: 220px;        /* ajusta a gusto */
  height: auto;
  opacity: 0.95;       /* elegante, no chillón */
}
.endurance-subtitle {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #e5e7ff;   /* mismo blanco azulado */
  opacity: 1;
}
.endurance-grids {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
/* ===============================
   ENDURANCE – COLLAPSIBLE
=============================== */

.endurance-toggle {
  cursor: pointer;
}

.endurance-header {
  position: relative;
}

/* Flecha */
.endurance-arrow {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.endurance-arrow span {
  display: block;
  width: 14px;
  height: 14px;
  border-right: 3px solid #e5e7ff;
  border-bottom: 3px solid #e5e7ff;
  transform: rotate(45deg);
  transition: transform 0.35s ease;
  opacity: 0.9;
}

/* Contenido colapsado */
.endurance-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

/* Estado abierto */
.endurance-block.open .endurance-content {
  max-height: 3000px; /* suficiente para todo el grid */
}

.endurance-block.open .endurance-arrow span {
  transform: rotate(-135deg);
}
/* ===============================
   ENDURANCE – FIX ESPACIO CERRADO
=============================== */

/* Estado cerrado */
.endurance-block:not(.open) {
  min-height: unset;          /* 👈 CLAVE */
  padding-bottom: 12px;       /* compacto */
}

/* Estado abierto */
.endurance-block.open {
  min-height: 220px;          /* el original */
  padding-bottom: 36px;
}

/* El contenido colapsado no ocupa espacio */
.endurance-block:not(.open) .endurance-content {
  display: none;              /* 👈 CLAVE */
}
/* ===============================
   ENDURANCE – HEADER TEXT ALIGN
=============================== */

.endurance-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px; /* controla la distancia entre ambos textos */
  text-align: center;
}

/* Título principal */
.endurance-logo {
  display: block;
  margin: 0;
}

/* Subtítulo */
.endurance-subtitle {
  margin: 0;
  line-height: 1.1;
}
.endurance-subtitle {
  transform: translateY(-2px);
}
/* ===============================
   ENDURANCE – FIX REAL DEFINITIVO
=============================== */

.endurance-item {
  display: grid;
  grid-template-rows: 
    90px   /* logo */
    1fr    /* resultado */
    24px;  /* clase */
  align-items: center;
  justify-items: center;
}

/* Logo: ocupa siempre el mismo alto */
.endurance-item img {
  max-height: 70px;
  width: auto;
  margin: 0;
}

/* Resultado siempre centrado en su fila */
.endurance-result {
  align-self: center;
  line-height: 1;
}

/* Clase siempre ocupa espacio aunque esté vacía */
.endurance-class {
  height: 24px;
  line-height: 24px;
}
/* ===============================
   ENDURANCE – RESPONSIVE SYSTEM
=============================== */

/* Desktop grande (default) */
.endurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

/* ===============================
   TABLET
=============================== */
@media (max-width: 1200px) {
  .endurance-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
  }
}

/* ===============================
   MOBILE
=============================== */
@media (max-width: 768px) {

  /* Reduce padding general */
  .endurance-block {
    padding: 24px 20px 28px;
  }

  /* Grids más aireadas */
  .endurance-grids {
    gap: 20px;
  }

  /* Cards más grandes y legibles */
  .endurance-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
  }

  /* Ajuste visual interno */
  .endurance-item {
    padding: 16px 10px 14px;
  }

  .endurance-result {
    font-size: 36px;
  }

  .endurance-class {
    font-size: 13px;
  }

  /* Header más compacto */
  .endurance-logo {
    width: 180px;
  }

  .endurance-subtitle {
    font-size: 13px;
    letter-spacing: 0.8px;
  }
}
/* ===============================
   IR / SR – LAST 20 RACES
=============================== */

.irsr-block {
  margin-top: 32px;
  padding: 32px 36px 36px;
  position: relative;
}

/* Header */
.irsr-header {
  text-align: center;
  margin-bottom: 28px;
}

.irsr-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
}

/* Table wrapper */
.irsr-table-wrap {
  position: relative;
  z-index: 2;
}

/* Table */
.irsr-table {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
}

/* Rows */
.irsr-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
  padding: 20px 28px;
  color: #e5e7ff;
}

/* Header row */
.irsr-head {
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255,255,255,0.06);
}

/* Divider effect */
.irsr-row:not(.irsr-head) {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(
    180deg,
    rgba(10,14,30,0.6),
    rgba(5,8,18,0.85)
  );
}

/* Cells */
.irsr-series {
  font-size: 16px;
  font-weight: 600;
}

.irsr-ir {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
}

.irsr-sr {
  font-size: 18px;
  font-weight: 800;
  color: #3cff6a;
  text-align: center;
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 768px) {

  .irsr-block {
    padding: 24px 20px 28px;
  }

  .irsr-row {
    grid-template-columns: 1.5fr 1fr 1fr;
    padding: 16px 18px;
  }

  .irsr-title {
    font-size: 20px;
  }

  .irsr-series {
    font-size: 15px;
  }

  .irsr-ir,
  .irsr-sr {
    font-size: 16px;
  }
}
/* ===============================
   IR / SR – ALIGNMENT FIX
=============================== */

/* Alineación consistente en header y filas */
.irsr-row {
  justify-items: start; /* 👈 todo arranca desde la izquierda */
}

/* Quitar centrado forzado */
.irsr-ir,
.irsr-sr {
  text-align: left;
}
/* ===============================
   IR / SR – DELTA INDICATORS
=============================== */

.irsr-ir,
.irsr-sr {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Valor principal */
.irsr-main {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

/* Delta */
.irsr-delta {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* Estados */
.irsr-delta.up {
  color: #3cff6a;
}

.irsr-delta.down {
  color: #ff3b3b;
}
@media (max-width: 768px) {
  .irsr-ir,
  .irsr-sr {
    gap: 6px;
  }

  .irsr-main {
    font-size: 16px;
  }

  .irsr-delta {
    font-size: 13px;
  }
}
/* ===============================
   TABS – MOBILE CLEAN GRID
=============================== */
@media (max-width: 768px) {

  .esports-tabs-wrap {
    padding: 0 20px;
  }

  .esports-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 por fila */
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .esports-tab {
    width: 100%;
    padding: 14px 0;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
  }

}
@media (max-width: 768px) {
  .esports-tab.active {
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,0.12),
      0 12px 30px rgba(0,0,0,0.6);
  }
}
/* ===============================
   DRIVER CARD – MOBILE FIX
=============================== */
@media (max-width: 768px) {

  /* Card un poco más alta */
  .card-main.driver-card {
    height: 360px;
  }

  /* Imagen ajustada a mobile */
  .driver-image img {
    height: 360px;
    transform: translateY(0);
  }

  /* Footer más compacto */
  .driver-footer {
    height: 56px;
    padding: 0 16px;
    gap: 10px;
  }

  /* Nombre más contenido */
  .driver-name {
    font-size: 22px;
    white-space: nowrap;
  }

  /* Bandera un poco más chica */
  .driver-flag {
    width: 26px;
  }

}
/* ===============================
   STATS CARD – MOBILE FIX
=============================== */
@media (max-width: 768px) {

  /* Card más compacta */
  .card-top.stats-card {
    padding: 20px 18px;
  }

  /* Label un poco más arriba */
  .stats-card .card-label {
    top: 18px;
    font-size: 13px;
  }

  /* Contenido más junto */
  .stats-content {
    margin-top: 18px;
    gap: 10px;
  }

  /* Títulos más chicos */
  .stat-title {
    font-size: 14px;
    margin-bottom: 4px;
  }

  /* Valor principal más contenido */
  .stat-value .main {
    font-size: 30px;
  }

  /* Delta más discreto */
  .stat-value .delta {
    font-size: 14px;
  }

  /* Divisores más finos */
  .stat-divider {
    width: 65%;
    margin: 4px auto;
    opacity: 0.6;
  }

}
@media (max-width: 768px) {
  .stat-item:first-child .main {
    font-size: 34px;
  }
}
/* ===============================
   STATS CARD – HEIGHT FIX (MOBILE)
=============================== */
@media (max-width: 768px) {

  /* La card de stats NO debe tener altura fija */
  .card-top.stats-card {
    height: auto;
    min-height: unset;
    padding-bottom: 24px;
  }

  /* El grid no debe forzar altura en mobile */
  .esports-grid {
    grid-template-rows: auto;
  }

}
/* ===============================
   ENDURANCE – LOGO MOBILE FIX
=============================== */
@media (max-width: 768px) {

  .endurance-header {
    overflow: visible; /* 👈 CLAVE */
  }

  .endurance-logo {
    display: block;
    max-width: 100%;
    width: 160px;      /* un poco más compacto */
    height: auto;
    margin: 0 auto;
  }

}
.endurance-logo {
  min-height: 32px;
}
/* ===============================
   ENDURANCE – SVG VISIBILITY FIX
=============================== */
.endurance-header-inner {
  position: relative;
  z-index: 3;
}

.endurance-logo {
  position: relative;
  z-index: 3;
}
.endurance-logo img {
  display: block;
  width: 220px;
  height: auto;
}

@media (max-width: 768px) {
  .endurance-logo img {
    width: 160px;
  }
}
/* ===============================
   ENDURANCE – ARROW BELOW (MOBILE)
=============================== */
@media (max-width: 768px) {

  /* El header pasa a columna */
  .endurance-header {
    flex-direction: column;
    gap: 14px;
    padding-right: 0;
  }

  /* Quitamos posicionamiento absoluto */
  .endurance-arrow {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 6px auto 0;
    padding: 10px;
  }

}
@media (max-width: 768px) {
  .endurance-arrow span {
    width: 16px;
    height: 16px;
  }
}
/* ===============================
   ENDURANCE – COLLAPSIBLE HEIGHT FIX (MOBILE)
=============================== */
@media (max-width: 768px) {

  /* Cuando está abierto, que crezca libre */
  .endurance-block.open .endurance-content {
    max-height: none;
    overflow: visible;
  }

}

/* ===============================
   ENDURANCE – TAP TARGETS (MOBILE)
=============================== */
@media (max-width: 768px) {

  /* Card completa más tocable */
  .endurance-item {
    min-height: 140px;
    padding: 18px 14px;
  }

  /* Permite que toda la card sea “tap” */
  .endurance-item {
    cursor: pointer;
    touch-action: manipulation;
  }

  /* Feedback visual al tocar */
  .endurance-item:active {
    transform: scale(0.97);
  }

}
/* ===============================
   IR / SR – HEIGHT FIX DEFINITIVO
=============================== */

.irsr-block {
  height: auto;
  overflow: visible;
}
.irsr-block.card {
  height: auto;
}
@media (max-width: 768px) {
  .esports-hub {
    padding: 16px 12px 80px;
  }
}
@media (max-width: 768px) {
  .esports-panel {
    padding: 20px 14px;
    border-radius: 24px;
  }
}
@media (max-width: 768px) {

  .card-full,
  .endurance-block,
  .irsr-block {
    padding: 20px 14px;
  }

}
@media (max-width: 768px) {
  .esports-panel,
  .card,
  .card-full {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}
@media (max-width: 768px) {

  .favorite-content {
    justify-content: center;   /* 👈 deja de empujar a los lados */
    gap: 24px;                 /* espacio simétrico */
  }

  .favorite-item {
    flex: 1;
    align-items: center;
    text-align: center;
  }

  .favorite-divider {
    margin: 0;                 /* línea realmente centrada */
  }

}
@media (max-width: 768px) {
  .favorite-logo {
    margin-left: auto;
    margin-right: auto;
  }
}
/* ============================= */
/* FIX WordPress + Flatsome      */
/* ============================= */

.r1810-driver-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.r1810-driver-wrapper * {
  box-sizing: border-box !important;
}

.r1810-driver-wrapper img {
  max-width: none !important;
}

.r1810-driver-wrapper table {
  width: 100% !important;
  border-collapse: collapse !important;
}

.r1810-driver-wrapper td,
.r1810-driver-wrapper th {
  border: none !important;
  padding: 6px 10px !important;
}

.r1810-driver-wrapper .driver-card {
  margin: 0 auto !important;
  display: block !important;
}
.delta.up,
.irsr-delta.up {
  color: #00ff88;
  font-weight: 700;
}

.delta.down,
.irsr-delta.down {
  color: #ff4d4d;
  font-weight: 700;
}

.delta.neutral,
.irsr-delta.neutral {
  color: #999;
}
.delta.up { color: #00ff88; font-weight: 700; }
.delta.down { color: #ff4d4d; font-weight: 700; }
.delta.neutral { color: #888; }
