/* ================================
   FireBotDevs S.A. — estilos globales
   Misma base que la web de FireFighter (fondo #0D1117, Inter, tarjetas sobrias)
   con el acento "fuego" de la marca para la empresa.
================================ */
:root {
    --bg: #0D1117;
    --bg-2: #161B22;
    --bg-3: #1C2128;
    --bg-4: #21262D;
    --line: rgba(255, 255, 255, 0.06);
    --line-2: #30363D;
    --line-3: #484F58;
    --text: #FFFFFF;
    --text-2: #C9D1D9;
    --text-3: #E6EDF3;
    --muted: #8B949E;
    --blue: #1F6FEB;
    --blue-hover: #388BFD;
    --link: #58A6FF;
    --red: #E5533D;
    --green: #2EA043;
    --green-text: #56D364;
    --yellow: #D29922;
    --amber: #F0A500;
    --purple: #A78BFA;
    --fire-1: #FF8A3D;
    --fire-2: #FF6410;
    --fire-3: #F7472E;
    --fire-text: #FF9A5A;
    --grad-fire: linear-gradient(135deg, #FF8A3D 0%, #FF6410 50%, #F7472E 100%);
    --radius: 8px;
    --radius-lg: 12px;
    --nav-h: 64px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
    overflow-x: clip;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

button {
    font: inherit;
    color: inherit;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
}

::selection {
    background: rgba(255, 100, 16, 0.35);
    color: #FFFFFF;
}

:focus-visible {
    outline: 2px solid var(--blue-hover);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: var(--radius);
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    color: var(--text);
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* ---------- Títulos de sección ---------- */
.section {
    padding: 88px 0;
    position: relative;
}

.section-alt {
    background-color: var(--bg-2);
}

.section-eyebrow {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fire-text);
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-2);
    font-size: 1.1rem;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.text-fire {
    background: var(--grad-fire);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    text-align: center;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: var(--grad-fire);
    color: #1A0F08;
    border-color: transparent;
}

.btn-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 24px rgba(255, 100, 16, 0.28);
}

.btn-secondary {
    background-color: var(--bg-4);
    color: var(--text-3);
    border-color: var(--line-2);
}

.btn-secondary:hover {
    background-color: var(--line-2);
    border-color: var(--line-3);
}

.btn-blue {
    background-color: var(--blue);
    border-color: var(--blue);
    color: #FFFFFF;
}

.btn-blue:hover {
    background-color: #1A5FCC;
    border-color: #1A5FCC;
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border-color: var(--line-2);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--line-3);
    background: rgba(255, 255, 255, 0.03);
}

.btn-lg {
    padding: 12px 28px;
    font-size: 1rem;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.85rem;
}

.btn[disabled],
.btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
    box-shadow: none;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fire-text);
    font-weight: 600;
    font-size: 0.92rem;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* ---------- Barra superior ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bg-2);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(13, 17, 23, 0.97);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.nav-container {
    max-width: 1400px;
    gap: 20px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 34px;
    height: 34px;
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-logo-sa {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    margin-left: 4px;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.7vw, 30px);
}

.nav-links a {
    white-space: nowrap;
    font-size: 0.95rem;
    color: var(--text-2);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-fire);
    transition: width 0.25s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-buttons {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-buttons .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (min-width: 1024px) and (max-width: 1240px) {
    .navbar .nav-links { gap: 16px; }
    .navbar .nav-links a { font-size: 0.88rem; }
    .navbar .nav-buttons .btn svg { display: none; }
}

@media (max-width: 1023px) {
    .nav-links,
    .nav-buttons { display: none; }
    .nav-toggle { display: flex; }
    .nav-container { gap: 12px; padding: 0 16px; }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background-color: var(--bg-2);
        padding: 12px 16px;
        gap: 0;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
    }

    .nav-links.mobile-open a {
        display: block;
        padding: 12px 8px;
        text-align: center;
        font-size: 1rem;
        border-radius: var(--radius);
    }

    .nav-links.mobile-open a::after { display: none; }
    .nav-links.mobile-open a.active { background-color: rgba(255, 100, 16, 0.1); }

    .nav-buttons.mobile-open {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        position: absolute;
        top: calc(var(--nav-h) + var(--nav-links-height, 300px));
        left: 0;
        right: 0;
        background-color: var(--bg-2);
        padding: 8px 16px 20px;
        gap: 10px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    }

    .nav-buttons.mobile-open .btn { flex: 1 1 140px; max-width: 220px; }
}

