/* ==========================================================================
   TRUSTTECH Cybersecurity - Main Stylesheet
   Version: 1.0
   Description: Dark cybersecurity theme with neon accents
   ========================================================================== */

/* ==========================================================================
   0. ACCESIBILIDAD — Skip link (WCAG AA + Google valora a11y en ranking)
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #00ffa3;
    color: #000;
    padding: 10px 18px;
    z-index: 10000;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0 0 6px 0;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid #000;
    outline-offset: -4px;
}

/* ==========================================================================
   1. DESIGN TOKENS (CSS Variables)
   ========================================================================== */
:root {
    /* Backgrounds */
    --bg-primary: #050810;
    --bg-secondary: #0a0f1d;
    --bg-surface: #0f1829;
    --bg-elevated: #131e33;

    /* Borders */
    --border-color: rgba(0, 255, 170, 0.18);
    --border-strong: rgba(0, 255, 170, 0.38);

    /* Accents */
    --accent-primary: #00ffa3;
    --accent-secondary: #00d4ff;
    --accent-danger: #ff4565;
    --accent-warning: #ffc145;

    /* Text */
    --text-primary: #e8ecf4;
    --text-secondary: #b1bac8;
    --text-muted: #6e7a90;

    /* Typography */
    --font-display: 'Chakra Petch', system-ui, sans-serif;
    --font-body: 'IBM Plex Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Spacing */
    --section-spacing: 110px;
    --section-spacing-sm: 80px;
}

/* ==========================================================================
   2. GLOBAL RESETS
   ========================================================================== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    /* scroll-padding-top compensa el navbar fijo al hacer click en anclas.
       Navbar = 70px. Con 40px el contenido queda a ~40px del borde inferior
       del navbar. */
    scroll-padding-top: 40px;
}

/* Reducir el gap que deja el padding-top de cada sección cuando se llega
   por click en el navbar. Usamos scroll-margin-top negativo para "subir"
   el punto de anclaje y que quede más cerca de la navbar, sin tener que
   modificar el padding interno (que afecta el espacio entre secciones).
   Valor ajustado para que el gap visible quede a ~60px (la mitad del
   original de ~127px). */
section[id] {
    scroll-margin-top: -30px;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Animated grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 170, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 170, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at top left, rgba(0, 255, 170, 0.08), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(0, 212, 255, 0.06), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

main, nav, footer {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.mono {
    font-family: var(--font-mono);
}

.accent-text {
    color: var(--accent-primary);
}

.text-glow {
    text-shadow: 0 0 20px rgba(0, 255, 170, 0.4);
}

/* ==========================================================================
   4. NAVBAR
   ========================================================================== */
.navbar-trusttech {
    background: rgba(5, 8, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 0;
    transition: all 0.3s ease;
}

.navbar-trusttech .navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar-trusttech .navbar-logo {
    height: 40px;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.navbar-trusttech .navbar-brand:hover .navbar-logo {
    opacity: 0.85;
}

.footer-logo {
    height: 44px;
    width: auto;
    display: block;
}

.navbar-trusttech .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.25s ease;
    position: relative;
}

.navbar-trusttech .nav-link:hover,
.navbar-trusttech .nav-link.active,
.navbar-trusttech .nav-item.dropdown .nav-link.show {
    color: var(--accent-primary) !important;
}

.navbar-trusttech .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-trusttech .nav-link:hover::after {
    width: 60%;
}

/* Dropdown toggle caret — minimal, no rotation, no animation */
.navbar-trusttech .dropdown-toggle::after {
    border: none;
    content: '\F285';                    /* bi-chevron-down — thin outlined chevron */
    font-family: 'bootstrap-icons';
    font-size: 0.62rem;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 0.3rem;
    opacity: 0.55;
    transition: opacity 0.12s ease;
}

.navbar-trusttech .dropdown-toggle:hover::after,
.navbar-trusttech .dropdown-toggle.show::after {
    opacity: 0.9;
}

/* Dropdown menu - minimalist */
.dropdown-menu-trust {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.35rem 0;
    margin-top: 0.5rem !important;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.14s ease, transform 0.14s ease;
    pointer-events: none;
    display: block;
}

.dropdown-menu-trust.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu-trust .dropdown-item {
    color: var(--text-secondary);
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 400;
    font-family: var(--font-body);
    background: transparent;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.dropdown-menu-trust .dropdown-item:hover,
.dropdown-menu-trust .dropdown-item:focus,
.dropdown-menu-trust .dropdown-item.active {
    background: rgba(148, 163, 184, 0.08);
    color: var(--text-primary);
}

/* Mobile: dropdown shown as indented inline list */
@media (max-width: 991px) {
    .navbar-trusttech .dropdown-menu-trust {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0.2rem 0 0.2rem 0.8rem;
        margin-top: 0 !important;
        min-width: 0;
    }

    .navbar-trusttech .dropdown-menu-trust .dropdown-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.88rem;
    }

    .navbar-trusttech .dropdown-menu-trust .dropdown-item:hover {
        background: rgba(148, 163, 184, 0.08);
    }

    .navbar-trusttech .dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
    }
}

.navbar-toggler {
    border: 1px solid var(--border-strong);
    padding: 0.35rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300ffa3' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn-primary-trust {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: 1px solid var(--accent-primary);
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: 4px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 255, 170, 0.25);
}

.btn-primary-trust:hover {
    background: transparent;
    color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.5);
    transform: translateY(-2px);
}

/* Floating CTA button (FAB) - fixed bottom-right */
.fab-cta {
    position: fixed;
    bottom: 1.8rem;
    right: 1.8rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.4rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    letter-spacing: 0.03em;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(0, 255, 170, 0.35);
    transition: all 0.25s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fabEntrance 0.5s ease 0.8s forwards;
}

.fab-cta:hover {
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.5),
        0 0 34px rgba(0, 255, 170, 0.55);
}

.fab-cta.fab-hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    animation: none;
}

.fab-cta i {
    font-size: 1.05rem;
}

.fab-cta .pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    border: 2px solid var(--accent-primary);
    animation: fabPulse 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes fabEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fabPulse {
    0%   { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0;   transform: scale(1.25); }
}

@media (max-width: 575px) {
    .fab-cta {
        bottom: 1.2rem;
        right: 1.2rem;
        padding: 0.75rem 1.15rem;
        font-size: 0.82rem;
    }
}

.btn-outline-trust {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: 4px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.btn-outline-trust:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: rgba(0, 255, 170, 0.08);
    border: 1px solid var(--border-strong);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 1.8rem;
}

.hero-tag .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--accent-primary);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

.hero h1 {
    font-size: clamp(1.9rem, 4.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero p.lead-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat .num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.15;
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    font-family: var(--font-mono);
}

/* ==========================================================================
   7. TERMINAL CARD (Hero visual)
   ========================================================================== */
.terminal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 170, 0.08);
    font-family: var(--font-mono);
    position: relative;
}

.terminal-header {
    background: var(--bg-elevated);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    margin-left: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.terminal-body {
    padding: 1.5rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
    min-height: 380px;
}

.terminal-line { display: block; }
.terminal-prompt { color: var(--accent-primary); }
.terminal-cmd { color: var(--text-primary); }
.terminal-ok { color: var(--accent-primary); }
.terminal-warn { color: var(--accent-warning); }
.terminal-err { color: var(--accent-danger); }
.terminal-info { color: var(--accent-secondary); }
.terminal-val {
    color: var(--text-primary);
    font-weight: 500;
    opacity: 0.95;
}

.cursor-blink::after {
    content: '▊';
    color: var(--accent-primary);
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    to { visibility: hidden; }
}

/* ==========================================================================
   8. SECTIONS (Generic)
   ========================================================================== */
.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent-primary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   9. SERVICE CARDS
   ========================================================================== */
.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem 1.8rem;
    height: 100%;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 170, 0.08);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.15), rgba(0, 212, 255, 0.08));
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    color: var(--accent-primary);
    font-size: 1.4rem;
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.65;
    margin: 0;
}

.service-card .service-num {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   10. TOOL TABS
   ========================================================================== */
.tool-tabs-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.nav-pills-trust {
    background: var(--bg-elevated);
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
}

.nav-pills-trust .nav-item {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-pills-trust .nav-link {
    color: var(--text-secondary);
    background: transparent;
    border-radius: 0;
    padding: 1.1rem 1.2rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    width: 100%;
    text-align: center;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-pills-trust .nav-link:hover {
    color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.04);
}

.nav-pills-trust .nav-link.active {
    background: var(--bg-surface);
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.tab-body {
    padding: 2.5rem;
}

/* ==========================================================================
   11. FORM CONTROLS
   ========================================================================== */
.form-control-trust,
.form-select-trust {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control-trust:focus,
.form-select-trust:focus {
    background-color: var(--bg-primary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.15);
    outline: none;
}

.form-control-trust::placeholder {
    color: var(--text-muted);
}

.form-select-trust {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300ffa3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px 14px;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-label-trust {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Range slider */
.form-range-trust {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border-strong);
    border-radius: 3px;
    outline: none;
}

/* Track styling for Firefox — must be defined explicitly */
.form-range-trust::-moz-range-track {
    background: var(--border-strong);
    height: 6px;
    border-radius: 3px;
    border: none;
}
/* WebKit track (Chrome/Safari/Edge) inherits .form-range-trust background when
   appearance:none, but we define it explicitly for clarity */
.form-range-trust::-webkit-slider-runnable-track {
    background: var(--border-strong);
    height: 6px;
    border-radius: 3px;
}

.form-range-trust::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
    margin-top: -7px; /* center on 6px track */
}

.form-range-trust::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Checkboxes */
.form-check-trust .form-check-input {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-strong);
    width: 1.15em;
    height: 1.15em;
    margin-top: 0.15em;
}

.form-check-trust .form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.form-check-trust .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.15);
    border-color: var(--accent-primary);
}

.form-check-trust .form-check-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    margin-left: 0.3rem;
}

/* ==========================================================================
   12. PASSWORD GENERATOR
   ========================================================================== */
.password-output {
    background: var(--bg-primary);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    font-family: var(--font-mono);
    font-size: 1.15rem;
    color: var(--accent-primary);
    word-break: break-all;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.password-output .pwd-text {
    flex: 1;
    overflow-wrap: break-word;
    user-select: all;
}

.btn-copy {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--accent-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: var(--font-mono);
}

.btn-copy:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.strength-meter {
    height: 6px;
    background: var(--border-strong);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-weak { background: var(--accent-danger); }
.strength-medium { background: var(--accent-warning); }
.strength-strong { background: var(--accent-primary); }

/* ==========================================================================
   13. CVSS CALCULATORS
   ========================================================================== */
.cvss-metric-group {
    margin-bottom: 1rem;
}

.cvss-metric-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    display: block;
}

.cvss-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.cvss-options input[type="radio"] {
    display: none;
}

.cvss-options label {
    padding: 0.3rem 0.65rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    user-select: none;
    margin: 0;
    line-height: 1.3;
}

.cvss-options label:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.cvss-options input[type="radio"]:checked + label {
    background: rgba(0, 255, 170, 0.12);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.cvss-score-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 1.8rem;
    text-align: center;
    position: sticky;
    top: 100px;
}

.cvss-score-value {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.8rem 0;
}

.cvss-severity-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.severity-none { background: rgba(110, 122, 144, 0.2); color: var(--text-muted); }
.severity-low { background: rgba(0, 212, 255, 0.15); color: var(--accent-secondary); }
.severity-medium { background: rgba(255, 193, 69, 0.15); color: var(--accent-warning); }
.severity-high { background: rgba(255, 125, 69, 0.15); color: #ff8f45; }
.severity-critical { background: rgba(255, 69, 101, 0.18); color: var(--accent-danger); }

.cvss-vector {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    word-break: break-all;
    margin-top: 1.2rem;
    text-align: left;
}

/* ==========================================================================
   13c. CVSS 4.0 FULL CALCULATOR — Sections & nomenclature
   ========================================================================== */
.cvss4f-section {
    padding: 0.95rem 1.05rem;
    margin-bottom: 1.1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.cvss4f-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--border-color);
}
.cvss4f-section-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--accent-primary);
    text-transform: uppercase;
}
.cvss4f-section-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 0.18rem 0.5rem;
    border-radius: 3px;
    background: rgba(0, 255, 170, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 255, 170, 0.3);
    letter-spacing: 0.05em;
}
.cvss4f-section-tag.cvss4f-tag-muted {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border-color: var(--border-color);
}
.cvss4f-subsection-header {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin: 0.85rem 0 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-color);
}
.cvss4f-nomenclature {
    display: inline-block;
    margin-top: 0.65rem;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid var(--accent-primary);
    letter-spacing: 0.06em;
}
.cvss4f-macrovector {
    font-family: var(--font-mono) !important;
    letter-spacing: 0.08em;
}

/* Light-mode (executive) overrides */
html.theme-executive .cvss4f-section {
    background: var(--bg-primary);
    border-color: var(--border-color);
}
html.theme-executive .cvss4f-section-title {
    color: rgba(15, 23, 42, 0.85);
}
html.theme-executive .cvss4f-section-tag {
    background: rgba(15, 23, 42, 0.05);
    color: rgba(15, 23, 42, 0.75);
    border-color: rgba(15, 23, 42, 0.2);
}
html.theme-executive .cvss4f-section-tag.cvss4f-tag-muted {
    background: rgba(15, 23, 42, 0.03);
    color: rgba(15, 23, 42, 0.5);
}
html.theme-executive .cvss4f-nomenclature {
    color: rgba(15, 23, 42, 0.85);
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.25);
}

/* ==========================================================================
   13b. OWASP RISK RATING CALCULATOR
   ========================================================================== */
.owasp-factor {
    margin-bottom: 0.55rem;
}
.owasp-factor:last-child {
    margin-bottom: 0;
}
.owasp-factor label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.68rem;
    letter-spacing: 0.07em;
}

/* Compactar los <select> dentro de OWASP para que no dominen la vista.
   Reduce padding, font-size y tamaño del chevron respecto al .form-select-trust estándar. */
.owasp-input.form-select-trust {
    padding: 0.45rem 2rem 0.45rem 0.7rem;
    font-size: 0.82rem;
    background-size: 11px 11px;
    background-position: right 0.7rem center;
    line-height: 1.3;
}

