:root {
    /* Theme - Obsidian & Emerald Cyber Palette */
    --bg-page: #060908;
    --bg-card: rgba(13, 20, 16, 0.85);
    --bg-card-border: rgba(16, 185, 129, 0.2);
    --bg-terminal: #090d0b;
    --bg-terminal-header: #0f1713;
    
    /* Text Colors */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    /* Emerald & Neon Accents */
    --primary-green: #10b981;
    --emerald-glow: #00ff9d;
    --emerald-dark: #047857;
    --emerald-soft: #34d399;
    --emerald-subtle: rgba(16, 185, 129, 0.12);
    --emerald-border: rgba(16, 185, 129, 0.35);
    
    /* Terminal Colors */
    --term-text: #e2e8f0;
    --term-green: #10b981;
    --term-prompt: #34d399;
    --term-cmd: #38bdf8;
    --term-error: #f43f5e;
    --term-warning: #fbbf24;
    --term-border: rgba(16, 185, 129, 0.2);
    --term-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(16, 185, 129, 0.08);

    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, Menlo, Monaco, monospace;

    /* Radius & Transitions */
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

/* Background Cyber Grid Overlay */
.bg-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(16, 185, 129, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(16, 185, 129, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
    background-size: 40px 40px, 40px 40px, 100% 100%;
    pointer-events: none;
    z-index: 0;
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 1280px;
    height: 86vh;
    min-height: 640px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-card-border);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(16, 185, 129, 0.12);
    overflow: hidden;
}

/* =========================================
   Panel Izquierdo: Tarjeta de Identidad (34%)
   ========================================= */
.identity-card {
    width: 34%;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    border-right: 1px solid var(--bg-card-border);
    background: linear-gradient(180deg, rgba(15, 23, 19, 0.95) 0%, rgba(9, 13, 11, 0.98) 100%);
    overflow-y: auto;
}

/* Avatar con Halo Esmeralda */
.avatar-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--emerald-glow), var(--primary-green), #0f172a);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.35), 0 0 50px rgba(0, 255, 157, 0.15);
    transition: var(--transition);
}

.avatar-wrapper:hover {
    transform: scale(1.03);
    box-shadow: 0 0 35px rgba(0, 255, 157, 0.5), 0 0 70px rgba(16, 185, 129, 0.25);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background-color: #111a16;
}

/* Status Indicator Dot */
.status-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #090d0b;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.6);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--emerald-glow);
    border-radius: 50%;
}

.pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 255, 157, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}

/* Perfil y Títulos */
.name {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 40%, var(--emerald-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--emerald-soft);
    margin-bottom: 0.35rem;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    line-height: 1.4;
}

.location {
    font-size: 0.85rem;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    background: rgba(16, 185, 129, 0.06);
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.icon-svg {
    stroke: var(--primary-green);
}

/* Tech Tags / Badges */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin: 1.25rem 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: var(--transition);
}

.tag:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: var(--primary-green);
    color: var(--emerald-glow);
    transform: translateY(-1px);
}

.tag-gemini {
    border-color: rgba(0, 255, 157, 0.4);
    color: var(--emerald-glow);
    background: rgba(0, 255, 157, 0.1);
}

.tag-agentic {
    border-color: rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 19, 0.8);
    color: var(--text-muted);
    border: 1px solid var(--bg-card-border);
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.social-btn:hover {
    transform: translateY(-3px);
    color: var(--emerald-glow);
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--primary-green);
    box-shadow: 0 6px 16px rgba(0, 255, 157, 0.2);
}

.card-footer {
    margin-top: 1rem;
}

.engine-badge {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.engine-badge strong {
    color: var(--emerald-soft);
}

/* =========================================
   Panel Derecho: Terminal Linux (66%)
   ========================================= */
.terminal-container {
    width: 66%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-terminal);
    position: relative;
    border-left: 1px solid var(--term-border);
    overflow: hidden;
}

/* Terminal Header */
.terminal-header {
    background-color: var(--bg-terminal-header);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--term-border);
    user-select: none;
}

.window-controls {
    display: flex;
    gap: 7px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.control-dot.close { background: #ff5f56; }
.control-dot.minimize { background: #ffbd2e; }
.control-dot.maximize { background: #27c93f; }

.control-dot:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
}

.terminal-user { color: var(--emerald-soft); }
.terminal-path { color: #38bdf8; }

.terminal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--emerald-glow);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--emerald-glow);
}

.badge-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--emerald-glow);
    letter-spacing: 0.05em;
}