@media (max-width: 420px) {
    .nav-logo-text { font-size: 1.08rem; }
    .nav-logo-sa { display: none; }
}

@media (max-width: 340px) {
    .navbar .nav-logo-text { display: none; }
}

/* ---------- Héroe ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 50% at 50% 100%, rgba(255, 100, 16, 0.16) 0%, rgba(255, 100, 16, 0) 70%),
        radial-gradient(40% 35% at 15% 20%, rgba(31, 111, 235, 0.10) 0%, rgba(31, 111, 235, 0) 70%),
        radial-gradient(35% 30% at 85% 25%, rgba(229, 83, 61, 0.10) 0%, rgba(229, 83, 61, 0) 70%),
        var(--bg);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 75%);
    mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 75%);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0) 0%, var(--bg) 100%);
}

.hero-content {
    position: relative;
    padding: 120px 24px 96px;
    max-width: 860px;
}

.hero-logo {
    width: 132px;
    height: 132px;
    margin: 0 auto 22px;
    filter: drop-shadow(0 10px 40px rgba(255, 100, 16, 0.35));
    animation: hero-float 6s ease-in-out infinite;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 154, 90, 0.35);
    background: rgba(255, 100, 16, 0.08);
    color: #FFC9A3;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-text);
    box-shadow: 0 0 0 0 rgba(86, 211, 100, 0.6);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(86, 211, 100, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(86, 211, 100, 0); }
    100% { box-shadow: 0 0 0 0 rgba(86, 211, 100, 0); }
}

.hero-heading {
    margin: 0;
}

.hero-heading > span {
    display: block;
}

.hero-title {
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 14px;
}

.hero-title-sa {
    color: var(--text-2);
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
    font-weight: 500;
    color: var(--text-3);
    letter-spacing: 0;
    margin-bottom: 18px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-2);
    margin: 0 auto 26px;
    line-height: 1.8;
    max-width: 720px;
}

.hero-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto 30px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 40px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-live img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.hero-live strong {
    color: #FF8A5B;
    font-weight: 700;
    font-size: 1.05rem;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--muted);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-2);
    opacity: 0.6;
    animation: hero-bounce 2.4s ease-in-out infinite;
}

@keyframes hero-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}

/* ---------- Cifras ---------- */
.stats {
    padding: 56px 0 72px;
    background-color: var(--bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: var(--bg-2);
    border-radius: var(--radius);
    padding: 28px 18px;
    text-align: center;
    border: 1px solid var(--line);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.stat-card:hover {
    border-color: var(--line-3);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    background-color: var(--bg-4);
    color: #9DA7B3;
    border: 1px solid var(--line-2);
}

.stat-icon-fire { color: var(--fire-text); border-color: rgba(255, 154, 90, 0.3); background: rgba(255, 100, 16, 0.08); }

.stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-2);
    font-size: 0.92rem;
    display: block;
    hyphens: auto;
}

.stat-hint {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 4px;
}

.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-text);
    margin-right: 6px;
    vertical-align: middle;
    animation: pulse-dot 2s infinite;
}

