/* ═══════════════════════════════════════════════════════════════
   FYNEX — sitio corporativo
   ═══════════════════════════════════════════════════════════════
   FYNEX es la desarrolladora; sus apps (Debts Goodbye y las que vengan) viven cada
   una en su subdominio. Este CSS es solo del sitio corporativo y no comparte nada
   con style.css, que es de la app: así una no puede romper a la otra.
   ═══════════════════════════════════════════════════════════════ */

:root {
    --fx-bg: #07090f;
    --fx-bg-alt: #0c1018;
    --fx-surface: #11161f;
    --fx-surface-2: #161c27;
    --fx-border: rgba(255, 255, 255, 0.08);
    --fx-border-fuerte: rgba(255, 255, 255, 0.16);

    --fx-txt: #f4f6fa;
    --fx-txt-2: #a3adbe;
    --fx-txt-3: #6b7688;

    /* Tomados del logo: el naranja del cuerpo y el dorado de las plumas. */
    --fx-acento: #ff7a18;
    --fx-acento-2: #ffc632;

    --fx-max: 1180px;
    --fx-radio: 18px;

    --fx-fuente: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--fx-bg);
    color: var(--fx-txt);
    font-family: var(--fx-fuente);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.fx-contenedor {
    width: 100%;
    max-width: var(--fx-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Cabecera ── */
.fx-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 15, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--fx-border);
}
.fx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}
.fx-marca {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.24rem;
    letter-spacing: -0.02em;
}
.fx-marca-ave {
    width: 30px;
    height: 30px;
    object-fit: contain;
    /* El logo ya trae su propio fuego; el resplandor solo lo asienta sobre el fondo. */
    filter: drop-shadow(0 0 10px rgba(255, 122, 24, 0.35));
}
.fx-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
.fx-nav a {
    color: var(--fx-txt-2);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.18s;
}
.fx-nav a:hover { color: var(--fx-txt); }

.fx-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--fx-txt);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

@media (max-width: 720px) {
    .fx-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--fx-bg-alt);
        border-bottom: 1px solid var(--fx-border);
        padding: 8px 24px 18px;
    }
    .fx-nav[hidden] { display: none; }
    .fx-nav a { padding: 12px 0; border-bottom: 1px solid var(--fx-border); }
    .fx-nav a:last-child { border-bottom: none; }
    .fx-nav-toggle { display: block; }
}

/* ── Hero ── */
.fx-hero {
    position: relative;
    padding: 108px 0 92px;
    overflow: hidden;
}
.fx-hero::before {
    /* Halo de fondo. Decorativo: no lleva contenido ni afecta la lectura. */
    content: "";
    position: absolute;
    top: -320px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 122, 24, 0.20) 0%,
        rgba(255, 198, 50, 0.09) 38%,
        transparent 68%
    );
    pointer-events: none;
}
.fx-hero-inner { position: relative; text-align: center; }

.fx-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--fx-border-fuerte);
    background: rgba(255, 255, 255, 0.03);
    color: var(--fx-txt-2);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 26px;
}

.fx-hero h1 {
    font-size: clamp(2.3rem, 6vw, 4rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
}
.fx-degradado {
    background: linear-gradient(135deg, var(--fx-acento) 0%, var(--fx-acento-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.fx-hero p {
    max-width: 620px;
    margin: 0 auto 34px;
    color: var(--fx-txt-2);
    font-size: clamp(1rem, 2vw, 1.14rem);
}

.fx-acciones {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.fx-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 12px;
    font-weight: 650;
    font-size: 0.94rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.16s, box-shadow 0.16s, background 0.16s, border-color 0.16s;
}
.fx-btn:active { transform: scale(0.98); }
.fx-btn-primario {
    background: linear-gradient(135deg, var(--fx-acento), var(--fx-acento-2));
    color: #1a0d02;
    box-shadow: 0 8px 26px rgba(255, 122, 24, 0.30);
}
.fx-btn-primario:hover { box-shadow: 0 12px 34px rgba(255, 122, 24, 0.44); }
.fx-btn-secundario {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--fx-border-fuerte);
    color: var(--fx-txt);
}
.fx-btn-secundario:hover { background: rgba(255, 255, 255, 0.09); }

/* ── Secciones ── */
.fx-seccion { padding: 88px 0; }
.fx-seccion-alt { background: var(--fx-bg-alt); }

.fx-seccion-cab {
    max-width: 640px;
    margin-bottom: 48px;
}
.fx-seccion-cab.centrado { margin-left: auto; margin-right: auto; text-align: center; }
.fx-seccion-cab h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    font-weight: 750;
    letter-spacing: -0.028em;
    margin-bottom: 12px;
}
.fx-seccion-cab p { color: var(--fx-txt-2); font-size: 1.02rem; }

/* ── App destacada ── */
.fx-destacada {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
    background: linear-gradient(135deg, var(--fx-surface) 0%, var(--fx-bg-alt) 100%);
    border: 1px solid var(--fx-border);
    border-radius: 26px;
    padding: 52px;
    position: relative;
    overflow: hidden;
}
.fx-destacada::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -160px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, var(--app-color, #1E7881) 0%, transparent 66%);
    opacity: 0.20;
    pointer-events: none;
}
.fx-destacada-txt { position: relative; }
.fx-destacada-cat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--fx-txt-2);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.fx-destacada h3 {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.fx-destacada .fx-tagline {
    color: var(--app-color, var(--fx-acento));
    font-weight: 600;
    font-size: 1.04rem;
    margin-bottom: 14px;
}
.fx-destacada p.fx-desc { color: var(--fx-txt-2); margin-bottom: 28px; }

.fx-destacada-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fx-destacada-visual img {
    width: min(260px, 78%);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

@media (max-width: 860px) {
    .fx-destacada { grid-template-columns: 1fr; padding: 36px 26px; gap: 34px; }
    .fx-destacada-visual { order: -1; }
    .fx-destacada-visual img { width: min(190px, 60%); }
}

/* ── Cuadrícula de apps ── */
.fx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.fx-card {
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radio);
    padding: 28px 26px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.fx-card:not(.fx-card-pronto):hover {
    transform: translateY(-4px);
    border-color: var(--fx-border-fuerte);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}
.fx-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--app-color, var(--fx-acento)), transparent);
}