/* Selector de Idiomas Elegante (i18n) */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(10, 20, 15, 0.75);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.15rem 0.35rem;
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.lang-globe {
    font-size: 0.75rem;
    margin-right: 0.1rem;
    user-select: none;
    line-height: 1;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--text-light);
    background: rgba(16, 185, 129, 0.15);
}

.lang-btn.active {
    color: #020b06;
    background: var(--emerald-soft);
    box-shadow: 0 0 8px rgba(0, 255, 157, 0.4);
    font-weight: 700;
}

.lang-btn:focus-visible {
    outline: 2px solid var(--emerald-glow);
    outline-offset: 1px;
}

/* Terminal Body */
.terminal-body {
    flex: 1;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--term-text);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--emerald-dark) transparent;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}
.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}
.terminal-body::-webkit-scrollbar-thumb {
    background-color: rgba(16, 185, 129, 0.25);
    border-radius: 4px;
}
.terminal-body::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-green);
}

/* Terminal Lines & Formatting */
#terminal-output {
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal-line {
    margin-bottom: 0.35rem;
}

.terminal-line.success { color: var(--emerald-soft); }
.terminal-line.error { color: var(--term-error); }
.terminal-line.warning { color: var(--term-warning); }
.terminal-line.info { color: #cbd5e1; }
.terminal-line.command {
    color: #38bdf8;
    font-weight: 600;
    padding: 0.2rem 0;
}
.terminal-line.gemini-reply {
    color: #f1f5f9;
    background: rgba(16, 185, 129, 0.05);
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--primary-green);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 0.5rem 0;
}

.terminal-line.markdown-output {
    line-height: 1.6;
}

.terminal-line.markdown-output a {
    color: var(--emerald-glow);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.terminal-line.markdown-output a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 255, 157, 0.8);
}

.terminal-line.markdown-output pre {
    background: #0d1411;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    overflow-x: auto;
}

.terminal-line.markdown-output code {
    font-family: var(--font-mono);
    color: var(--emerald-soft);
}

.terminal-line.markdown-output strong {
    color: #ffffff;
}

/* Input Line */
.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.prompt {
    font-family: var(--font-mono);
    font-weight: 600;
    white-space: nowrap;
    user-select: none;
}

.prompt-user { color: var(--emerald-soft); }
.prompt-path { color: #38bdf8; }
.prompt-symbol { color: var(--emerald-glow); margin-left: 2px; }

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #f8fafc;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    outline: none;
    padding: 0;
    caret-color: var(--emerald-glow);
    caret-shape: block;
}

/* Ocultar caret externo que se desplazaba al borde */
.caret {
    display: none;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    body {
        padding: 1rem;
    }

    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .identity-card {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--bg-card-border);
        padding: 2rem 1.5rem;
    }

    .terminal-container {
        width: 100%;
        min-height: 60vh;
        border-left: none;
    }
}

/* =========================================
   Accesibilidad (a11y) y Soporte Universal
   ========================================= */

/* Skip link accesible */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--emerald-glow);
    color: #000000;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    z-index: 99999;
    text-decoration: none;
    transition: top 0.2s ease;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.8);
}
.skip-link:focus {
    top: 20px;
    outline: 3px solid #ffffff;
}

/* Foco visible de alto contraste */
:focus-visible {
    outline: 2px solid var(--emerald-glow) !important;
    outline-offset: 3px !important;
}

/* Botón Flotante de Accesibilidad */
.a11y-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(13, 20, 16, 0.95);
    border: 2px solid var(--primary-green);
    color: var(--emerald-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.35);
    transition: var(--transition);
}
.a11y-floating-btn:hover {
    transform: scale(1.1);
    background: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.6);
}

/* Modal de Accesibilidad */
.a11y-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.a11y-modal-content {
    background: #0d1411;
    border: 1px solid var(--primary-green);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(16, 185, 129, 0.25);
    overflow: hidden;
}
.a11y-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--bg-card-border);
    background: #111a16;
}
.a11y-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}
.a11y-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.a11y-close-btn:hover {
    color: var(--term-error);
    background: rgba(244, 63, 94, 0.15);
}
.a11y-modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: 80vh;
    overflow-y: auto;
}
.a11y-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.a11y-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.a11y-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #f1f5f9;
}
.a11y-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Switch Accesible */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #1e293b;
    transition: .3s;
    border-radius: 26px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: #94a3b8;
    transition: .3s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--primary-green);
}
input:checked + .slider:before {
    transform: translateX(22px);
    background-color: #ffffff;
}

