/* CSS Design System for Replicante™ Strategic Plan
   Typography: Söhne (Normal) & Söhne Breit (Extended / Wide)
   Style: Dark Sci-Fi Minimalist with High-Readability Measure & Söhne All-Caps
*/

/* Custom Font Declarations */
@font-face {
    font-family: 'Sohne';
    src: url('fonts/Sohne-Buch.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sohne Breit';
    src: url('fonts/SohneBreit-Buch.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-main: "Sohne", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: "Sohne Breit", "Helvetica Neue", Helvetica, Arial, sans-serif;
    
    /* Dark Theme Palette (Pure Sleek Dark) */
    --bg-main: #08090b;
    --bg-sidebar: #0e1014;
    --bg-card: #13161c;
    --bg-card-hover: #191d26;
    --bg-highlight: #1f2430;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.18);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Main Accent */
    --accent-color: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.15);

    /* Section Unique Color Tokens */
    --sec1-color: #00f0ff; /* 01: Cyan */
    --sec2-color: #a855f7; /* 02: Violet */
    --sec3-color: #10b981; /* 03: Emerald */
    --sec4-color: #f59e0b; /* 04: Amber */
    --sec5-color: #f43f5e; /* 05: Rose / Coral */
    --sec6-color: #3b82f6; /* 06: Electric Blue */
    --sec7-color: #84cc16; /* 07: Neon Lime */
    --sec8-color: #d946ef; /* 08: Electric Orchid / Fuchsia */

    --sidebar-width: 232px;
    --header-height: 60px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color-scheme: dark;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    background-color: var(--bg-main);
    color: var(--text-primary);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: 3.4rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    max-width: 950px;
}

h2 {
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.65rem;
    line-height: 1.3;
    margin-bottom: 0.85rem;
}

h4 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

/* Optimal Measure: Limit full-width paragraphs to 72ch (~780px) for high readability */
p {
    font-family: var(--font-main);
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.15rem;
    max-width: 760px;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    color: var(--text-primary);
    font-weight: 700;
}

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

.trademark {
    font-size: 0.55em;
    vertical-align: super;
    font-weight: 400;
}

/* Right-Side Lateral Search Indicator Strip */
.right-search-markers {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 8px;
    width: 14px;
    z-index: 1000;
    pointer-events: none;
}

.right-search-tick {
    position: absolute;
    right: 0;
    width: 12px;
    height: 4px;
    border-radius: 2px;
    background-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s ease, width 0.2s ease;
}

.right-search-tick:hover {
    transform: scaleX(1.5);
    width: 18px;
}

.right-search-tick.active-tick {
    background-color: #ffffff;
    box-shadow: 0 0 12px #ffffff, 0 0 20px var(--accent-color);
    height: 6px;
    width: 16px;
    z-index: 1001;
}

/* Layout */
.layout-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    padding-left: 0;
    justify-content: center;
}