/* ---------- Quiénes somos ---------- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.about-text p {
    color: var(--text-2);
    font-size: 1.02rem;
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-3);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.mv-card {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--bg-2);
    border: 1px solid var(--line);
}

.mv-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.mv-card p {
    color: var(--text-2);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.65;
}

.motto {
    margin: 24px 0 0;
    padding: 18px 22px;
    border-left: 3px solid var(--fire-2);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: linear-gradient(90deg, rgba(255, 100, 16, 0.1), rgba(255, 100, 16, 0));
}

.motto blockquote {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text);
}

.motto figcaption {
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fire-text);
}

.factsheet {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.factsheet-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255, 100, 16, 0.10), rgba(255, 100, 16, 0));
}

.factsheet-head img {
    width: 48px;
    height: 48px;
}

.factsheet-head strong {
    display: block;
    font-size: 1.1rem;
}

.factsheet-head span {
    color: var(--muted);
    font-size: 0.85rem;
}

.factsheet dl {
    margin: 0;
    padding: 6px 22px 14px;
}

.factsheet-row {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}

.factsheet-row:last-child {
    border-bottom: none;
}

.factsheet dt {
    color: var(--muted);
}

.factsheet dd {
    color: var(--text-3);
    font-weight: 500;
    margin: 0;
}

.factsheet dd a {
    color: var(--fire-text);
}

.factsheet dd a:hover {
    text-decoration: underline;
}

.factsheet-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Qué hacemos (pestañas) ---------- */
.tabs {
    max-width: 1040px;
    margin: 0 auto;
}

.tab-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: var(--bg);
    color: var(--text-2);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.tab-btn:hover {
    border-color: var(--line-3);
    color: var(--text);
}

.tab-btn[aria-selected="true"] {
    border-color: rgba(255, 154, 90, 0.55);
    background: linear-gradient(135deg, rgba(255, 100, 16, 0.12), rgba(255, 100, 16, 0.02));
    color: var(--text);
}

.tab-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-4);
    border: 1px solid var(--line-2);
    color: #9DA7B3;
}

.tab-btn[aria-selected="true"] .tab-icon {
    color: var(--fire-text);
    border-color: rgba(255, 154, 90, 0.35);
}

.tab-btn-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tab-btn-text strong {
    font-size: 0.98rem;
    color: inherit;
}

.tab-btn-text span {
    font-size: 0.78rem;
    color: var(--muted);
}

.tab-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg);
    animation: panel-in 0.35s ease;
}

