/* =============================================
   EL PITWALL – style.css
   Paleta: blanco, grises claros, negro/carbono
   Tipografía: Barlow Condensed + Lora + Barlow
============================================= */

:root {
  --white: #ffffff;
  --off-white: #f5f5f5;
  --gray-50: #fafafa;
  --gray-100: #f0f0f0;
  --gray-200: #e4e4e4;
  --gray-300: #d1d1d1;
  --gray-500: #9a9a9a;
  --gray-700: #555555;
  --carbon: #1a1a1a;
  --black: #0d0d0d;
  --accent: #222222;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-serif: 'Lora', serif;

  --radius: 6px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.13);
  --transition: 0.22s ease;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--carbon);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--carbon);
  color: var(--gray-300);
  font-size: 0.72rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-links a {
  color: var(--gray-300);
  margin-left: 14px;
  transition: color var(--transition);
}

.topbar-links a:hover {
  color: var(--white);
}

/* ===== HEADER AD BANNER ===== */
.ad-banner-top {
  background: var(--gray-100);
  display: flex;
  justify-content: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}

.ad-banner-top img {
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===== SITE HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--carbon);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.site-logo {
  flex-shrink: 0;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  gap: 2px;
}

.main-nav>ul>li {
  position: relative;
}

.main-nav>ul>li>a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--carbon);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.main-nav>ul>li>a:hover,
.main-nav>ul>li>a.active {
  background: var(--carbon);
  color: var(--white);
}

/* Dropdown */
.dropdown {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 6px;
  min-width: 190px;
  z-index: 200;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  display: flex !important;
  flex-direction: column !important;
}

.dropdown li {
  display: block !important;
  width: 100%;
}

.dropdown li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--carbon);
  border-bottom: 1px solid var(--gray-100);
  white-space: nowrap;
  transition: background var(--transition);
}

.dropdown li:last-child a {
  border-bottom: none;
}

.dropdown li a:hover {
  background: var(--gray-50);
}

.has-dropdown:hover .dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Search */
.header-search {
  display: flex;
  align-items: center;
  gap: 0;
}

.header-search input {
  border: 1px solid var(--gray-200);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 6px 12px;
  font-size: 0.85rem;
  background: var(--gray-50);
  width: 160px;
  outline: none;
  transition: border-color var(--transition);
}

.header-search input:focus {
  border-color: var(--carbon);
}

.header-search button {
  background: var(--carbon);
  color: var(--white);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 7px 12px;
  cursor: pointer;
  transition: background var(--transition);
}

.header-search button:hover {
  background: var(--gray-700);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--carbon);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== TICKER ===== */
.ticker-wrap {
  background: var(--carbon);
  color: var(--white);
  overflow: hidden;
  border-bottom: 1px solid #333;
}

.ticker-inner {
  display: flex;
  align-items: center;
  height: 36px;
}

.ticker-label {
  background: var(--white);
  color: var(--carbon);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
}

.ticker-items {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

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

/* ===== TAGS ===== */
.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
}

.tag-dark {
  background: var(--carbon);
  color: var(--white);
}

.tag-gray {
  background: rgba(255, 255, 255, 0.9);
  color: var(--carbon);
}

.tag-red {
  background: var(--carbon);
  color: var(--white);
}

/* ===== CATEGORY LABEL ===== */
.category-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  display: block;
  margin-bottom: 5px;
}

/* ===== CARD HOVER ===== */
.card-hover {
  transition: transform var(--transition), box-shadow var(--transition);
  border-radius: var(--radius);
}

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

/* ===== META ===== */
.meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 8px;
}

.meta .author strong {
  color: var(--carbon);
}

.dot {
  color: var(--gray-300);
}

