/*
Theme Name: A LA CANCHA
Theme URI: https://alacanchatv.com.ar
Author: A LA CANCHA
Author URI: https://www.youtube.com/@alacanchatv
Description: Tema oficial v2.0 de A LA CANCHA (Since 2013). Incluye carga de logo real, personalizador visual de colores y tipografía, activación/desactivación de módulos, menú móvil, chat en vivo de YouTube y compatibilidad con Elementor y bloques.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alacancha
*/

:root {
  --alc-black: #0A0A0A;
  --alc-dark: #141414;
  --alc-card: #1B1B1B;
  --alc-border-dark: #2B2B2B;
  --alc-sand: #CEAE8F;
  --alc-sand-hover: #DFC3A7;
  --alc-white: #FFFFFF;
  --alc-paper: #F7F5F2;
  --alc-ink: #111111;
  --alc-muted: #5C5C5C;
  --alc-line: #E5E1DC;
  --alc-live: #E53935;
  --alc-font-display: 'Barlow Condensed', sans-serif;
  --alc-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--alc-font-body);
  background-color: var(--alc-paper);
  color: var(--alc-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.alc-display {
  font-family: var(--alc-font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Top Utility Bar */
.alc-topbar {
  background: #000000;
  color: #BDBDBD;
  font-size: 12px;
  border-bottom: 1px solid #1F1F1F;
}

.alc-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.alc-topbar-left, .alc-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.alc-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--alc-live);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7);
  animation: alcPulse 1.8s infinite;
}

@keyframes alcPulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(229, 57, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

.alc-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--alc-sand);
  font-weight: 600;
  transition: opacity 0.2s;
}

.alc-social-pill:hover {
  opacity: 0.85;
}

/* Scoreboard Ticker */
.alc-ticker {
  background: #111111;
  color: var(--alc-white);
  border-bottom: 1px solid #242424;
  padding: 10px 0;
}

.alc-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.alc-ticker-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.alc-filter-chip {
  background: #1D1D1D;
  color: #D4D4D4;
  border: 1px solid #2E2E2E;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}

.alc-filter-chip.active,
.alc-filter-chip:hover {
  background: var(--alc-sand);
  color: var(--alc-black);
  border-color: var(--alc-sand);
}

.alc-scores-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
  flex: 1;
}

.alc-score-card {
  background: #1A1A1A;
  border: 1px solid #2B2B2B;
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 195px;
  flex-shrink: 0;
}

.alc-score-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  color: #9E9E9E;
  margin-bottom: 5px;
  font-weight: 700;
}

.alc-score-status {
  color: var(--alc-sand);
}

.alc-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.alc-score-val {
  font-family: var(--alc-font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--alc-sand);
}

/* Main Header */
.alc-header {
  background: var(--alc-black);
  color: var(--alc-white);
  border-bottom: 2px solid var(--alc-sand);
  position: sticky;
  top: 0;
  z-index: 90;
}

.alc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 10px 0;
}

.alc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.alc-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.alc-wordmark-main {
  font-family: var(--alc-font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 0.03em;
  color: var(--alc-sand);
}

.alc-wordmark-sub {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.34em;
  color: var(--alc-white);
  margin-top: 3px;
}

.alc-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.alc-nav a {
  color: #EAEAEA;
  transition: color 0.15s;
}

.alc-nav a:hover {
  color: var(--alc-sand);
}

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

.alc-btn-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--alc-sand);
  color: var(--alc-black);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 9px 15px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.alc-btn-live:hover {
  opacity: 0.9;
}

.alc-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--alc-white);
  border: 1px solid #383838;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 13px;
  border-radius: 7px;
  cursor: pointer;
}

.alc-btn-outline:hover {
  border-color: var(--alc-sand);
  color: var(--alc-sand);
}

/* Mobile Hamburger & Drawer */
.alc-burger {
  display: none;
  background: #171717;
  border: 1px solid #333333;
  color: var(--alc-sand);
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.alc-mobile-drawer {
  display: none;
  background: #111111;
  border-top: 1px solid #262626;
  padding: 14px 20px 18px;
}

.alc-mobile-drawer.open {
  display: block;
}

.alc-mobile-drawer a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #F0F0F0;
  border-bottom: 1px solid #222222;
}

