/* =====================================================================
   Club Atlético Chiclana de Fútbol — hoja de estilos principal
   Editorial deportivo, fondo oscuro, acentos dorados.
   ===================================================================== */

:root {
    --navy-1:   #0a1628;
    --navy-2:   #0d1f3c;
    --navy-3:   #122a4f;
    --gold-1:   #c8a84b;
    --gold-2:   #e8c66a;
    --gold-soft: rgba(200, 168, 75, .15);
    --text:     #e8f0ff;
    --text-dim: #7a8fa6;
    --shadow:   0 20px 60px rgba(0, 0, 0, .35);

    --f-head:  "Oswald", "Helvetica Neue", Arial, sans-serif;
    --f-body:  "Lato", "Segoe UI", Arial, sans-serif;

    --container: 1200px;
}

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

html { scroll-behavior: smooth; }
body {
    font-family: var(--f-body);
    color: var(--text);
    background: var(--navy-1);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--gold-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--text); }

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

.container {
    width: min(var(--container), 100% - 2.5rem);
    margin-inline: auto;
}

/* ---------------------------------------------------------- Botones */
.btn {
    display: inline-block;
    padding: .85rem 1.8rem;
    font-family: var(--f-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .95rem;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn--gold {
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
    color: var(--navy-1);
    box-shadow: 0 8px 24px rgba(200, 168, 75, .25);
}
.btn--gold:hover { transform: translateY(-2px); color: var(--navy-1); box-shadow: 0 12px 30px rgba(200, 168, 75, .4); }
.btn--ghost {
    border-color: var(--gold-1);
    color: var(--gold-2);
    background: transparent;
}
.btn--ghost:hover { background: var(--gold-soft); color: var(--text); }
.btn--sm { padding: .5rem 1rem; font-size: .8rem; }
.btn--xl { padding: 1.2rem 3rem; font-size: 1.1rem; }

/* ---------------------------------------------------------- Nav */
.nav {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(10, 22, 40, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(200, 168, 75, .15);
}
.nav__brand { display: flex; align-items: center; gap: .75rem; color: var(--gold-2); font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; }
.nav__brand:hover { color: var(--text); }
.nav__logo { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(200, 168, 75, .3)); }
.nav__name { font-size: 1rem; }
.nav__name strong { color: inherit; font-weight: 700; }

.nav__menu { display: flex; gap: 1.5rem; align-items: center; }
.nav__menu a {
    color: var(--text);
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .85rem;
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
}
.nav__menu a:hover { color: var(--gold-2); border-bottom-color: var(--gold-1); }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav__burger span { display: block; width: 26px; height: 2px; background: var(--gold-2); margin: 5px 0; transition: .3s; }

/* ---------------------------------------------------------- FAB himno */
.anthem-fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    display: flex; align-items: center; gap: .6rem;
    padding: .8rem 1.3rem;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
    color: var(--navy-1);
    border: 0; border-radius: 999px;
    font-family: var(--f-head); text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
    transition: transform .2s ease;
}
.anthem-fab:hover { transform: scale(1.04); }
.anthem-fab__icon { font-size: 1.3rem; }
.anthem-fab.is-playing .anthem-fab__icon { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

/* ---------------------------------------------------------- Hero */
.hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 4rem 1.5rem;
}
.hero__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(200, 168, 75, .12), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(13, 31, 60, .9), var(--navy-1) 70%);
    z-index: 0;
}
.hero__container { position: relative; z-index: 1; max-width: 900px; }
.hero__shield {
    width: 200px; height: 200px; object-fit: contain;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 40px rgba(200, 168, 75, .4));
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px); } }

.hero__title {
    font-family: var(--f-head);
    font-size: clamp(1.9rem, 7.2vw, 5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.05;
    margin-bottom: 1rem;
    white-space: nowrap;
    color: var(--gold-2);
}
@media (max-width: 380px) {
    .hero__title { white-space: normal; }
}
.hero__tagline {
    color: var(--text-dim);
    font-size: 1.1rem;
    letter-spacing: .05em;
    margin-bottom: 2.5rem;
}
.hero__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 3rem; }
.hero__pills span {
    padding: .4rem 1rem;
    background: var(--gold-soft);
    border: 1px solid rgba(200, 168, 75, .4);
    border-radius: 999px;
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    color: var(--gold-2);
}

.hero__stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; margin-bottom: 3rem; }
.stat__num { font-family: var(--f-head); font-size: 2.8rem; font-weight: 700; color: var(--gold-2); line-height: 1; }
.stat__label { color: var(--text-dim); font-size: .85rem; text-transform: uppercase; letter-spacing: .15em; margin-top: .3rem; }

