/* ============================================================
   HOME.CSS — Estilos de la página de inicio pública
   Cargado en: home.html
   Incluye: header, carrusel, cards-section, categorías,
            staff, valores, panel info, footer
   ============================================================ */

/* ── Body layout (home) ─────────────────────────────────── */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
    background: var(--campo);
    border-bottom: 3px solid var(--dorado-cancha);
    padding: .7rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
}
.brand img {
    height: 42px;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 3px;          /* marco blanco uniforme alrededor del escudo */
}
.brand-name {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: .3px;
    line-height: 1.1;
}
.brand-sub {
    color: rgba(255,255,255,.5);
    font-size: .7rem;
    font-weight: 400;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.btn-ingresar {
    background: var(--dorado-cancha);
    border: none;
    color: #1a1a1a;
    padding: .5rem 1.4rem;
    border-radius: 7px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .18s;
    white-space: nowrap;
}
.btn-ingresar:hover {
    background: #b91c1c;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220,38,38,.4);
}

/* ── Carrusel ────────────────────────────────────────────── */
.carousel-slide {
    height: 520px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
@media (max-width: 576px) { .carousel-slide { height: 320px; } }
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,.18) 0%,
        rgba(26,58,107,.72) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
}
.slide-inner { position: relative; z-index: 1; max-width: 640px; }
.slide-tag {
    display: inline-block;
    background: var(--dorado-cancha);
    color: #1a1a1a;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: .25rem .9rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.slide-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: .6rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.slide-title span { color: var(--dorado-cancha); }
.slide-sub {
    color: rgba(255,255,255,.82);
    font-size: clamp(.85rem, 2vw, 1.05rem);
    margin-bottom: 1.8rem;
}
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--dorado-cancha);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    padding: .75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 4px 20px rgba(220,38,38,.4);
}
.btn-cta:hover {
    background: #b91c1c;
    color: #fff;
    transform: translateY(-2px);
}
/* Controles del carrusel con color del club */
.carousel-control-prev-icon,
.carousel-control-next-icon { filter: none; }
.carousel-control-prev,
.carousel-control-next {
    width: 48px;
    opacity: .85;
}
.carousel-indicators [data-bs-target] {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
}
.carousel-indicators .active { background: var(--dorado-cancha); }

/* ── Cards section ───────────────────────────────────────── */
.cards-section {
    padding: 4rem 1.5rem;
    background: var(--fondo);
    flex: 1;
}
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--campo-claro);
    color: var(--campo);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: .28rem .85rem;
    border-radius: 20px;
    border: 1px solid var(--borde);
}
.section-eyebrow::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dorado-cancha);
    flex-shrink: 0;
}
.section-heading {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 900;
    color: var(--campo);
    line-height: 1.15;
    letter-spacing: -.4px;
    margin: .5rem 0 .6rem;
}
.section-heading .acc {
    color: var(--dorado-cancha);
}
.section-sub {
    color: #6B7280;
    font-size: .88rem;
}

/* Separador de sub-sección */
.subsection-label {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .9rem;
}
.subsection-label span {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--campo);
    white-space: nowrap;
}
.subsection-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

/* Card principal — sistema de gestión */
.card-main {
    background: linear-gradient(135deg, var(--campo) 0%, #1e4c8a 100%);
    border-radius: 14px;
    padding: 2.2rem 1.8rem;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all .2s;
    box-shadow: 0 4px 24px rgba(26,58,107,.22);
    position: relative;
    overflow: hidden;
}
.card-main::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 130px; height: 130px;
    background: rgba(220,38,38,.12);
    border-radius: 50%;
}
.card-main:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(26,58,107,.32);
}
.card-main .ci { font-size: 2.2rem; color: var(--dorado-cancha); margin-bottom: 1rem; }
.card-main .ct { font-size: 1.1rem; font-weight: 800; margin-bottom: .35rem; }
.card-main .cd { font-size: .83rem; color: rgba(255,255,255,.72); flex: 1; }
.card-main .ca { margin-top: 1.4rem; font-size: .82rem; font-weight: 700; color: var(--dorado-cancha); }

