/* ---------------------------------------------------------------- botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { min-height: 38px; padding: 7px 16px; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn-brand { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 24px rgba(241, 213, 12, .25); }
.btn-brand:hover { background: #f7df2a; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--muted); }

/* ---------------------------------------------------------------- cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 11, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--dark-text);
    --text: var(--dark-text); --muted: var(--dark-muted); --line: #333; }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { height: 24px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--dark-muted); transition: color .2s, background .2s; }
.nav a:hover, .nav a.is-active { color: #fff; background: rgba(255, 255, 255, .06); }
.nav .nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.ic-close, .menu-open .ic-open { display: none; }
.menu-open .ic-close { display: block; }
/* sol en modo oscuro, luna en claro */
.ic-sun { display: none; }
:root[data-theme="dark"] .ic-sun { display: block; }
:root[data-theme="dark"] .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ic-sun { display: block; }
    :root:not([data-theme="light"]) .ic-moon { display: none; }
}
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress span { display: block; height: 100%; width: 0; background: var(--brand); }

@media (max-width: 940px) {
    .menu-btn { display: inline-grid; }
    .header-actions { margin-left: auto; }   /* el menú pasa a ser fijo: tema y menú van a la derecha */
    .header-cta { display: none; }
    .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 2px; padding: 12px var(--gutter) 20px; background: #0b0b0b; border-bottom: 1px solid #222; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
    .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
    .nav a { padding: 14px 12px; font-size: 1.05rem; }
    .nav .nav-cta-mobile { display: inline-flex; margin-top: 10px; color: var(--on-brand); }
    .nav .nav-cta-mobile:hover { background: var(--brand); color: var(--on-brand); }
}

/* ---------------------------------------------------------------- secciones */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.section-lead { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 640px; }
.section-lead a { color: var(--accent-text); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-family: var(--mono); font-size: .72rem; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

.chip { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 500; white-space: nowrap; }

/* Cinta infinita */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-slow .marquee-track { animation-duration: 60s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { flex-wrap: wrap; width: auto; } .marquee-track [aria-hidden="true"] { display: none; } }

/* ---------------------------------------------------------------- pie */
.site-footer { background: #070707; color: var(--dark-muted); padding: 64px 0 28px; border-top: 1px solid #1c1c1c;
    --text: var(--dark-text); --line: #2a2a2a; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.footer-brand img { height: 24px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 340px; font-size: .95rem; }
.site-footer h3 { font-family: var(--font); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-text); margin-bottom: 14px; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--brand); }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.social { display: flex; gap: 8px; color: var(--dark-text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 48px; padding-top: 20px; border-top: 1px solid #1c1c1c; font-size: .85rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr; } }

/* Aviso de cookies (solo informativo: la web no usa cookies de analítica) */
.cookie-note { position: fixed; left: var(--gutter); right: var(--gutter); bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border-radius: 16px; background: #141414; color: var(--dark-text); border: 1px solid #2a2a2a; box-shadow: var(--shadow-lg); font-size: .88rem; }
.cookie-note p { margin: 0; flex: 1 1 260px; color: var(--dark-muted); }
.cookie-note a { color: var(--brand); }
.site-footer address { font-style: normal; }
.footer-brand p { max-width: 380px; font-size: .9rem; }
