@import url('https://googleapis.com');

:root { --orange: #ff6500; --white: #f7f7f8; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #07080a; color: var(--white); font-family: 'Barlow Condensed', Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img, svg, iframe { max-width: 100%; }

/* =========================================================
   CABECERA (ORDENADOR)
   ========================================================= */
.site-header { height: 108px; background: radial-gradient(circle at 85% 50%, rgba(255,101,0,.16), transparent 55%), linear-gradient(180deg, #0b0c10, #050608); display: flex; align-items: center; padding: 0 clamp(22px, 4vw, 62px); gap: clamp(12px, 2vw, 30px); position: relative; overflow: hidden; z-index: 1000; border-bottom: 2px solid var(--orange); border-radius: 0 0 18px 18px; }
.site-header > * { position: relative; z-index: 2; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: radial-gradient(1.5px 1.5px at 8% 25%, #fff 90%, transparent), radial-gradient(2px 2px at 18% 75%, var(--orange) 90%, transparent), radial-gradient(1.5px 1.5px at 29% 35%, #fff 90%, transparent), radial-gradient(2px 2px at 56% 20%, var(--orange) 90%, transparent), radial-gradient(2px 2px at 78% 30%, #fff 90%, transparent), radial-gradient(2.5px 2.5px at 88% 65%, var(--orange) 90%, transparent); animation: parpadeo 3.5s ease-in-out infinite alternate; }
.site-header::after { content: "✦   ★   ✦   ·   ✦   ★   ✦"; position: absolute; right: 4%; bottom: -20px; z-index: 1; pointer-events: none; font-size: 14px; letter-spacing: 28px; color: rgba(255,165,80,.55); text-shadow: 0 0 8px var(--orange); animation: subir 7s linear infinite; }

.brand { display: flex; align-items: center; min-width: clamp(230px, 25vw, 340px); gap: 12px; }
.brand-mark { width: 158px; height: 112px; object-fit: contain; mix-blend-mode: screen; flex: 0 0 auto; }
.brand-copy { display: flex; flex-direction: column; transform: skew(-8deg); }
.brand-copy strong { font-size: 34px; line-height: .9; font-weight: 900; letter-spacing: -1px; }
.brand-copy small { font-size: 13px; letter-spacing: 3px; margin-top: 6px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: clamp(15px, 2.6vw, 42px); flex: 1; height: 100%; }
.nav a { font-size: 18px; white-space: nowrap; height: 100%; display: flex; align-items: center; position: relative; }
.nav a.active:after { content: ""; position: absolute; bottom: 27px; left: -16px; right: -16px; height: 3px; background: var(--orange); }
.orange-button { background: var(--orange); color: #090909; border-radius: 30px; font-weight: 700; font-style: italic; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 36px; font-size: 20px; transition: .2s; }
.orange-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,101,0,.35); }
.menu-toggle { display: none; cursor: pointer; }

.btn-pizarra {
  display: inline-flex;
  align-items: center;
  height: auto !important;
}

.btn-pizarra img {
  height: 78px;
  max-height: 75%;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 101, 0, 0.35));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.btn-pizarra:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(255, 101, 0, 0.9)) brightness(1.08);
}

/* =========================================================
   CUERPO PRINCIPAL
   ========================================================= */
main { background: linear-gradient(180deg, rgba(7,8,10,.55), #07080a 85%), url('assets/partidos.jpg') center top/cover no-repeat; padding: 55px 5% 80px; }
.contenedor { max-width: 1150px; margin: auto; }
.top-bar { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
.tag { color: var(--orange); font-size: 14px; font-weight: 700; letter-spacing: 2px; }
h1 { font-size: clamp(36px, 6vw, 80px); font-style: italic; font-weight: 900; line-height: .95; margin: 8px 0; }
h1 em, h2 em { color: var(--orange); }
.sub { color: #c9c9cd; font-size: 19px; margin: 0; }

/* =========================================================
   ENLACES Y PESTAÑAS DE FILTRO
   ========================================================= */
.enlaces-femaddi, .filtros { display: flex; flex-wrap: wrap; gap: 10px; }
.filtros { margin-bottom: 28px; align-items: center; }
.filtros .sep { width: 2px; height: 26px; background: #343438; margin: 0 6px; }
.outline-femaddi { border: 2px solid var(--orange); color: var(--white); border-radius: 30px; padding: 11px 24px; font: italic 700 18px 'Barlow Condensed', sans-serif; transition: .2s; }
.outline-femaddi:hover, .filtros button.activo, .filtros button:hover { background: var(--orange); color: #090909; border-color: var(--orange); }
.filtros button { background: #141519; color: #ccc; border: 1px solid #343438; padding: 9px 24px; border-radius: 25px; font: 700 17px 'Barlow Condensed', sans-serif; cursor: pointer; }

/* =========================================================
   BLOQUES, FILAS Y BOTONES DE JORNADA
   ========================================================= */
.cabecera-bloque { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 38px 0 16px; }
.cabecera-bloque h2 { font-size: 32px; font-style: italic; margin: 0; }
.lista-partidos { display: flex; flex-direction: column; gap: 12px; }
.fila { display: grid; grid-template-columns: 90px 1fr 220px; align-items: center; gap: 15px; background: linear-gradient(90deg, rgba(255,101,0,.14), rgba(17,18,22,.95)); border: 1px solid var(--orange); border-radius: 14px; padding: 18px 22px; }
.fecha { text-align: center; border-right: 1px solid #333; padding-right: 15px; }
.fecha strong { display: block; font-size: 38px; color: var(--orange); line-height: 1; }
.fecha span { font-size: 13px; color: #aaa; }
.equipos { display: flex; justify-content: space-around; align-items: center; gap: 15px; text-align: center; }
.equipos b { font-size: 21px; flex: 1; }
.marcador { font-size: 32px; font-weight: 900; font-style: italic; color: var(--orange); min-width: 95px; }
.info { text-align: right; }
.info strong { display: block; font-size: 20px; color: var(--orange); }
.info span { font-size: 15px; color: #bbb; }

.nav-j { display: flex; align-items: center; gap: 12px; background: #141519; border: 1px solid #343438; padding: 5px 12px; border-radius: 30px; font: italic 900 19px 'Barlow Condensed', sans-serif; }
.nav-j span { min-width: 100px; text-align: center; }
.nav-j button { background: none; color: var(--orange); border: 1px solid var(--orange); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav-j button:hover:not(:disabled) { background: var(--orange); color: #09090b; }
.nav-j button:disabled { opacity: .3; cursor: default; border-color: #555; color: #555; }
.descanso { text-align: center; color: #ccc; padding: 22px; background: rgba(17,18,22,.85); border: 1px dashed var(--orange); border-radius: 14px; font-size: 19px; }
.descanso b { color: var(--orange); font-style: italic; }

/* ESCUDOS EN FILAS DE PARTIDOS */
.eq-lado {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.eq-lado.local {
  justify-content: flex-end;
  text-align: right;
}
.eq-lado.visit {
  justify-content: flex-start;
  text-align: left;
}
.eq-lado img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.eq-lado b {
  flex: unset;
  font-size: 20px;
  line-height: 1.1;
}

.foto-partido {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 101, 0, 0.35);
  display: flex;
  justify-content: center;
}

.foto-partido img {
  width: 100%;
  max-width: 580px;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--orange);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  display: block;
}

/* =========================================================
   CLASIFICACIÓN Y PODIO
   ========================================================= */
.badge-j { background: rgba(255,101,0,.15); color: var(--orange); border: 1px solid var(--orange); padding: 5px 16px; border-radius: 20px; font: italic 700 16px 'Barlow Condensed', sans-serif; }
.tabla-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: rgba(17,18,22,.92); border: 1px solid #33343a; border-radius: 14px; }
.tabla-clasif { width: 100%; border-collapse: collapse; text-align: center; font-size: 18px; }
.tabla-clasif th { background: #16171c; color: var(--orange); padding: 14px 10px; font-size: 16px; border-bottom: 1px solid #333; white-space: nowrap; }
.tabla-clasif td { padding: 14px 10px; border-bottom: 1px solid #25262b; }
.tabla-clasif .col-eq { text-align: left; font-weight: 700; min-width: 185px; }
.tabla-clasif .col-pts { font-weight: 900; color: var(--orange); font-size: 21px; }
.tabla-clasif tr.fila-astro { background: rgba(255,101,0,.14); }
.tabla-clasif tr.fila-astro .col-eq { color: var(--orange); }
.podio-1 td:first-child { color: #ffd700; font-weight: 900; font-size: 21px; }
.podio-2 td:first-child { color: #e0e0e0; font-weight: 900; font-size: 20px; }
.podio-3 td:first-child { color: #cd7f32; font-weight: 900; font-size: 20px; }

.eq-tabla {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eq-tabla img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

/* =========================================================
   PIE DE PÁGINA
   ========================================================= */
.footer { position: relative; overflow: hidden; min-height: 150px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; padding: 24px 4%; background: radial-gradient(circle at 85% 50%, rgba(255,101,0,.16), transparent 55%), linear-gradient(180deg, #0b0c10, #050608); border-top: 2px solid var(--orange); }
.footer > * { position: relative; z-index: 2; }
.footer::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: radial-gradient(1.5px 1.5px at 8% 25%, #fff 90%, transparent), radial-gradient(2px 2px at 18% 75%, var(--orange) 90%, transparent), radial-gradient(1.5px 1.5px at 29% 35%, #fff 90%, transparent), radial-gradient(2px 2px at 56% 20%, var(--orange) 90%, transparent), radial-gradient(2px 2px at 78% 30%, #fff 90%, transparent), radial-gradient(2.5px 2.5px at 88% 65%, var(--orange) 90%, transparent); animation: parpadeo 3.5s ease-in-out infinite alternate; }
.footer::after { content: "✦   ★   ✦   ·   ✦   ★   ✦"; position: absolute; right: 4%; bottom: -20px; z-index: 1; pointer-events: none; font-size: 14px; letter-spacing: 28px; color: rgba(255,165,80,.55); text-shadow: 0 0 8px var(--orange); animation: subir 7s linear infinite; }
@keyframes parpadeo { 0% { opacity: .25; } 100% { opacity: .95; } }
@keyframes subir { 0% { transform: translateY(10px); opacity: 0; } 25%, 80% { opacity: .8; } 100% { transform: translateY(-165px); opacity: 0; } }
.footer-banner { width: 100%; max-width: 340px; height: 110px; background: url('assets/piefondo.png') left center/contain no-repeat; }
.socials {
display: grid;
grid-template-columns: repeat(2, minmax(195px, 1fr));
gap: 10px;
padding: 10px 28px;
border-inline: 2px solid var(--orange);
}
.socials a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; background: rgba(255,255,255,.04); border: 1px solid #2e2f36; border-radius: 10px; font: 700 15px 'Barlow Condensed', sans-serif; text-transform: uppercase; transition: .25s; }
.socials a:last-child:nth-child(odd) { grid-column: 1 / -1; }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: #09090b; transform: translateY(-2px); }
.socials a svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; transition: color .25s; }
.socials a:hover svg { color: #09090b; }
.signature { justify-self: end; font-family: cursive; font-style: italic; font-size: 30px; line-height: .9; text-align: center; transform: rotate(-8deg); white-space: nowrap; }
.signature span { display: block; width: 120px; border-bottom: 3px solid var(--orange); transform: rotate(-9deg); margin: 10px auto; }
/* =========================================================
TABLET (761px - 1050px)
========================================================= */
@media (max-width: 1050px) {
.site-header { height: 92px; padding: 0 24px; }
.brand { min-width: 200px; }
.brand-mark { width: 82px; height: 82px; }
.brand-copy strong { font-size: 24px; }
.brand-copy small { font-size: 11px; letter-spacing: 2px; }
.nav { gap: 16px; }
.nav a { font-size: 16px; }
.btn-pizarra img { height: 58px; }
.fila { grid-template-columns: 75px 1fr 180px; padding: 16px; }
.eq-lado b { font-size: 18px; }
.marcador { font-size: 28px; min-width: 80px; }
.footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.signature { display: none; }
}
/* =========================================================
   MÓVIL (HASTA 760px)
   ========================================================= */
/* Cabecera y menú hamburguesa */
@media (max-width: 760px) {
.site-header {
height: auto;
min-height: 74px;
padding: 8px 16px;
overflow: visible;
z-index: 1000;
}
.brand { flex: 1; min-width: 0; gap: 10px; }
.brand-mark { width: 54px; height: 54px; }
.brand-copy { min-width: 0; }
.brand-copy strong { font-size: 19px; line-height: 1; }
.brand-copy small {
font-size: 9px;
letter-spacing: 1px;
line-height: 1.2;
margin-top: 3px;
white-space: normal;
}
.menu-toggle {
display: block;
background: rgba(255, 255, 255, 0.05);
color: #fff;
border: 1px solid #444;
border-radius: 8px;
font-size: 22px;
padding: 6px 12px;
margin-left: auto;
}
.site-header .nav {
display: none;
position: absolute;
top: calc(100% + 2px);
left: 0;
right: 0;
width: 100%;
height: auto;
background: #0b0c0f;
padding: 16px 20px 22px;
flex-direction: column;
align-items: stretch;
gap: 6px;
border-top: 1px solid #27272b;
border-bottom: 2px solid var(--orange);
border-radius: 0 0 18px 18px;
z-index: 1001;
box-shadow: 0 22px 45px rgba(0, 0, 0, 0.98);
}
.site-header .nav.open { display: flex; }
.site-header .nav a {
height: 46px;
padding: 0 14px;
border-radius: 10px;
font-size: 19px;
background: rgba(255, 255, 255, 0.03);
}
.site-header .nav a.active {
background: rgba(255, 101, 0, 0.16);
color: var(--orange);
font-weight: 800;
}
.site-header .nav a.active:after { display: none; }
.site-header .nav a.btn-pizarra {
height: auto;
margin-top: 8px;
padding: 10px 14px;
background: rgba(255, 101, 0, 0.14);
border: 1px solid var(--orange);
mix-blend-mode: normal;
border-radius: 12px;
justify-content: center;
}
.btn-pizarra img { height: 48px; }
/* Contenido principal */
main { padding: 36px 4% 60px; }
.top-bar { gap: 14px; margin-bottom: 20px; }
.enlaces-femaddi { width: 100%; }
.outline-femaddi { flex: 1; text-align: center; padding: 10px 14px; font-size: 16px; }
/* Botones de filtro */
.filtros { gap: 8px; }
.filtros .sep { display: none; }
.filtros button { flex: 1 1 calc(50% - 8px); padding: 9px 12px; font-size: 15px; text-align: center; }
/* Cabecera de bloques y selector de jornada */
.cabecera-bloque { margin: 28px 0 14px; }
.cabecera-bloque h2 { font-size: 25px; }
.nav-j { width: 100%; justify-content: space-between; }
/* Filas de partidos */
.fila { grid-template-columns: 1fr; text-align: center; padding: 16px 14px; gap: 12px; }
.fecha { border-right: 0; border-bottom: 1px solid #333; padding: 0 0 10px; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.fecha strong { font-size: 28px; }
.equipos { flex-direction: column; gap: 8px; }
.eq-lado.local, .eq-lado.visit { justify-content: center; text-align: center; }
.marcador { font-size: 28px; }
.info { text-align: center; border-top: 1px solid #26272c; padding-top: 10px; }
/* Tabla clasificación compacta en móvil */
.tabla-clasif { font-size: 15px; }
.tabla-clasif th, .tabla-clasif td { padding: 10px 7px; }
.tabla-clasif .col-eq { min-width: 150px; font-size: 14px; }
.eq-tabla img { width: 24px; height: 24px; }
/* Footer */
.footer { padding: 24px 16px; gap: 20px; }
.footer-banner { max-width: 250px; height: 75px; background-position: center; }
.socials { grid-template-columns: 1fr; border-inline: 0; border-block: 1px solid var(--orange); width: 100%; padding: 14px 0; }
}