/* Compactar también el header del grupo en OWASP para consistencia visual */
#tool-owasp .cvss-metric-group {
    padding: 0.9rem 1rem;
}
#tool-owasp .cvss-group-header {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    text-transform: uppercase;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Separador más fino entre grupo VF del TA (misma columna) */
#tool-owasp .cvss-metric-group.mt-4 {
    margin-top: 0.85rem !important;
}

/* Result grid (3 tarjetas: Likelihood, Impact, Overall) */
.owasp-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.owasp-result-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
    text-align: center;
    position: relative;
}
.owasp-result-card.owasp-result-final {
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.04), transparent);
    border-color: rgba(0, 255, 163, 0.25);
}
.owasp-result-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.owasp-result-value {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}
.owasp-result-card.owasp-result-final .owasp-result-value {
    font-size: 1.4rem;
    padding: 0.45rem 1rem;
    display: inline-block;
    border-radius: 999px;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: background .2s ease, color .2s ease;
}
.owasp-result-level {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    margin-top: 0.35rem;
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}
.owasp-subrow {
    margin-top: 0.8rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.owasp-subrow b {
    color: var(--text-primary);
    margin: 0 0.25rem;
}
.owasp-subrow .sep {
    margin: 0 0.4rem;
    opacity: 0.5;
}
.owasp-result-matrix-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
}

/* Severity coloring — aplicado por JS */
.owasp-result-level.sev-low    { background: rgba(34, 197, 94, 0.15);  color: #4ade80; }
.owasp-result-level.sev-medium { background: rgba(234, 179, 8, 0.15);  color: #facc15; }
.owasp-result-level.sev-high   { background: rgba(239, 68, 68, 0.15);  color: #f87171; }

.owasp-result-final .owasp-result-value.sev-note     { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }
.owasp-result-final .owasp-result-value.sev-low      { background: rgba(34, 197, 94, 0.15);   color: #4ade80; }
.owasp-result-final .owasp-result-value.sev-medium   { background: rgba(234, 179, 8, 0.15);   color: #facc15; }
.owasp-result-final .owasp-result-value.sev-high     { background: rgba(239, 68, 68, 0.15);   color: #f87171; }
.owasp-result-final .owasp-result-value.sev-critical { background: rgba(220, 38, 38, 0.2);    color: #fca5a5; font-weight: 800; }

/* Matriz de referencia */
.owasp-matrix-details {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.2rem;
}
.owasp-matrix-details > summary {
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    list-style: none;
    user-select: none;
}
.owasp-matrix-details > summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
    color: var(--accent-color, #00ffa3);
}
.owasp-matrix-details[open] > summary::before {
    transform: rotate(90deg);
}
.owasp-matrix-wrap {
    overflow-x: auto;
    margin-top: 1rem;
}
.owasp-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}
.owasp-matrix-table th,
.owasp-matrix-table td {
    padding: 0.55rem 0.8rem;
    text-align: center;
    border: 1px solid var(--border-color);
}
.owasp-matrix-table thead th {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.06em;
}
.owasp-matrix-table tbody th {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-align: left;
    font-weight: 600;
}
.owasp-matrix-table td.sev-note     { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }
.owasp-matrix-table td.sev-low      { background: rgba(34, 197, 94, 0.15);   color: #4ade80; }
.owasp-matrix-table td.sev-medium   { background: rgba(234, 179, 8, 0.15);   color: #facc15; }
.owasp-matrix-table td.sev-high     { background: rgba(239, 68, 68, 0.15);   color: #f87171; }
.owasp-matrix-table td.sev-critical { background: rgba(220, 38, 38, 0.25);   color: #fca5a5; font-weight: 700; }

/* Vector string copiable */
.owasp-vector-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.2rem;
}
.owasp-vector-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.owasp-vector-value {
    flex: 1;
    min-width: 0;
    background: var(--bg-tertiary);
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-primary);
    word-break: break-all;
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   14. DOWNLOADS
   ========================================================================== */
.download-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.6rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    height: 100%;
}

.download-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.download-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-info h5 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.download-info .meta {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.download-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.55;
}

.download-link {
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease;
}

.download-link:hover {
    color: var(--accent-primary);
    gap: 0.6rem;
}

/* ==========================================================================
   15. QUOTE FORM
   ========================================================================== */
.quote-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
}

/* Honeypot: invisible to humans but visible to bots */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.service-checkbox-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    transition: all 0.2s ease;
    cursor: pointer;
    height: 100%;
}

.service-checkbox-card:hover {
    border-color: var(--border-strong);
}

.service-checkbox-card.selected {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.04);
}

.quote-summary {
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 1.5rem;
}

.quote-summary .summary-line {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.92rem;
}

.quote-summary .summary-line:last-child {
    border-bottom: none;
}

.quote-summary .summary-total {
    border-top: 1px solid var(--border-strong);
    margin-top: 0.8rem;
    padding-top: 1rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--accent-primary);
}

/* ==========================================================================
   16. CONTACT
   ========================================================================== */
.contact-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    height: 100%;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}

.contact-icon {
    width: 46px;
    height: 46px;
    background: rgba(0, 255, 170, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

.contact-value {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

/* ==========================================================================
   17a. CLIENTS SECTION
   ========================================================================== */
.clients-strip,
.events-strip {
    padding: 70px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.clients-eyebrow {
    text-align: center;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.clients-eyebrow::before,
.clients-eyebrow::after {
    content: '—';
    margin: 0 1rem;
    color: var(--border-strong);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

/* ---------- Marquee (auto-scrolling strip) ---------- */
.clients-marquee,
.events-marquee {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 1.5rem;
    /* En modo oscuro: cinta con fondo blanco para dar contraste a los logos.
       En modo executive (claro) se resetea a transparente más abajo. */
    background: #ffffff;
    border-radius: 14px;
    margin: 0 auto;
    max-width: 1320px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
    /* Mask en bordes: los extremos se difuminan al fondo de la sección */
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
}

.clients-marquee-track,
.events-marquee-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* El track tiene N copias del contenido. El JS setea --marquee-copies
       en el style del elemento según cuántas haya duplicado (default 2).
       La animación mueve -(100% * (copies-1) / copies) = exactamente 1 copia. */
    width: max-content;
    --marquee-copies: 2;
    --marquee-shift: calc(-100% * (var(--marquee-copies) - 1) / var(--marquee-copies));
    animation: marqueeScroll 60s linear infinite;
    will-change: transform;
}

@keyframes marqueeScroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(var(--marquee-shift), 0, 0); }
}

/* Pause marquee on hover so a visitor can read a specific logo */
.clients-marquee:hover .clients-marquee-track,
.events-marquee:hover .events-marquee-track {
    animation-play-state: paused;
}

/* Respect reduced-motion: show logos static, no scroll */
@media (prefers-reduced-motion: reduce) {
    .clients-marquee-track,
    .events-marquee-track {
        animation: none;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.client-cell,
.event-cell {
    background: transparent;
    padding: 0.35rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Tamaño normalizado: todas las celdas ocupan el mismo box independiente
       de las dimensiones originales de cada imagen. */
    width: 140px;
    height: 70px;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.client-cell:hover,
.event-cell:hover {
    background: transparent;
}

.client-cell img,
.event-cell img {
    /* object-fit:contain garantiza que la imagen se ajuste dentro del box
       sin deformarse ni desbordar, independientemente de sus proporciones. */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Logos siempre en color pleno (el fondo blanco de la cinta da contraste). */
    opacity: 1;
    filter: none;
    transition: transform 0.35s ease;
}

.client-cell:hover img,
.event-cell:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   17b. TESTIMONIAL / DIRECTOR SECTION
   ========================================================================== */
.testimonial-section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
}

.testimonial-quote-mark {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: var(--font-display);
    font-size: 8rem;
    line-height: 1;
    color: var(--accent-primary);
    opacity: 0.08;
    font-weight: 700;
    pointer-events: none;
}

.director-photo-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    aspect-ratio: 1 / 1;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px var(--border-color);
}

.director-photo-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(5, 8, 16, 0.5) 100%
    );
    pointer-events: none;
}

.director-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.director-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(5, 8, 16, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    letter-spacing: 0.08em;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.director-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-primary);
    animation: pulse 2s infinite;
}

.testimonial-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.55;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-text::before {
    content: '"';
    color: var(--accent-primary);
    font-size: 2rem;
    margin-right: 0.2rem;
    font-weight: 700;
}

.testimonial-author-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.testimonial-author-role {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-top: 0.3rem;
    letter-spacing: 0.05em;
}

.testimonial-author-bio {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--border-color);
}

.director-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    background: rgba(0, 255, 170, 0.08);
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-primary);
    letter-spacing: 0.05em;
}

@media (max-width: 991px) {
    .testimonial-card {
        padding: 2rem 1.8rem;
    }
    .testimonial-quote-mark {
        font-size: 5rem;
        top: 1rem;
        right: 1rem;
    }
    .testimonial-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 575px) {
    .clients-strip,
    .events-strip { padding: 50px 0; }
    .clients-eyebrow::before,
    .clients-eyebrow::after { display: none; }
    .clients-marquee,
    .events-marquee {
        border-radius: 10px;
        padding: 1rem 0.75rem;
        margin: 0 1rem;
    }
    .client-cell,
    .event-cell {
        padding: 0.3rem;
        width: 100px;
        height: 55px;
    }
    .clients-marquee-track,
    .events-marquee-track { gap: 1rem; animation-duration: 45s; }
    .testimonial-card { padding: 1.5rem; }
    .testimonial-text { font-size: 1rem; }
}

/* ==========================================================================
   17c. PARTNERS SECTION
   ========================================================================== */
.partners-section {
    padding: var(--section-spacing) 0;
    background: var(--bg-secondary);
    position: relative;
}

/* Decoración sutil de fondo: líneas diagonales tenues */
.partners-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 255, 163, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 163, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.partners-section > .container {
    position: relative;
    z-index: 1;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.partner-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.partner-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 28px -8px rgba(0, 255, 163, 0.15);
}

.partner-card:hover::after {
    opacity: 1;
}

.partner-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(0, 255, 163, 0.08);
    border: 1px solid rgba(0, 255, 163, 0.25);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.partner-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.partner-card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

/* CTA final de la sección */
.partners-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg,
        rgba(0, 255, 163, 0.06) 0%,
        rgba(0, 255, 163, 0.02) 50%,
        transparent 100%);
    border: 1px solid rgba(0, 255, 163, 0.18);
    border-radius: 16px;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.partners-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 163, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.partners-cta-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
}

.partners-cta-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.partners-cta-btn {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .partner-card {
        padding: 1.75rem 1.5rem;
    }
    .partners-cta {
        padding: 2.25rem 1.25rem;
    }
    .partners-cta-title {
        font-size: 1.35rem;
    }
}

/* Modo executive (claro) */
html.theme-executive .partners-section {
    background: var(--bg-secondary);
}
html.theme-executive .partner-card {
    background: #ffffff;
    box-shadow: 0 2px 4px -1px rgba(15, 23, 42, 0.04);
}
html.theme-executive .partner-card:hover {
    box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 23, 42, 0.18);
}
html.theme-executive .partner-card::after {
    /* Barra superior del hover: neutra en modo claro (gris slate),
       no verde corporativo — eso resultaba exagerado. */
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.5), transparent);
}
html.theme-executive .partner-icon {
    /* Ícono: gris slate sutil en lugar del verde verdoso */
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.1);
    color: rgba(15, 23, 42, 0.7);
}

/* CTA en modo claro: fondo neutro apenas perceptible, ancho acotado para
   que no se extienda todo el container (se veía desproporcionado). */
html.theme-executive .partners-cta {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
html.theme-executive .partners-cta::before {
    /* Quitar el halo verdoso del radial en modo claro */
    background: none;
}

/* ==========================================================================
   17. FOOTER
   ========================================================================== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

footer h6 {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.35rem;
}

footer ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}

footer ul li a:hover {
    color: var(--accent-primary);
}

/* Grid de 3 columnas para la lista de servicios en el footer (15 items = 3×5).
   Ancho fijo por columna: los textos cortos caben en 1 línea y los largos
   ("Análisis de Vulnerabilidades", "Equipo de Respuesta a Incidentes") hacen
   wrap a 2 líneas — esto permite que las columnas queden más compactas. */
footer ul.footer-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 140px);
    column-gap: 1.2rem;
    row-gap: 0.3rem;
    margin: 0;
    justify-content: start;
}
footer ul.footer-services-grid li {
    margin-bottom: 0.25rem;
}
footer ul.footer-services-grid li a {
    font-size: 0.82rem;
    line-height: 1.3;
    display: inline-block;
}
@media (max-width: 767.98px) {
    footer ul.footer-services-grid {
        grid-template-columns: repeat(2, 140px);
    }
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding-top: 1.8rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

/* ==========================================================================
   18. TOASTS & NOTIFICATIONS
   ========================================================================== */
.trust-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-elevated);
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    padding: 1rem 1.4rem;
    color: var(--text-primary);
    font-size: 0.92rem;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 170, 0.2);
    transform: translateX(calc(100% + 60px));
    transition: transform 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: calc(100vw - 60px);
    pointer-events: none;
}

.trust-toast.show {
    transform: translateX(0);
    pointer-events: auto;
}

.trust-toast i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

/* ==========================================================================
   19. UTILITIES
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   20. SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* ==========================================================================
   21. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet landscape & below */
@media (max-width: 1199px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 100%;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* Desktop — moderate widening vs Bootstrap defaults.
   Bootstrap: lg=960, xl=1140, xxl=1320. Ours slightly wider
   at each step so there's less wasted margin without being excessive. */
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1320px;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1440px;
    }
}
@media (min-width: 1700px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1560px;
    }
}

