/*
Theme Name: Tenis Bolivia
*/

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/jost-v20-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/jost-v20-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/jost-v20-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('./fonts/jost-v20-latin-800.woff2') format('woff2');
}

@font-face {
  font-family: 'Arimo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/arimo-v36-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Arimo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/arimo-v36-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Arimo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/arimo-v36-latin-600.woff2') format('woff2');
}

:root {
  --bg-main: #fcfbf7;
  --bg-surface: #f4f1ea;
  --text-main: #121e17;
  --text-muted: #4a554e;
  --color-clay: #c85a32;
  --color-clay-hover: #b04b25;
  --color-court: #1b382b;
  --border-color: #e2ded4;
  --font-heading: 'Jost', sans-serif;
  --font-body: 'Arimo', sans-serif;
  --container-width: 1280px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.tb-no-scroll {
  overflow: hidden;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.heading-xl {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.2;
}

.heading-md {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .heading-xl { font-size: 3.5rem; }
  .heading-lg { font-size: 2.25rem; }
  .heading-md { font-size: 1.5rem; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-clay {
  background-color: var(--color-clay);
  color: #ffffff;
}

.btn-clay:hover {
  background-color: var(--color-clay-hover);
}

.btn-outline {
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background-color: var(--bg-surface);
}

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-clay);
}

.meta-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.9;
  text-transform: uppercase;
  font-family: var(--font-heading);
  user-select: none;
}

.site-brand .brand-top {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.site-brand .brand-bottom {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  color: var(--color-clay);
  margin-top: 2px;
}

#tb-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#tb-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader-line {
  width: 60px;
  height: 2px;
  background-color: var(--border-color);
  position: relative;
  overflow: hidden;
}

.preloader-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--color-clay);
  animation: tb-loading 1s infinite ease-in-out;
}

@keyframes tb-loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

.site-header {
  position: relative;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-main);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.desktop-nav {
  display: none;
}

@media (min-width: 992px) {
  .desktop-nav {
    display: block;
  }
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-menu a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-main);
}

.primary-menu a:hover {
  color: var(--color-clay);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.icon-btn:hover {
  color: var(--color-clay);
}

.age-badge-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 8px;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  line-height: 1;
  transition: all 0.2s ease;
}

.age-badge-btn:hover {
  border-color: var(--color-clay);
  color: var(--color-clay);
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
}

@media (min-width: 992px) {
  .burger-btn {
    display: none;
  }
}

.tb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background-color: rgba(18, 30, 23, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.tb-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-dialog {
  background-color: var(--bg-main);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px 30px;
  border: 1px solid var(--border-color);
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

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

.search-input {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border-color);
  font-size: 1.1rem;
  background-color: var(--bg-surface);
}

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

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-list a {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

.age-gate-box {
  text-align: center;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 480px) {
  .age-gate-actions {
    flex-direction: row;
  }
  .age-gate-actions .btn {
    flex: 1;
  }
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.breadcrumbs {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-list a {
  color: var(--text-muted);
}

.breadcrumbs-list a:hover {
  color: var(--color-clay);
}

.breadcrumbs-separator {
  color: var(--border-color);
  user-select: none;
}

.page-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
  max-width: 820px;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}

.page-content h2 { font-size: 1.8rem; font-weight: 700; }
.page-content h3 { font-size: 1.4rem; font-weight: 600; }
.page-content h4 { font-size: 1.15rem; font-weight: 600; }

.page-content p {
  margin-bottom: 1.4em;
}

.page-content a {
  color: var(--color-clay);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  color: var(--color-clay-hover);
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.4em;
  padding-left: 24px;
}

.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

.page-content li {
  margin-bottom: 0.4em;
}

.page-content blockquote {
  border-left: 3px solid var(--color-clay);
  padding-left: 20px;
  margin: 2em 0;
  font-style: italic;
  color: var(--text-muted);
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-content th,
.page-content td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  text-align: left;
  font-size: 0.95rem;
}

.page-content th {
  background-color: var(--bg-surface);
  font-family: var(--font-heading);
  font-weight: 700;
}

.page-content img {
  border-radius: 0;
  margin: 2em 0;
}

.page-content figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: -1.2em;
  margin-bottom: 2em;
  text-align: center;
}

.article-header {
  margin-bottom: 30px;
  max-width: 820px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-meta a {
  color: var(--text-main);
  font-weight: 600;
}

.article-meta a:hover {
  color: var(--color-clay);
}

.article-featured-image {
  margin-bottom: 40px;
}

.related-posts {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (min-width: 600px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.related-card .card-media {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 12px;
  background-color: var(--bg-surface);
}

.related-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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