/* ===== HERO GRID ===== */
.site-main {
  padding: 28px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-main {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-img-wrap {
  position: relative;
  overflow: hidden;
}

.hero-img {
  height: 340px;
  transition: transform 0.4s ease;
}

.hero-main:hover .hero-img {
  transform: scale(1.02);
}

.hero-content {
  padding: 22px 24px 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 10px;
}

.hero-excerpt {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 12px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  flex: 1;
}

.side-img-wrap {
  position: relative;
  overflow: hidden;
}

.side-img-wrap img {
  height: 130px;
  transition: transform 0.4s ease;
}

.side-card:hover .side-img-wrap img {
  transform: scale(1.03);
}

.side-content {
  padding: 12px 14px 14px;
}

.side-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--black);
}

/* ===== CONTENT LAYOUT ===== */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* ===== SECTION HEAD ===== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--carbon);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title .accent {
  color: var(--carbon);
}

.see-all {
  font-size: 0.8rem;
  color: var(--gray-500);
  transition: color var(--transition);
}

.see-all:hover {
  color: var(--carbon);
}

/* ===== LIST CARDS ===== */
.list-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.list-card>a {
  display: flex;
  gap: 0;
}

.list-img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 240px;
  overflow: hidden;
}

.list-img-wrap img {
  height: 150px;
  transition: transform 0.4s ease;
}

.list-card:hover .list-img-wrap img {
  transform: scale(1.04);
}

.list-content {
  padding: 16px 18px;
  flex: 1;
}

.list-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 7px;
}

.list-content p {
  font-size: 0.84rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ===== LOAD MORE ===== */
.load-more-wrap {
  text-align: center;
  margin: 24px 0;
}

.btn-load-more {
  display: inline-block;
  padding: 11px 32px;
  border: 2px solid var(--carbon);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--carbon);
  transition: background var(--transition), color var(--transition);
}

.btn-load-more:hover {
  background: var(--carbon);
  color: var(--white);
}

/* ===== SIDEBAR ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.widget-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.widget-head h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex: 1;
}

.widget-head a {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.widget-icon {
  font-size: 1rem;
}

/* Standings */
.standings-table {
  width: 100%;
  border-collapse: collapse;
}

.standings-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.standings-table tr:last-child td {
  border-bottom: none;
}

.standings-table tr:hover td {
  background: var(--gray-50);
}

.standings-table .pos {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gray-500);
  width: 26px;
  font-size: 0.9rem;
}

.standings-table .driver strong {
  display: block;
  font-size: 0.88rem;
  color: var(--black);
}

.standings-table .driver span {
  display: block;
  font-size: 0.72rem;
  color: var(--gray-500);
}

.standings-table .pts {
  text-align: right;
  font-size: 0.82rem;
  color: var(--gray-500);
  white-space: nowrap;
}

.standings-table .pts strong {
  color: var(--carbon);
}

/* Next race */
.next-race-widget {}

.next-race-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.race-flag {
  font-size: 2rem;
}

.race-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.race-info strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
}

.race-info span {
  font-size: 0.77rem;
  color: var(--gray-500);
}

.race-date {
  font-weight: 600 !important;
  color: var(--carbon) !important;
}

.race-schedule {
  padding: 10px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.race-schedule>div {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.race-schedule span {
  color: var(--gray-700);
  font-weight: 500;
}

.race-schedule time {
  color: var(--gray-500);
}

.race-row span {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--black);
  font-size: 0.85rem;
}

.race-row time {
  font-weight: 600;
  color: var(--carbon);
}

/* Most read */
.most-read-list {
  counter-reset: items;
  padding: 6px 0 10px;
}

.most-read-list li {
  counter-increment: items;
  position: relative;
  padding: 9px 16px 9px 46px;
  border-bottom: 1px solid var(--gray-100);
}

.most-read-list li:last-child {
  border-bottom: none;
}

.most-read-list li::before {
  content: counter(items);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gray-300);
}

.most-read-list li a {
  font-size: 0.83rem;
  color: var(--carbon);
  line-height: 1.4;
  transition: color var(--transition);
}

.most-read-list li a:hover {
  color: var(--gray-700);
}

/* ===== ADS ===== */
.sidebar-ad {
  background: var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}

.sidebar-ad img {
  width: 100%;
}

.ad-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 5px 0 3px;
  text-align: center;
}

.ad-mid {
  background: var(--gray-100);
  border-radius: var(--radius);
  margin: 20px 0;
  text-align: center;
  overflow: hidden;
}