/* Header (Desktop & Mobile) */
.mobile-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(14, 16, 19, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2.5rem;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.mobile-header .brand-title {
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    font-size: 1.25rem;
}

/* Sidebar Backdrop */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.icon-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.icon-btn .icon-menu,
.icon-btn .icon-close {
    position: absolute;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.icon-btn .icon-menu {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.icon-btn .icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
    pointer-events: none;
}

.icon-btn.is-active .icon-menu {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
    pointer-events: none;
}

.icon-btn.is-active .icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    pointer-events: auto;
}

/* Sidebar Navigation (Right Slide-out Drawer) */
.sidebar {
    width: 300px;
    max-width: 88vw;
    background-color: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    border-right: none;
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    right: 0;
    left: auto;
    display: flex;
    flex-direction: column;
    z-index: 95;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar .brand-logo {
    display: none !important;
}

.sidebar-header {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header .search-box {
    margin-top: 0;
}

/* Search Box & Controls */
.search-box {
    margin-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 0.65rem;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.45rem 2.6rem 0.45rem 2rem;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: var(--font-main);
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.search-counter {
    position: absolute;
    right: 0.5rem;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.72rem;
    color: var(--accent-color);
    font-weight: 700;
}

.search-nav-btns {
    display: flex;
    gap: 0.35rem;
    justify-content: flex-end;
}

.search-nav-btns.hidden {
    display: none;
}

.search-nav-btn {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-nav-btn:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Nav Menu with Section Colors */
.nav-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0.4rem 0;
}

.nav-menu::-webkit-scrollbar {
    width: 4px;
}

.nav-menu::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
}

/* Toolbar with Collapse All */
.nav-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.85rem 0.55rem 0.85rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-toolbar-label {
    font-family: var(--font-main);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-toolbar-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.66rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-toolbar-btn:hover {
    color: var(--accent-color);
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.06);
}

.nav-group {
    margin-bottom: 0.15rem;
}

.nav-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.32rem 0.25rem 0.32rem 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 0.86rem;
    font-weight: 600;
    transition: var(--transition);
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-card-hover);
}

.nav-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.32rem 0.65rem 0.32rem 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-toggle-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-chevron {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-group.collapsed .nav-chevron {
    transform: rotate(-90deg);
}

.nav-num {
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Nav Active States per Section */
.nav-link[data-section="plataforma"].active {
    color: var(--sec1-color);
    border-left-color: var(--sec1-color);
    background-color: rgba(0, 240, 255, 0.1);
}
.nav-link[data-section="plataforma"].active .nav-num { color: var(--sec1-color); }

.nav-link[data-section="ecosistema"].active {
    color: var(--sec2-color);
    border-left-color: var(--sec2-color);
    background-color: rgba(168, 85, 247, 0.1);
}
.nav-link[data-section="ecosistema"].active .nav-num { color: var(--sec2-color); }

.nav-link[data-section="mercado"].active {
    color: var(--sec3-color);
    border-left-color: var(--sec3-color);
    background-color: rgba(16, 185, 129, 0.1);
}
.nav-link[data-section="mercado"].active .nav-num { color: var(--sec3-color); }

.nav-link[data-section="oferta"].active {
    color: var(--sec4-color);
    border-left-color: var(--sec4-color);
    background-color: rgba(245, 158, 11, 0.1);
}
.nav-link[data-section="oferta"].active .nav-num { color: var(--sec4-color); }

.nav-link[data-section="equipo"].active {
    color: var(--sec5-color);
    border-left-color: var(--sec5-color);
    background-color: rgba(244, 63, 94, 0.1);
}
.nav-link[data-section="equipo"].active .nav-num { color: var(--sec5-color); }

.nav-link[data-section="flujo"].active {
    color: var(--sec6-color);
    border-left-color: var(--sec6-color);
    background-color: rgba(59, 130, 246, 0.1);
}
.nav-link[data-section="flujo"].active .nav-num { color: var(--sec6-color); }

.nav-link[data-section="marketing"].active {
    color: var(--sec7-color);
    border-left-color: var(--sec7-color);
    background-color: rgba(132, 204, 22, 0.1);
}
.nav-link[data-section="marketing"].active .nav-num { color: var(--sec7-color); }

.nav-link[data-section="referentes"].active {
    color: var(--sec8-color);
    border-left-color: var(--sec8-color);
    background-color: rgba(217, 70, 239, 0.1);
}
.nav-link[data-section="referentes"].active .nav-num { color: var(--sec8-color); }

/* Sub-nav Accordion */
.sub-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0.9rem;
    padding-right: 0.5rem;
    margin-top: 0.08rem;
    margin-bottom: 0.25rem;
    margin-left: 1.35rem;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    max-height: 400px;
    opacity: 1;
    transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.22s ease,
                margin 0.25s ease,
                padding 0.25s ease;
}

.nav-group.collapsed .sub-nav {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
    border-left-color: transparent;
}

.sub-link {
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.77rem;
    text-decoration: none;
    padding: 0.15rem 0;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-link:hover {
    color: var(--text-primary);
    transform: translateX(2px);
}

/* Sidebar Footer & Lock Button */
.sidebar-footer {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-sidebar);
}

.lock-doc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.45rem 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lock-doc-btn:hover {
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.4);
    background: rgba(244, 63, 94, 0.06);
}

/* Main Content Area */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 3.5rem) 4rem 6rem;
}

