/* ==========================================================================
   1. VARIABLES DE DISEÑO & CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
  --yellow: #fec30a;
  --yellow-light: #fff3c9;
  --red: #d31830;
  --red-dark: #a10e21;
  --ink: #0f131a;
  --ink-light: #1b202c;
  --muted: #5e687a;
  --paper: #f8fafc;
  --white: #ffffff;
  --line: #e2e8f0;
  --radius: 14px;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3, h4, .brand, .btn, .kicker, .eyebrow {
  font-family: 'Outfit', sans-serif;
}

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

/* ==========================================================================
   2. TOP BAR & NAVEGACIÓN PRINCIPAL
   ========================================================================== */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: .6rem 5vw;
  font-size: .85rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--yellow);
}
.topbar-badge {
  background: var(--red);
  color: #fff;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: all .2s;
}
.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
.crest-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
}
.crest-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.crest-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--yellow), #f59e0b);
  color: var(--ink);
  font-weight: 900;
  font-size: .8rem;
  line-height: 1.1;
  text-align: center;
  border: 2px solid var(--red);
}
.brand-title { line-height: 1.1; }
.brand-title small {
  display: block;
  color: var(--red);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
nav a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s ease;
  position: relative;
}
nav a:hover, nav a:focus { color: var(--red); }
nav a.nav-highlight {
  background: var(--red);
  color: #fff !important;
  padding: .45rem .9rem;
  border-radius: 8px;
}
nav a.nav-highlight:hover { background: var(--red-dark); }

.menu-toggle {
  display: none;
  background: var(--yellow);
  border: none;
  color: var(--ink);
  padding: .6rem .85rem;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  font-size: .95rem;
}

/* ==========================================================================
   3. SECCIÓN HERO (PORTADA)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  min-height: 540px;
  display: flex;
  align-items: center;
  background-image: 
    radial-gradient(circle at 85% 30%, rgba(211, 24, 48, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(254, 195, 10, 0.25) 0%, transparent 40%),
    linear-gradient(135deg, #0a0d14 0%, #151b26 100%);
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 2px, transparent 2px, transparent 12px);
  pointer-events: none;
}
.hero:after {
  content: "";
  position: absolute;
  right: clamp(1rem, 6vw, 6rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(260px, 36vw, 480px);
  height: clamp(260px, 36vw, 480px);
  background: url('../img/escudo.png') no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: auto;
  padding: 5rem 1.25rem;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(254, 195, 10, 0.15);
  color: var(--yellow);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(254, 195, 10, 0.3);
}
h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 900;
  line-height: .98;
  margin: 0 0 1.25rem;
  max-width: 820px;
  letter-spacing: -.03em;
}
h1 span.hl-yellow { color: var(--yellow); }
h1 span.hl-red { color: var(--red); }
.hero p {
  max-width: 600px;
  color: #cbd5e1;
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0 0 2rem;
}
.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   4. BOTONES & COMPONENTES REUTILIZABLES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1;
  border: 2px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(254, 195, 10, 0.35);
}
.btn-primary:hover {
  background: #ffce2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(254, 195, 10, 0.45);
}
.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(211, 24, 48, 0.35);
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-sm {
  padding: .5rem .9rem;
  font-size: .8rem;
  border-radius: 7px;
}

/* ==========================================================================
   4.1 SECCIÓN REDES SOCIALES (INSTAGRAM & FACEBOOK)
   ========================================================================== */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.social-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.social-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 1rem;
}
.social-header-insta {
  background: linear-gradient(135deg, rgba(240,148,51,0.06), rgba(220,39,67,0.06), rgba(188,24,136,0.06));
}
.social-header-fb {
  background: linear-gradient(135deg, rgba(24,119,242,0.06), rgba(15,84,180,0.06));
}
.social-profile {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.social-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
}
.social-avatar img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}
.social-meta { line-height: 1.2; }
.social-name {
  font-weight: 800;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.social-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  background: #1877f2;
  color: #fff;
  font-size: .65rem;
  border-radius: 50%;
  font-weight: 900;
}
.social-handle {
  font-size: .8rem;
  color: var(--muted);
}
.social-btn {
  padding: .5rem 1rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: .82rem;
  color: #fff !important;
  transition: transform .2s ease, opacity .2s ease;
  flex-shrink: 0;
}
.social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}
.social-btn-insta {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.social-btn-fb {
  background: #1877f2;
}

/* Instagram Post Preview */
.insta-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}
.insta-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
.insta-mosaic-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.insta-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.insta-mosaic-item:hover img {
  transform: scale(1.08);
}
.insta-badge-pill {
  position: absolute;
  bottom: .4rem;
  right: .4rem;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: .7rem;
  padding: .1rem .4rem;
  border-radius: 4px;
}
.fb-frame-container {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8fafc;
  flex: 1;
}