/* Tablet portrait & below */
@media (max-width: 991px) {
    :root {
        --section-spacing: 80px;
        --section-spacing-sm: 60px;
    }

    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-stats { gap: 1.5rem; }
    .hero .terminal-card { margin-top: 2.5rem; }
    .tab-body { padding: 1.5rem; }
    .quote-card { padding: 1.8rem; }
    .navbar-trusttech .nav-link::after { display: none; }
    .navbar-trusttech .navbar-logo { height: 34px; }

    .testimonial-card { padding: 2rem 1.8rem; }
    .testimonial-quote-mark { font-size: 5rem; top: 1rem; right: 1rem; }
    .testimonial-text { font-size: 1.1rem; }

    .cvss-score-card { position: relative; top: 0; margin-top: 1.5rem; }
    .quote-summary { position: relative !important; top: 0 !important; margin-top: 1.5rem; }

    .navbar-collapse {
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
        margin-top: 0.8rem;
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Mobile landscape & below */
@media (max-width: 767px) {
    :root {
        --section-spacing: 70px;
    }

    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .hero-tag { font-size: 0.72rem; padding: 0.4rem 0.8rem; }
    .hero p.lead-text { font-size: 1rem; }
    .hero-stats {
        gap: 1.2rem;
        padding-top: 2rem;
        margin-top: 2.5rem;
    }
    .hero-stat .num { font-size: 1.3rem; }
    .hero-stat .label { font-size: 0.72rem; }

    .service-card { padding: 1.6rem 1.4rem; }
    .service-icon { width: 44px; height: 44px; font-size: 1.2rem; }

    .terminal-body {
        padding: 1rem;
        font-size: 0.78rem;
        min-height: 280px;
    }

    .tool-tabs-wrapper .nav-pills-trust {
        flex-wrap: wrap;
    }

    .section-label {
        font-size: 0.78rem;
    }

    .quote-card { padding: 1.4rem 1.2rem; }
    .service-checkbox-card { padding: 0.9rem 1rem; }
}

/* Small mobile */
@media (max-width: 575px) {
    :root {
        --section-spacing: 55px;
    }

    body::before {
        background-size: 40px 40px;
    }

    .hero h1 { font-size: 1.85rem; line-height: 1.1; }
    .hero p.lead-text { font-size: 0.95rem; }
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.95rem; }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem 2rem;
    }
    .hero-stat { flex: 1 1 auto; min-width: 120px; }

    .tab-body { padding: 1rem; }
    .terminal-body {
        padding: 0.8rem;
        font-size: 0.72rem;
        min-height: 260px;
    }
    .cvss-score-value { font-size: 2.8rem; }
    .nav-pills-trust .nav-link {
        font-size: 0.8rem;
        padding: 0.75rem 0.5rem;
    }
    .cvss-options label {
        font-size: 0.72rem;
        padding: 0.28rem 0.55rem;
    }

    .trust-toast {
        right: 15px;
        left: 15px;
        bottom: 15px;
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
        max-width: none;
    }

    .clients-strip,
    .events-strip { padding: 40px 0; }
    .clients-eyebrow::before,
    .clients-eyebrow::after { display: none; }
    .client-cell,
    .event-cell {
        padding: 0.35rem;
        width: 120px;
        height: 62px;
    }

    .clients-marquee-track,
    .events-marquee-track {
        gap: 1.25rem;
        animation-duration: 52s;
    }

    .testimonial-card { padding: 1.4rem 1.2rem; }
    .testimonial-text { font-size: 0.95rem; }
    .testimonial-author-name { font-size: 1.15rem; }

    .download-card { padding: 1.2rem; gap: 0.9rem; }
    .download-icon { width: 42px; height: 42px; font-size: 1.2rem; }

    .contact-card { padding: 1.2rem; }
    .contact-value { font-size: 0.9rem; }

    footer { padding: 45px 0 25px; }
    .footer-bottom { font-size: 0.78rem; }

    .fab-cta .pulse-ring { display: none; }
}

/* Very small screens */
@media (max-width: 374px) {
    .hero h1 { font-size: 1.6rem; }
    .section-title { font-size: 1.35rem; }
    .fab-cta span { display: none; }
    .fab-cta { padding: 0.7rem; }
    .fab-cta i { font-size: 1.2rem; }
}

/* ==========================================================================
   22. LANGUAGE SWITCHER
   ========================================================================== */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    border-left: 1px solid var(--border-color);
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 26px;
    padding: 0 0.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    opacity: 0.55;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.lang-flag:hover {
    opacity: 0.95;
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.35);
}

.lang-flag-active {
    opacity: 1;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.08);
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.15);
}

/* Mobile: show switcher inside the collapsed menu, at the bottom */
@media (max-width: 991px) {
    .lang-switcher {
        width: 100%;
        justify-content: center;
        border-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 0.8rem;
        margin-top: 0.6rem;
        margin-left: 0;
    }
}

/* ============================================================
   22. THEME SWITCHER (navbar pill, next to ES/EN)
   ============================================================ */

.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-left: 0.8rem;
    margin-left: 0.4rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    height: 30px;
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 26px;
    padding: 0;
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    opacity: 0.55;
    transition: all 0.2s ease;
}
.theme-btn i {
    font-size: 0.88rem;
    line-height: 1;
}
.theme-btn:hover {
    opacity: 0.95;
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.35);
}
.theme-btn-active {
    opacity: 1;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.08);
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.15);
}

/* Mobile: stack theme switcher inline with lang under collapsed menu */
@media (max-width: 991px) {
    .theme-switcher {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* ============================================================
   23. EXECUTIVE THEME OVERRIDES
   Activated by adding `theme-executive` class to <html>.
   Only styles/colors change — HTML content stays identical.
   ============================================================ */

html.theme-executive {
    /* --- Color variables: light corporate palette --- */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-surface: #ffffff;
    --bg-elevated: #ffffff;

    --border-color: #e2e8f0;
    --border-strong: #cbd5e1;

    --accent-primary: #1e3a8a;       /* Navy blue (was neon green) */
    --accent-secondary: #0f766e;     /* Deep teal (was cyan) */
    --accent-danger: #b91c1c;        /* Corporate red */
    --accent-warning: #b45309;       /* Corporate amber */

    --text-primary: #0f172a;         /* Very dark slate */
    --text-secondary: #475569;       /* Slate (contrast ~7:1 on white — AAA) */
    --text-muted: #64748b;           /* Slate-500 (contrast ~4.6:1 on white — passes WCAG AA) */
}

/* Override Bootstrap's built-in .text-muted so it matches the new variable value */
html.theme-executive .text-muted {
    color: #64748b !important;
}

html.theme-executive body {
    background: var(--bg-primary);
}

/* Remove circuit pattern background in executive mode */
html.theme-executive body::before,
html.theme-executive .hero::before {
    opacity: 0 !important;
    background-image: none !important;
}

/* Navbar: swap glass-on-dark for glass-on-light */
html.theme-executive .navbar-trusttech {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
html.theme-executive .navbar-trusttech .navbar-brand img {
    filter: none;
}
html.theme-executive .navbar-toggler {
    border-color: var(--border-strong);
}
html.theme-executive .navbar-toggler-icon {
    filter: invert(0.2);
}
html.theme-executive .dropdown-menu {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
}
html.theme-executive .dropdown-item {
    color: var(--text-secondary);
}
html.theme-executive .dropdown-item:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-primary);
}

/* ES/EN switcher: adjust contrast for light bg */
html.theme-executive .lang-switcher {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px;
}
html.theme-executive .lang-flag {
    border: none;
    color: var(--text-muted);
}
html.theme-executive .lang-flag:hover {
    color: var(--text-primary);
}
html.theme-executive .lang-flag-active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: none;
}

/* Theme switcher button (active) */
html.theme-executive .theme-switcher {
    border-left-color: var(--border-color);
}
html.theme-executive .theme-btn {
    border-color: var(--border-color);
    color: var(--text-muted);
}
html.theme-executive .theme-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
}
html.theme-executive .theme-btn-active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: none;
}