.ad-mid img {
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

.ad-banner-footer {
  background: var(--gray-100);
  border-radius: var(--radius);
  text-align: center;
  margin: 32px 0 0;
  padding: 10px 0;
  overflow: hidden;
}

.ad-banner-footer img {
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===== SECTION BLOCK ===== */
.section-block {
  margin-top: 44px;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.grid-card img {
  height: 200px;
  transition: transform 0.4s ease;
}

.grid-card:hover img {
  transform: scale(1.03);
}

.grid-card-body {
  padding: 14px 16px 16px;
}

.grid-card-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 6px;
}

/* ===== SITE FOOTER ===== */
.site-footer {
  background: var(--carbon);
  color: var(--gray-300);
  margin-top: 56px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 36px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}

.footer-brand p {
  font-size: 0.84rem;
  line-height: 1.65;
  margin-top: 14px;
  color: var(--gray-500);
}

.footer-logo {
  height: 44px;
  width: auto;
  filter: invert(1) brightness(10);
  margin-bottom: 4px;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.social-links a {
  font-size: 1.1rem;
  color: var(--gray-500);
  transition: color var(--transition);
}

.social-links a:hover {
  color: var(--white);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-col ul li {
  margin-bottom: 7px;
}

.footer-col ul li a {
  font-size: 0.84rem;
  color: var(--gray-500);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #2e2e2e;
  padding: 16px 20px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-500);
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 300px;
  }

  .content-layout {
    grid-template-columns: 1fr 260px;
  }

  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .list-card>a {
    flex-direction: column;
  }

  .list-img-wrap {
    width: 100%;
  }

  .list-img-wrap img {
    height: 200px;
  }

  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .hamburger {
    display: flex;
  }

  .main-nav,
  .header-search {
    display: none;
  }

  .main-nav.open {
    display: block;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--carbon);
    padding: 12px 0;
    z-index: 200;
  }

  .main-nav.open ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav.open>ul>li>a {
    padding: 12px 20px;
    border-radius: 0;
  }

  .main-nav.open .dropdown {
    display: none !important;
  }
}

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

  .topbar-date {
    display: none;
  }
}

/* =============================================
   ESTILOS PÁGINAS INTERNAS
============================================= */

/* PAGE HERO BAR */
.page-hero-bar {
  background: var(--carbon);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 32px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-hero-bar p {
  color: var(--gray-300);
  font-size: 0.92rem;
}

/* RESULTS PAGE */
.results-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.results-race-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.results-race-info .race-flag-lg {
  font-size: 2rem;
}

.results-race-info strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.results-race-info span {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.status-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.badge-done {
  background: var(--gray-200);
  color: var(--gray-700);
}

.badge-next {
  background: var(--carbon);
  color: var(--white);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table th {
  background: var(--gray-50);
  padding: 10px 16px;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
}

.results-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.88rem;
}

.results-table tr:last-child td {
  border-bottom: none;
}

.results-table tr:hover td {
  background: var(--gray-50);
}

.tr-winner td {
  background: #fafafa;
  font-weight: 600;
}

.tr-winner .pos-cell {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}

.time-cell {
  font-family: monospace;
  color: var(--gray-700);
}

.team-cell {
  color: var(--gray-500);
  font-size: 0.82rem;
}

.upcoming-notice {
  padding: 20px;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.upcoming-notice a {
  color: var(--carbon);
  text-decoration: underline;
}

/* CLASIFICACIÓN PAGE */
.standings-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.standings-main {}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--carbon);
  padding-bottom: 0;
}

.tab-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}

.tab-btn.active {
  color: var(--carbon);
  border-bottom-color: var(--carbon);
}

.tab-content {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tab-content.hidden {
  display: none;
}

.full-standings-table {
  width: 100%;
  border-collapse: collapse;
}

.full-standings-table th {
  background: var(--gray-50);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
}

.full-standings-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.88rem;
  vertical-align: middle;
}

.full-standings-table tr:last-child td {
  border-bottom: none;
}