/* Indicador pulsante de Streaming */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(211, 24, 48, 0.2);
  color: #ff6b7e;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: .8rem;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}
.btn .live-dot {
  position: relative;
  top: -1px;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(211,24,48,0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(211,24,48,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(211,24,48,0); }
}

.ticker {
  background: linear-gradient(90deg, var(--yellow), #ffd233);
  color: var(--ink);
  padding: .85rem 5vw;
  font-weight: 900;
  font-size: .92rem;
  text-align: center;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* ==========================================================================
   5. SECCIONES Y CONTENEDORES
   ========================================================================== */
section { padding: 5rem 1.25rem; }
.container { max-width: 1200px; margin: auto; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.eyebrow {
  font-size: .82rem;
  color: var(--red);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}
h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0;
}
.section-head p {
  max-width: 480px;
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

/* ==========================================================================
   6. TARJETAS (CARDS) DE EQUIPOS Y CLUB
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-art {
  height: 120px;
  background: linear-gradient(135deg, var(--ink-light) 0%, #202738 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem;
  position: relative;
  border-bottom: 3px solid var(--yellow);
}
.card-art:before {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  background: url('../img/escudo.png') no-repeat center / contain;
  opacity: 0.95;
  filter: brightness(1.3);
  transition: filter .3s ease, transform .3s ease, opacity .3s ease;
  pointer-events: none;
}
.card:hover .card-art:before {
  opacity: 1;
  filter: brightness(1.5);
  transform: translateY(-50%) scale(1.06);
}
.card-tag {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--ink);
  padding: .3rem .6rem;
  border-radius: 6px;
}
.card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 .5rem;
  letter-spacing: -.02em;
}
.card-body p {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 1.25rem;
  flex: 1;
}
.card-meta {
  display: flex;
  gap: .75rem;
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: .85rem;
  margin-top: auto;
}
.card-meta span { font-weight: 600; }

/* Paneles Destacados */
.feature { background: #f1f5f9; }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.feature-panel {
  background: var(--ink);
  color: white;
  padding: 2.5rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}
.feature-panel:after {
  content: "PLASENCIA";
  position: absolute;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 5rem;
  line-height: 1;
  right: -1rem;
  bottom: -1rem;
  color: rgba(255,255,255,0.03);
  pointer-events: none;
}
.feature-panel > * { position: relative; z-index: 1; }
.feature-panel h3 {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.1;
  margin: .6rem 0 1rem;
  letter-spacing: -.02em;
}
.feature-panel p {
  color: #94a3b8;
  font-size: 1rem;
  margin-bottom: 1.8rem;
}

/* ==========================================================================
   7. PATROCINADORES & COLABORADORES
   ========================================================================== */
.sponsors-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
}
.sponsor-tier-title {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.25rem;
}
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  align-items: center;
}
.sponsor-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1.2rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all .2s ease;
}
.sponsor-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.sponsor-card:hover {
  background: #fff;
  border-color: var(--yellow);
  border-style: solid;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.sponsor-card img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter .2s ease, opacity .2s ease;
}
.sponsor-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
.sponsor-placeholder-text {
  font-weight: 800;
  font-size: .85rem;
  color: #64748b;
  letter-spacing: .05em;
}

/* ==========================================================================
   8. CONTACTO & FOOTER
   ========================================================================== */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  background-image: 
    radial-gradient(circle at 15% 30%, rgba(254, 195, 10, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(211, 24, 48, 0.28) 0%, transparent 40%),
    linear-gradient(135deg, #0a0d14 0%, #151b26 100%);
}
.contact:before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 2px, transparent 2px, transparent 12px);
  pointer-events: none;
}
.contact .container {
  position: relative;
  z-index: 2;
}
.contact .eyebrow { color: var(--yellow); }
.contact h2 { color: #fff; }
.contact p { color: #cbd5e1; }
.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: var(--radius);
  color: #fff;
}
.contact-card h3 { color: #fff; }
.contact-card p { color: #cbd5e1; }

.contact-footer {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 3.5rem auto 0;
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .88rem;
  color: #94a3b8;
}
.contact-footer a { color: var(--yellow); }
.contact-footer a:hover { text-decoration: underline; }

footer {
  background: #0a0d14;
  color: #94a3b8;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .88rem;
}
.footer-inner a { color: var(--yellow); }
.footer-inner a:hover { text-decoration: underline; }

/* ==========================================================================
   9. RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */
@media(max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
}
@media(max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    padding: 1.2rem;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
  }
  nav.open { display: flex; }
  .menu-toggle { display: block; }
  .grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}