.tab-panel[hidden] {
    display: none;
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-panel h3 {
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.tab-panel p {
    color: var(--text-2);
    margin-bottom: 14px;
    line-height: 1.75;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.6;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(86, 211, 100, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2356D364' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.check-list li strong {
    color: var(--text-3);
}

.tab-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tab-aside-card {
    padding: 18px;
    border-radius: var(--radius);
    background: var(--bg-2);
    border: 1px solid var(--line);
}

.tab-aside-card h4 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 10px;
}

.tab-aside-card p {
    margin: 0;
    font-size: 0.92rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--line-2);
    color: var(--text-3);
    background: var(--bg-3);
}

/* ---------- Estados ---------- */
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status-live { color: var(--green-text); background: rgba(46, 160, 67, 0.12); border: 1px solid rgba(46, 160, 67, 0.35); }
.status-dev { color: #E3B341; background: rgba(210, 153, 34, 0.12); border: 1px solid rgba(210, 153, 34, 0.35); }
.status-soon { color: var(--purple); background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.35); }

/* ---------- Proyectos ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent;
    color: var(--text-2);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--fire-2);
    color: var(--text);
}

.filter-btn.active,
.filter-btn[aria-pressed="true"] {
    background: var(--grad-fire);
    border-color: transparent;
    color: #1A0F08;
    font-weight: 600;
}

.filter-count {
    display: inline-block;
    min-width: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-btn[aria-pressed="true"] .filter-count {
    background: rgba(26, 15, 8, 0.18);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-2);
    border: 1px solid var(--line);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
    min-width: 0;
}

.project-card:hover {
    border-color: var(--line-3);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
}

.project-card[hidden] {
    display: none;
}

.project-card--featured {
    grid-column: span 2;
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(255, 100, 16, 0.12) 0%, rgba(255, 100, 16, 0) 60%),
        var(--bg-2);
    border-color: rgba(255, 154, 90, 0.28);
}

.project-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.project-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-4);
    border: 1px solid var(--line-2);
    color: var(--fire-text);
    overflow: hidden;
}

.project-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-title {
    min-width: 0;
    flex: 1;
}

.project-title h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.project-type {
    font-size: 0.8rem;
    color: var(--muted);
}

.project-card > p {
    color: var(--text-2);
    font-size: 0.93rem;
    line-height: 1.65;
}

.project-live {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.project-live div {
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--line);
    min-width: 0;
}

.project-live strong {
    display: block;
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.project-live span {
    font-size: 0.78rem;
    color: var(--muted);
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}

.projects-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 32px;
}

/* ---------- Diálogos ---------- */
.modal {
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    background: var(--bg-2);
    color: var(--text);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.modal[open] {
    display: flex;
    flex-direction: column;
    animation: modal-in 0.25s ease;
}

.modal::backdrop {
    background: rgba(1, 4, 9, 0.72);
    backdrop-filter: blur(3px);
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.modal-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}

.modal-head h2 {
    font-size: 1.3rem;
    flex: 1;
    min-width: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: var(--bg-4);
    color: var(--text-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-close:hover {
    color: var(--text);
    border-color: var(--line-3);
}

.modal-body {
    padding: 22px 24px 26px;
    overflow-y: auto;
}

.modal-body p {
    color: var(--text-2);
    margin-bottom: 14px;
    line-height: 1.75;
}

.modal-body h3 {
    font-size: 1rem;
    margin: 22px 0 10px;
}

.modal-body .check-list {
    margin-bottom: 8px;
}

.modal-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 6px 0 4px;
}

.modal-facts div {
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--bg);
    font-size: 0.9rem;
}

.modal-facts span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

.modal-facts strong {
    color: var(--text-3);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

body.modal-open {
    overflow: hidden;
}

/* ---------- FireFighter destacado ---------- */
.spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.spotlight-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.spotlight-brand img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--line-2);
}

.spotlight-brand h3 {
    font-size: 1.9rem;
    line-height: 1.1;
}

.spotlight-brand span {
    color: var(--muted);
    font-size: 0.92rem;
}

.spotlight-text p {
    color: var(--text-2);
    margin-bottom: 16px;
    line-height: 1.8;
}

.spotlight-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 20px 0 26px;
}

.spotlight-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-2);
    font-size: 0.93rem;
    line-height: 1.5;
}

.spotlight-points li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--fire-text);
}

.spotlight-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Simulador de raid (estilo Discord) */
.sim {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-2);
    background: #1E1F22;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.sim-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #2B2D31;
    border-bottom: 1px solid rgba(0, 0, 0, 0.35);
    font-size: 0.9rem;
}

.sim-head-hash {
    color: #80848E;
    font-size: 1.2rem;
    font-weight: 500;
}

.sim-head strong {
    color: #F2F3F5;
    font-weight: 600;
}

.sim-head .sim-mode {
    margin-left: auto;
}

.sim-log {
    height: 300px;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #313338;
    font-size: 0.86rem;
    scrollbar-width: thin;
}

.sim-empty {
    margin: auto;
    text-align: center;
    color: #B5BAC1;
    max-width: 320px;
    font-size: 0.9rem;
}

.sim-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #DBDEE1;
    line-height: 1.45;
    animation: sim-in 0.25s ease;
}

@keyframes sim-in {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: none; }
}

.sim-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #FFFFFF;
    background: #5865F2;
}

.sim-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.sim-line--join .sim-avatar { background: #4E5058; }
.sim-line--bot .sim-avatar { background: transparent; }
.sim-line--bot { background: rgba(255, 100, 16, 0.08); border-left: 3px solid var(--fire-2); padding: 6px 8px; border-radius: 4px; }
.sim-line--ok { background: rgba(46, 160, 67, 0.1); border-left-color: var(--green); }

.sim-line-name {
    font-weight: 600;
    color: #F2F3F5;
}

.sim-bot-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 0 4px;
    border-radius: 3px;
    background: #5865F2;
    color: #FFFFFF;
    font-size: 0.62rem;
    font-weight: 700;
    vertical-align: 1px;
}