.full-standings-table tr:hover td {
  background: var(--gray-50);
}

.row-top3 td {
  background: #fafafa;
}

.pos-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  width: 32px;
}

.flag-cell {
  font-size: 1.1rem;
  width: 32px;
}

.pts-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-align: right;
  color: var(--carbon);
}

.center {
  text-align: center;
}

/* CALENDARIO PAGE */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cal-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 3px solid var(--gray-200);
  transition: all var(--transition);
}

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

.cal-done {
  border-left-color: var(--gray-300);
  opacity: 0.7;
}

.cal-next {
  border-left-color: var(--carbon);
  background: var(--carbon);
  color: var(--white);
}

.cal-next .cal-circuit,
.cal-next .cal-date {
  color: var(--gray-300) !important;
}

.cal-round {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--gray-500);
  min-width: 28px;
  padding-top: 2px;
}

.cal-next .cal-round {
  color: var(--gray-400);
}

.cal-flag {
  font-size: 1.6rem;
}

.cal-info {
  flex: 1;
}

.cal-info strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.cal-circuit {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.cal-date {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-700);
  margin-top: 4px;
  font-weight: 600;
}

.cal-winner {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.cal-next-label {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  background: var(--white);
  color: var(--carbon);
  padding: 2px 8px;
  border-radius: 2px;
}

/* PILOTOS PAGE */
.drivers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.driver-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.driver-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

.driver-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--carbon);
}

.driver-flag {
  font-size: 1.2rem;
}

.driver-img-placeholder img {
  height: 200px;
  object-fit: cover;
}

.driver-body {
  padding: 14px;
}

.driver-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 3px;
}

.driver-team {
  font-size: 0.78rem;
  color: var(--gray-500);
  display: block;
  margin-bottom: 10px;
}

.driver-stats {
  font-size: 0.77rem;
  color: var(--gray-700);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.driver-stats div {
  display: flex;
  justify-content: space-between;
}

.driver-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--carbon);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* EQUIPOS PAGE */
.teams-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
}

.team-pos {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--gray-200);
  min-width: 40px;
  text-align: center;
}

.team-logo-area img {
  height: 50px;
  width: 120px;
  object-fit: contain;
}

.team-info {
  flex: 1;
}

.team-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.team-name-row h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.team-desc {
  font-size: 0.84rem;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.team-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--gray-500);
}

.team-pts-block {
  text-align: right;
  min-width: 70px;
}

.team-pts-block strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--carbon);
}

.team-pts-block span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* PÁGINAS ESTÁTICAS */
.static-layout {
  max-width: 800px;
}

.static-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--carbon);
}

.static-content p {
  font-size: 0.92rem;
  color: var(--gray-700);
  margin-bottom: 14px;
  line-height: 1.7;
}

.static-list {
  list-style: none;
  margin-bottom: 14px;
}

.static-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
  color: var(--gray-700);
}