.fx-card-icono {
    width: 62px;
    height: 62px;
    border-radius: 15px;
    margin-bottom: 18px;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}
.fx-card-icono-vacio {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--fx-border-fuerte);
    color: var(--fx-txt-3);
}

.fx-card h3 {
    font-size: 1.18rem;
    font-weight: 720;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.fx-card-cat {
    color: var(--fx-txt-3);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.fx-card p {
    color: var(--fx-txt-2);
    font-size: 0.92rem;
    flex: 1;
    margin-bottom: 20px;
}
.fx-card-pie {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.fx-btn-sm { padding: 9px 16px; font-size: 0.86rem; border-radius: 10px; }

.fx-card-pronto { opacity: 0.62; }
.fx-insignia-pronto {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--fx-border-fuerte);
    color: var(--fx-txt-3);
    font-size: 0.78rem;
    font-weight: 600;
}

/* ── Detalle de app ── */
.fx-app-hero {
    padding: 74px 0 56px;
    position: relative;
    overflow: hidden;
}
.fx-app-hero::before {
    content: "";
    position: absolute;
    top: -260px;
    left: 50%;
    transform: translateX(-50%);
    width: 820px;
    height: 620px;
    background: radial-gradient(ellipse at center, var(--app-color, #1E7881) 0%, transparent 62%);
    opacity: 0.16;
    pointer-events: none;
}
.fx-app-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 34px;
    align-items: center;
}
.fx-app-icono {
    width: 122px;
    height: 122px;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.fx-app-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.034em;
    margin-bottom: 8px;
}
.fx-app-hero .fx-tagline {
    color: var(--app-color, var(--fx-acento));
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.fx-plataformas {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.fx-plataforma {
    padding: 4px 11px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--fx-border);
    color: var(--fx-txt-2);
    font-size: 0.79rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .fx-app-hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .fx-plataformas, .fx-acciones { justify-content: center; }
}

.fx-caracteristicas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 22px;
}
.fx-caracteristica {
    background: var(--fx-surface);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radio);
    padding: 26px 24px;
}
.fx-caracteristica .emoji { font-size: 1.6rem; margin-bottom: 14px; display: block; }
.fx-caracteristica h4 { font-size: 1.02rem; font-weight: 680; margin-bottom: 8px; }
.fx-caracteristica p { color: var(--fx-txt-2); font-size: 0.9rem; }

.fx-volver {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--fx-txt-3);
    font-size: 0.88rem;
    font-weight: 550;
    margin-bottom: 26px;
    transition: color 0.18s;
}
.fx-volver:hover { color: var(--fx-txt); }

/* ── Pie ── */
.fx-footer {
    border-top: 1px solid var(--fx-border);
    padding: 52px 0 34px;
    background: var(--fx-bg-alt);
}
.fx-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 38px;
}
@media (max-width: 700px) {
    .fx-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.fx-footer h5 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fx-txt-3);
    margin-bottom: 14px;
}
.fx-footer ul { list-style: none; }
.fx-footer li { margin-bottom: 9px; }
.fx-footer li a {
    color: var(--fx-txt-2);
    font-size: 0.9rem;
    transition: color 0.18s;
}
.fx-footer li a:hover { color: var(--fx-txt); }
.fx-footer-desc { color: var(--fx-txt-2); font-size: 0.9rem; max-width: 330px; margin-top: 12px; }
.fx-footer-legal {
    border-top: 1px solid var(--fx-border);
    padding-top: 22px;
    color: var(--fx-txt-3);
    font-size: 0.84rem;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Entrada al hacer scroll ──
   Se aplica solo si hay JS; sin él, el contenido se ve normalmente. */
.fx-revelar {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease-out, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.fx-revelar.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fx-revelar { opacity: 1; transform: none; transition: none; }
    .fx-card, .fx-btn { transition: none; }
}