.sim-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #2B2D31;
    border-top: 1px solid rgba(0, 0, 0, 0.35);
}

.sim-counters {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: #B5BAC1;
    margin-right: auto;
}

.sim-counters strong {
    color: #F2F3F5;
    font-variant-numeric: tabular-nums;
}

.sim-caption {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
}

/* ---------- Valores ---------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.value-card {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--line);
    transition: border-color 0.25s ease;
}

.value-card:hover {
    border-color: var(--line-3);
}

.value-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--fire-text);
    background: rgba(255, 100, 16, 0.08);
    border: 1px solid rgba(255, 154, 90, 0.3);
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.value-lead {
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.value-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    color: var(--fire-text);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.value-toggle svg {
    transition: transform 0.25s ease;
}

.value-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.value-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.value-details[hidden] {
    display: none;
}

.value-details .check-list li {
    font-size: 0.9rem;
}

.value-details .link-arrow {
    margin-top: 14px;
}

/* ---------- Encuentra lo que necesitas ---------- */
.finder {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
}

.finder-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.finder-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: var(--bg-2);
    color: var(--text-2);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.finder-option:hover {
    border-color: var(--line-3);
    color: var(--text);
}

.finder-option[aria-pressed="true"] {
    border-color: rgba(255, 154, 90, 0.55);
    background: linear-gradient(135deg, rgba(255, 100, 16, 0.12), rgba(255, 100, 16, 0.02));
    color: var(--text);
}

.finder-emoji {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.finder-result {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--bg-2);
    border: 1px solid var(--line);
    min-height: 100%;
}

.finder-result[hidden] {
    display: none;
}

.finder-result h3 {
    font-size: 1.2rem;
    margin: 10px 0 10px;
}

.finder-result p {
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.finder-result .check-list {
    margin-bottom: 20px;
}

.finder-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    gap: 10px;
}

.finder-placeholder svg {
    color: var(--line-3);
}

/* ---------- Trayectoria ---------- */
.timeline-filters {
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 9px;
    width: 2px;
    background: linear-gradient(180deg, var(--fire-1) 0%, var(--fire-2) 55%, rgba(139, 92, 246, 0.7) 100%);
    opacity: 0.55;
}

.tl-item {
    position: relative;
    padding: 0 0 18px 44px;
}

.tl-dot {
    position: absolute;
    top: 20px;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-2);
    border: 3px solid var(--fire-2);
    box-shadow: 0 0 0 4px rgba(255, 100, 16, 0.15);
    z-index: 1;
}

.tl-item--future .tl-dot {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.tl-card {
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-2);
    border: 1px solid var(--line);
    transition: border-color 0.25s ease;
}

.tl-card:hover {
    border-color: var(--line-3);
}

.tl-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tl-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fire-text);
    font-variant-numeric: tabular-nums;
}

.tl-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    color: var(--muted);
}

.tl-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.tl-card > p {
    color: var(--text-2);
    font-size: 0.92rem;
    line-height: 1.65;
}

.tl-more {
    margin-top: 10px;
    background: none;
    border: none;
    padding: 0;
    color: var(--fire-text);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tl-more svg {
    transition: transform 0.25s ease;
}

.tl-more[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.tl-details {
    margin-top: 10px;
}

.tl-details[hidden] {
    display: none;
}

.tl-details ul {
    padding-left: 18px;
    list-style: disc;
}

.tl-details li {
    color: var(--text-2);
    font-size: 0.88rem;
    margin-bottom: 4px;
    line-height: 1.6;
}

.tl-details li::marker {
    color: var(--fire-2);
}

/* ---------- Hoja de ruta ---------- */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.roadmap-col {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg);
    padding: 18px;
}

.roadmap-col h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 1rem;
    margin-bottom: 14px;
}