.alc-mobile-drawer a:last-child {
  border-bottom: 0;
}

/* Header Sponsor Banner */
.alc-sponsor-strip {
  background: #EFECE6;
  border-bottom: 1px solid var(--alc-line);
  padding: 10px 0;
}

.alc-sponsor-box {
  background: var(--alc-white);
  border: 1px dashed #C7B9A8;
  border-radius: 8px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.alc-sponsor-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7D6A56;
  background: #F4EFE9;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Streaming Broadcast Hub */
.alc-stream-section {
  background: var(--alc-black);
  color: var(--alc-white);
  padding: 28px 0 36px;
  border-bottom: 1px solid #222222;
}

.alc-stream-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.alc-signal-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.alc-signal-btn {
  background: #171717;
  border: 1px solid #2E2E2E;
  color: #D4D4D4;
  border-radius: 9px;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 195px;
}

.alc-signal-btn.active {
  background: #221D18;
  border-color: var(--alc-sand);
  color: var(--alc-white);
}

.alc-signal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.alc-badge-status {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--alc-sand);
  color: var(--alc-black);
}

.alc-badge-status.is-live {
  background: var(--alc-live);
  color: #FFFFFF;
}

.alc-signal-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
}

.alc-stream-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.alc-stream-grid.is-single-col {
  grid-template-columns: 1fr;
}

.alc-player-card {
  background: var(--alc-dark);
  border: 1px solid var(--alc-border-dark);
  border-radius: 12px;
  overflow: hidden;
}

.alc-video-ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000000;
}

.alc-video-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.alc-player-bar {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--alc-border-dark);
}

.alc-player-torneo {
  color: var(--alc-sand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.alc-player-titulo {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.15;
}

/* Agenda Strip */
.alc-agenda-box {
  margin-top: 18px;
  background: var(--alc-dark);
  border: 1px solid var(--alc-border-dark);
  border-radius: 12px;
  padding: 16px 18px;
}

.alc-agenda-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.alc-agenda-item {
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-left: 3px solid var(--alc-sand);
  border-radius: 8px;
  padding: 10px 12px;
}

.alc-agenda-when {
  font-size: 11px;
  font-weight: 800;
  color: var(--alc-sand);
  text-transform: uppercase;
}

.alc-agenda-match {
  font-size: 14px;
  font-weight: 700;
  margin: 3px 0;
}

.alc-agenda-chan {
  font-size: 12px;
  color: #A3A3A3;
}

/* Tribuna / Live Chat Card */
.alc-tribuna-card {
  background: var(--alc-dark);
  border: 1px solid var(--alc-border-dark);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 440px;
}

.alc-tribuna-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--alc-border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alc-tribuna-feed {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  flex: 1;
}

.alc-chat-msg {
  background: #1B1B1B;
  border: 1px solid #292929;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13px;
}

.alc-chat-user {
  font-weight: 800;
  color: var(--alc-sand);
  font-size: 12px;
  margin-bottom: 2px;
}

.alc-tribuna-form {
  padding: 12px;
  border-top: 1px solid var(--alc-border-dark);
  display: flex;
  gap: 8px;
}

.alc-tribuna-input {
  flex: 1;
  background: #0F0F0F;
  border: 1px solid #303030;
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--alc-white);
  font-size: 13px;
}

/* Main Editorial + Sidebar Grid */
.alc-main-section {
  padding: 36px 0 56px;
}

.alc-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.alc-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--alc-black);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.alc-section-title {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--alc-black);
}