/* Botones de Escala de Texto */
.a11y-btn-group {
    display: flex;
    gap: 4px;
}
.a11y-scale-btn {
    padding: 0.4rem 0.75rem;
    background: #111a16;
    border: 1px solid var(--bg-card-border);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.a11y-scale-btn.active {
    background: var(--primary-green);
    color: #000000;
    border-color: var(--emerald-glow);
}

/* Atajos de teclado en el modal */
.a11y-shortcuts-info {
    margin-top: 0.5rem;
    padding: 0.85rem;
    background: #090d0b;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bg-card-border);
}
.a11y-shortcuts-info h3 {
    font-size: 0.85rem;
    color: var(--emerald-soft);
    margin-bottom: 0.4rem;
}
.a11y-shortcuts-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
kbd {
    background: #16221d;
    border: 1px solid var(--primary-green);
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    color: var(--emerald-glow);
    font-family: var(--font-mono);
}

/* Modo Alto Contraste */
body.high-contrast {
    --bg-page: #000000 !important;
    --bg-card: #000000 !important;
    --bg-terminal: #000000 !important;
    --bg-terminal-header: #050505 !important;
    --text-main: #ffffff !important;
    --text-muted: #f8fafc !important;
    --primary-green: #00ff9d !important;
    --emerald-soft: #00ff9d !important;
    --emerald-glow: #00ff9d !important;
    --term-text: #ffffff !important;
    border-color: #00ff9d !important;
}
body.high-contrast .container {
    border: 2px solid #00ff9d !important;
    box-shadow: 0 0 35px rgba(0, 255, 157, 0.5) !important;
}
body.high-contrast .identity-card {
    border-right: 2px solid #00ff9d !important;
}
body.high-contrast .a11y-modal-content,
body.high-contrast .email-modal-content {
    border: 2px solid #00ff9d !important;
    background: #000000 !important;
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.4) !important;
}
body.high-contrast .a11y-modal-header {
    border-bottom: 2px solid #00ff9d !important;
    background: #000000 !important;
}
body.high-contrast .a11y-close-btn,
body.high-contrast .email-action-btn,
body.high-contrast .email-action-sublink {
    border: 1px solid #00ff9d !important;
    color: #ffffff !important;
}
body.high-contrast .email-status-badge {
    border: 2px solid #00ff9d !important;
    background: #000000 !important;
    color: #00ff9d !important;
}

/* Modo Dislexia */
body.dyslexia-mode {
    font-family: Arial, Verdana, sans-serif !important;
    letter-spacing: 0.05em !important;
    line-height: 1.8 !important;
    word-spacing: 0.08em !important;
}

/* Escalas de Fuente */
body.font-large {
    font-size: 112% !important;
}
body.font-xlarge {
    font-size: 125% !important;
}

/* Reducción de Movimiento */
body.reduced-motion *,
@media (prefers-reduced-motion: reduce) {
    animation: none !important;
    transition: none !important;
}

/* =========================================
   Modal de Correo y Portapapeles
   ========================================= */
.email-modal-content {
    max-width: 440px;
    text-align: center;
}
.email-modal-body {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.email-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--primary-green);
    border-radius: 9999px;
    color: var(--emerald-glow);
    font-weight: 600;
    font-size: 0.95rem;
}
.email-status-badge.error {
    background: rgba(244, 63, 94, 0.12);
    border-color: var(--term-error);
    color: #fda4af;
}
.email-display-box {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #090d0b;
    border: 1px dashed rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #ffffff;
    word-break: break-all;
    user-select: all;
    display: flex;
    justify-content: center;
    align-items: center;
}
.email-modal-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
}
.email-action-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    font-family: var(--font-sans);
}
.email-action-btn.primary {
    background: var(--primary-green);
    color: #000000;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}
.email-action-btn.primary:hover {
    background: var(--emerald-glow);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}
.email-action-btn.secondary {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid var(--bg-card-border);
    color: var(--text-muted);
}
.email-action-btn.secondary:hover {
    background: rgba(16, 185, 129, 0.18);
    color: #ffffff;
    border-color: var(--primary-green);
}

.email-action-sublink {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    margin-top: 0.25rem;
}
.email-action-sublink:hover {
    color: var(--emerald-glow);
}

/* =========================================
   Controles de Encabezado: Idioma y Accesibilidad
   ========================================= */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 2px 6px;
    border-radius: 20px;
}
.lang-globe {
    font-size: 0.85rem;
    margin-right: 2px;
}
.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.lang-btn:hover {
    color: var(--emerald-glow);
}
.lang-btn.active {
    background: var(--primary-green);
    color: #000000;
}

/* Botón de Accesibilidad Rápida en la Barra de la Terminal */
.a11y-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--emerald-glow);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
}
.a11y-header-btn:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: var(--emerald-glow);
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.35);
}