.roadmap-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.roadmap-item {
    padding: 14px;
    border-radius: var(--radius);
    background: var(--bg-2);
    border: 1px solid var(--line);
}

.roadmap-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.roadmap-item p {
    color: var(--text-2);
    font-size: 0.85rem;
    line-height: 1.55;
}

.vote {
    max-width: 820px;
    margin: 0 auto;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 154, 90, 0.28);
    background:
        radial-gradient(70% 100% at 0% 0%, rgba(255, 100, 16, 0.10) 0%, rgba(255, 100, 16, 0) 60%),
        var(--bg);
}

.vote-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.vote-head h3 {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.vote-head p {
    color: var(--text-2);
    font-size: 0.93rem;
}

.vote-total {
    font-size: 0.85rem;
    color: var(--muted);
    white-space: nowrap;
}

.vote-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vote-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: var(--bg-2);
    color: var(--text-3);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.vote-option:hover:not([disabled]) {
    border-color: var(--line-3);
}

.vote-option[disabled] {
    cursor: default;
}

.vote-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, rgba(255, 100, 16, 0.22), rgba(255, 100, 16, 0.08));
    transition: width 0.6s ease;
    pointer-events: none;
}

.vote-option[aria-pressed="true"] {
    border-color: rgba(255, 154, 90, 0.6);
}

.vote-option[aria-pressed="true"] .vote-bar {
    background: linear-gradient(90deg, rgba(255, 100, 16, 0.38), rgba(255, 100, 16, 0.14));
}

.vote-label {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.vote-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--line-3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-option[aria-pressed="true"] .vote-check {
    border-color: var(--fire-2);
    background: var(--fire-2);
}

.vote-option[aria-pressed="true"] .vote-check::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1A0F08;
}

.vote-pct {
    position: relative;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-width: 48px;
    text-align: right;
}

.vote-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--muted);
}

.vote-msg {
    min-height: 1.4em;
}

.vote-msg--ok { color: var(--green-text); }
.vote-msg--err { color: #FF8A80; }

/* ---------- Equipo ---------- */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-grid > * {
    flex: 0 1 220px;
}

.team-card {
    background: var(--bg);
    border: 1px solid var(--bg-4);
    border-radius: var(--radius);
    padding: 26px 18px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.team-card:hover {
    border-color: rgba(255, 100, 16, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.team-card--founder {
    border-color: rgba(255, 154, 90, 0.3);
}

.team-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--line-2);
}

.team-card--founder .team-avatar {
    border-color: var(--fire-2);
    box-shadow: 0 0 0 4px rgba(255, 100, 16, 0.15);
}

.team-avatar-fallback {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--bg-4);
    border: 2px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: var(--fire-text);
}

.team-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-3);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.team-role {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--fire-text);
    border: 1px solid rgba(255, 154, 90, 0.35);
    border-radius: 20px;
    padding: 2px 10px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
    max-width: 100%;
}

.team-bio {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.55;
}

.team-card--more {
    justify-content: center;
    border-style: dashed;
    border-color: var(--line-2);
}

.team-more-count {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.team-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 24px;
}

.team-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--line-2);
    border-top-color: var(--fire-2);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.join-cta {
    max-width: 1000px;
    margin: 32px auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg);
}

.join-cta h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.join-cta p {
    color: var(--text-2);
    font-size: 0.92rem;
}

/* ---------- Preguntas frecuentes ---------- */
.faq {
    max-width: 860px;
    margin: 0 auto;
}

.faq-search {
    position: relative;
    margin-bottom: 20px;
}

.faq-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.faq-search input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: var(--bg-2);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
}

.faq-search input::placeholder {
    color: var(--muted);
}

.faq-search input:focus {
    outline: none;
    border-color: var(--fire-2);
    box-shadow: 0 0 0 3px rgba(255, 100, 16, 0.15);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--bg-2);
    transition: border-color 0.2s ease;
}