.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------- Section */
.section { padding: 6rem 0; }
.section--dark { background: var(--navy-2); }

.kicker {
    color: var(--gold-2);
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: .8rem;
    margin-bottom: .8rem;
    text-align: center;
}
.section__title {
    font-family: var(--f-head);
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase;
    letter-spacing: .03em;
    text-align: center;
    margin-bottom: 1rem;
}
.section__title::after {
    content: "";
    display: block;
    width: 60px; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
    margin: 1rem auto 0;
}
.section__lead { text-align: center; color: var(--text-dim); max-width: 700px; margin: 0 auto 3rem; font-size: 1.05rem; }

/* ---------------------------------------------------------- Club grid */
.club-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; margin-top: 3rem; align-items: start; }
.club-text p { margin-bottom: 1.2rem; font-size: 1.05rem; color: var(--text-dim); }
.club-text strong { color: var(--text); }

.quote {
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-left: 3px solid var(--gold-1);
    background: rgba(255, 255, 255, .03);
    font-style: italic;
    font-size: 1.1rem;
}
.quote cite { display: block; margin-top: .8rem; font-style: normal; color: var(--gold-2); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.value {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(200, 168, 75, .15);
    padding: 1.5rem;
    border-radius: 6px;
    transition: transform .25s ease, border-color .25s ease;
}
.value:hover { transform: translateY(-4px); border-color: rgba(200, 168, 75, .5); }
.value__icon { font-size: 1.8rem; margin-bottom: .6rem; }
.value h3 { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; color: var(--gold-2); margin-bottom: .4rem; font-size: 1.05rem; }
.value p { font-size: .92rem; color: var(--text-dim); }

/* ---------------------------------------------------------- Himno player */
.anthem { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 2rem; }
.anthem__text p { margin-bottom: 1rem; color: var(--text-dim); font-size: 1.05rem; }
.anthem__text strong { color: var(--text); }

.player {
    background: var(--navy-1);
    border: 1px solid rgba(200, 168, 75, .2);
    padding: 1.5rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.2rem;
    align-items: center;
}
.player__play {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
    color: var(--navy-1);
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform .15s ease;
}
.player__play:hover { transform: scale(1.08); }
.player__bar { height: 6px; background: rgba(255, 255, 255, .1); border-radius: 3px; overflow: hidden; cursor: pointer; }
.player__fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); transition: width .1s linear; }
.player__time { font-family: var(--f-head); color: var(--text-dim); font-size: .9rem; min-width: 90px; text-align: right; }

/* ---------------------------------------------------------- Filtros */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }
.chip {
    padding: .4rem 1rem;
    background: transparent;
    border: 1px solid rgba(200, 168, 75, .3);
    color: var(--text-dim);
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s ease;
}
.chip:hover { border-color: var(--gold-1); color: var(--gold-2); }
.chip--active { background: var(--gold-1); color: var(--navy-1); border-color: var(--gold-1); }