/* Header */
.doc-header {
    margin-bottom: 3.5rem;
    padding-bottom: 1rem;
}

/* Document Sections */
.doc-section {
    position: relative;
    margin-bottom: 5.5rem;
    padding-top: 2rem;
    scroll-margin-top: 2rem;
}

.doc-section:first-of-type {
    padding-top: 0;
}

/* Section Title Badges */
.section-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.55rem;
    padding: 1rem 1.6rem;
    border-radius: var(--radius-md);
    margin-bottom: 2.2rem;
    border: 1px solid var(--border-color);
    letter-spacing: -0.01em;
}

.badge-sec-1 {
    color: var(--sec1-color);
    background-color: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.06);
}

.badge-sec-2 {
    color: var(--sec2-color);
    background-color: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.06);
}

.badge-sec-3 {
    color: var(--sec3-color);
    background-color: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.06);
}

.badge-sec-4 {
    color: var(--sec4-color);
    background-color: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.06);
}

.badge-sec-5 {
    color: var(--sec5-color);
    background-color: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.25);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.06);
}

.badge-sec-6 {
    color: var(--sec6-color);
    background: transparent;
    border: none;
    box-shadow: none;
    border-left: 4px solid var(--sec6-color);
    border-radius: 0;
    padding: 0.25rem 0 0.25rem 1.25rem;
}

.badge-sec-7 {
    color: var(--sec7-color);
    background-color: rgba(132, 204, 22, 0.08);
    border-color: rgba(132, 204, 22, 0.25);
    box-shadow: 0 0 20px rgba(132, 204, 22, 0.06);
}

.badge-sec-8 {
    color: var(--sec8-color);
    background-color: rgba(217, 70, 239, 0.08);
    border-color: rgba(217, 70, 239, 0.25);
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.06);
}

.section-intro {
    font-family: var(--font-main);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.2rem;
    max-width: 820px;
}

/* Editorial Blocks */
.editorial-stack {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    margin-top: 1.5rem;
}

.editorial-block {
    padding-left: 1.5rem;
    border-left: 3px solid var(--border-light);
}

.sec-1 .primary-accent,
.sec-1 .secondary-accent,
.sec-1 .tertiary-accent { 
    border-left-color: var(--sec1-color); 
}

.block-label {
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.sec-1 .block-label { color: var(--sec1-color); }
.sec-2 .block-label { color: var(--sec2-color); }
.sec-3 .block-label { color: var(--sec3-color); }
.sec-4 .block-label { color: var(--sec4-color); }
.sec-5 .block-label { color: var(--sec5-color); }
.sec-6 .block-label { color: var(--sec6-color); }
.sec-7 .block-label { color: var(--sec7-color); }

.editorial-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.sub-pill {
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.72rem;
    color: var(--sec1-color);
    background-color: rgba(0, 240, 255, 0.12);
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    font-weight: 700;
}

/* Section 2: Diagram */
.diagram-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.diagram-node {
    text-align: center;
    transition: var(--transition);
}

.node-master {
    background-color: var(--bg-main);
    border: 2px solid var(--sec2-color);
    border-radius: var(--radius-md);
    padding: 1.2rem 3rem;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.node-type {
    font-family: var(--font-main);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--sec2-color);
    display: block;
    margin-bottom: 0.2rem;
}

.diagram-connector-lines {
    width: 2px;
    height: 45px;
    background: linear-gradient(to bottom, var(--sec2-color), var(--border-light));
    margin: 0.5rem 0;
}

.diagram-branches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.node-branch {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.node-branch:hover {
    border-color: var(--sec2-color);
}

.node-pill {
    font-family: var(--font-main);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--sec2-color);
    display: block;
    margin-bottom: 0.5rem;
}

.node-header h4 {
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.node-header .sub {
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 1rem;
}

.node-list {
    list-style: none;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.node-list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.4rem;
}

.node-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--sec2-color);
}