.faq-item[open] {
    border-color: var(--line-3);
}

.faq-item[hidden] {
    display: none;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238B949E' d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E") center / 20px no-repeat;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 18px;
    color: var(--text-2);
    font-size: 0.95rem;
    line-height: 1.75;
}

.faq-answer p + p {
    margin-top: 10px;
}

.faq-answer a {
    color: var(--fire-text);
    text-decoration: underline;
}

.faq-empty {
    text-align: center;
    color: var(--muted);
    padding: 20px;
}

.faq-empty[hidden] {
    display: none;
}

/* ---------- Llamada final ---------- */
.final-cta {
    padding: 88px 0;
    text-align: center;
    background:
        radial-gradient(50% 80% at 50% 100%, rgba(255, 100, 16, 0.14) 0%, rgba(255, 100, 16, 0) 70%),
        var(--bg);
    border-top: 1px solid var(--line);
}

.final-cta .section-subtitle {
    margin-bottom: 28px;
}

.final-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ---------- Pie de página ---------- */
.footer {
    padding: 60px 0 28px;
    background-color: var(--bg);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-desc {
    color: var(--text-2);
    font-size: 0.9rem;
    margin-bottom: 20px;
    max-width: 340px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background-color: var(--bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    border: 1px solid var(--line);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
    background: var(--grad-fire);
    color: #1A0F08;
    border-color: transparent;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-2);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--fire-text);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-2);
}

.footer-disclaimer {
    margin-top: 8px;
    font-size: 0.75rem !important;
    opacity: 0.6;
}

/* ---------- Animación al hacer scroll ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Páginas interiores ---------- */
.page-hero {
    position: relative;
    padding: 132px 0 56px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(50% 90% at 50% 0%, rgba(255, 100, 16, 0.13) 0%, rgba(255, 100, 16, 0) 70%),
        var(--bg);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 10px;
}

.page-hero p {
    color: var(--text-2);
    font-size: 1.08rem;
    max-width: 680px;
    margin: 0 auto;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.breadcrumb a:hover {
    color: var(--text);
}

/* ---------- Contacto ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.form-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--bg-2);
    border: 1px solid var(--line);
}

.form-card h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.form-card > p {
    color: var(--text-2);
    font-size: 0.93rem;
    margin-bottom: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    min-width: 0;
}

.field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-3);
}

.field .optional {
    font-weight: 400;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color-scheme: dark;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #6E7681;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--fire-2);
    box-shadow: 0 0 0 3px rgba(255, 100, 16, 0.15);
}

.field [aria-invalid="true"] {
    border-color: #F85149;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--muted);
}

.field-error {
    font-size: 0.8rem;
    color: #FF8A80;
}

.field-error[hidden] {
    display: none;
}

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.char-count {
    font-size: 0.8rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.char-count.over {
    color: #FF8A80;
}

.topic-hint {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    margin: -4px 0 16px;
    border-radius: var(--radius);
    background: rgba(31, 111, 235, 0.08);
    border: 1px solid rgba(31, 111, 235, 0.3);
    color: var(--text-2);
    font-size: 0.86rem;
    line-height: 1.6;
}

.topic-hint[hidden] {
    display: none;
}

.topic-hint a {
    color: var(--link);
    text-decoration: underline;
}

.check-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.55;
    cursor: pointer;
}

.check-field input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--fire-2);
    flex-shrink: 0;
}

.check-field a {
    color: var(--fire-text);
    text-decoration: underline;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--muted);
}

.form-status {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    line-height: 1.6;
}

.form-status[hidden] {
    display: none;
}

.form-status--ok {
    background: rgba(46, 160, 67, 0.1);
    border: 1px solid rgba(46, 160, 67, 0.4);
    color: #7EE787;
}

.form-status--err {
    background: rgba(248, 81, 73, 0.08);
    border: 1px solid rgba(248, 81, 73, 0.4);
    color: #FFA198;
}

.form-status a {
    color: inherit;
    text-decoration: underline;
}

.channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--bg-2);
    border: 1px solid var(--line);
    transition: border-color 0.2s ease;
}

a.channel:hover {
    border-color: var(--line-3);
}

.channel-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-4);
    border: 1px solid var(--line-2);
    color: var(--text-2);
}

.channel strong {
    display: block;
    font-size: 0.95rem;
}

.channel span {
    font-size: 0.83rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.aside-card {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--bg-2);
    border: 1px solid var(--line);
}

.aside-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.aside-card p,
.aside-card li {
    color: var(--text-2);
    font-size: 0.88rem;
    line-height: 1.65;
}

.aside-card ul {
    list-style: disc;
    padding-left: 18px;
}

.aside-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Recursos de marca */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.brand-card {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--bg-2);
    border: 1px solid var(--line);
}