/* Cards secundarias */
.card-sec {
    background: #fff;
    border: 1.5px solid #e0e7f5;
    border-radius: 14px;
    padding: 1.8rem 1.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all .2s;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    cursor: default;
}
a.card-sec { cursor: pointer; }
a.card-sec:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(0,0,0,.1);
    border-color: var(--campo-medio);
}
.card-sec .ci { font-size: 2rem; margin-bottom: .75rem; }
.card-sec .ct { font-size: .97rem; font-weight: 800; color: var(--campo); margin-bottom: .35rem; }
.card-sec .cd { font-size: .82rem; color: #6c757d; flex: 1; }
.card-sec .cl { margin-top: 1rem; font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }

/* ── Eventos ─────────────────────────────────────────────── */
.eventos-section {
    background: #fff;
    border-top: 1px solid #e0e7f5;
    padding: 3rem 1.5rem;
}
.evento-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid #eef2fb;
}
.evento-row:last-child { border-bottom: none; }
.evento-fecha {
    min-width: 54px;
    background: var(--campo);
    color: #fff;
    border-radius: 8px;
    text-align: center;
    padding: .45rem .3rem;
    flex-shrink: 0;
}
.evento-fecha .dia { font-size: 1.5rem; font-weight: 900; line-height: 1; display: block; }
.evento-fecha .mes { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.7); display: block; margin-top: .1rem; }
.evento-titulo { font-weight: 700; color: var(--campo); font-size: .92rem; margin-bottom: .18rem; }
.evento-desc { color: #6c757d; font-size: .8rem; margin: 0; }
.evento-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    padding: .15rem .55rem;
    border-radius: 20px;
    margin-bottom: .25rem;
}

/* ── Sección Categorías ──────────────────────────────────── */
.categorias-section {
    background: #fff;
    border-top: 1px solid #e0e7f5;
    padding: 4rem 1.5rem;
}

/* Grid de 5 cards de categoría */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
@media (max-width: 576px) { .cat-grid { grid-template-columns: 1fr; } }

