/* ============================================================
   FENIX PUBLIC — hoja base para páginas públicas de contenido
   Subconjunto curado del CSS de la landing (Brand Guide v2
   Black Edition). Autocontenida: NO requiere Bootstrap.
   ============================================================ */

/* ====== TOKENS ====== */
:root {
    --dark:    #0A0A0A;
    --dark-2:  #111111;
    --dark-3:  #1A1A1A;
    --white:   #FFFFFF;
    --gold:    #F0A500;
    --gold-l:  #F5BE3A;
    --gold-d:  #D4911A;
    --gold-dd: #B37A15;
    --grad-gold: linear-gradient(135deg, #F5BE3A 0%, #F0A500 45%, #D4911A 100%);
    --text-d:  #FFFFFF;
    --text-m:  #999999;
    --text-l:  #666666;
    --border-d: #2A2A2A;
    --shadow:  0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
    --wa: #25D366;
}

/* ====== RESET / BASE ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--text-d);
    line-height: 1.65;
    overflow-x: hidden;
    font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-l); }
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 16px;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}
h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; }
h3 { font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--white); }
::selection { background: rgba(240,165,0,0.35); }

/* ====== LAYOUT ====== */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: 860px; }

.page-main { padding-top: 76px; }

.section { padding: 72px 0; }
.section-alt { background: var(--dark-2); }

/* ====== UTILIDADES ====== */
.text-gold { color: var(--gold); }
.text-muted-soft { color: var(--text-m); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.eyebrow {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2.5px;
    color: var(--gold);
    margin-bottom: 12px;
    display: block;
}
.sf-heading {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.5px;
    color: var(--white);
}
.sf-subtext {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-m);
    max-width: 640px;
}

.section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(240,165,0,0.08);
    border: 1px solid rgba(240,165,0,0.3);
    color: var(--gold);
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.6px;
    padding: 6px 16px;
    border-radius: 40px;
    margin-bottom: 16px;
}
.section-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.tag-dark {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(240,165,0,0.1);
    border: 1px solid rgba(240,165,0,0.28);
    color: var(--gold);
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 40px;
}

/* ====== BOTONES ====== */
.btn-gold {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--grad-gold);
    color: #0A0A0A !important;
    font-weight: 700; font-size: 15px;
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(240,165,0,0.3);
    cursor: pointer;
}
.btn-gold:hover {
    background: linear-gradient(135deg, #F0A500 0%, #D4911A 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(240,165,0,0.45);
}
.btn-gold-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    color: var(--text-d) !important;
    font-weight: 600; font-size: 15px;
    padding: 13px 26px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.25);
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
    cursor: pointer;
}
.btn-gold-outline:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
    transform: translateY(-2px);
}
.btn-wa {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--wa);
    color: #fff !important;
    font-weight: 700; font-size: 15px;
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
    box-shadow: 0 6px 24px rgba(37,211,102,0.35);
}
.btn-wa:hover {
    background: #20bf5a;
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(37,211,102,0.45);
}

/* ====== NAV ====== */
.public-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10,10,10,0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(240,165,0,0.14);
}
.public-nav .nav-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.public-nav .nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.public-nav .nav-logo img { height: 52px; width: 52px; object-fit: contain; flex-shrink: 0; }
.public-nav .nav-logo .brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 18px;
    letter-spacing: -0.5px; line-height: 1;
    white-space: nowrap;
}
.public-nav .nav-logo .brand .b1 { color: var(--white); }
.public-nav .nav-logo .brand .b2 { color: var(--gold); }
.public-nav .nav-links {
    display: flex; align-items: center;
    gap: 4px; list-style: none; margin: 0; padding: 0;
}
.public-nav .nav-links a {
    font-size: 15px; font-weight: 500;
    color: var(--text-m);
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 999px;
    transition: color 0.2s;
    display: block;
}
.public-nav .nav-links a:hover { color: var(--gold-l); }
.public-nav .nav-links a.active { color: var(--text-d); font-weight: 600; }
.public-nav .nav-cta-wrap { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.public-nav .nav-wa {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--grad-gold);
    color: #0A0A0A !important;
    font-weight: 700; font-size: 14px;
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(240,165,0,0.3);
}
.public-nav .nav-wa:hover {
    box-shadow: 0 8px 26px rgba(240,165,0,0.45);
    transform: translateY(-2px);
}
.public-nav .nav-toggle {
    background: none; border: 1.5px solid var(--border-d);
    border-radius: 8px; padding: 7px 10px;
    cursor: pointer; display: none;
}
.public-nav .nav-toggle .bar {
    display: block; width: 20px; height: 2px;
    background: var(--text-d); margin: 4px 0;
    border-radius: 2px;
}
@media (max-width: 860px) {
    .public-nav .nav-links { display: none; }
    .public-nav .nav-toggle { display: block; }
    .public-nav .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 76px; left: 0; right: 0;
        background: var(--dark-2);
        border-bottom: 1px solid var(--border-d);
        border-radius: 0 0 18px 18px;
        padding: 16px 24px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }
    .public-nav .nav-wa { display: none; }
    .public-nav .nav-links.mobile-open .nav-wa-mobile { display: inline-flex; margin-top: 10px; }
}
.public-nav .nav-links .nav-wa-mobile { display: none; }

/* ====== HERO DE PÁGINA INTERNA ====== */
.page-hero {
    padding: 84px 0 56px;
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(240,165,0,0.07) 0%, transparent 70%),
        var(--dark);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero .sf-subtext { margin: 0 auto; }

