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

:root {
    --orange:      #E85A0C;
    --orange-glow: rgba(232,90,12,0.18);
    --orange-dim:  rgba(232,90,12,0.08);
    --black:       #080808;
    --dark:        #101010;
    --dark2:       #141414;
    --card:        #181818;
    --card2:       #1e1e1e;
    --white:       #ffffff;
    --off-white:   #e8e8e8;
    --gray:        #777777;
    --light-gray:  #bbbbbb;
    --border:      #242424;
    --border2:     #2e2e2e;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--black);
    color: var(--white);
}

/* ── Header & Nav ── */
header {
    background-color: rgba(0,0,0,0.96);
    border-bottom: 1px solid var(--border);
    padding: 0 56px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange) 30%, var(--orange) 70%, transparent);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: 24px;
    padding: 8px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.nav-logo img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(232,90,12,0.55));
}

.logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--orange);
    background: radial-gradient(circle, #1e1e1e, #0d0d0d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: bold;
    color: var(--orange);
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 0 12px rgba(232,90,12,0.2);
}

.nav-club-name {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-club-name span { color: var(--orange); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 1px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform 0.25s;
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

/* ── Category Hero ── */
.category-hero {
    position: relative;
    background-color: #000;
    padding: 80px 56px 70px;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(232,90,12,0.13) 0%, transparent 65%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(232,90,12,0.06) 0%, transparent 55%);
    pointer-events: none;
}

.category-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 18px,
        rgba(255,255,255,0.012) 18px,
        rgba(255,255,255,0.012) 19px
    );
    pointer-events: none;
}

.category-hero-photo {
    background-position: center;
    background-size: cover;
}

.category-hero-photo::before {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.38) 52%, rgba(0, 0, 0, 0.62) 100%),
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(232,90,12,0.1) 0%, transparent 65%);
}

.category-hero-u9 {
    background-image: url("../assets/images/academy-u9.jpeg");
    background-position: center 42%;
}

.category-hero-u15 {
    background-image: url("../assets/images/academy-u15.jpeg");
    background-position: center 46%;
}

.eyebrow {
    position: relative;
    font-size: 0.68rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--orange);
    flex-shrink: 0;
}

.category-hero h1 {
    position: relative;
    font-size: clamp(3.5rem, 7vw, 6rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 0.95;
    margin-bottom: 24px;
}

.category-hero h1 span { color: var(--orange); }

.hero-copy {
    position: relative;
    max-width: 680px;
    color: var(--light-gray);
    line-height: 1.85;
    font-size: 0.96rem;
    margin-bottom: 40px;
}

/* ── Quick Nav Pills ── */
.quick-nav {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-nav a {
    color: var(--gray);
    border: 1px solid var(--border);
    background: var(--dark);
    padding: 8px 16px;
    text-decoration: none;
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s;
    border-radius: 2px;
}

.quick-nav a:hover {
    color: var(--white);
    border-color: var(--border2);
    background: var(--dark2);
}

.quick-nav a.active {
    color: var(--white);
    border-color: var(--orange);
    background: rgba(232,90,12,0.12);
    box-shadow: 0 0 10px rgba(232,90,12,0.15);
}

/* ── Stripe Divider ── */
.stripe-divider {
    height: 6px;
    background: repeating-linear-gradient(
        -45deg,
        var(--orange),
        var(--orange) 6px,
        #000 6px,
        #000 12px
    );
    opacity: 0.85;
}

/* ── Sections ── */
section { padding: 72px 56px; }
section:nth-of-type(odd)  { background-color: var(--dark); }
section:nth-of-type(even) { background-color: var(--black); }

section h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--off-white);
}

section h2::before {
    content: '';
    display: block;
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--orange), rgba(232,90,12,0.3));
    flex-shrink: 0;
    border-radius: 2px;
}

/* ── Info Cards ── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2px;
}

.info-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    padding: 32px 28px;
    position: relative;
    transition: background 0.3s, border-color 0.3s;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.info-card:hover {
    background-color: var(--card2);
    border-color: var(--border2);
}

.info-card:hover::before { transform: scaleX(1); }

.card-label {
    color: var(--orange);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.info-card strong {
    display: block;
    font-size: 1.05rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--white);
}

.info-card p {
    color: var(--gray);
    font-size: 0.87rem;
    line-height: 1.75;
}

/* ── Focus List ── */
.focus-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2px;
    list-style: none;
}

.focus-list li {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    padding: 22px 24px;
    color: var(--light-gray);
    line-height: 1.7;
    font-size: 0.9rem;
    transition: background 0.25s;
    position: relative;
}

.focus-list li::before {
    content: '—';
    color: var(--orange);
    margin-right: 10px;
    font-weight: bold;
}

.focus-list li:hover { background-color: var(--card2); }

/* ── CTA Band ── */
.cta-band {
    background: linear-gradient(135deg, var(--orange) 0%, #c44800 100%);
    padding: 52px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.04) 20px,
        rgba(255,255,255,0.04) 21px
    );
    pointer-events: none;
}

.cta-band h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #fff;
    letter-spacing: 3px;
}

.cta-band h2::before { display: none; }

.cta-band p {
    color: rgba(255,255,255,0.82);
    line-height: 1.65;
    max-width: 540px;
    font-size: 0.9rem;
}