/* Card base de categoría */
.cat-card {
    border-radius: 14px;
    border: 2px solid var(--cat-color, #1A3A6B);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: box-shadow .2s, transform .15s;
}
.cat-card:hover { box-shadow: 0 6px 22px rgba(0,0,0,.12); transform: translateY(-2px); }

/* Header de la card */
.cat-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.1rem .9rem;
    background: var(--cat-color, #1A3A6B);
    cursor: pointer;
    user-select: none;
}
.cat-header--light {
    background: #FEF9C3;
    border-bottom: 2px solid #CA8A04;
}
.cat-badge {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.6);
    background: rgba(255,255,255,.18);
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    letter-spacing: -.5px;
}
.cat-badge--dark { color: #713F12; border-color: #CA8A04; background: rgba(202,138,4,.12); }
.cat-info { flex: 1; min-width: 0; }
.cat-title {
    font-size: .92rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 .1rem;
    line-height: 1.2;
}
.cat-title--dark { color: #713F12; }
.cat-sub {
    font-size: .72rem;
    color: rgba(255,255,255,.7);
    margin: 0;
    line-height: 1.2;
}
.cat-sub--dark { color: #6B7280; }
.cat-toggle-btn {
    background: none; border: none; padding: .25rem;
    color: rgba(255,255,255,.8); font-size: .85rem;
    cursor: pointer; flex-shrink: 0;
    transition: transform .2s;
}
.cat-toggle-btn--dark { color: #6B7280; }
.cat-toggle-btn.collapsed .fa-chevron-up::before { content: "\f078"; } /* chevron-down */
.cat-toggle-btn:not(.collapsed) .fa-chevron-up::before { content: "\f077"; } /* chevron-up */

/* Cuerpo expandible — lista de entrenadores */
.cat-body { padding: .9rem 1.1rem 1rem; }
.coach-group { margin-bottom: .65rem; }
.coach-group:last-child { margin-bottom: 0; }
.coach-group-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9CA3AF;
    margin-bottom: .3rem;
    display: block;
}
.coach-chip {
    display: inline-block;
    background: #F1F5F9;
    color: #374151;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 500;
    padding: .12rem .55rem;
    margin: .1rem .1rem 0 0;
    white-space: nowrap;
}
.coach-chip--pf {
    display: inline-block;
    background: #DCFCE7;
    color: #166534;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 500;
    padding: .12rem .55rem;
    margin: .1rem .1rem 0 0;
    white-space: nowrap;
}
.pf-divider {
    border: none;
    border-top: 1px dashed #E2E8F0;
    margin: .55rem 0;
}

/* Link fixture dentro de cat-body */
.cat-fixture-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .76rem;
    font-weight: 700;
    color: var(--cat-color, #1A3A6B);
    text-decoration: none;
    margin-top: .65rem;
    padding: .25rem .55rem;
    border-radius: 6px;
    background: rgba(0,0,0,.04);
    transition: background .15s;
}
.cat-fixture-link:hover { background: rgba(0,0,0,.09); color: var(--cat-color, #1A3A6B); }

/* ── Misión y valores (home) ─────────────────────────────── */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .75rem;
    margin-top: 1.5rem;
}
.valor-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.valor-icon {
    font-size: 1.3rem;
    color: #C8102E;
    flex-shrink: 0;
    margin-top: .1rem;
}
.valor-title { font-size: .88rem; font-weight: 700; color: #0F2D5A; margin-bottom: .2rem; }
.valor-desc  { font-size: .78rem; color: #6B7280; margin: 0; }

/* ── Botón info del club ──────────────────────────────────── */
.btn-info-club {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: transparent;
    border: 2px solid var(--campo);
    color: var(--campo);
    font-weight: 700;
    font-size: .9rem;
    padding: .65rem 1.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
}
.btn-info-club:hover, .btn-info-club.active {
    background: var(--campo);
    color: #fff;
}
.btn-info-club .icon-chevron { transition: transform .25s; }
.btn-info-club.active .icon-chevron { transform: rotate(180deg); }

/* ── Panel info del club ──────────────────────────────────── */
.info-club-panel {
    display: none;
    margin-top: 1.5rem;
    background: #F8FAFC;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    padding: 2rem;
    animation: slideDown .25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.info-block { margin-bottom: 2rem; }
.info-block:last-child { margin-bottom: 0; }
.info-block-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--campo);
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.info-block-title i { color: var(--dorado-cancha); font-size: 1.1rem; }
.info-step {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .55rem 0;
    border-bottom: 1px solid #E2E8F0;
}
.info-step:last-child { border-bottom: none; }
.info-step-num {
    width: 26px; height: 26px; min-width: 26px;
    border-radius: 50%;
    background: var(--campo);
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.info-step-name { font-weight: 700; font-size: .88rem; color: #1F2937; margin-bottom: .1rem; }
.info-step-desc { font-size: .8rem; color: #6B7280; margin: 0; }
.circuito-row {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    padding: .45rem 0;
    border-bottom: 1px dashed #E2E8F0;
    font-size: .83rem;
}
.circuito-row:last-child { border-bottom: none; }
.circuito-tag {
    background: var(--campo-claro, #DBEAFE);
    color: var(--campo-medio, #2563EB);
    font-weight: 700;
    font-size: .7rem;
    padding: .15rem .5rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: .1rem;
}
.tercer-tiempo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-top: .75rem;
}
@media (max-width: 576px) { .tercer-tiempo-grid { grid-template-columns: 1fr; } }
.tt-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    padding: .85rem 1rem;
}
.tt-card-title { font-weight: 700; font-size: .85rem; color: var(--campo); margin-bottom: .3rem; }
.tt-card-body { font-size: .8rem; color: #6B7280; margin: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--campo);
    border-top: 3px solid var(--dorado-cancha);
    padding: 1.5rem 0;
}
.footer-brand { color: rgba(255,255,255,.9); font-weight: 700; font-size: .95rem; margin-bottom: .2rem; }
.footer-copy  { color: rgba(255,255,255,.38); font-size: .78rem; }
.footer-social a {
    color: rgba(255,255,255,.5);
    font-size: 1.25rem;
    margin-left: 1rem;
    transition: color .18s, transform .18s;
    display: inline-block;
}
.footer-social a:hover { color: var(--dorado-cancha); transform: translateY(-2px); }

/* ============================================================
   SPONSORS MARQUEE
   ============================================================ */
.sponsors-section {
    overflow: hidden;
    padding: 28px 0;
    background: var(--campo);
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.sponsors-section__label {
    text-align: center;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: 18px;
}
.sponsors-track {
    display: flex;
    gap: 40px;
    align-items: center;
    width: max-content;
    animation: sponsors-scroll 50s linear infinite;
    will-change: transform;
}
.sponsors-section:hover .sponsors-track {
    animation-play-state: paused;
}
@keyframes sponsors-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.sponsors-track img {
    height: 52px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
    transition: opacity .25s, transform .25s;
    opacity: .85;
}
.sponsors-track img:hover {
    opacity: 1;
    transform: scale(1.08);
}