.team-grid-static {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.team-member {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.member-avatar {
  width: 48px;
  height: 48px;
  background: var(--carbon);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.team-member h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.team-member span {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.team-member p {
  font-size: 0.82rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* CONTACTO */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--carbon);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--carbon);
}

.btn-submit {
  background: var(--carbon);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-submit:hover {
  background: var(--gray-700);
}

.form-success {
  background: #d4edda;
  color: #155724;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.contact-block h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 8px;
}

.contact-block p {
  font-size: 0.85rem;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.contact-block a {
  color: var(--carbon);
  text-decoration: underline;
}

/* RESPONSIVE EXTRAS */
@media (max-width: 1024px) {
  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .drivers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .standings-layout {
    grid-template-columns: 1fr;
  }

  .team-card {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .drivers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid-static {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .team-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .drivers-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   PÁGINA DE ARTÍCULO
============================================= */
.article-main {
  min-width: 0;
}

.breadcrumb {
  font-size: .78rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--gray-500);
}

.breadcrumb a:hover {
  color: var(--carbon);
}

.breadcrumb span {
  margin: 0 6px;
}

.article-header {
  margin-bottom: 24px;
}

.tag-inline {
  display: inline-block;
  background: var(--carbon);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.article-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 14px;
}

.article-excerpt {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-name {
  font-size: .88rem;
  display: block;
  margin-bottom: 3px;
}

.meta-row {
  font-size: .78rem;
  color: var(--gray-500);
  display: flex;
  gap: 6px;
  align-items: center;
}

.article-figure {
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.article-figure figcaption {
  font-size: .78rem;
  color: var(--gray-500);
  padding: 8px 0 0;
}

.img-credit {
  margin-left: 8px;
  color: var(--gray-300);
}

.article-content {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--carbon);
  margin: 24px 0;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--carbon);
}

.article-content strong {
  color: var(--black);
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.article-content li {
  margin-bottom: 6px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.tag-pill {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: .78rem;
  color: var(--gray-700);
  transition: all var(--transition);
}

.tag-pill:hover {
  background: var(--carbon);
  color: var(--white);
  border-color: var(--carbon);
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 32px;
  border: 1px solid var(--gray-200);
}

.author-box-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box strong {
  display: block;
  font-size: .95rem;
  margin-bottom: 3px;
}

.author-twitter {
  font-size: .78rem;
  color: var(--gray-500);
  margin-bottom: 6px;
  display: block;
}

.author-box p {
  font-size: .84rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin: 0;
}

/* Paginación */
.pagination {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}

/* =============================================
   RESPONSIVE COMPLETO
   Breakpoints:
   • 1200px — pantallas medianas / laptops
   • 1024px — tablets landscape / laptops pequeños
   • 768px  — tablets portrait
   • 480px  — móviles grandes
   • 360px  — móviles pequeños
============================================= */

/* ── 1200px: laptops medianos ─────────────────── */
@media (max-width: 1200px) {
  .container {
    padding: 0 16px;
  }

  .hero-grid {
    grid-template-columns: 1fr 320px;
  }

  .content-layout {
    grid-template-columns: 1fr 280px;
  }

  .standings-layout {
    grid-template-columns: 1fr 260px;
  }
}

/* ── 1024px: tablets landscape ────────────────── */
@media (max-width: 1024px) {

  /* Header */
  .header-inner {
    gap: 16px;
  }

  .header-search input {
    width: 120px;
  }

  .main-nav>ul>li>a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr 280px;
    gap: 12px;
  }

  .hero-img {
    height: 280px;
  }

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

  /* Side cards */
  .side-img-wrap img {
    height: 110px;
  }

  .side-content h2 {
    font-size: 0.9rem;
  }

  /* Content layout */
  .content-layout {
    grid-template-columns: 1fr 250px;
    gap: 24px;
  }

  .list-img-wrap {
    width: 200px;
  }

  .list-img-wrap img {
    height: 130px;
  }

  /* Grid 3 → 2 */
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Calendario */
  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Pilotos */
  .drivers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Clasificación */
  .standings-layout {
    grid-template-columns: 1fr 240px;
  }

  /* Equipos */
  .team-logo-area img {
    width: 90px;
  }

  /* Página artículo */
  .article-title {
    font-size: 1.8rem;
  }
}

/* ── 768px: tablets portrait / móviles grandes ── */
@media (max-width: 768px) {

  /* Top bar */
  .topbar-inner {
    padding: 6px 12px;
  }

  .topbar-date {
    display: none;
  }

  /* Header — hamburger */
  .hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
  }

  .header-search {
    display: none;
  }

  .header-inner {
    padding: 0 16px;
    height: 56px;
  }

  .logo-img {
    height: 34px;
  }

  /* Menú móvil abierto */
  .main-nav.open {
    display: block;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--carbon);
    padding: 8px 0 16px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }

  .main-nav.open ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav.open>ul>li>a {
    padding: 13px 20px;
    border-radius: 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .main-nav.open .dropdown {
    display: none !important;
  }

  /* Ticker */
  .ticker-label {
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  .ticker-items {
    font-size: 0.78rem;
  }

  /* Hero — una columna */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 24px;
  }

  .hero-side {
    display: none;
  }

  .hero-img {
    height: 220px;
  }

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

  .hero-excerpt {
    font-size: 0.86rem;
  }

  .hero-content {
    padding: 16px;
  }

  /* Content layout — una columna */
  .content-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Sidebar — mostrar en móvil pero colapsada debajo */
  .sidebar {
    display: flex;
  }

  /* List cards — stack vertical */
  .list-card>a {
    flex-direction: column;
  }

  .list-img-wrap {
    width: 100%;
  }

  .list-img-wrap img {
    height: 180px;
  }

  .list-content {
    padding: 14px;
  }

  .list-content h3 {
    font-size: 1rem;
  }

  .list-content p {
    display: none;
  }

  /* oculta excerpt en móvil para ahorrar espacio */

  /* Grid 3 → 1 */
  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  /* Grid card imagen */
  .grid-card img {
    height: 160px;
  }

  /* Page hero bar */
  .page-hero-bar {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-hero-title {
    font-size: 1.8rem;
  }

  /* Calendario → 1 col */
  .calendar-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cal-card {
    padding: 12px;
  }

  /* Clasificación → sin sidebar */
  .standings-layout {
    grid-template-columns: 1fr;
  }

  .full-standings-table th,
  .full-standings-table td {
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  /* Resultados */
  .results-table th,
  .results-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Pilotos → 2 columnas */
  .drivers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .driver-img-placeholder img {
    height: 160px;
  }

  /* Equipos */
  .teams-list {
    gap: 12px;
  }

  .team-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .team-logo-area img {
    width: 100px;
    height: 40px;
  }

  .team-pts-block {
    text-align: left;
  }

  .team-pts-block strong {
    font-size: 1.4rem;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 16px 24px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-logo {
    height: 36px;
  }

  /* Artículo */
  .article-title {
    font-size: 1.6rem;
  }

  .article-excerpt {
    font-size: 0.92rem;
  }

  .article-content {
    font-size: 0.98rem;
  }

  .article-img {
    max-height: 280px;
  }

  .author-box {
    flex-direction: column;
    gap: 12px;
  }

  /* Contacto */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Nosotros */
  .team-grid-static {
    grid-template-columns: 1fr;
  }

  /* Tabs */
  .tab-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  /* Sidebar widgets en móvil — compactos */
  .standings-table td {
    padding: 8px 10px;
  }

  .next-race-card {
    padding: 12px;
  }

  .most-read-list li {
    padding: 8px 14px 8px 40px;
  }

  .most-read-list li::before {
    font-size: 1rem;
  }
}

/* ── 480px: móviles medianos ──────────────────── */
@media (max-width: 480px) {

  /* Header */
  .logo-img {
    height: 30px;
  }

  /* Hero */
  .hero-img {
    height: 190px;
  }

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

  .hero-content {
    padding: 12px;
  }

  /* List card imagen más pequeña */
  .list-img-wrap img {
    height: 160px;
  }

  /* Page hero */
  .page-hero-title {
    font-size: 1.5rem;
  }

  .page-hero-bar {
    padding: 16px;
  }

  /* Pilotos → 1 col */
  .drivers-grid {
    grid-template-columns: 1fr;
  }

  /* Calendario */
  .cal-card {
    gap: 8px;
    padding: 10px;
  }

  .cal-flag {
    font-size: 1.3rem;
  }

  .cal-info strong {
    font-size: 0.88rem;
  }

  /* Resultados — ocultar columnas menos importantes */
  .results-table .team-cell,
  .results-table th:nth-child(3),
  .results-table td:nth-child(3) {
    display: none;
  }

  /* Footer → 1 col */
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Artículo */
  .article-title {
    font-size: 1.35rem;
  }

  .article-content {
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .meta-row {
    flex-wrap: wrap;
  }

  /* Tags */
  .article-tags {
    gap: 6px;
  }

  .tag-pill {
    font-size: 0.72rem;
    padding: 3px 10px;
  }

  /* Sidebar compacto */
  .widget-head {
    padding: 10px 12px;
  }

  .widget-head h3 {
    font-size: 0.85rem;
  }

  /* Tabs */
  .tabs {
    gap: 2px;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  /* Clasificación — ocultar columna menos importante */
  .full-standings-table th:nth-child(4),
  .full-standings-table td:nth-child(4) {
    display: none;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 0.72rem;
  }

  /* Formulario contacto */
  .btn-submit {
    width: 100%;
  }
}

/* ── 360px: móviles pequeños ──────────────────── */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero-img {
    height: 170px;
  }

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

  .list-img-wrap img {
    height: 140px;
  }

  .page-hero-title {
    font-size: 1.3rem;
  }

  .article-title {
    font-size: 1.2rem;
  }

  .cal-info strong {
    font-size: 0.82rem;
  }

  .full-standings-table th,
  .full-standings-table td {
    padding: 7px 8px;
    font-size: 0.78rem;
  }

  .standings-table .pts {
    display: none;
  }

  /* solo pos + nombre en pantallas muy pequeñas */
  .standings-table td {
    padding: 7px 8px;
  }

  .footer-col h4 {
    font-size: 0.82rem;
  }

  .footer-col ul li a {
    font-size: 0.78rem;
  }
}

/* ── Ajuste sidebar en móvil ─────────────────── */
/* En móvil la sidebar aparece debajo del feed,
   mostramos solo el campeonato y lo más leído */
@media (max-width: 768px) {
  .sidebar .sidebar-ad:first-of-type {
    display: none;
  }

  /* ocultar ad top en móvil */
  .sidebar .next-race-widget .race-schedule {
    display: none;
  }

  /* solo nombre y fecha */
}

/* ── Mejoras touch ────────────────────────────── */
@media (hover: none) {

  /* En touch: quitar hover states que no aplican */
  .card-hover:hover {
    transform: none;
    box-shadow: var(--shadow);
  }

  .has-dropdown:hover .dropdown {
    visibility: hidden;
    opacity: 0;
  }

  .list-card:hover .list-img-wrap img {
    transform: none;
  }

  .hero-main:hover .hero-img {
    transform: none;
  }

  .side-card:hover .side-img-wrap img {
    transform: none;
  }

  .grid-card:hover img {
    transform: none;
  }
}

/* ── Print ────────────────────────────────────── */
@media print {

  .site-header,
  .ticker-wrap,
  .topbar,
  .sidebar,
  .ad-mid,
  .ad-banner-top,
  .ad-banner-footer,
  .sidebar-ad,
  .load-more-wrap,
  .site-footer {
    display: none !important;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .article-content {
    font-size: 12pt;
    line-height: 1.6;
  }

  .article-title {
    font-size: 20pt;
  }

  a {
    color: black;
    text-decoration: none;
  }
}

/* =============================================
   FIX RESPONSIVE ANUNCIOS
   Evita scroll horizontal causado por imágenes
   de anuncios con tamaños fijos (970px, 728px)
============================================= */

/* Contenedor raíz — nunca más ancho que la pantalla */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Todos los wrappers de anuncios */
.ad-banner-top,
.ad-banner-footer,
.ad-mid,
.sidebar-ad {
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* Todas las imágenes de anuncio — nunca más anchas que su contenedor */
.ad-banner-top img,
.ad-banner-footer img,
.ad-mid img,
.sidebar-ad img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

/* En móvil — reducir altura máxima para que no ocupen demasiado */
@media (max-width: 768px) {
  .ad-banner-top {
    padding: 8px 12px;
  }

  .ad-banner-footer {
    padding: 8px 12px;
  }

  .ad-mid {
    margin: 14px 0;
  }

  .ad-banner-top img,
  .ad-banner-footer img {
    max-height: 60px;
  }

  .ad-mid img {
    max-height: 60px;
  }
}

@media (max-width: 480px) {

  .ad-banner-top img,
  .ad-banner-footer img,
  .ad-mid img {
    max-height: 50px;
  }
}

/* Prevenir overflow en cualquier imagen del sitio */
img {
  max-width: 100%;
}

.form-error {
  background: #fde8e8;
  color: #9b1c1c;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.9rem;
}