.node-desc {
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border-color);
}

.content-box {
    margin-top: 2.5rem;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
    margin-top: 1.75rem;
}

.sec-2 .col-item {
    border-top: 3px solid var(--sec2-color);
    padding-top: 1.25rem;
}

.col-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

/* Section 3: Market Flow & Boxed Creative Sectors */
.market-flow {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.market-overview {
    padding-left: 1.5rem;
    border-left: 3px solid var(--sec3-color);
}

.sectors-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.sec-3 .sector-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--sec3-color);
    border-radius: var(--radius-md);
    padding: 2.25rem 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.sec-3 .sector-card:hover {
    border-color: var(--sec3-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.09);
}

.sector-card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed var(--border-color);
}

.sector-tag {
    font-family: var(--font-main);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--sec3-color);
    display: block;
    margin-bottom: 0.4rem;
}

.sector-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    line-height: 1.25;
}

.sector-title-sub {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    display: inline-block;
}

.sector-focus {
    background: rgba(16, 185, 129, 0.07);
    border-left: 3px solid var(--sec3-color);
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-top: 0.85rem;
}

.focus-label {
    font-family: var(--font-main);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--sec3-color);
    margin-right: 0.35rem;
}

.sector-capabilities {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.capability-group h5 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.sector-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sector-list li {
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 0.55rem;
    padding-left: 1.15rem;
    position: relative;
    max-width: none;
}

.sector-list li:last-child {
    margin-bottom: 0;
}

.sector-list li::before {
    content: "•";
    position: absolute;
    left: 0.1rem;
    color: var(--sec3-color);
    font-size: 1.1rem;
    line-height: 1;
}

.subsidy-card {
    background: transparent;
    border: none;
    border-left: 4px solid var(--sec3-color);
    border-radius: 0;
    padding: 0.5rem 0 0.5rem 1.75rem;
}

.subsidy-header {
    margin-bottom: 1.5rem;
}

.subsidy-header h3 {
    margin-top: 0.4rem;
}

.subsidy-body {
    padding-top: 1.25rem;
    border-top: 1px dashed var(--border-color);
}

.subsidy-body h4 {
    color: var(--sec3-color);
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

/* Services Cards Section 4 */
.services-editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-top: 1.75rem;
}

.sec-4 .service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--sec4-color);
    border-radius: var(--radius-md);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sec-4 .service-card:hover {
    border-color: var(--sec4-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.09);
}

.sec-4 .offer-category {
    font-family: var(--font-main);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--sec4-color);
    display: block;
    margin-bottom: 0.4rem;
}

.sec-4 .service-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.25rem;
    line-height: 1.25;
}

.offer-subtitle {
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--sec4-color);
    display: block;
    margin-bottom: 1.15rem;
}

.service-desc {
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.editorial-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--border-color);
}

.editorial-list li {
    font-family: var(--font-main);
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 1.15rem;
    position: relative;
    max-width: none;
}

.editorial-list li:last-child {
    margin-bottom: 0;
}

.sec-4 .editorial-list li::before {
    content: "•";
    position: absolute;
    left: 0.1rem;
    color: var(--sec4-color);
    font-size: 1.1rem;
    line-height: 1;
}

/* Section 5: Single-Column Team Grid */
.team-grid-single {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 1.75rem;
}

.sec-5 .team-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.25rem 2.5rem;
    transition: var(--transition);
    border-left: 4px solid var(--sec5-color);
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.sec-5 .team-card:hover {
    border-color: var(--sec5-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.08);
}

.team-card-left {
    display: flex;
    flex-direction: column;
}

.team-card-right {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 0.75rem;
}

.sec-5 .team-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--sec5-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--sec5-color);
}

.team-meta h3 {
    margin-bottom: 0.1rem;
    font-size: 1.45rem;
}

.location {
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.sec-5 .team-role {
    font-family: var(--font-display);
    color: var(--sec5-color);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.35;
}

.team-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

.detail-block h6 {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-main);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.detail-block p {
    font-size: 0.95rem;
    margin-bottom: 0;
    max-width: none;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
}

.tag-item {
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 600;
    background-color: var(--bg-main);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Section 6: Process Timeline with Connected Step Cards */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
}

.sec-6 .process-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    position: relative;
    transition: var(--transition);
}