/* ---------------------------------------------------------- Trofeos */
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.trophy {
    background: var(--navy-2);
    border: 1px solid rgba(200, 168, 75, .15);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    position: relative;
}
.trophy:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, .4); border-color: rgba(200, 168, 75, .4); }
.trophy.is-featured { border-color: var(--gold-1); box-shadow: 0 0 30px rgba(200, 168, 75, .2); }
.trophy.is-featured::before {
    content: "DESTACADO";
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: .25rem .6rem;
    background: var(--gold-1); color: var(--navy-1);
    font-family: var(--f-head); font-size: .7rem; letter-spacing: .15em;
    border-radius: 3px;
}
.trophy__img { aspect-ratio: 4 / 3; background: var(--navy-1); }
.trophy__img img { width: 100%; height: 100%; object-fit: cover; }
.trophy__body { padding: 1.2rem 1.4rem 1.5rem; }
.trophy__cat { color: var(--gold-2); font-family: var(--f-head); text-transform: uppercase; letter-spacing: .15em; font-size: .7rem; margin-bottom: .4rem; }
.trophy__cat .medal { margin-right: .35rem; }
.trophy__title { font-family: var(--f-head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .35rem; line-height: 1.2; }
.trophy__season { color: var(--text-dim); font-size: .85rem; margin-bottom: .6rem; }
.trophy__desc { color: var(--text-dim); font-size: .9rem; }

/* ---------------------------------------------------------- Patrocinadores */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.sponsor {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(200, 168, 75, .12);
    padding: 1.5rem;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    display: flex; align-items: center; justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sponsor:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(200, 168, 75, .15); border-color: rgba(200, 168, 75, .4); }
.sponsor img { max-width: 80%; max-height: 70%; object-fit: contain; }
.sponsors-cta { text-align: center; color: var(--text-dim); }

/* ---------------------------------------------------------- Noticias */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.news {
    background: var(--navy-2);
    border: 1px solid rgba(200, 168, 75, .15);
    border-radius: 8px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .25s ease;
}
.news:hover { transform: translateY(-4px); }
.news__img { aspect-ratio: 16 / 9; background: var(--navy-1); overflow: hidden; }
.news__img img { width: 100%; height: 100%; object-fit: cover; }
.news__body { padding: 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.news__date { color: var(--gold-2); font-family: var(--f-head); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: .6rem; }
.news__text { color: var(--text); font-size: .95rem; flex: 1; margin-bottom: 1rem; }
.news__meta { color: var(--text-dim); font-size: .8rem; display: flex; gap: 1rem; margin-bottom: .8rem; }
.news__link { font-family: var(--f-head); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.news-footer { text-align: center; margin-top: 2.5rem; }

/* Estado vacío de noticias (cuando no hay token Facebook configurado) */
.news-empty {
    grid-column: 1 / -1;
    max-width: 560px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--navy-2);
    border: 1px solid rgba(200, 168, 75, .2);
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}
.news-empty__icon {
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
    color: var(--navy-1);
    font-family: var(--f-head);
    font-size: 2.4rem; font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(200, 168, 75, .25);
}
.news-empty__title {
    font-family: var(--f-head);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gold-2);
    margin: 0;
}
.news-empty__text {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
}

/* ---------------------------------------------------------- Inscripción */
.cats { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 3rem; }
.cats span {
    padding: .6rem 1.2rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(200, 168, 75, .25);
    border-radius: 4px;
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .85rem;
    color: var(--gold-2);
}
.enroll-cta { text-align: center; margin-bottom: 3rem; }
.enroll-contact { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; color: var(--text-dim); }
.enroll-contact a { color: var(--text); }
.enroll-contact a:hover { color: var(--gold-2); }

/* ---------------------------------------------------------- Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; margin-top: 2rem; }
.contact-info p { margin-bottom: .8rem; font-size: 1.05rem; }
.contact-info strong { color: var(--gold-2); font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; }
.social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social a {
    padding: .6rem 1.2rem;
    border: 1px solid var(--gold-1);
    border-radius: 4px;
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
}
.social a:hover { background: var(--gold-1); color: var(--navy-1); }

.contact-map { height: 380px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(200, 168, 75, .2); }

/* ---------------------------------------------------------- Footer */
.footer { background: #06101e; padding: 2.5rem 0; border-top: 1px solid rgba(200, 168, 75, .15); }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer__logo { width: 50px; height: 50px; object-fit: contain; }
.footer__nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__nav a { color: var(--text-dim); font-family: var(--f-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.footer__nav a:hover { color: var(--gold-2); }
.footer__copy { color: var(--text-dim); font-size: .85rem; }

/* ---------------------------------------------------------- Cookies */
.cookies {
    position: fixed; bottom: 24px; left: 24px; z-index: 2000;
    max-width: 360px;
    padding: 1rem 1.2rem;
    background: var(--navy-2);
    border: 1px solid rgba(200, 168, 75, .3);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.cookies[hidden] { display: none !important; }
.cookies p { font-size: .85rem; color: var(--text-dim); }

/* ---------------------------------------------------------- Legal */
.legal h2 { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; color: var(--gold-2); margin: 2rem 0 .8rem; }
.legal p { margin-bottom: 1rem; color: var(--text-dim); }

/* ---------------------------------------------------------- Helpers */
.empty { text-align: center; color: var(--text-dim); padding: 2rem; grid-column: 1 / -1; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------- Responsive */
@media (max-width: 900px) {
    .nav__menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 1rem 1.5rem 1.5rem; background: var(--navy-2); border-top: 1px solid rgba(200, 168, 75, .15); }
    .nav__menu.is-open { display: flex; }
    .nav__burger { display: block; }

    .club-grid, .anthem, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .values { grid-template-columns: 1fr; }
    .trophy-grid { grid-template-columns: 1fr; }
    .hero__stats { gap: 2rem; }
    .anthem-fab__text { display: none; }
    .anthem-fab { padding: .8rem; }
}