.brand-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.brand-logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--bg);
    margin-bottom: 14px;
}

.brand-logo-preview--light {
    background: #F6F8FA;
}

.brand-logo-preview img {
    width: 64px;
    height: 64px;
}

.swatches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.swatch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--bg);
    font-size: 0.78rem;
    color: var(--text-2);
    cursor: pointer;
    text-align: left;
}

.swatch:hover {
    border-color: var(--line-3);
}

.swatch i {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.swatch code {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    color: var(--text-3);
}

.sw-bg { background: #0D1117; }
.sw-bg2 { background: #161B22; }
.sw-f1 { background: #FF6410; }
.sw-f2 { background: #F7472E; }
.sw-f3 { background: #FF8A3D; }
.sw-blue { background: #1F6FEB; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 3000;
    transform: translate(-50%, 20px);
    opacity: 0;
    padding: 10px 18px;
    border-radius: var(--radius);
    background: var(--bg-3);
    border: 1px solid var(--line-2);
    color: var(--text);
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- 404 ---------- */
.notfound {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
}

.notfound-code {
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.notfound h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.notfound p {
    color: var(--text-2);
    margin-bottom: 26px;
}

/* ---------- Adaptación a pantallas ---------- */
@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-card--featured {
        grid-column: span 2;
    }

    .about-grid,
    .spotlight,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .tab-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .values-grid,
    .roadmap-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .finder {
        grid-template-columns: minmax(0, 1fr);
    }

    .tab-panel {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px;
    }

    .tl-item {
        padding-left: 36px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 68px 0;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.25rem;
    }

    .hero-logo {
        width: 104px;
        height: 104px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        white-space: normal;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .stats-grid .stat-card:last-child {
        grid-column: span 2;
    }

    .stat-number {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-card--featured {
        grid-column: auto;
    }

    .mv-grid,
    .spotlight-points,
    .form-row,
    .modal-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-row {
        gap: 0;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .brand-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .vote {
        padding: 22px 18px;
    }

    .form-card {
        padding: 22px 18px;
    }

    .btn {
        white-space: normal;
    }
}

@media (max-width: 560px) {
    .tab-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-live {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-live div:last-child {
        grid-column: span 2;
    }

    .factsheet-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .sim-log {
        height: 260px;
    }

    .modal-head,
    .modal-body {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 16px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .hero-live {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Complementos ---------- */
.btn img {
    border-radius: 50%;
    flex-shrink: 0;
}

.status-alert { color: #FF8A80; background: rgba(229, 83, 61, 0.14); border: 1px solid rgba(229, 83, 61, 0.45); }

.sim-line > div {
    min-width: 0;
}

.sim-line p {
    margin: 0;
    overflow-wrap: anywhere;
}

.sim-line--msg p + p {
    color: #DBDEE1;
}

.sim-line--deleted {
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.sim-line--deleted p + p {
    text-decoration: line-through;
}

/* "Fire" en naranja, como en el logotipo */
.logo-fire {
    color: var(--fire-2);
}