/* ====== BREADCRUMB ====== */
.breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    list-style: none; margin: 0 0 22px; padding: 0;
    font-size: 13px; color: var(--text-l);
    justify-content: center;
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: '›'; color: var(--text-l); }
.breadcrumb a { color: var(--text-m); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .current { color: var(--text-m); }

/* ====== CARDS ====== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin: 28px 0;
}
.fx-card {
    background: var(--dark-3);
    border: 1px solid var(--border-d);
    border-radius: 16px;
    padding: 26px 24px;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.fx-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240,165,0,0.4);
    box-shadow: var(--shadow);
}
.fx-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.fx-card p { font-size: 14px; color: var(--text-m); margin-bottom: 0; }
.fx-card .fx-card-link { font-size: 13.5px; font-weight: 700; display: inline-block; margin-top: 12px; }
.fx-card .fx-icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(240,165,0,0.07);
    border: 1.5px solid rgba(240,165,0,0.35);
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 16px;
}

/* Lista de chips (tecnologías, sectores) */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.chip-list li {
    margin: 0;
    background: var(--dark-3);
    border: 1px solid var(--border-d);
    color: var(--text-m);
    font-size: 13.5px; font-weight: 600;
    padding: 8px 16px;
    border-radius: 40px;
}

/* ====== TABLA / FICHA DE DATOS ====== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--dark-2);
    border: 1px solid var(--border-d);
    border-radius: 14px;
    overflow: hidden;
    font-size: 14.5px;
}
.data-table th, .data-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-d);
    vertical-align: top;
}
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }
.data-table th {
    color: var(--gold);
    font-weight: 700;
    white-space: nowrap;
    width: 34%;
    background: rgba(240,165,0,0.04);
}
.data-table td { color: rgba(255,255,255,0.82); }
.table-scroll { overflow-x: auto; }

/* Definition list alternativa */
.data-dl {
    display: grid;
    grid-template-columns: minmax(160px, 34%) 1fr;
    border: 1px solid var(--border-d);
    border-radius: 14px;
    overflow: hidden;
    margin: 24px 0;
    background: var(--dark-2);
    font-size: 14.5px;
}
.data-dl dt {
    padding: 14px 18px;
    color: var(--gold); font-weight: 700;
    background: rgba(240,165,0,0.04);
    border-bottom: 1px solid var(--border-d);
    margin: 0;
}
.data-dl dd {
    padding: 14px 18px;
    color: rgba(255,255,255,0.82);
    border-bottom: 1px solid var(--border-d);
    margin: 0;
}
.data-dl dt:last-of-type, .data-dl dd:last-of-type { border-bottom: none; }

/* ====== BLOQUE CTA ====== */
.cta-block {
    text-align: center;
    background:
        radial-gradient(ellipse at center, rgba(201,165,90,0.08) 0%, transparent 65%),
        var(--dark-2);
    border: 1px solid var(--border-d);
    border-radius: 20px;
    padding: 52px 30px;
    margin: 40px 0 0;
}
.cta-block h2 { margin-bottom: 12px; }
.cta-block p { color: var(--text-m); max-width: 520px; margin: 0 auto 28px; }
.cta-block .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ====== FOOTER ====== */
.site-footer {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 64px 0 32px;
    margin-top: 72px;
}
.site-footer .f-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
}
.site-footer .f-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.site-footer .f-logo img { height: 34px; width: 34px; object-fit: contain; }
.site-footer .f-logo .brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 16px; letter-spacing: -0.5px; line-height: 1;
}
.site-footer .f-logo .brand .b1 { color: var(--white); }
.site-footer .f-logo .brand .b2 { color: var(--gold); }
.site-footer .f-desc {
    font-size: 13.5px; color: rgba(255,255,255,0.35);
    line-height: 1.7; margin-bottom: 20px; max-width: 280px;
}
.site-footer .f-social { display: flex; gap: 8px; }
.site-footer .f-social a {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.45);
    font-size: 13px; font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.site-footer .f-social a:hover {
    background: rgba(201,165,90,0.12);
    border-color: rgba(201,165,90,0.3);
    color: var(--gold);
}
.site-footer .f-col-title {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 16px;
}
.site-footer .f-links { list-style: none; padding: 0; margin: 0; }
.site-footer .f-links li { margin-bottom: 9px; }
.site-footer .f-links a {
    font-size: 13.5px; color: rgba(255,255,255,0.45);
    text-decoration: none; transition: color 0.2s;
}
.site-footer .f-links a:hover { color: rgba(255,255,255,0.85); }
.site-footer .f-contact { list-style: none; padding: 0; margin: 0; }
.site-footer .f-contact li { margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.site-footer .f-contact a, .site-footer .f-contact span { color: rgba(255,255,255,0.55); min-width: 0; word-break: break-word; }
.site-footer .f-contact a:hover { color: rgba(255,255,255,0.9); }
.site-footer .f-bottom {
    margin-top: 48px; padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 10px;
}
.site-footer .f-bottom p {
    font-size: 12.5px; color: rgba(255,255,255,0.28); margin: 0;
}
.site-footer .f-bottom a { color: inherit; text-decoration: underline; }
.site-footer .f-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ====== RESPONSIVE ====== */
@media (max-width: 991px) {
    .section { padding: 56px 0; }
    .site-footer .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .page-hero { padding: 60px 0 44px; }
    .section { padding: 44px 0; }
    .site-footer .f-grid { grid-template-columns: 1fr; gap: 28px; }
    .data-dl { grid-template-columns: 1fr; }
    .data-dl dt { border-bottom: none; padding-bottom: 2px; }
    .data-dl dd { padding-top: 4px; }
    .cta-block { padding: 40px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