.alc-cat-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.alc-cat-btn {
  background: var(--alc-white);
  border: 1px solid var(--alc-line);
  color: var(--alc-ink);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.alc-cat-btn.active,
.alc-cat-btn:hover {
  background: var(--alc-black);
  color: var(--alc-sand);
  border-color: var(--alc-black);
}

.alc-search-bar {
  margin-bottom: 18px;
}

.alc-search-input {
  width: 100%;
  background: var(--alc-white);
  border: 1px solid var(--alc-line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--alc-ink);
}

/* Featured Post Card */
.alc-hero-post {
  background: var(--alc-white);
  border: 1px solid var(--alc-line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.alc-hero-media {
  position: relative;
  aspect-ratio: 16 / 8.5;
  background: var(--alc-black);
  overflow: hidden;
}

.alc-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alc-fallback-cover {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, #241E18 0%, #0A0A0A 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--alc-sand);
}

.alc-hero-body {
  padding: 22px 24px;
}

.alc-post-cat {
  display: inline-block;
  background: var(--alc-black);
  color: var(--alc-sand);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.alc-hero-title {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.1;
  color: var(--alc-black);
}

.alc-hero-excerpt {
  margin: 0 0 14px;
  color: var(--alc-muted);
  font-size: 15px;
}

.alc-post-meta {
  font-size: 12px;
  color: #777777;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Posts Grid */
.alc-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.alc-post-card {
  background: var(--alc-white);
  border: 1px solid var(--alc-line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.alc-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.alc-post-thumb {
  aspect-ratio: 16 / 9.5;
  background: var(--alc-black);
  overflow: hidden;
}

.alc-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alc-post-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.alc-post-card-title {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.15;
  color: var(--alc-black);
}

.alc-post-card-excerpt {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--alc-muted);
  flex: 1;
}

/* Sidebar Widgets */
.alc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.alc-widget {
  background: var(--alc-white);
  border: 1px solid var(--alc-line);
  border-radius: 12px;
  padding: 20px;
}

.alc-brand-card {
  text-align: center;
  border-top: 4px solid var(--alc-sand);
}

.alc-brand-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.alc-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--alc-black);
  color: var(--alc-sand);
  font-weight: 700;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
}

.alc-btn-sand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--alc-sand);
  color: var(--alc-black);
  font-weight: 800;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
}

.alc-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #1E9E54;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 12px;
  padding: 9px 14px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
}

.alc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}

.alc-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--alc-muted);
  border-bottom: 1px solid var(--alc-line);
  padding: 7px 6px;
}

.alc-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #F0ECE6;
  font-weight: 600;
}

.alc-table tr:last-child td {
  border-bottom: 0;
}

.alc-mediakit-card {
  background: var(--alc-black);
  color: var(--alc-white);
  border: 1px solid #2A2A2A;
}

/* Single Article & Pages */
.alc-article-box {
  background: var(--alc-white);
  border: 1px solid var(--alc-line);
  border-radius: 12px;
  padding: 28px 32px;
}

.alc-article-title {
  font-size: 40px;
  line-height: 1.08;
  margin: 8px 0 14px;
}

.alc-article-content {
  font-size: 16.5px;
  line-height: 1.75;
  color: #222222;
}

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

.alc-share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--alc-line);
}

/* Footer */
.alc-footer {
  background: var(--alc-black);
  color: #B5B5B5;
  border-top: 3px solid var(--alc-sand);
  padding: 40px 0 26px;
}

.alc-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid #222222;
}

.alc-footer h4 {
  color: var(--alc-sand);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

.alc-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.alc-footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #888888;
}

/* Modal */
.alc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.alc-modal-backdrop.open {
  display: flex;
}

.alc-modal {
  background: var(--alc-white);
  color: var(--alc-ink);
  max-width: 560px;
  width: 100%;
  border-radius: 14px;
  border-top: 5px solid var(--alc-sand);
  padding: 24px 26px;
  position: relative;
}

@media (max-width: 960px) {
  .alc-stream-grid,
  .alc-content-grid,
  .alc-footer-grid {
    grid-template-columns: 1fr;
  }
  .alc-nav {
    display: none;
  }
  .alc-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .alc-posts-grid {
    grid-template-columns: 1fr;
  }
  .alc-article-box {
    padding: 20px 18px;
  }
  .alc-article-title {
    font-size: 30px;
  }
}