.sec-6 .process-card:hover {
    border-color: var(--sec6-color);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.process-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.process-num {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--sec6-color);
    background-color: var(--bg-main);
    border: 2px solid var(--sec6-color);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.65rem;
    text-align: center;
    z-index: 2;
    min-width: 48px;
}

.process-line {
    position: absolute;
    top: 45px;
    bottom: -32px;
    width: 2px;
    background: linear-gradient(to bottom, var(--sec6-color), rgba(59, 130, 246, 0.2));
    z-index: 1;
}

.process-content {
    display: flex;
    flex-direction: column;
}

.process-owner {
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sec6-color);
    display: block;
    margin-bottom: 0.4rem;
}

.process-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}

.process-content p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Parallel Lab Card */
.sec-6 .process-parallel {
    border-left: 4px solid var(--sec6-color);
    background-color: var(--bg-highlight);
}

.process-parallel .process-num {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.45rem 0.4rem;
    letter-spacing: 0.04em;
    min-width: auto;
}

/* Section 7: Marketing & Prospecting Cards */
.marketing-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-top: 1.75rem;
}

.sec-7 .marketing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--sec7-color);
    border-radius: var(--radius-md);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sec-7 .marketing-card:hover {
    border-color: var(--sec7-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(132, 204, 22, 0.09);
}

.sec-7 .marketing-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.85rem;
}

.sec-7 .marketing-card p {
    font-size: 0.98rem;
    line-height: 1.65;
}

/* Section 7: Metrics Editorial Grid Accent Colors */
.sec-7 .metrics-editorial {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 3px solid var(--sec7-color);
}

.metrics-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.25rem;
}

.sec-7 .m-head {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--sec7-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* Footer */
.doc-footer {
    margin-top: 6rem;
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

/* Exact Searched Term Highlight & Blinking White Border Indicator */
.search-highlight-word {
    background-color: rgba(0, 240, 255, 0.15);
    color: #ffffff;
    padding: 0.1em 0.35em;
    border-radius: 3px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    font-weight: 700;
}

@keyframes pulseWhiteBorder {
    0% {
        border-color: #ffffff;
        box-shadow: 0 0 6px #ffffff, 0 0 16px rgba(255, 255, 255, 0.9);
        background-color: rgba(255, 255, 255, 0.35);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.25);
        box-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
        background-color: rgba(255, 255, 255, 0.15);
    }
    100% {
        border-color: #ffffff;
        box-shadow: 0 0 6px #ffffff, 0 0 16px rgba(255, 255, 255, 0.9);
        background-color: rgba(255, 255, 255, 0.35);
    }
}

.active-word-focus {
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    animation: pulseWhiteBorder 0.85s infinite ease-in-out !important;
    border-radius: 3px;
    display: inline-block;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   Section 8: Ecosistema de Referentes
   ========================================================================== */
.referentes-stack {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    margin-top: 1.75rem;
}

.sec-8 .referentes-area-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--sec8-color);
    border-radius: var(--radius-md);
    padding: 2.25rem 2rem;
    transition: var(--transition);
}

.sec-8 .referentes-area-card:hover {
    border-color: var(--sec8-color);
    box-shadow: 0 8px 30px rgba(217, 70, 239, 0.07);
}

.referentes-area-header {
    margin-bottom: 1.6rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px dashed var(--border-color);
}

.area-tag {
    font-family: var(--font-main);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--sec8-color);
    display: block;
    margin-bottom: 0.35rem;
}

.referentes-area-header h3 {
    font-size: 1.4rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.area-subtitle {
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: none;
}

.referentes-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.referente-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: var(--transition);
}