.cta-band a {
    color: var(--orange);
    background-color: #000;
    padding: 14px 28px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 2.5px;
    white-space: nowrap;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s;
    position: relative;
}

.cta-band a:hover {
    background: #111;
    box-shadow: 0 0 18px rgba(0,0,0,0.4);
}

/* ── Staff Photo Cards ── */
.staff-grid-photo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.staff-card-p {
    background-color: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.staff-card-p:hover {
    border-color: var(--orange);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(232,90,12,0.18), 0 0 0 1px var(--orange);
}

.card-photo-wrap {
    background: linear-gradient(135deg, #111, #1a1a1a);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #333;
    overflow: hidden;
    position: relative;
}

.card-photo-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s;
}

.staff-card-p:hover .card-photo-wrap img { transform: scale(1.04); }

.card-info-wrap {
    padding: 14px 16px 16px;
    border-top: 2px solid var(--orange);
    background: var(--card);
}

.card-rol {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--orange);
    margin-bottom: 6px;
}

.card-nombre {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.5px;
    color: var(--white);
}

/* ── Player Photo Cards ── */
.jugador-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
}

.jugador-card-p {
    background-color: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.jugador-card-p:hover {
    border-color: var(--orange);
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(232,90,12,0.18), 0 0 0 1px var(--orange);
}

.jugador-photo-wrap {
    background: linear-gradient(160deg, #131313, #1c1c1c);
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #2a2a2a;
    overflow: hidden;
    position: relative;
}

.jugador-photo-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s;
}

.jugador-card-p:hover .jugador-photo-wrap img { transform: scale(1.05); }

.jugador-photo-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    pointer-events: none;
}

.jugador-num-badge {
    position: absolute;
    top: 8px;
    left: 10px;
    background-color: var(--orange);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    line-height: 1.4;
    z-index: 2;
    letter-spacing: 0.5px;
}

.jugador-info-wrap {
    padding: 10px 12px 13px;
    border-top: 2px solid var(--orange);
    background: var(--card);
}

.jugador-nombre {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    line-height: 1.3;
    color: var(--white);
}

.jugador-pos {
    font-size: 0.6rem;
    color: var(--gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── Position Block ── */
.posicion-bloque { margin-bottom: 52px; }
.posicion-bloque:last-child { margin-bottom: 0; }

.posicion-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--orange);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.posicion-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* ── Calendar / Partido Rows ── */
.calendario-lista {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.partido-fila {
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    padding: 18px 24px;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
    position: relative;
}

.partido-fila::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(232,90,12,0.04), transparent 40%);
    pointer-events: none;
}

.partido-fila:hover {
    background-color: var(--card2);
    border-color: var(--border2);
    border-left-color: var(--orange);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.partido-fecha-col {
    min-width: 88px;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--orange);
    line-height: 1.6;
    flex-shrink: 0;
}

.partido-info-col { flex: 1; min-width: 0; }

.partido-rival-name {
    font-size: 0.93rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partido-detalle-text {
    font-size: 0.76rem;
    color: var(--gray);
    line-height: 1.5;
}

.partido-tipo {
    font-size: 0.56rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 10px;
    border: 1px solid;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 2px;
}

.partido-tipo.local    { color: var(--orange); border-color: var(--orange); background: rgba(232,90,12,0.08); }
.partido-tipo.visitante{ color: var(--gray);   border-color: var(--border2); }

.partido-resultado-col {
    font-size: 1rem;
    font-weight: 800;
    min-width: 56px;
    text-align: right;
    flex-shrink: 0;
    letter-spacing: 1px;
    color: var(--off-white);
}

.seccion-vacia {
    color: var(--gray);
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 24px 28px;
    border-left: 3px solid var(--border2);
    font-style: italic;
    background: var(--card);
}

/* ── Footer ── */
footer {
    background-color: #000;
    border-top: 1px solid var(--border);
    padding: 56px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange) 30%, var(--orange) 70%, transparent);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
}

.footer-brand .brand-name span { color: var(--orange); }
.footer-brand p { margin-top: 12px; font-size: 0.84rem; color: var(--gray); line-height: 1.8; }
.footer-brand .hashtag { margin-top: 14px; font-size: 0.82rem; color: var(--orange); font-weight: 700; letter-spacing: 2px; }

.footer-links h4 {
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 18px;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--gray); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; font-size: 0.76rem; text-align: center; color: #444; letter-spacing: 0.5px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    header, .category-hero, section, .cta-band, footer {
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 760px) {
    header { padding: 0 24px; }
    .category-hero, section, .cta-band, footer { padding-left: 24px; padding-right: 24px; }
    nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
    .nav-links { justify-content: flex-start; gap: 14px; }
    .category-hero h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
    .partido-fila { flex-wrap: wrap; gap: 10px; }
    .partido-fecha-col { min-width: auto; }
    .staff-grid-photo { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .jugador-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (max-width: 480px) {
    .category-hero { padding-top: 56px; padding-bottom: 48px; }
    .quick-nav a { padding: 7px 12px; font-size: 0.65rem; }
    section { padding-top: 52px; padding-bottom: 52px; }
    .jugador-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
}