/* Hero */
html.theme-executive .hero {
    background:
        linear-gradient(180deg, #ffffff 0%, var(--bg-secondary) 100%) !important;
}
html.theme-executive .hero-tag {
    background: #eff6ff;
    border: 1px solid rgba(30, 58, 138, 0.15);
    color: var(--accent-primary);
}
html.theme-executive .hero-tag .pulse-dot {
    background: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}
html.theme-executive .hero-stats .num {
    color: var(--accent-primary);
    text-shadow: none;
}

/* Terminal hero — stays dark but softens the neon glow and
   uses a more refined palette (looks like a pro monitoring console) */
html.theme-executive .terminal-card {
    background: #0f172a !important;
    border: 1px solid #1e293b;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.25);
}
html.theme-executive .terminal-header {
    background: #1e293b;
    border-bottom: 1px solid #334155;
}
html.theme-executive .terminal-title {
    color: #94a3b8;
}
html.theme-executive .terminal-body .terminal-prompt { color: #60a5fa; }
html.theme-executive .terminal-body .terminal-cmd    { color: #e2e8f0; }
html.theme-executive .terminal-body .terminal-info   { color: #60a5fa; }
html.theme-executive .terminal-body .terminal-ok     { color: #34d399; }
html.theme-executive .terminal-body .terminal-warn   { color: #fbbf24; }
html.theme-executive .terminal-body .terminal-err    { color: #f87171; }
html.theme-executive .terminal-body .terminal-val    { color: #e2e8f0; }
html.theme-executive .terminal-body { color: #cbd5e1; }
/* Cursor del terminal en modo executive: forzar color brillante porque el
   terminal mantiene fondo oscuro pero --accent-primary del modo claro es más opaco */
html.theme-executive .terminal-body .cursor-blink::after,
html.theme-executive .terminal-card .cursor-blink::after {
    color: #00ffa3;
    text-shadow: 0 0 6px rgba(0, 255, 163, 0.55);
}

/* Section labels and headings */
html.theme-executive .section-label {
    color: var(--accent-primary);
}
html.theme-executive .section-title {
    color: var(--text-primary);
}
html.theme-executive .section-subtitle {
    color: var(--text-secondary);
}

/* Alternating section backgrounds */
html.theme-executive .section {
    background: var(--bg-primary);
}
html.theme-executive .section[style*="background: var(--bg-secondary)"] {
    background: var(--bg-secondary) !important;
}

/* Service cards */
html.theme-executive .service-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
html.theme-executive .service-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}
html.theme-executive .service-card .service-num {
    color: var(--text-muted);
}
html.theme-executive .service-card .service-icon {
    background: #eff6ff;
    color: var(--accent-primary);
    box-shadow: none;
}
html.theme-executive .service-card h4 {
    color: var(--text-primary);
}
html.theme-executive .service-card p {
    color: var(--text-secondary);
}

/* Clients strip + Events strip — idéntico tratamiento en modo executive */
html.theme-executive .clients-strip,
html.theme-executive .events-strip {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
html.theme-executive .clients-eyebrow {
    color: var(--text-muted);
}
/* En modo claro no necesitamos la cinta con fondo blanco destacado,
   porque todo el sitio ya es claro. Volvemos al look minimal. */
html.theme-executive .clients-marquee,
html.theme-executive .events-marquee {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 1.25rem 0;
}

/* Testimonial / About */
html.theme-executive .testimonial-section {
    background: var(--bg-secondary);
}
html.theme-executive .testimonial-card,
html.theme-executive .cyber-card,
html.theme-executive .director-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
}
html.theme-executive .testimonial-quote,
html.theme-executive .testimonial-text {
    color: var(--text-primary);
}
html.theme-executive .testimonial-author-name,
html.theme-executive .testimonial-name {
    color: var(--text-primary);
}
html.theme-executive .testimonial-author-role,
html.theme-executive .testimonial-role {
    color: var(--text-muted);
}

/* Tools / Tabs */
html.theme-executive .nav-pills-trust {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}
html.theme-executive .nav-pills-trust .nav-link {
    color: var(--text-secondary);
}
html.theme-executive .nav-pills-trust .nav-link:hover {
    color: var(--accent-primary);
    background: rgba(30, 58, 138, 0.05);
}
html.theme-executive .nav-pills-trust .nav-link.active {
    background: #ffffff;
    color: var(--accent-primary);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

html.theme-executive .tab-body {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

html.theme-executive .password-output {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}
html.theme-executive .pwd-text {
    color: var(--text-primary);
}
html.theme-executive .btn-copy {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
}
html.theme-executive .btn-copy:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
}

html.theme-executive .strength-meter {
    /* --border-strong in executive is #cbd5e1, already visible on white */
    border: none;
}

/* Slider track fill / thumb color in exec */
html.theme-executive .form-range-trust::-webkit-slider-thumb {
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
}

/* CVSS */
html.theme-executive .cvss-metric-group {
    border-bottom: 1px solid var(--border-color);
}
html.theme-executive .cvss-metric-label {
    color: var(--text-muted);
}
html.theme-executive .cvss-options label {
    background: #ffffff;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
}
html.theme-executive .cvss-options label:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
html.theme-executive .cvss-options input[type="radio"]:checked + label {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: none;
}

html.theme-executive .cvss-score-card {
    background: linear-gradient(180deg, #eff6ff 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: none;
}
html.theme-executive .cvss-score-value {
    color: var(--accent-primary);
    text-shadow: none;
}

/* CVSS severity badges — corporate pastel versions */
html.theme-executive .cvss-severity-badge.severity-none     { background: #f1f5f9; color: #64748b; }
html.theme-executive .cvss-severity-badge.severity-low      { background: #dcfce7; color: #166534; }
html.theme-executive .cvss-severity-badge.severity-medium   { background: #fef3c7; color: #92400e; }
html.theme-executive .cvss-severity-badge.severity-high     { background: #fed7aa; color: #9a3412; }
html.theme-executive .cvss-severity-badge.severity-critical { background: #fecaca; color: #991b1b; }

html.theme-executive .cvss-vector {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* OWASP Risk Rating — overrides para modo claro (executive) */
html.theme-executive .owasp-result-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px -1px rgba(15, 23, 42, 0.04);
}
html.theme-executive .owasp-result-card.owasp-result-final {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border-color: rgba(11, 135, 102, 0.25);
}
html.theme-executive .owasp-result-level,
html.theme-executive .owasp-result-final .owasp-result-value {
    background: #f1f5f9;
    color: #64748b;
}
html.theme-executive .owasp-result-level.sev-low    { background: #dcfce7; color: #166534; }
html.theme-executive .owasp-result-level.sev-medium { background: #fef3c7; color: #92400e; }
html.theme-executive .owasp-result-level.sev-high   { background: #fee2e2; color: #991b1b; }

html.theme-executive .owasp-result-final .owasp-result-value.sev-note     { background: #f1f5f9; color: #64748b; }
html.theme-executive .owasp-result-final .owasp-result-value.sev-low      { background: #dcfce7; color: #166534; }
html.theme-executive .owasp-result-final .owasp-result-value.sev-medium   { background: #fef3c7; color: #92400e; }
html.theme-executive .owasp-result-final .owasp-result-value.sev-high     { background: #fed7aa; color: #9a3412; }
html.theme-executive .owasp-result-final .owasp-result-value.sev-critical { background: #fecaca; color: #991b1b; font-weight: 800; }

html.theme-executive .owasp-matrix-details {
    background: #ffffff;
    border: 1px solid var(--border-color);
}
html.theme-executive .owasp-matrix-table thead th,
html.theme-executive .owasp-matrix-table tbody th {
    background: #f8fafc;
    color: #475569;
}
html.theme-executive .owasp-matrix-table td.sev-note     { background: #f1f5f9; color: #64748b; }
html.theme-executive .owasp-matrix-table td.sev-low      { background: #dcfce7; color: #166534; }
html.theme-executive .owasp-matrix-table td.sev-medium   { background: #fef3c7; color: #92400e; }
html.theme-executive .owasp-matrix-table td.sev-high     { background: #fed7aa; color: #9a3412; }
html.theme-executive .owasp-matrix-table td.sev-critical { background: #fecaca; color: #991b1b; font-weight: 700; }

html.theme-executive .owasp-vector-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
}
html.theme-executive .owasp-vector-value {
    background: #f8fafc;
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Form controls */
html.theme-executive .form-control-trust,
html.theme-executive .form-control {
    background: #ffffff;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
}
html.theme-executive .form-select-trust,
html.theme-executive .form-select {
    /* Use background-color (not shorthand) so the chevron image survives */
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231e3a8a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
}
html.theme-executive .form-control-trust:focus,
html.theme-executive .form-select-trust:focus,
html.theme-executive .form-control:focus,
html.theme-executive .form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}
html.theme-executive .form-label-trust {
    color: var(--text-muted);
}
html.theme-executive .form-check-input {
    background-color: #ffffff;
    border: 1px solid var(--border-strong);
}
html.theme-executive .form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}
html.theme-executive .form-check-label {
    color: var(--text-secondary);
}
html.theme-executive .form-range-trust,
html.theme-executive .form-range {
    accent-color: var(--accent-primary);
}

/* Downloads */
html.theme-executive .download-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
html.theme-executive .download-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06);
}
html.theme-executive .download-icon {
    background: #eff6ff;
    color: var(--accent-primary);
}
html.theme-executive .download-info h5 {
    color: var(--text-primary);
}
html.theme-executive .download-info .meta {
    color: var(--text-muted);
}
html.theme-executive .download-info p {
    color: var(--text-secondary);
}
html.theme-executive .download-link {
    color: var(--accent-primary);
}
html.theme-executive .download-link:hover {
    color: var(--accent-secondary);
}

/* Quote form */
html.theme-executive .quote-card,
html.theme-executive .quote-summary {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
html.theme-executive .service-checkbox-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
}
html.theme-executive .service-checkbox-card:hover {
    border-color: var(--accent-primary);
    background: #eff6ff;
}
html.theme-executive .service-checkbox-card.selected {
    border-color: var(--accent-primary);
    background: #eff6ff;
    box-shadow: 0 0 0 1px var(--accent-primary);
}
html.theme-executive .summary-line {
    border-bottom-color: var(--border-color);
}
html.theme-executive .summary-total {
    border-top: 2px solid var(--accent-primary) !important;
    color: var(--text-primary);
}

/* Contact */
html.theme-executive .contact-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
html.theme-executive .contact-card:hover {
    border-color: var(--accent-primary);
}
html.theme-executive .contact-icon {
    background: #eff6ff;
    color: var(--accent-primary);
}
html.theme-executive .contact-label {
    color: var(--text-muted);
}
html.theme-executive .contact-value {
    color: var(--text-primary);
}

/* Buttons */
html.theme-executive .btn-primary-trust {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
html.theme-executive .btn-primary-trust:hover {
    background: #172554;
    border-color: #172554;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}
html.theme-executive .btn-outline-trust {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}
html.theme-executive .btn-outline-trust:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Accent text utility classes */
html.theme-executive .accent-text {
    color: var(--accent-primary);
    text-shadow: none;
}
html.theme-executive .mono.accent-text {
    color: var(--accent-primary);
}

/* FAB (Floating Action Button) */
html.theme-executive .fab-cta {
    background: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.35);
}
html.theme-executive .fab-cta:hover {
    background: #172554;
    color: #ffffff;
    box-shadow: 0 20px 40px -10px rgba(30, 58, 138, 0.45);
}
html.theme-executive .fab-cta .pulse-ring {
    background: rgba(30, 58, 138, 0.3);
}

/* Toast */
html.theme-executive .trust-toast {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
    border-left: 3px solid var(--accent-secondary);
}
html.theme-executive .trust-toast i {
    color: var(--accent-secondary);
}
html.theme-executive .trust-toast.error {
    border-left-color: var(--accent-danger);
}
html.theme-executive .trust-toast.error i {
    color: var(--accent-danger);
}

/* Footer stays dark — it creates a nice contrast anchor
   even on a light site. Just slightly adjust accent color */
html.theme-executive footer {
    background: #0f172a;
    color: #cbd5e1;
    border-top: 1px solid #1e293b;
}
html.theme-executive footer h6 { color: #ffffff; }
html.theme-executive footer ul li a { color: #94a3b8; }
html.theme-executive footer ul li a:hover { color: #ffffff; }
html.theme-executive footer p,
html.theme-executive footer .text-secondary { color: #94a3b8 !important; }
html.theme-executive .footer-bottom {
    border-top: 1px solid #1e293b;
    color: #64748b;
}
html.theme-executive .credential-badge {
    background: #f1f5f9;
    color: #1e3a8a;
    border: 1px solid #cbd5e1;
    font-weight: 600;
}
html.theme-executive .credential-badge i {
    color: var(--accent-primary);
}

/* Director badge over the photo — keep dark background (photo is dark),
   but switch text color so it remains readable in executive theme. */
html.theme-executive .director-badge {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    backdrop-filter: blur(8px);
}
html.theme-executive .director-badge .pulse-dot {
    background: #22d3ee;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}

/* Remove cyber-grid / circuit patterns and neon glows everywhere */
html.theme-executive [class*="glow"],
html.theme-executive .cyber-card {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

/* Smooth transition between themes */
html, body,
.navbar-trusttech, .hero,
.service-card, .testimonial-card, .cyber-card,
.tab-body, .cvss-score-card, .download-card,
.quote-card, .quote-summary, .contact-card,
.form-control, .form-select, .form-control-trust, .form-select-trust,
.btn-primary-trust, .btn-outline-trust, .fab-cta, .trust-toast,
.lang-flag, .theme-btn {
    transition: background-color 0.25s ease, color 0.25s ease,
                border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ============================================================
   24. SPLASH · Identity + security scan
   5-second intro: terminal (left) + fingerprint scan (right).
   Always dark regardless of site theme.
   ============================================================ */

body.splash-active { overflow: hidden; }

.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #030712;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
    color: #cbd5e1;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.5s ease;
}
.splash-overlay.splash-out { opacity: 0; pointer-events: none; }

/* Grid + radial glow backdrop */
.splash-overlay::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 170, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 170, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.6;
}
.splash-overlay::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 50% 30%, rgba(0, 255, 170, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.splash-skip {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.6);
    font-family: inherit;
    font-size: 0.72rem;
    padding: 0.45rem 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}
.splash-skip:hover {
    border-color: #00ffa3;
    color: #00ffa3;
    background: rgba(0, 255, 170, 0.05);
}

.splash-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    animation: splashIn 0.5s ease-out;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@keyframes splashIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Brand header */
.splash-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.splash-brand-label {
    font-family: 'Chakra Petch', 'Segoe UI', sans-serif;
    font-size: clamp(1.4rem, 3.2vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-shadow: 0 0 18px rgba(0, 255, 170, 0.35);
}
.splash-brand-label::first-letter,
.splash-brand-label {
    /* Brand uses full word styling above; accent the "Cybersecurity" portion */
}
.splash-brand-sub {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    color: #00ffa3;
    font-weight: 500;
    text-transform: uppercase;
}

/* Two-panel stage */
.splash-stage {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

/* Single-stage mode: only terminal, centered, full width */
.splash-stage.splash-stage-single {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
}
.splash-stage.splash-stage-single .splash-terminal {
    min-height: 440px;
}

/* ---------- LEFT: terminal ---------- */
.splash-terminal {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(0, 255, 170, 0.28);
    border-radius: 8px;
    box-shadow:
        0 20px 60px -10px rgba(0, 0, 0, 0.7),
        0 0 25px -5px rgba(0, 255, 170, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

.splash-term-chrome {
    height: 26px;
    background: rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    flex-shrink: 0;
}
.splash-term-chrome::before,
.splash-term-chrome::after,
.splash-term-chrome span {
    content: '';
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 10px; height: 10px; border-radius: 50%;
}
.splash-term-chrome::before { left: 12px; background: #ff5f56; }
.splash-term-chrome::after  { left: 28px; background: #ffbd2e; }
.splash-term-chrome span    { left: 44px; background: #27c93f; display: block; }

.splash-term-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.splash-term-title i { color: #00ffa3; font-size: 0.95rem; }

.splash-term-body {
    padding: 0.85rem 1rem;
    flex: 1;
    overflow-y: auto;
    font-size: 0.78rem;
    line-height: 1.5;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.splash-term-body::-webkit-scrollbar { width: 5px; }
.splash-term-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }

.splash-term-line {
    opacity: 0;
    animation: termLineIn 0.25s ease-out forwards;
    word-break: break-word;
    white-space: pre-wrap;
    padding: 1px 0;
}
@keyframes termLineIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}
.splash-term-line.scan-cmd    { color: #e2e8f0; }
.splash-term-line.scan-info   { color: #7dd3fc; }
.splash-term-line.scan-ok     { color: #6ee7b7; }
.splash-term-line.scan-done   { color: #00ffa3; font-weight: 600; margin-top: 0.3rem; }

.splash-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    flex-shrink: 0;
}
.splash-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00d4ff 0%, #00ffa3 100%);
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.55);
    transition: width 0.3s ease;
}

/* ---------- RIGHT: identity / fingerprint ---------- */
.splash-identity {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 8px;
    box-shadow:
        0 20px 60px -10px rgba(0, 0, 0, 0.7),
        0 0 25px -5px rgba(0, 212, 255, 0.18);
    padding: 1.25rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    min-height: 340px;
}

.splash-id-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}
.splash-id-title i { color: #00d4ff; font-size: 1rem; }

.splash-fingerprint-wrap {
    position: relative;
    width: 180px;
    height: 215px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.splash-fingerprint {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 12px rgba(0, 255, 100, 0.4));
}

/* Corner viewfinder brackets — always visible, green neon */
.fp-brackets-base {
    stroke: #00ff80;
    fill: none;
    filter: drop-shadow(0 0 4px rgba(0, 255, 100, 0.7));
    opacity: 0.9;
}

/* Dim base fingerprint — barely visible green glow */
.fp-lines.fp-base {
    color: rgba(0, 255, 100, 0.25);
    stroke: rgba(0, 255, 100, 0.25);
    fill: rgba(0, 255, 100, 0.25);
}

/* Highlighted scan reveal (clipped) — bright green with glow */
.fp-lines.fp-scan {
    color: #00ff80;
    stroke: #00ff80;
    fill: #00ff80;
    filter: drop-shadow(0 0 3px rgba(0, 255, 100, 0.9));
}

/* Scanning line — brighter green, stronger glow */
.fp-scan-line {
    stroke: #00ffa3;
    filter: drop-shadow(0 0 12px rgba(0, 255, 170, 1));
    opacity: 1;
}

/* Once verified: all fingerprint ridges fully bright green */
.splash-fingerprint-wrap.verified .fp-lines.fp-scan,
.splash-fingerprint-wrap.verified .fp-lines.fp-base {
    color: #00ff80;
    stroke: #00ff80;
    fill: #00ff80;
    filter: drop-shadow(0 0 4px rgba(0, 255, 100, 0.8));
    transition: color 0.4s ease, stroke 0.4s ease, fill 0.4s ease, filter 0.4s ease;
}

/* Simple check icon (no patch/cloud) — just a green tick on top */
.splash-id-check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    color: #00ffa3;
}
.splash-id-check svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 18px rgba(0, 255, 170, 0.9))
            drop-shadow(0 0 6px rgba(0, 255, 170, 1));
}
.splash-id-check.show {
    opacity: 1;
    transform: scale(1);
}

.splash-id-status {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.03em;
    text-align: center;
    min-height: 1.4em;
    transition: color 0.3s ease;
}
.splash-id-status.verified {
    color: #00ffa3;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ---------- Confirmation + CTA ---------- */
.splash-confirm {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    opacity: 0;
}
.splash-confirm.show {
    display: flex;
    animation: confirmIn 0.5s ease-out forwards;
}
@keyframes confirmIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.splash-confirm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem;
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid rgba(0, 255, 170, 0.5);
    border-radius: 999px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: #00ffa3;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.4);
}
.splash-confirm-badge i { font-size: 1rem; }

.splash-continue {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #00ffa3;
    color: #030712;
    border: none;
    font-family: 'Chakra Petch', 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 1.75rem;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.04em;
    box-shadow: 0 0 22px rgba(0, 255, 170, 0.4);
    transition: all 0.2s ease;
}
.splash-continue:hover {
    background: #00d489;
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.6);
}
.splash-continue:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* prefers-reduced-motion: auto-skip */
@media (prefers-reduced-motion: reduce) {
    .splash-overlay { display: none !important; }
}

/* Responsive */
@media (max-width: 767.98px) {
    .splash-stage {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .splash-terminal { min-height: 220px; }
    .splash-identity { min-height: 240px; padding: 1rem 0.85rem 0.9rem; }
    .splash-fingerprint-wrap { width: 135px; height: 165px; }
    .splash-id-check svg { width: 60px; height: 60px; }
}
@media (max-width: 575px) {
    .splash-overlay { padding: 1rem; }
    .splash-skip { top: 0.85rem; right: 0.85rem; font-size: 0.66rem; padding: 0.32rem 0.65rem; }
    .splash-brand-label { font-size: 1.1rem; letter-spacing: 0.06em; }
    .splash-brand-sub { font-size: 0.7rem; letter-spacing: 0.1em; }
    .splash-term-body { font-size: 0.72rem; padding: 0.7rem 0.85rem; }
    .splash-term-title, .splash-id-title { font-size: 0.62rem; }
    .splash-continue { font-size: 0.88rem; padding: 0.7rem 1.3rem; }
    .splash-confirm-badge { font-size: 0.72rem; padding: 0.4rem 0.85rem; }
}
@media (max-height: 640px) {
    .splash-terminal { min-height: 260px; }
    .splash-identity { min-height: 260px; }
}

/* ============================================================
   25. CVSS LAYOUT: selectors (col-lg-5) left
        score card (narrow, right-aligned) + report card
        (full width, flex-grow) stacked in right column (col-lg-7)
   ============================================================ */

/* Wrap the score card so it can be right-aligned and narrower
   than the report card below it (matching the screenshot layout) */
.cvss-score-wrap {
    width: 100%;
}

@media (min-width: 992px) {
    .cvss-score-wrap {
        width: 55%;
        margin-left: auto;  /* right-align */
    }
}

/* ============================================================
   26. CVSS REPORT CARD — portrait layout in right column
   ============================================================ */

.cvss-report-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
}

.cvss-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.cvss-report-title-row {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    min-width: 0;
}
.cvss-report-title-row i { font-size: 1rem; color: var(--accent-primary); flex-shrink: 0; }
.cvss-report-scissors {
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0;
}

.cvss-report-copy-btn {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.cvss-report-copy-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}
.cvss-report-copy-btn.copied {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: var(--bg-primary);
}

.cvss-report-body {
    padding: 1rem 1.25rem 1.15rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* Meta row (Versión / Fecha) — directly below the header */
.cvss-report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.9rem;
}
.cvss-report-meta strong {
    color: var(--text-primary);
    font-weight: 600;
}

.cvss-report-section {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 0 0.55rem;
}

/* Metrics: 8-column grid para 2 métricas por línea
   Cada métrica: code(auto) name(1fr) value-code(auto) value-name(1fr)
   Orden nuevo: "AV  Vector de ataque   N  Internet" */
.cvss-report-metrics {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 0.55rem;
    row-gap: 0.5rem;
    align-items: baseline;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}
.cvss-report-metric { display: contents; }

/* Separador vertical sutil entre las dos métricas del par:
   aplica a la PRIMERA celda (metric-code) de la métrica PAR */
.cvss-report-metric:nth-child(even) .metric-code {
    margin-left: 0.6rem;
    padding-left: 0.9rem;
    border-left: 1px solid var(--border-color);
}

.cvss-report-metric .metric-name {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.35;
    min-width: 0;
    overflow-wrap: break-word;
}
.cvss-report-metric .metric-code,
.cvss-report-metric .value-code {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.08rem 0.4rem;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    letter-spacing: 0.02em;
    min-width: 1.65rem;
    text-align: center;
    line-height: 1.5;
    justify-self: start;
}
.cvss-report-metric .metric-code {
    color: var(--text-secondary);
}
.cvss-report-metric .value-name {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.35;
    padding-left: 0.5rem;
    min-width: 0;
}
.cvss-report-metric .value-code {
    color: var(--accent-primary);
}

/* ===== Colores de severidad SEMÁNTICA para value-code =====
   La severidad se calcula en JS según la métrica + valor (no por letra literal).
   Clases: sev-code-none (verde) → sev-code-critical (rojo vivo) */
.cvss-report-metric .value-code.sev-code-none {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.45);
    color: rgb(5, 150, 105);
}
.cvss-report-metric .value-code.sev-code-low {
    background: rgba(234, 179, 8, 0.14);
    border-color: rgba(234, 179, 8, 0.5);
    color: rgb(161, 98, 7);
}
.cvss-report-metric .value-code.sev-code-medium {
    background: rgba(249, 115, 22, 0.14);
    border-color: rgba(249, 115, 22, 0.5);
    color: rgb(194, 65, 12);
}
.cvss-report-metric .value-code.sev-code-high {
    background: rgba(220, 38, 38, 0.14);
    border-color: rgba(220, 38, 38, 0.5);
    color: rgb(185, 28, 28);
}
.cvss-report-metric .value-code.sev-code-critical {
    background: rgba(153, 27, 27, 0.18);
    border-color: rgba(153, 27, 27, 0.6);
    color: rgb(127, 29, 29);
    font-weight: 800;
}
.cvss-report-metric .value-code.sev-code-neutral {
    background: rgba(100, 116, 139, 0.12);
    border-color: rgba(100, 116, 139, 0.4);
    color: rgb(71, 85, 105);
}
/* Hacker theme (modo oscuro) — colores más vivos */
html.theme-hacker .cvss-report-metric .value-code.sev-code-none {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.55);
    color: rgb(52, 211, 153);
}
html.theme-hacker .cvss-report-metric .value-code.sev-code-low {
    background: rgba(234, 179, 8, 0.2);
    border-color: rgba(234, 179, 8, 0.6);
    color: rgb(250, 204, 21);
}
html.theme-hacker .cvss-report-metric .value-code.sev-code-medium {
    background: rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.6);
    color: rgb(251, 146, 60);
}
html.theme-hacker .cvss-report-metric .value-code.sev-code-high {
    background: rgba(220, 38, 38, 0.22);
    border-color: rgba(220, 38, 38, 0.65);
    color: rgb(248, 113, 113);
}
html.theme-hacker .cvss-report-metric .value-code.sev-code-critical {
    background: rgba(185, 28, 28, 0.3);
    border-color: rgba(185, 28, 28, 0.8);
    color: rgb(254, 202, 202);
    font-weight: 800;
}
html.theme-hacker .cvss-report-metric .value-code.sev-code-neutral {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.4);
    color: rgb(148, 163, 184);
}

/* Result box — grid with labels in col1, values in col2 */
.cvss-report-result {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 0.55rem 0.4rem;
    align-items: center;
    padding: 0.85rem 1rem;
    background: var(--bg-accent-soft, rgba(220, 38, 38, 0.04));
    border: 1px solid var(--border-color);
    border-radius: 5px;
}
.cvss-report-result strong {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
}
.cvss-report-result .sep { color: var(--text-muted); font-size: 0.9rem; }

.cvss-report-score-display {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.cvss-report-score-value {
    font-family: var(--font-display, 'Chakra Petch'), sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-danger);
    line-height: 1;
}
.cvss-report-score-display .cvss-severity-badge {
    font-size: 0.68rem;
    padding: 0.2rem 0.6rem;
    letter-spacing: 0.08em;
}

.cvss-report-result code {
    font-family: var(--font-mono);
    background: var(--bg-primary);
    padding: 0.3rem 0.55rem;
    border-radius: 3px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
    font-weight: 500;
    overflow-wrap: anywhere;
    min-width: 0;
    line-height: 1.4;
}

/* Background tint for the result box — use a fallback since
   --bg-accent-soft isn't defined in the base (hacker) theme */
.cvss-report-result {
    background: rgba(0, 255, 170, 0.04);
}
html.theme-executive .cvss-report-result {
    background: #eff6ff;
}
html.theme-executive .cvss-report-score-value {
    color: var(--accent-danger);
}

/* Mobile (<992px): stack a 1 métrica por línea (4 cols) */
@media (max-width: 991.98px) {
    .cvss-report-metrics {
        grid-template-columns: 1fr auto 1fr auto;
        row-gap: 0.35rem;
    }
    .cvss-report-metric:nth-child(even) .metric-name {
        padding-left: 0;
        border-left: none;
        margin-left: 0;
    }
}
@media (max-width: 575px) {
    .cvss-report-header { padding: 0.6rem 0.85rem; }
    .cvss-report-body { padding: 0.85rem 1rem; }
    .cvss-report-metrics {
        grid-template-columns: 1fr auto;
    }
    .cvss-report-metric .value-name {
        grid-column: 1;
        padding-left: 1rem;
    }
    .cvss-report-metric .value-code {
        grid-column: 2;
    }
    .cvss-report-meta { font-size: 0.78rem; gap: 0.3rem 1rem; }
    .cvss-report-result {
        grid-template-columns: auto auto 1fr;
        gap: 0.35rem;
    }
    .cvss-report-result code { grid-column: 1 / -1; }
    .cvss-report-score-value { font-size: 1.3rem; }
    .cvss-report-metric .metric-name,
    .cvss-report-metric .value-name { font-size: 0.82rem; }
}

/* ============================================================
   27. QUOTE SUMMARY SIDEBAR — form mirror (no calculations)
   ============================================================ */

.qs-empty {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
    margin: 1.25rem 0;
    line-height: 1.55;
}
.qs-empty-small {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 0.25rem 0 0;
    font-style: italic;
}

.qs-section {
    margin-bottom: 1.1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}
.qs-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.qs-section-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.qs-count {
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    min-width: 1.3rem;
    text-align: center;
    line-height: 1.2;
}

.qs-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.2rem 0.85rem;
    margin: 0;
    font-size: 0.85rem;
}
.qs-dl dt {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.78rem;
}
.qs-dl dd {
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
    overflow-wrap: anywhere;
    min-width: 0;
}

.qs-placeholder {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.6;
}

.qs-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.qs-services-list li {
    padding: 0.35rem 0 0.35rem 1.2rem;
    position: relative;
    font-size: 0.88rem;
    color: var(--text-primary);
    border-bottom: 1px dotted var(--border-color);
}
.qs-services-list li:last-child { border-bottom: none; }
.qs-services-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.35rem;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.qs-comments {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.5;
    background: var(--bg-secondary);
    border-left: 3px solid var(--border-color);
    padding: 0.6rem 0.8rem;
    margin: 0;
    border-radius: 0 4px 4px 0;
    overflow-wrap: anywhere;
    max-height: 10rem;
    overflow-y: auto;
}

/* ============================================================
   28. HASH GENERATOR TOOL
   ============================================================ */

.hash-input {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    resize: vertical;
    min-height: 240px;
    line-height: 1.55;
}

.hash-input-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.hash-input-meta .mono {
    letter-spacing: 0.1em;
    font-weight: 600;
}

.btn-clear-hash {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}
.btn-clear-hash:hover {
    background: var(--accent-danger);
    border-color: var(--accent-danger);
    color: #ffffff;
}

.hash-info-note {
    background: rgba(0, 212, 255, 0.06);
    border-left: 3px solid var(--accent-secondary);
    padding: 0.7rem 0.9rem;
    border-radius: 0 4px 4px 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-secondary);
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}
.hash-info-note i { flex-shrink: 0; font-size: 1rem; margin-top: 0.08rem; }
html.theme-executive .hash-info-note {
    background: #eff6ff;
    border-left-color: var(--accent-primary);
}

/* Results column */
.hash-results {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.hash-result-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.85rem 1rem 0.9rem;
    transition: border-color 0.2s ease;
}
.hash-result-card:hover {
    border-color: var(--border-strong);
}
html.theme-executive .hash-result-card {
    background: #ffffff;
    border-color: var(--border-color);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.hash-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.hash-result-title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.hash-algo-name {
    font-family: var(--font-display, 'Chakra Petch'), sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.02em;
}

.hash-algo-badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    padding: 0.18rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}
.hash-badge-legacy {
    background: rgba(239, 68, 68, 0.14);
    color: #fb7185;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.hash-badge-secure {
    background: rgba(0, 255, 170, 0.08);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 255, 170, 0.3);
}
html.theme-executive .hash-badge-legacy {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}
html.theme-executive .hash-badge-secure {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.hash-copy-btn {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    width: 34px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.hash-copy-btn i { font-size: 0.95rem; }
.hash-copy-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}
.hash-copy-btn.copied {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: var(--bg-primary);
}

.hash-output {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.55rem 0.75rem;
    border-radius: 4px;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1.45;
    user-select: all;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
}
html.theme-executive .hash-output {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.hash-algo-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.55rem 0 0;
    line-height: 1.45;
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .hash-input { min-height: 160px; }
}
@media (max-width: 575px) {
    .hash-result-header { flex-wrap: wrap; }
    .hash-algo-badge { font-size: 0.58rem; letter-spacing: 0.1em; }
    .hash-output { font-size: 0.72rem; padding: 0.5rem 0.6rem; }
}

/* ============================================================
   29. ENCODE/DECODE TOOL
   ============================================================ */

.codec-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: flex-end;
}
.codec-format-group { flex: 1 1 260px; min-width: 200px; }
.codec-mode-group   { flex: 0 0 auto; }

.codec-mode-toggle {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}
.codec-mode-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.18s ease;
}
.codec-mode-btn:hover {
    color: var(--text-primary);
}
.codec-mode-btn.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-weight: 600;
}
.codec-mode-btn i { font-size: 1rem; }

/* IO layout: two panes + swap button in the middle */
.codec-io {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 1rem;
}
.codec-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.codec-pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    min-height: 1.5rem;
}
.codec-pane-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.codec-char-count {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
.codec-icon-btn {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    width: 28px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    padding: 0;
}
.codec-icon-btn i { font-size: 0.9rem; }
.codec-icon-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}
.codec-icon-btn.copied {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: var(--bg-primary);
}

.codec-textarea {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    resize: vertical;
    min-height: 220px;
    line-height: 1.55;
    word-break: break-all;
}
.codec-output {
    background: var(--bg-secondary) !important;
    cursor: text;
}
html.theme-executive .codec-output {
    background: var(--bg-secondary) !important;
}

/* Swap button — centered vertically between panes */
.codec-swap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1.5rem; /* align with textarea (not header) */
}
.codec-swap-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-strong);
    color: var(--accent-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.codec-swap-btn i {
    font-size: 1.15rem;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}
.codec-swap-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
    transform: scale(1.05);
}
.codec-swap-btn:hover i {
    transform: rotate(270deg);
}

/* Error banner */
.codec-error {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.9rem;
    padding: 0.7rem 0.95rem;
    background: rgba(255, 69, 101, 0.08);
    border: 1px solid rgba(255, 69, 101, 0.3);
    border-left: 3px solid var(--accent-danger);
    border-radius: 0 5px 5px 0;
    color: var(--accent-danger);
    font-size: 0.86rem;
    line-height: 1.45;
}
.codec-error i { flex-shrink: 0; font-size: 1rem; margin-top: 0.05rem; }
html.theme-executive .codec-error {
    background: #fef2f2;
    border-color: #fecaca;
    border-left-color: var(--accent-danger);
    color: #991b1b;
}

/* Tablet / mobile: stack vertically, swap button becomes horizontal */
@media (max-width: 767.98px) {
    .codec-io {
        grid-template-columns: 1fr;
    }
    .codec-swap {
        padding-top: 0;
        padding: 0;
        margin: -0.25rem 0;
        justify-self: center;
    }
    .codec-swap-btn i {
        transform: rotate(0deg);
    }
    .codec-swap-btn:hover i {
        transform: rotate(180deg);
    }
    .codec-textarea { min-height: 140px; }
}

@media (max-width: 575px) {
    .codec-controls { gap: 1rem; }
    .codec-mode-btn { padding: 0.4rem 0.7rem; font-size: 0.82rem; }
    .codec-format-group { flex: 1 1 100%; }
    .codec-mode-group { flex: 1 1 100%; }
    .codec-mode-toggle { width: 100%; }
    .codec-mode-btn { flex: 1; justify-content: center; }
    .codec-char-count { font-size: 0.68rem; }
}

/* ============================================================
   30. NOSOTROS · compact director card + presence map
   ============================================================ */

/* Make both cards in the row fill height equally */
#nosotros .testimonial-card,
#nosotros .presence-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Compact director photo — smaller, landscape-style header within the card */
.director-card-compact .director-photo-compact {
    aspect-ratio: 16 / 9;
    max-height: 280px;
    margin-bottom: 1.25rem;
}

/* Compact director typography — smaller sizes so the card height matches
   the presence-map card on the right, removing the empty space. */
.director-card-compact {
    padding: 1.75rem 1.5rem;
}
.director-card-compact .testimonial-text {
    font-size: 0.98rem;
    line-height: 1.55;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 1.25rem;
    font-family: var(--font-body);
}
.director-card-compact .testimonial-text::before {
    font-size: 1.3rem;
    margin-right: 0.15rem;
}
.director-card-compact .testimonial-author-name {
    font-size: 1.05rem;
    line-height: 1.2;
}
.director-card-compact .testimonial-author-role {
    font-size: 0.78rem;
    margin-top: 0.2rem;
}
.director-card-compact .testimonial-author-bio {
    font-size: 0.84rem;
    line-height: 1.55;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
}
.director-card-compact .testimonial-quote-mark {
    font-size: 4rem;
    top: 0.4rem;
    right: 1rem;
}
.director-card-compact .director-credentials {
    margin-top: 1rem;
    gap: 0.45rem;
}
.director-card-compact .credential-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
}

/* Presence card — matches testimonial styling */
.presence-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.presence-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-primary) 50%, transparent 100%);
    border-radius: 12px 12px 0 0;
    opacity: 0.7;
}

.presence-header {
    margin-bottom: 1.25rem;
}
.presence-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display, 'Chakra Petch'), sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.35rem;
}
.presence-title i { font-size: 1.35rem; }
.presence-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Map container */
.presence-map-wrap {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
html.theme-executive .presence-map-wrap {
    background: #f8fafc;
    border-color: var(--border-color);
}
.presence-map-wrap::before {
    /* Subtle grid backdrop */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 170, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 170, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
html.theme-executive .presence-map-wrap::before {
    background-image:
        linear-gradient(rgba(30, 58, 138, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, 0.04) 1px, transparent 1px);
}

.presence-map {
    width: 100%;
    height: auto;
    max-height: 360px;
    display: block;
    position: relative;
    z-index: 1;
}

/* Base land (all Latin America neighbor countries) */
.map-land path {
    fill: rgba(148, 163, 184, 0.12);
    stroke: rgba(148, 163, 184, 0.45);
    stroke-width: 0.6;
    stroke-linejoin: round;
    transition: fill 0.2s ease;
}
.map-land path:hover {
    fill: rgba(148, 163, 184, 0.22);
}
html.theme-executive .map-land path {
    fill: rgba(100, 116, 139, 0.12);
    stroke: rgba(71, 85, 105, 0.45);
}
html.theme-executive .map-land path:hover {
    fill: rgba(100, 116, 139, 0.22);
}

/* Highlighted countries (where TRUSTTECH operates) */
.map-country-highlight-group path {
    fill: rgba(0, 255, 170, 0.22);
    stroke: var(--accent-primary);
    stroke-width: 1.3;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px rgba(0, 255, 170, 0.35));
    transition: fill 0.25s ease, filter 0.25s ease;
    cursor: default;
}
.map-country-highlight-group path:hover {
    fill: rgba(0, 255, 170, 0.42);
    filter: drop-shadow(0 0 10px rgba(0, 255, 170, 0.7));
}
html.theme-executive .map-country-highlight-group path {
    fill: rgba(30, 58, 138, 0.20);
    stroke: var(--accent-primary);
    stroke-width: 1.3;
    filter: drop-shadow(0 0 3px rgba(30, 58, 138, 0.4));
}
html.theme-executive .map-country-highlight-group path:hover {
    fill: rgba(30, 58, 138, 0.36);
    filter: drop-shadow(0 0 8px rgba(30, 58, 138, 0.6));
}

/* Country labels (no more pulse bubbles — just labels on the countries) */
.map-labels { pointer-events: none; }

.map-label {
    font-family: var(--font-display, 'Chakra Petch'), sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    fill: var(--text-primary);
    text-anchor: middle;
    dominant-baseline: middle;
    paint-order: stroke;
    stroke: rgba(5, 8, 16, 0.75);
    stroke-width: 3.5px;
    stroke-linejoin: round;
}
html.theme-executive .map-label {
    fill: #1e293b;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 3.5px;
}

/* Country chips below the map */
.presence-countries {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.country-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 255, 170, 0.08);
    border: 1px solid rgba(0, 255, 170, 0.35);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 500;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}
.country-chip::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-primary);
}
.country-chip:hover {
    background: rgba(0, 255, 170, 0.15);
    transform: translateY(-1px);
}
html.theme-executive .country-chip {
    background: #eff6ff;
    border-color: rgba(30, 58, 138, 0.25);
    color: var(--accent-primary);
}
html.theme-executive .country-chip::before {
    background: var(--accent-primary);
    box-shadow: none;
}
html.theme-executive .country-chip:hover {
    background: #dbeafe;
}

/* Home-country chip — Chile gets larger size and extra emphasis */
.country-chip.home-country {
    padding: 0.55rem 1.15rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(0, 255, 170, 0.18);
    border: 1.5px solid var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.08), 0 0 14px rgba(0, 255, 170, 0.25);
}
.country-chip.home-country::before {
    width: 9px;
    height: 9px;
    box-shadow: 0 0 10px var(--accent-primary);
    animation: homeChipPulse 2s ease-in-out infinite;
}
.country-chip.home-country:hover {
    background: rgba(0, 255, 170, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.14), 0 0 20px rgba(0, 255, 170, 0.4);
}
@keyframes homeChipPulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.6; }
}
html.theme-executive .country-chip.home-country {
    background: #dbeafe;
    border: 1.5px solid var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08), 0 2px 6px rgba(30, 58, 138, 0.12);
}
html.theme-executive .country-chip.home-country::before {
    box-shadow: none;
}
html.theme-executive .country-chip.home-country:hover {
    background: #bfdbfe;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.14), 0 4px 10px rgba(30, 58, 138, 0.18);
}
@media (prefers-reduced-motion: reduce) {
    .country-chip.home-country::before { animation: none; }
}

/* Footer stats — auto fill remaining vertical space */
.presence-footer {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.presence-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: center;
}
.presence-stat-num {
    font-family: var(--font-display, 'Chakra Petch'), sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}
.presence-stat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.3;
}

/* Mobile */
@media (max-width: 767.98px) {
    .director-card-compact .director-photo-compact {
        aspect-ratio: 16 / 9;
        max-height: 220px;
    }
    .presence-card { padding: 1.5rem 1.25rem; }
    .presence-title { font-size: 1.05rem; }
    .presence-map { max-height: 300px; }
    .map-label { font-size: 12px; }
    .presence-stat-num { font-size: 1.25rem; }
}
@media (max-width: 575px) {
    .presence-footer { grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
    .presence-stat-num { font-size: 1.1rem; }
    .presence-stat-label { font-size: 0.62rem; }
    .country-chip { font-size: 0.74rem; padding: 0.3rem 0.6rem; }
}

/* ============================================================
   31. FOOTER — Certifications & Alliances badges
   The footer background is always dark in both themes (see
   html.theme-executive footer rule). These badges are high-
   contrast green-on-dark so they work identically in hacker
   and executive modes.
   ============================================================ */

.cert-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    background: rgba(0, 255, 170, 0.12);
    border: 1px solid rgba(0, 255, 170, 0.4);
    color: #00ffa3;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 4px;
    line-height: 1.2;
    transition: all 0.2s ease;
}
.cert-badge:hover {
    background: rgba(0, 255, 170, 0.22);
    border-color: #00ffa3;
    transform: translateY(-1px);
}

/* ============================================================
   32. FORM VALIDATION STATES & SMALL HELPERS (Quote form)
   ============================================================ */
.form-control-trust.is-invalid,
.form-select-trust.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18);
    background-image: none; /* hide Bootstrap default exclamation */
}
.invalid-feedback {
    display: block;
    font-size: 0.82rem;
    color: #ef4444;
    margin-top: 0.3rem;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}
html.theme-executive .form-control-trust.is-invalid,
html.theme-executive .form-select-trust.is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}
html.theme-executive .invalid-feedback { color: #dc2626; }

.btn-outline-trust {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.btn-outline-trust:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.05);
}
html.theme-executive .btn-outline-trust:hover {
    background: rgba(30, 58, 138, 0.06);
}

/* ============================================================
   33. SPLASH — Light-theme overrides
   Forces the splash screen to always use the executive light
   palette (navy on white) regardless of the user's site theme.
   Per product decision: the splash is a fixed "corporate"
   presentation, always in Spanish, always light.
   ============================================================ */

.splash-overlay {
    background: #f8fafc !important;        /* slate-50 */
    color: #1e293b !important;              /* slate-800 */
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}
/* Grid backdrop: light navy lines instead of green neon */
.splash-overlay::before {
    background-image:
        linear-gradient(rgba(30, 58, 138, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, 0.06) 1px, transparent 1px) !important;
}
/* Soft radial glow: navy instead of emerald */
.splash-overlay::after {
    background: radial-gradient(ellipse at center,
        rgba(30, 58, 138, 0.08) 0%,
        transparent 70%) !important;
}

/* Brand labels */
.splash-brand-label {
    color: #1e293b !important;
}
.splash-brand-sub {
    color: #64748b !important;               /* slate-500 */
}

/* Skip button (top-right) */
.splash-skip {
    color: #475569 !important;
    border-color: rgba(30, 58, 138, 0.25) !important;
    background: rgba(255, 255, 255, 0.7) !important;
}
.splash-skip:hover {
    color: #1e3a8a !important;
    border-color: #1e3a8a !important;
    background: #eff6ff !important;
}

/* Terminal: match the hero "trusttech@soc" terminal look (dark card with
   traffic-light dots, green accent) even though the overall splash
   overlay stays light. Only the terminal itself goes dark. */
.splash-terminal {
    background: #0f172a !important;            /* same as hero terminal-card */
    border: 1px solid #1e293b !important;
    border-radius: 12px !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(0, 255, 170, 0.12) !important;
    overflow: hidden !important;
}
/* Chrome bar with bigger traffic-light dots like the hero */
.splash-term-chrome {
    height: auto !important;
    padding: 0.8rem 1.2rem !important;
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}
.splash-term-chrome::before,
.splash-term-chrome::after,
.splash-term-chrome span {
    width: 12px !important;
    height: 12px !important;
    top: 50% !important;
}
.splash-term-chrome::before { left: 14px !important; background: #ff5f56 !important; }
.splash-term-chrome::after  { left: 34px !important; background: #ffbd2e !important; }
.splash-term-chrome span    { left: 54px !important; background: #27c93f !important; }

.splash-term-title {
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
    color: #94a3b8 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.04em !important;
    padding: 0.6rem 1.2rem !important;
}
.splash-term-title i { color: #00ffa3 !important; font-size: 0.95rem !important; }

.splash-term-body {
    background: transparent !important;
    color: #cbd5e1 !important;
    font-size: 0.82rem !important;
    line-height: 1.65 !important;
    padding: 1.25rem 1.4rem !important;
}
.splash-term-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Log line colors — hero terminal palette on dark background */
.splash-term-line.scan-cmd    { color: #e2e8f0 !important; }
.splash-term-line.scan-info   { color: #7dd3fc !important; }
.splash-term-line.scan-ok     { color: #6ee7b7 !important; }
.splash-term-line.scan-done   { color: #00ffa3 !important; font-weight: 600 !important; }
.splash-term-line.scan-warn   { color: #fbbf24 !important; }

/* Progress bar — green accent matching hero */
.splash-progress {
    background: rgba(255, 255, 255, 0.08) !important;
}
.splash-progress-bar {
    background: linear-gradient(90deg, #00d4ff 0%, #00ffa3 100%) !important;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.55) !important;
}

/* Confirm badge (IDENTIDAD VERIFICADA) stays light/green for readability */
.splash-confirm-badge {
    background: #ecfdf5 !important;          /* emerald-50 */
    border: 1px solid #059669 !important;    /* emerald-600 */
    color: #047857 !important;               /* emerald-700 */
    box-shadow: 0 10px 30px -10px rgba(5, 150, 105, 0.35) !important;
}
.splash-confirm-badge i { color: #059669 !important; }

/* ============================================================
   34. H4CK3R — games section + modal + per-game styles
   ============================================================ */

/* Section + card grid */
.h4ck3r-title {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    letter-spacing: 0.08em;
    text-shadow: 0 0 12px rgba(0, 255, 170, 0.35);
}
html.theme-executive .h4ck3r-title {
    color: var(--accent-primary);
    text-shadow: none;
}
.nav-link-h4ck3r {
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    color: var(--accent-primary) !important;
}
.nav-link-h4ck3r:hover {
    text-shadow: 0 0 8px rgba(0, 255, 170, 0.5);
}
html.theme-executive .nav-link-h4ck3r {
    color: var(--accent-primary) !important;
}

.h4ck3r-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
}

.h4ck3r-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-primary);
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}
.h4ck3r-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0, 255, 170, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.h4ck3r-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -10px rgba(0, 255, 170, 0.25);
}
.h4ck3r-card:hover::before { opacity: 1; }
.h4ck3r-card-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    line-height: 1;
}
.h4ck3r-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}
.h4ck3r-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
}
.h4ck3r-card-high {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-color);
    letter-spacing: 0.05em;
}
.h4ck3r-card-high.muted {
    color: var(--text-muted);
}

html.theme-executive .h4ck3r-card {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
html.theme-executive .h4ck3r-card:hover {
    box-shadow: 0 14px 32px -12px rgba(30, 58, 138, 0.2);
}
html.theme-executive .h4ck3r-card::before {
    background: radial-gradient(circle at top right, rgba(30, 58, 138, 0.08), transparent 60%);
}

/* Modal */
.h4ck3r-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(5, 8, 16, 0.85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}
.h4ck3r-modal.show { display: flex; }
body.h4ck3r-open { overflow: hidden; }

html.theme-executive .h4ck3r-modal {
    background: rgba(15, 23, 42, 0.75);
}

.h4ck3r-modal-inner {
    background: var(--bg-primary);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 30px -5px rgba(0, 255, 170, 0.2);
}
html.theme-executive .h4ck3r-modal-inner {
    border-color: var(--accent-primary);
    box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.25);
}

.h4ck3r-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}
.h4ck3r-modal-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.03em;
}
.h4ck3r-modal-close {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 34px;
    height: 34px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.h4ck3r-modal-close:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
.h4ck3r-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
}

/* Common game UI */
.game-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding: 0.8rem 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}
.game-score, .game-high {
    color: var(--text-primary);
    padding: 0.25rem 0.6rem;
    background: rgba(0, 255, 170, 0.07);
    border: 1px solid rgba(0, 255, 170, 0.25);
    border-radius: 4px;
    letter-spacing: 0.04em;
}
.game-high {
    color: var(--text-secondary);
    background: transparent;
    border-color: var(--border-color);
}
.game-status {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    min-height: 2rem;
    letter-spacing: 0.02em;
}
.game-btn {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.03em;
}
.game-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.05);
}
.game-btn.primary {
    background: var(--accent-primary);
    color: #030712;
    border-color: var(--accent-primary);
    font-weight: 600;
}
.game-btn.primary:hover {
    filter: brightness(1.1);
    color: #030712;
}
html.theme-executive .game-btn.primary {
    color: #ffffff;
}

html.theme-executive .game-score {
    background: rgba(30, 58, 138, 0.08);
    border-color: rgba(30, 58, 138, 0.25);
    color: var(--accent-primary);
}

/* ----- SNAKE canvas ----- */
.game-canvas {
    display: block;
    margin: 0 auto;
    background: #0a0f1d;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    max-width: 100%;
    height: auto;
    touch-action: none;
}
html.theme-executive .game-canvas {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* ----- 2048 ----- */
.g2048-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: rgba(0, 255, 170, 0.05);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1;
}
.g2048-tile {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-primary);
    transition: transform 0.1s ease;
    aspect-ratio: 1;
}
html.theme-executive .g2048-grid { background: #eef2ff; }
html.theme-executive .g2048-tile { background: #ffffff; }
.g2048-tile.v2    { background: rgba(0, 255, 170, 0.08); color: var(--text-primary); }
.g2048-tile.v4    { background: rgba(0, 255, 170, 0.15); }
.g2048-tile.v8    { background: rgba(34, 211, 238, 0.2);  color: #22d3ee; }
.g2048-tile.v16   { background: rgba(34, 211, 238, 0.3);  color: #06b6d4; }
.g2048-tile.v32   { background: rgba(251, 191, 36, 0.25); color: #fbbf24; }
.g2048-tile.v64   { background: rgba(251, 146, 60, 0.3);  color: #fb923c; }
.g2048-tile.v128  { background: rgba(239, 68, 68, 0.3);   color: #f87171; font-size: 1.4rem; }
.g2048-tile.v256  { background: rgba(236, 72, 153, 0.35); color: #f472b6; font-size: 1.4rem; }
.g2048-tile.v512  { background: rgba(168, 85, 247, 0.4);  color: #c084fc; font-size: 1.4rem; }
.g2048-tile.v1024 { background: rgba(0, 255, 170, 0.45);  color: var(--accent-primary); font-size: 1.2rem; box-shadow: 0 0 16px rgba(0, 255, 170, 0.4); }
.g2048-tile.v2048 { background: var(--accent-primary);    color: #030712; font-size: 1.2rem; box-shadow: 0 0 20px rgba(0, 255, 170, 0.6); }

/* ----- MINESWEEPER ----- */
.mine-grid {
    display: grid;
    grid-template-columns: repeat(var(--n), 1fr);
    gap: 2px;
    max-width: 440px;
    margin: 0 auto;
    padding: 4px;
    background: var(--border-color);
    border-radius: 6px;
    user-select: none;
    aspect-ratio: 1;
}
.mine-cell {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: clamp(0.7rem, 2.5vw, 0.95rem);
    cursor: pointer;
    aspect-ratio: 1;
    transition: background 0.1s ease;
}
.mine-cell:hover:not(.revealed):not(.flagged) {
    background: rgba(0, 255, 170, 0.08);
}
.mine-cell.revealed {
    background: rgba(0, 255, 170, 0.04);
    cursor: default;
}
.mine-cell.bomb {
    background: #ef4444;
    color: #030712;
}
.mine-cell.flagged { cursor: pointer; }
.mine-cell.n1 { color: #60a5fa; }
.mine-cell.n2 { color: #34d399; }
.mine-cell.n3 { color: #fbbf24; }
.mine-cell.n4 { color: #fb923c; }
.mine-cell.n5 { color: #f87171; }
.mine-cell.n6 { color: #f472b6; }
.mine-cell.n7 { color: #c084fc; }
.mine-cell.n8 { color: #22d3ee; }
html.theme-executive .mine-grid { background: #cbd5e1; }
html.theme-executive .mine-cell { background: #f8fafc; border-color: #e2e8f0; }
html.theme-executive .mine-cell.revealed { background: #eef2ff; }

/* ----- TYPING ----- */
.typing-prompt {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 255, 170, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--accent-primary);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-shadow: 0 0 12px rgba(0, 255, 170, 0.3);
    word-break: break-all;
}
html.theme-executive .typing-prompt { text-shadow: none; background: #eef2ff; }
.typing-input {
    width: 100%;
    font-family: var(--font-mono) !important;
    font-size: 1.1rem !important;
    padding: 0.75rem 1rem !important;
    text-align: center;
}

/* ----- CIPHER ----- */
.cipher-text {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    padding: 1.25rem;
    background: rgba(0, 255, 170, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--accent-primary);
    text-align: center;
    letter-spacing: 0.1em;
    margin: 0 0 1rem 0;
    word-break: break-word;
    white-space: pre-wrap;
}
.cipher-answer {
    font-family: var(--font-mono);
    font-size: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.15em;
    margin: 0.75rem 0 0 0;
    min-height: 2.5rem;
}
html.theme-executive .cipher-text { background: #eef2ff; }
html.theme-executive .cipher-answer { background: #f8fafc; }
.cipher-input-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.cipher-input-row .form-control-trust {
    flex: 1;
    min-width: 180px;
}

/* ----- MEMORY ----- */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1;
}
.memory-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    user-select: none;
    aspect-ratio: 1;
    transition: all 0.2s ease;
    color: transparent;
    font-family: var(--font-mono);
}
.memory-card::before {
    content: '?';
    color: var(--accent-primary);
    opacity: 0.5;
    font-size: 1.4rem;
}
.memory-card.revealed::before { display: none; }
.memory-card.revealed {
    background: rgba(0, 255, 170, 0.08);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}
.memory-card.matched {
    background: rgba(0, 255, 170, 0.15);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.25);
}
.memory-card:hover:not(.revealed):not(.matched) {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}
html.theme-executive .memory-card.revealed,
html.theme-executive .memory-card.matched { background: #eef2ff; }

/* Mobile tweaks */
@media (max-width: 600px) {
    .h4ck3r-grid { grid-template-columns: 1fr; }
    .h4ck3r-modal-inner { max-height: 95vh; }
    .typing-prompt { font-size: 1.5rem; padding: 1rem; }
    .cipher-text { font-size: 0.95rem; letter-spacing: 0.05em; }
    .g2048-tile { font-size: 1.2rem; }
}

/* ============================================================
   35. H4CK3R — new games (Terminal Adventure, Log Analyzer,
   SQL Injection, CTF Flag Hunter)
   ============================================================ */

/* ----- TERMINAL ADVENTURE ----- */
.term-adv-output {
    background: #0a0f1d;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    height: 320px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #d1d5db;
    line-height: 1.5;
}
.term-adv-output::-webkit-scrollbar { width: 6px; }
.term-adv-output::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.term-adv-line { white-space: pre-wrap; word-break: break-word; }
.term-adv-line.scan-ok    { color: #6ee7b7; }
.term-adv-line.scan-info  { color: #7dd3fc; }
.term-adv-line.scan-warn  { color: #fca5a5; }
.term-adv-line.scan-done  { color: #00ffa3; font-weight: 600; }
.term-adv-prompt-line {
    display: flex;
    align-items: center;
    background: #0a0f1d;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 0.5rem 1rem;
    margin-top: -1px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
}
.term-adv-prompt { color: #00ffa3; white-space: nowrap; }
.term-adv-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    margin-left: 0.2em;
}

html.theme-executive .term-adv-output,
html.theme-executive .term-adv-prompt-line {
    background: #0f172a;
    color: #e2e8f0;
}

/* ----- LOG ANALYZER ----- */
.log-list {
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: rgba(0, 255, 170, 0.02);
}
.log-line {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    word-break: break-all;
    color: var(--text-secondary);
    line-height: 1.4;
}
.log-line:last-child { border-bottom: none; }
.log-line:hover:not(.disabled) { background: rgba(0, 255, 170, 0.08); color: var(--text-primary); }
.log-line.disabled { cursor: default; opacity: 0.85; }
.log-line.correct {
    background: rgba(34, 197, 94, 0.18) !important;
    border-left: 3px solid #22c55e;
    color: #bbf7d0;
}
.log-line.wrong {
    background: rgba(239, 68, 68, 0.18) !important;
    border-left: 3px solid #ef4444;
    color: #fecaca;
}
.log-line.malicious-reveal {
    outline: 2px dashed #f87171;
    outline-offset: -2px;
}
html.theme-executive .log-line { color: #334155; }
html.theme-executive .log-line:hover:not(.disabled) { background: #eef2ff; color: #0f172a; }
html.theme-executive .log-line.correct { background: #dcfce7 !important; color: #166534; }
html.theme-executive .log-line.wrong { background: #fee2e2 !important; color: #991b1b; }

/* ----- SQL INJECTION ----- */
.sqli-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}
.sqli-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.sqli-query {
    background: #0a0f1d;
    color: #fbbf24;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    margin: 0.5rem 0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
html.theme-executive .sqli-query {
    background: #0f172a;
    color: #fcd34d;
}
.sqli-field-label {
    color: var(--text-secondary);
    margin: 0.75rem 0 0.25rem 0;
    display: block;
    font-size: 0.85rem;
}
.sqli-input-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.sqli-input-row .form-control-trust {
    flex: 1;
    min-width: 180px;
    font-family: var(--font-mono);
}
.sqli-result {
    min-height: 2rem;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
}
.sqli-result.success {
    background: rgba(34, 197, 94, 0.15);
    color: #bbf7d0;
    border: 1px solid #22c55e;
}
.sqli-result.fail {
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    border: 1px solid #ef4444;
}
html.theme-executive .sqli-result.success { background: #dcfce7; color: #166534; }
html.theme-executive .sqli-result.fail { background: #fee2e2; color: #991b1b; }

/* ----- CTF FLAG HUNTER ----- */
.ctf-stage-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.4rem;
}
.ctf-stage-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.ctf-puzzle-text {
    background: #0a0f1d;
    color: #00ffa3;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-align: center;
    margin: 0.5rem 0 0.75rem 0;
    overflow-x: auto;
    word-break: break-all;
    white-space: pre-wrap;
}
html.theme-executive .ctf-puzzle-text {
    background: #0f172a;
    color: #6ee7b7;
}
.ctf-input-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.ctf-input-row .form-control-trust {
    flex: 1;
    min-width: 180px;
    font-family: var(--font-mono);
}
.ctf-collected {
    font-size: 0.83rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    line-height: 1.7;
}
.ctf-piece {
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid rgba(0, 255, 170, 0.35);
    color: var(--accent-primary);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* ============================================================
   36. [SECCIÓN LIBERADA — Password Guess removido en v3.1,
        reemplazado por "The Glider" (sección 42). Los selectores
        .pw-* y .pw-kb-* fueron eliminados al dejar de usarse.]
   ============================================================ */

/* ============================================================
   37. IP CALCULATOR (IPv4 + IPv6 subnet calculator)
   ============================================================ */
.ipcalc-form { margin-bottom: 0.5rem; }
.ipcalc-input-row {
    display: flex; align-items: stretch; gap: 0.4rem;
    margin-top: 0.3rem;
}
.ipcalc-input-row .form-control-trust { flex: 1; font-size: 0.95rem; }
.ipcalc-slash {
    display: flex; align-items: center;
    font-family: var(--font-mono); font-size: 1.4rem;
    color: var(--accent-primary); font-weight: 700; padding: 0 0.1rem;
}
.ipcalc-prefix { max-width: 80px; text-align: center; flex: 0 0 80px; }
.ipcalc-examples {
    display: flex; flex-wrap: wrap; gap: 0.35rem;
    margin-top: 0.75rem; align-items: center;
}
.ipcalc-example-label {
    font-size: 0.78rem; color: var(--text-muted);
    font-family: var(--font-mono); letter-spacing: 0.04em;
    margin-right: 0.3rem;
}
.ipcalc-example-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
    font-size: 0.76rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.15s ease;
}
.ipcalc-example-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 255, 170, 0.06);
}

.ipcalc-placeholder {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
}
.ipcalc-placeholder i { font-size: 2.4rem; display: block; margin-bottom: 0.75rem; opacity: 0.5; }

.ipcalc-result-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    font-family: var(--font-body);
}
.ipcalc-result-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.ipcalc-result-scope {
    font-size: 0.82rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.ipcalc-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.9rem;
}
.ipcalc-row:last-child { border-bottom: none; }
.ipcalc-label {
    color: var(--text-muted);
    flex-shrink: 0;
}
.ipcalc-value {
    color: var(--text-primary);
    text-align: right;
    word-break: break-all;
    font-size: 0.92rem;
}
.ipcalc-row.mono-small .ipcalc-value {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}
.ipcalc-bin-section {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
}
.ipcalc-bin-title {
    font-size: 0.82rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.ipcalc-error {
    padding: 1rem 1.25rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid #ef4444;
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 0.6rem;
}
html.theme-executive .ipcalc-error { color: #b91c1c; background: #fee2e2; }
@media (max-width: 575px) {
    .ipcalc-row { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
    .ipcalc-value { text-align: left; }
}

/* ============================================================
   38. METODOLOGÍA — approach + frameworks + controles de base
   ============================================================ */
#metodologia {
    background: var(--bg-primary);
}

/* 3 big metrics (75% / 25% / 7) */
.method-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto 3rem auto;
}
.method-metric {
    text-align: center;
    padding: 1.8rem 1.2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.method-metric::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}
.method-metric-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}
.method-metric-num .unit {
    font-size: 1.6rem;
    opacity: 0.7;
    margin-left: 0.1em;
}
.method-metric-label {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-top: 0.75rem;
}
@media (max-width: 767px) {
    .method-metrics { grid-template-columns: 1fr; gap: 0.85rem; }
    .method-metric-num { font-size: 2.4rem; }
    .method-metric { padding: 1.2rem 1rem; }
}

.method-subheading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

/* Framework cards */
.method-frameworks .framework-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.2rem 1.15rem;
    height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.method-frameworks .framework-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}
.framework-badge {
    display: inline-block;
    background: rgba(0, 255, 170, 0.08);
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 170, 0.22);
    margin-bottom: 0.7rem;
}
.framework-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.framework-desc {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Tabs for controles de base */
.controls-tabs-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}
.method-tabs {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    gap: 0.35rem;
}
.controls-content {
    padding-top: 0.5rem;
}
.controls-header {
    margin-bottom: 1.2rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px dashed var(--border-color);
}
.controls-header h4 {
    font-family: var(--font-display);
    color: var(--text-primary);
}

/* Grid de controles (CWE, OWASP, API) */
.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.55rem;
}
.control-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-primary);
    border-radius: 4px;
    font-size: 0.84rem;
    line-height: 1.4;
    transition: border-left-color 0.15s ease, background 0.15s ease;
}
.control-item:hover {
    border-left-color: var(--accent-secondary);
    background: rgba(0, 255, 170, 0.04);
}
.control-code {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-primary);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 78px;
    font-size: 0.82rem;
}
.control-desc {
    color: var(--text-secondary);
}

/* Grid MITRE (2 cols en desktop, 1 en mobile) */
.mitre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 0.85rem;
}
.mitre-tactic {
    padding: 1rem 1.15rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.mitre-tactic:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}
.mitre-tactic-code {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-secondary);
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.mitre-tactic-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.mitre-tactic-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Executive theme overrides */
html.theme-executive .method-metric {
    background: #ffffff;
}
html.theme-executive .method-frameworks .framework-card {
    background: #ffffff;
}
html.theme-executive .framework-badge {
    background: #eef2ff;
    color: #1e3a8a;
    border-color: #c7d2fe;
}
html.theme-executive .controls-tabs-wrapper {
    background: #ffffff;
}
html.theme-executive .control-item {
    background: #f8fafc;
    border-left-color: #1e3a8a;
}
html.theme-executive .control-item:hover {
    background: #eef2ff;
    border-left-color: #3b82f6;
}
html.theme-executive .control-code {
    color: #1e3a8a;
}
html.theme-executive .mitre-tactic {
    background: #f8fafc;
}
html.theme-executive .mitre-tactic-code {
    color: #3b82f6;
}

@media (max-width: 575px) {
    .controls-tabs-wrapper { padding: 1rem 0.85rem; }
    .controls-grid { grid-template-columns: 1fr; }
    .mitre-grid { grid-template-columns: 1fr; }
    .control-item { font-size: 0.8rem; }
    .method-tabs { flex-wrap: wrap; }
    .method-tabs .nav-link { font-size: 0.8rem; padding: 0.5rem 0.7rem; }
}

/* Small badge for exclusive ATLAS tactics (ML Model Access, ML Attack Staging) */
.atlas-exclusive {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-left: 0.35rem;
    letter-spacing: 0.04em;
    opacity: 0.9;
    font-style: italic;
}
html.theme-executive .atlas-exclusive { color: #3b82f6; }

/* ==========================================================================
   39. NAVBAR LOGO SWAP (dark/light según tema)
   ==========================================================================
   IMPORTANTE: hay que ganar a `.navbar-trusttech .navbar-logo { display: block }`
   por especificidad, por eso usamos prefijo + !important.
*/
.navbar-trusttech .navbar-logo-dark  { display: block !important; }
.navbar-trusttech .navbar-logo-light { display: none  !important; }

html.theme-executive .navbar-trusttech .navbar-logo-dark  { display: none  !important; }
html.theme-executive .navbar-trusttech .navbar-logo-light { display: block !important; }

/* ==========================================================================
   40. TERMINAL ADVENTURE — MISSIONS PANEL (10 objetivos progresivos)
   ========================================================================== */
.term-adv-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 320px);
    gap: 1rem;
    align-items: stretch;
}
.term-adv-term-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
/* Cuando el terminal vive dentro del wrap split (term-adv o ctf), el output
   estira hasta el panel lateral y el prompt se queda siempre visible abajo. */
.term-adv-wrap .term-adv-output,
.ctf-wrap .term-adv-output {
    flex: 1 1 auto;
    height: auto;
    min-height: 360px;
}
.term-adv-missions {
    background: rgba(10, 14, 24, 0.65);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.9rem 0.9rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    height: 420px;
    overflow-y: auto;
}
.term-adv-missions-title {
    color: var(--accent-primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: -0.9rem;
    background: rgba(10, 14, 24, 0.95);
    z-index: 2;
}
.term-adv-mission {
    display: grid;
    grid-template-columns: 1.6em 1.6em 1fr;
    gap: 0.35rem;
    padding: 0.28rem 0;
    color: var(--text-secondary);
    line-height: 1.3;
    align-items: start;
}
.term-adv-mission.done {
    color: var(--accent-primary);
    text-decoration: line-through;
    text-decoration-color: rgba(0, 255, 163, 0.35);
}
.term-adv-mission-mark {
    font-weight: 700;
}
.term-adv-mission.done .term-adv-mission-mark {
    color: var(--accent-primary);
}
.term-adv-mission-num {
    opacity: 0.55;
}
.term-adv-mission-label {
    font-size: 0.75rem;
}

/* Mobile: apilar en 1 columna */
@media (max-width: 820px) {
    .term-adv-wrap {
        grid-template-columns: 1fr;
    }
    .term-adv-missions {
        height: 260px;
    }
    .term-adv-wrap .term-adv-output,
    .ctf-wrap .term-adv-output {
        min-height: 280px;
    }
}

/* Executive theme: panel más claro */
html.theme-executive .term-adv-missions {
    background: #f8fafc;
    border-color: #cbd5e1;
}
html.theme-executive .term-adv-missions-title {
    background: #f8fafc;
}
html.theme-executive .term-adv-mission {
    color: #475569;
}
html.theme-executive .term-adv-mission.done {
    color: #059669;
}
html.theme-executive .term-adv-missions-title {
    color: #0284c7;
    border-bottom-color: #cbd5e1;
}

/* ==========================================================================
   41. CTF FLAG HUNTER — terminal + panel lateral con 10 flags × 7 etapas
   ========================================================================== */
.ctf-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 380px);
    gap: 1rem;
    align-items: stretch;
}
.ctf-term-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.ctf-flags-panel {
    background: rgba(10, 14, 24, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    height: 520px;
    overflow-y: auto;
}
/* El terminal del CTF ocupa el mismo alto que el panel de pistas */
.ctf-wrap .term-adv-output {
    min-height: 460px;
}
.ctf-flags-title {
    color: var(--accent-primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: -0.75rem;
    background: rgba(10, 14, 24, 0.95);
    z-index: 2;
}
.ctf-flag-item {
    padding: 0.5rem 0.4rem;
    margin-bottom: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s, background 0.2s;
}
.ctf-flag-item.captured {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 163, 0.08);
}
.ctf-flag-head {
    display: grid;
    grid-template-columns: 2em 1fr auto;
    gap: 0.35rem;
    align-items: center;
    margin-bottom: 0.3rem;
}
.ctf-flag-num {
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.7;
    font-size: 0.72rem;
}
.ctf-flag-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.72rem;
}
.ctf-flag-progress {
    font-size: 0.68rem;
    color: var(--text-secondary);
    opacity: 0.85;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.04);
}
.ctf-flag-item.captured .ctf-flag-progress {
    color: var(--accent-primary);
    background: rgba(0, 255, 163, 0.12);
    font-weight: 700;
}
.ctf-flag-theme {
    font-size: 0.68rem;
    color: var(--text-secondary);
    opacity: 0.75;
    margin-bottom: 0.4rem;
    padding-left: 2.35em;
    font-style: italic;
}
.ctf-stage {
    display: grid;
    grid-template-columns: 1.4em 1.4em 1fr;
    gap: 0.2rem;
    padding: 0.15rem 0 0.15rem 2em;
    color: var(--text-secondary);
    line-height: 1.3;
    align-items: start;
    font-size: 0.7rem;
}
.ctf-stage.done {
    color: var(--accent-primary);
    text-decoration: line-through;
    text-decoration-color: rgba(0, 255, 163, 0.35);
}
.ctf-stage-mark {
    font-weight: 700;
}
.ctf-stage.done .ctf-stage-mark {
    color: var(--accent-primary);
}
.ctf-stage-num {
    opacity: 0.55;
}

/* Scrollbar del panel */
.ctf-flags-panel::-webkit-scrollbar { width: 6px; }
.ctf-flags-panel::-webkit-scrollbar-track { background: transparent; }
.ctf-flags-panel::-webkit-scrollbar-thumb { background: rgba(0, 255, 163, 0.25); border-radius: 3px; }

/* Mobile: apilar */
@media (max-width: 900px) {
    .ctf-wrap {
        grid-template-columns: 1fr;
    }
    .ctf-flags-panel {
        height: 320px;
    }
    .ctf-wrap .term-adv-output {
        min-height: 320px;
    }
}

/* Executive theme (light) */
html.theme-executive .ctf-flags-panel {
    background: #f8fafc;
    border-color: #cbd5e1;
}
html.theme-executive .ctf-flags-title {
    color: #0284c7;
    border-bottom-color: #cbd5e1;
    background: #f8fafc;
}
html.theme-executive .ctf-flag-item {
    background: #ffffff;
    border-color: #e2e8f0;
}
html.theme-executive .ctf-flag-item.captured {
    border-color: #10b981;
    background: #ecfdf5;
}
html.theme-executive .ctf-flag-title { color: #1e293b; }
html.theme-executive .ctf-flag-num { color: #0284c7; }
html.theme-executive .ctf-flag-theme { color: #64748b; }
html.theme-executive .ctf-stage { color: #475569; }
html.theme-executive .ctf-stage.done { color: #059669; text-decoration-color: rgba(16, 185, 129, 0.4); }
html.theme-executive .ctf-flag-item.captured .ctf-flag-progress {
    color: #059669;
    background: rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   42. THE GLIDER — Conway's Game of Life (emblema hacker)
   ========================================================================== */
.glider-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 330px);
    gap: 1rem;
    align-items: stretch;
}
.glider-grid-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.glider-canvas {
    width: 100%;
    height: auto;
    max-height: 440px;
    image-rendering: pixelated;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #050a14;
    cursor: crosshair;
    display: block;
}
.glider-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    padding: 0.5rem;
    background: rgba(10, 14, 24, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}
.glider-controls .game-btn {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
}
.glider-controls .game-btn.primary-active {
    background: var(--accent-primary);
    color: #05080f;
    border-color: var(--accent-primary);
}
.glider-speed-label {
    color: var(--text-secondary);
    font-size: 0.72rem;
    margin-left: auto;
    letter-spacing: 0.04em;
}
.glider-speed-select {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
}
.glider-info-panel {
    background: rgba(10, 14, 24, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    max-height: 520px;
    overflow-y: auto;
}
.glider-info-header {
    color: var(--accent-primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
}
.glider-info-sub {
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-style: italic;
}
.glider-about {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0.9rem;
}
.glider-about p { margin: 0 0 0.55rem 0; }
.glider-about strong { color: var(--text-primary); }
.glider-about em { color: var(--accent-primary); font-style: normal; }
.glider-rules {
    background: rgba(0, 255, 163, 0.06);
    border-left: 2px solid var(--accent-primary);
    padding: 0.5rem 0.7rem;
    font-size: 0.7rem;
    line-height: 1.6;
}
.glider-presets-title {
    color: var(--accent-primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    margin-bottom: 0.5rem;
    padding-top: 0.3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.65rem;
}
.glider-presets {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.55rem;
}
.glider-preset-btn {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}
.glider-preset-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 255, 163, 0.05);
}
.glider-preset-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 0.55rem 0.65rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    min-height: 3em;
}
.glider-preset-desc.glider-highlight {
    border-color: var(--accent-primary);
    border-style: solid;
    background: rgba(0, 255, 163, 0.08);
    color: var(--accent-primary);
}

/* Mobile: apilar */
@media (max-width: 900px) {
    .glider-wrap { grid-template-columns: 1fr; }
    .glider-info-panel { max-height: 300px; }
    .glider-canvas { max-height: 360px; }
}

/* Executive theme (light) */
html.theme-executive .glider-info-panel {
    background: #f8fafc;
    border-color: #cbd5e1;
}
html.theme-executive .glider-info-header,
html.theme-executive .glider-presets-title { color: #0284c7; border-color: #cbd5e1; }
html.theme-executive .glider-about { color: #475569; }
html.theme-executive .glider-about strong { color: #1e293b; }
html.theme-executive .glider-rules {
    background: rgba(2, 132, 199, 0.08);
    border-left-color: #0284c7;
    color: #334155;
}
html.theme-executive .glider-preset-btn {
    background: #fff;
    color: #1e293b;
    border-color: #cbd5e1;
}
html.theme-executive .glider-preset-btn:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: #f0f9ff;
}
html.theme-executive .glider-preset-desc {
    background: #fff;
    color: #475569;
    border-color: #e2e8f0;
}
html.theme-executive .glider-preset-desc.glider-highlight {
    background: #ecfdf5;
    border-color: #10b981;
    color: #059669;
}
html.theme-executive .glider-controls {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
html.theme-executive .glider-speed-select {
    background: #fff;
    color: #1e293b;
    border-color: #cbd5e1;
}
/* El canvas mantiene fondo oscuro siempre (es el "entorno de vida" tipo terminal) */