.referente-item:hover {
    border-color: rgba(217, 70, 239, 0.4);
    background: rgba(217, 70, 239, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(217, 70, 239, 0.06);
}

.referente-item-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.referente-item h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.referente-location {
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sec8-color);
    background: rgba(217, 70, 239, 0.08);
    border: 1px solid rgba(217, 70, 239, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    white-space: nowrap;
}

.referente-meta-right {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.referente-links {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ref-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
}

.ref-icon-link:hover {
    color: var(--sec8-color);
    border-color: rgba(217, 70, 239, 0.45);
    background: rgba(217, 70, 239, 0.1);
    transform: translateY(-1px);
}

.referente-item p {
    font-family: var(--font-main);
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
    max-width: none;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
        position: relative;
    }

    .mobile-header {
        padding: 0 1.25rem;
    }
    
    .layout-container {
        padding-left: 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .main-content {
        margin-left: 0;
        padding: calc(var(--header-height) + 1.75rem) 1rem 3rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    h1, h2, h3, h4, h5, h6, p, a, span {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    h1 {
        font-size: 2.3rem;
        line-height: 1.15;
    }
    
    .section-badge {
        font-size: 1.2rem;
        padding: 0.75rem 1rem;
        max-width: 100%;
    }
    
    /* Contenedores y tarjetas ajustadas a ancho móvil */
    .diagram-wrapper,
    .sec-3 .sector-card,
    .sec-4 .service-card,
    .sec-5 .team-card,
    .sec-7 .marketing-card,
    .sec-8 .referentes-area-card {
        padding: 1.5rem 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .node-master {
        padding: 1rem 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .sec-5 .team-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-card-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 1.25rem;
    }

    .team-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sec-6 .process-card {
        grid-template-columns: 50px 1fr;
        gap: 0.85rem;
        padding: 1.25rem 0.95rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .process-num {
        min-width: 40px;
        padding: 0.3rem 0.35rem;
        font-size: 1.1rem;
    }
    
    .diagram-branches,
    .three-col,
    .editorial-grid-2,
    .services-editorial-grid,
    .metrics-three,
    .referentes-items-grid,
    .sectors-grid,
    .marketing-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Ajustes específicos de Referentes para evitar desborde */
    .referente-item {
        padding: 1rem 0.95rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .referente-item-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .referente-meta-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .referente-location {
        white-space: normal;
        word-break: break-word;
        line-height: 1.35;
        max-width: calc(100% - 65px);
    }

    .doc-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
        margin-top: 3.5rem;
        padding-top: 2rem;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .auth-box {
        padding: 2rem 1.35rem;
        max-width: 100%;
    }

    .auth-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }
    
    .right-search-markers {
        display: none !important;
    }
}

/* ==========================================================================
   Gatekeeper / Password Protection Overlay
   ========================================================================== */
html:not(.auth-unlocked) {
    overflow: hidden !important;
}

.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: radial-gradient(circle at center, #181a1e 0%, #090a0b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}

html.auth-unlocked .auth-gate {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-box {
    background: rgba(18, 20, 24, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid var(--accent-color);
    border-radius: var(--radius-md);
    padding: 2.5rem 2.25rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(0, 240, 255, 0.05);
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.auth-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    font-weight: 700;
}

.auth-badge {
    font-family: var(--font-main);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.25);
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.auth-desc {
    font-family: var(--font-main);
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#authKeyInput {
    width: 100%;
    background-color: #070809;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 3.2rem 0.75rem 1rem;
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.98rem;
    letter-spacing: 0.05em;
    outline: none;
    transition: var(--transition);
}

#authKeyInput:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.auth-btn {
    position: absolute;
    right: 0.35rem;
    background-color: var(--accent-color);
    border: none;
    border-radius: var(--radius-sm);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000000;
    transition: var(--transition);
}

.auth-btn:hover {
    filter: brightness(1.2);
    transform: translateX(2px);
}

.auth-error {
    min-height: 1.25rem;
    font-family: var(--font-main);
    font-size: 0.82rem;
    color: #f43f5e;
    margin-top: 0.65rem;
    transition: opacity 0.2s ease;
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    font-family: var(--font-main);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}

/* Shaking animation on wrong password */
@keyframes authShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.auth-shake {
    animation: authShake 0.4s ease;
}
