/* dev/css/style.css */

:root {
    /* Paleta de colores inspirada en Antigravity / Dark Modern IDE */
    --bg-app: #1e1e1e;
    --bg-sidebar: #252526;
    --bg-activity-bar: #333333;
    --bg-editor: #1e1e1e;
    --bg-status-bar: #007acc;
    /* Azul clásico de barra de estado VS Code, o podemos usar uno más oscuro */
    --bg-tab-active: #1e1e1e;
    --bg-tab-inactive: #2d2d2d;
    --border-color: #3e3e42;

    --text-primary: #cccccc;
    --text-secondary: #858585;
    --accent-color: #007acc;
    --hover-color: #2a2d2e;
    --selection-color: #264f78;

    /* Fuentes */
    --bg-title-bar: #3c3c3c;
    --bg-title-bar-hover: #505050;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'Fira Code', 'Consolas', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-app);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

/* 0. Title Bar */
.title-bar {
    height: 30px;
    background-color: var(--bg-title-bar);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-size: 13px;
    user-select: none;
    font-family: var(--font-ui);
    /* Asegurar fuente */
    color: #cccccc;
    width: 100%;
}

.title-bar-left {
    display: flex;
    align-items: center;
    gap: 0;
    /* Control gap via margins */
    flex: 1;
}

.title-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.title-bar-center {
    flex: 2;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    font-family: var(--font-ui);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    padding: 2px;
}

.title-menu {
    display: flex;
    align-items: center;
    margin-left: 5px;
}

.title-menu span {
    cursor: default;
    padding: 4px 8px;
    /* Más espacio clickable */
    border-radius: 5px;
    color: #cccccc;
    font-size: 13px;
    transition: background-color 0.1s;
}

.title-menu span:hover {
    background-color: var(--bg-title-bar-hover);
    color: #ffffff;
}

.window-controls {
    display: flex;
}

.control {
    cursor: default;
    font-size: 14px;
    padding: 0 10px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
}

.control:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.control.close:hover {
    background-color: #e81123;
    color: #ffffff;
}

/* Layout Principal Grid */
.app-container {
    display: flex;
    /* Height = 100vh - TitleBar(30px) - StatusBar(22px) */
    height: calc(100vh - 30px - 22px);
}

/* 1. Activity Bar */
.activity-bar {
    width: 48px;
    background-color: var(--bg-activity-bar);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
}

.action-item {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    cursor: pointer;
    position: relative;
    width: 100%;
    text-align: center;
    height: 48px;
    line-height: 48px;
}

.action-item:hover,
.action-item.active {
    color: #ffffff;
}

.action-item:hover i.active-blue,
.action-item.active i.active-blue {
    color: #3b82f6 !important;
}

.action-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ffffff;
}

.spacer {
    flex-grow: 1;
}

/* 2. Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 10px 20px;
    font-size: 11px;
    font-weight: bold;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-tree {
    flex-grow: 1;
    overflow-y: auto;
}

.tree-section {
    border-bottom: 1px solid var(--border-color);
    /* Opcional */
}

.section-title {
    padding: 8px 0px 8px 10px;
    /* Ajuste para alinear flecha */
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-title:hover {
    background-color: var(--hover-color);
}

.section-title i {
    font-size: 10px;
}

.tree-content {
    margin-left: 0;
}

.pl-2 {
    padding-left: 15px;
    border-left: 1px solid #3e3e42;
    /* Guia de indentación */
    margin-left: 12px;
}

/* --- Modal SaaS Demo --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-container {
    background: #1e1e1e;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modal-slide-up 0.3s ease-out;
}

.welcome-info-card .modal-header {
    background: linear-gradient(90deg, #252526 0%, #333333 100%);
    border-bottom: 2px solid #007acc;
}

.welcome-info-card h3 {
    font-family: var(--font-ui);
    letter-spacing: 0.5px;
}

.nav-guide-container>div {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s, background 0.2s;
}

.nav-guide-container>div:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(5px);
}

.custom-checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

@keyframes modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.modal-header {
    background: #252526;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.modal-header h3 {
    margin: 0;
    color: #3b82f6;
    font-size: 20px;
}

.close-modal {
    color: #858585;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #fff;
}

#demo-form {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #9cdcfe;
    font-size: 13px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    background: #2d2d2d;
    border: 1px solid #444;
    padding: 12px;
    border-radius: 8px;
    color: #d4d4d4;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.submit-btn-premium {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}

.submit-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Fin Modal */

.tree-item,
.folder-title {
    padding: 3px 0 3px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    white-space: nowrap;
}

.tree-content .tree-item {
    padding-left: 24px;
}

.tree-content .tree-content .tree-item {
    padding-left: 38px;
}

.tree-content .tree-content .tree-content .tree-item {
    padding-left: 52px;
}

.tree-item:hover,
.folder-title:hover {
    background-color: var(--hover-color);
}

.tree-item.active {
    background-color: #37373d;
    color: #ffffff;
}

.folder-title i.fa-chevron-right {
    font-size: 10px;
    color: var(--text-secondary);
}

/* Iconos de colores */
.active-icon {
    color: #89e051;
    /* Verde JS/PHP */
}

.style-icon {
    color: #569cd6;
    /* Azul CSS */
}

.info-icon {
    color: #4fc1ff;
    /* Azul claro MD */
}

.text-orange {
    color: #ce9178;
    /* Color HTML/String VS Code */
}

.text-blue {
    color: #3b82f6;
    /* Azul para Viajes */
}

.text-green {
    color: #4ec9b0;
    /* Verde para Tecnología */
}

.text-red {
    color: #ef4444;
    /* Rojo para Cocina */
}

.text-purple {
    color: #a855f7;
    /* Púrpura para Música */
}

.text-muted {
    color: var(--text-secondary);
    font-style: italic;
}

/* 3. Main Editor */
/* 3. Main Editor */
.main-editor {
    flex-grow: 1;
    background-color: var(--bg-editor);
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: visible;
    /* Prevenir desbordamiento flex */
}

.tabs-bar-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--bg-sidebar);
    height: 35px;
    min-height: 35px;
    flex-shrink: 0;
    z-index: 1000;
    position: relative;
}

.tabs-nav-btn {
    background-color: var(--bg-sidebar);
    border: none;
    color: var(--text-secondary);
    width: 30px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.tabs-nav-btn:hover {
    background-color: var(--hover-color);
    color: var(--text-primary);
}

.tabs-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tabs-nav-btn:disabled:hover {
    background-color: var(--bg-sidebar);
    color: var(--text-secondary);
}

.tabs-bar {
    display: flex !important;
    background-color: var(--bg-sidebar);
    /* Fondo de pestañas inactivas */
    height: 35px !important;
    min-height: 35px !important;
    overflow-x: auto;
    flex-shrink: 1;
    flex-grow: 1;
    z-index: 1000;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.tabs-bar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.tab {
    background-color: var(--bg-tab-inactive);
    border-right: 1px solid var(--bg-app);
    /* Separador */
    padding: 0 10px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    min-width: 120px;
    height: 35px;
}

.tab.active {
    background-color: var(--bg-tab-active);
    color: #ffffff;
    border-top: 1px solid var(--accent-color);
}

.close-tab {
    margin-left: auto;
    font-size: 11px;
    padding: 2px;
    border-radius: 3px;
}

.close-tab:hover {
    background-color: #4b4b4b;
}

.breadcrumbs {
    height: 22px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid transparent;
    /* O box-shadow */
}

.breadcrumbs .separator {
    margin: 0 5px;
}

#editor-content {
    flex-grow: 1;
    padding: 0;
    overflow-y: auto;
    font-family: var(--font-ui);
    scrollbar-width: thin;
    scrollbar-color: #3e3e42 transparent;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.editor-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
}

/* Custom Webkit scrollbar for a premium look */
#editor-content::-webkit-scrollbar,
.visual-content::-webkit-scrollbar,
.antigravity-minimap::-webkit-scrollbar,
.file-tree::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

#editor-content::-webkit-scrollbar-track,
.visual-content::-webkit-scrollbar-track,
.antigravity-minimap::-webkit-scrollbar-track,
.file-tree::-webkit-scrollbar-track {
    background: transparent;
}

#editor-content::-webkit-scrollbar-thumb,
.visual-content::-webkit-scrollbar-thumb,
.antigravity-minimap::-webkit-scrollbar-thumb,
.file-tree::-webkit-scrollbar-thumb {
    background: #3e3e42;
    border: 2px solid transparent;
    background-clip: content-box;
    border-radius: 10px;
}

#editor-content::-webkit-scrollbar-thumb:hover,
.visual-content::-webkit-scrollbar-thumb:hover,
.antigravity-minimap::-webkit-scrollbar-thumb:hover,
.file-tree::-webkit-scrollbar-thumb:hover {
    background: #505050;
    border: 2px solid transparent;
    background-clip: content-box;
}

/* Vista de Código Estilizada */
.code-view {
    display: flex;
    min-height: 100%;
}

.line-numbers {
    width: 50px;
    text-align: right;
    padding-right: 15px;
    padding-top: 20px;
    color: #5a5a5a;
    font-family: var(--font-code);
    font-size: 14px;
    line-height: 1.6;
    user-select: none;
}

.line-numbers span {
    display: block;
}

.code-area {
    padding: 20px 20px 50px 0;
    font-family: var(--font-ui);
    /* Contenido legible */
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    width: 100%;
}

.code-view {
    display: flex;
    height: 100%;
}

/* --- Ecosistema de Minimaps (Unified Design) --- */
.split-view-container {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
    max-width: none !important;
    padding: 0 !important;
    background: #000;
    overflow: hidden;
    /* Evita scroll doble */
}

.visual-content {
    flex: 1;
    overflow-y: auto;
    height: 100%;
    border-right: 1px solid var(--border-color);
}

.antigravity-minimap {
    width: 200px;
    min-width: 200px;
    height: 100%;
    background: #000;
    border-left: 1px solid var(--border-color);
    padding: 25px 20px;
    overflow-y: auto;
    font-family: var(--font-ui);
    font-size: 11px;
    line-height: 1.5;
    z-index: 10;
    color: #d4d4d4;
}

.minimap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.minimap-title {
    color: #6A9955;
    font-weight: bold;
    font-size: 11px;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.minimap-close-btn {
    background: transparent;
    border: none;
    color: #858585;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minimap-close-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.antigravity-minimap.hidden {
    display: none !important;
}

.antigravity-minimap pre {
    white-space: pre-wrap;
    word-break: break-word;
    color: #858585;
    /* Color base antes del coloreado */
    margin: 0;
}

.antigravity-minimap code {
    font-family: var(--font-code);
}

/* --- Fin Minimaps --- */

/* --- Contact Section Styles --- */
.contact-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 50px 25px;
    text-align: center;
    border-bottom: 1px solid #2d2d44;
}

.contact-hero h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.contact-hero p {
    color: rgba(255,255,255,0.6);
    font-size: clamp(13px, 1.8vw, 16px);
    font-weight: 400;
    margin-top: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.contact-content {
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    background: 
        linear-gradient(135deg, rgba(137, 180, 250, 0.1) 0%, rgba(243, 139, 168, 0.05) 50%, rgba(166, 227, 161, 0.1) 100%),
        radial-gradient(circle at 20% 50%, rgba(137, 180, 250, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(243, 139, 168, 0.15) 0%, transparent 50%),
        linear-gradient(to bottom, #1e1e2e 0%, #181825 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100%;
}

.contact-content > * {
    position: relative;
    z-index: 2;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.contact-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #89b4fa 0%, #f38ba8 50%, #a6e3a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(137, 180, 250, 0.3);
}

.contact-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.contact-info-card {
    background: #1e1e2e;
    border: 1px solid #2d2d44;
    padding: 24px;
    border-radius: 12px;
}

.contact-info-title {
    color: #89b4fa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 12px;
    background: rgba(137, 180, 250, 0.05);
    border-radius: 8px;
    transition: background 0.2s;
}

.contact-info-item:hover {
    background: rgba(137, 180, 250, 0.1);
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: rgba(137, 180, 250, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #89b4fa;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-info-icon.purple {
    background: rgba(180, 190, 254, 0.15);
    color: #b4befe;
}

.contact-info-icon.pink {
    background: rgba(243, 139, 168, 0.15);
    color: #f38ba8;
}

.contact-info-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info-value {
    font-size: 14px;
    color: #cdd6f4;
    font-weight: 500;
}

.contact-availability-card {
    background: linear-gradient(135deg, rgba(137, 180, 250, 0.08) 0%, rgba(243, 139, 168, 0.08) 100%);
    border: 1px solid rgba(137, 180, 250, 0.15);
    padding: 20px;
    border-radius: 12px;
}

.contact-availability-card h3 {
    color: #cdd6f4;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-availability-card p {
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    font-size: 13px;
}

.contact-form-card {
    background: #1e1e2e;
    border: 1px solid #2d2d44;
    padding: 28px;
    border-radius: 12px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-form-group {
    margin-bottom: 18px;
}

.contact-form-group label {
    color: #89b4fa;
    font-weight: 500;
    font-size: 12px;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form-group label.purple {
    color: #b4befe;
}

.contact-form-group label.pink {
    color: #f38ba8;
}

.contact-form-group label.white {
    color: #cdd6f4;
}

.contact-form-input,
.contact-form-textarea {
    background: #181825;
    border: 1px solid #313244;
    padding: 14px 16px;
    border-radius: 8px;
    width: 100%;
    color: #cdd6f4;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: #89b4fa;
    box-shadow: 0 0 0 3px rgba(137, 180, 250, 0.1);
}

.contact-form-textarea {
    resize: none;
    min-height: 100px;
}

.contact-form-button {
    background: linear-gradient(90deg, #89b4fa 0%, #f38ba8 100%);
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    color: #1e1e2e;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(137, 180, 250, 0.3);
}

/* Desktop styles for contact section */
@media (min-width: 768px) {
    .contact-hero {
        padding: 80px 40px;
    }

    .contact-content {
        padding: 60px 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 40px;
    }

    .contact-info-card,
    .contact-availability-card {
        padding: 30px;
    }

    .contact-form-card {
        padding: 40px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .contact-form-input,
    .contact-form-textarea {
        padding: 15px;
    }

    .contact-form-button {
        padding: 18px;
        font-size: 16px;
    }
}


.code-area h1,
.code-area h2 {
    color: #569cd6;
    /* Azul tipo palabra clave */
    margin-bottom: 10px;
}

.code-area p {
    margin-bottom: 10px;
}

/* 4. Status Bar */
.status-bar {
    height: 22px;
    background-color: var(--bg-status-bar);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-size: 12px;
}

.status-left,
.status-right {
    display: flex;
    gap: 15px;
}

.status-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Estilos para Botón Spotify (Run & Debug) */
#btn-spotify:hover,
#btn-spotify.active {
    color: #1DB954 !important;
    /* Spotify Green */
}

#btn-spotify.active::before {
    background-color: #1DB954;
    /* Green active border */
}

/* Efecto Hover para Icono de Spotify (cambio de icono visual) */
#btn-spotify:hover i::before {
    content: "\f1bc";
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

/* Estilos para Botón GitHub (Extensiones) */
#btn-github:hover,
#btn-github.active {
    color: #ffffff !important;
    /* GitHub White */
}

#btn-github.active::before {
    background-color: #ffffff;
}

/* Icon change for GitHub */
#btn-github:hover i::before,
#btn-github.active i::before {
    content: "\f09b";
    /* fa-github */
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

/* Estilos para Botón Facebook (Puzzle Piece / Extension) */
#btn-facebook:hover,
#btn-facebook.active {
    color: #1877f2 !important;
    /* Facebook Blue */
}

#btn-facebook.active::before {
    background-color: #1877f2;
}

/* Icon change for Facebook */
#btn-facebook:hover i::before,
#btn-facebook.active i::before {
    content: "\f39e";
    /* fa-facebook-f */
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

/* Estilos para Botón Instagram (Flask / Testing) */
#btn-instagram:hover,
#btn-instagram.active {
    color: #e4405f !important;
    /* Instagram Pink */
}

#btn-instagram.active::before {
    background-color: #e4405f;
}

/* Icon change for Instagram */
#btn-instagram:hover i::before,
#btn-instagram.active i::before {
    content: "\f16d";
    /* fa-instagram */
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

/* Estilos para Botón LinkedIn (Control de Fuentes) */
#btn-linkedin:hover,
#btn-linkedin.active {
    color: #0077b5 !important;
    /* LinkedIn Blue */
}

#btn-linkedin.active::before {
    background-color: #0077b5;
}

/* Icon change for LinkedIn */
#btn-linkedin:hover i::before,
#btn-linkedin.active i::before {
    content: "\f08c";
    /* fa-linkedin */
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

/* Estilos para Botón Discord (Server / Remote Explorer) */
#btn-discord:hover,
#btn-discord.active {
    color: #5865F2 !important;
    /* Discord Blurple */
}

#btn-discord.active::before {
    background-color: #5865F2;
}

/* Icon change for Discord */
#btn-discord:hover i::before,
#btn-discord.active i::before {
    content: "\f392";
    /* fa-discord */
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

/* Estilos para Botón Substack (Layer Group / DeepWiki) */
#btn-substack:hover,
#btn-substack.active {
    color: #FF6719 !important;
    /* Substack Orange */
}

#btn-substack.active::before {
    background-color: #FF6719;
}

/* Icon change for Substack - usando fa-stack-overflow como representación */
#btn-substack:hover i::before,
#btn-substack.active i::before {
    content: "\f16c";
    /* fa-stack-overflow representa publicaciones/articles */
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

/* Estilos para Botón SaaS (Cloud) */
#btn-saas:hover,
#btn-saas.active {
    color: #3b82f6 !important;
    /* SaaS Blue */
}

#btn-saas.active::before {
    background-color: #3b82f6;
}

/* Animaciones para Pantalla Completa */
:fullscreen .container {
    animation: fullscreen-zoom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fullscreen-zoom {
    from {
        transform: scale(0.95);
        opacity: 0.8;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Efectos para el botón Maximize */
.maximize {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.maximize:hover {
    transform: scale(1.2);
    color: #fff !important;
}

.maximize:active {
    transform: scale(0.9);
}

/* Brillo sutil al estar en Fullscreen */
:fullscreen body {
    background-color: #000;
}

:fullscreen .title-bar {
    background: linear-gradient(90deg, #3c3c3c, #2d2d2d);
    border-bottom: 1px solid #444;
}

/* Estilos para Botón Contacto (Cuenta) */
#btn-contact {
    transition: all 0.3s ease;
}

#btn-contact:hover i::before,
#btn-contact.active i::before {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    background-image: url('https://github.com/GuCHoGaRCia.png');
    background-size: cover;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1.5px solid #ffffff;
    z-index: 10;
}

/* Ocultar icono original de FontAwesome al hover/active preservando el pseudo-elemento */
#btn-contact:hover i,
#btn-contact.active i {
    color: transparent;
}

/* Estilos Formulario de Contacto */
.contact-container {
    padding: 60px;
    color: #fff;
    font-family: var(--font-ui);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-form-card {
    background: #252526;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #3e3e42;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #858585;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #1e1e1e;
    border: 1px solid #3e3e42;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--bg-status-bar);
    outline: none;
}

.btn-send {
    background: var(--bg-status-bar);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    font-size: 16px;
}

.btn-send:hover {
    background: #008be2;
}

.contact-info-list {
    list-style: none;
    margin-top: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 18px;
}

.contact-info-item i {
    width: 45px;
    height: 45px;
    background: #2d2d2d;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--bg-status-bar);
}

/* Efecto Cursor Typewriter */
.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--accent-color);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {

    from,
    to {
        background-color: transparent;
    }

    50% {
        background-color: var(--accent-color);
    }
}

/* --- RESPONSIVIDAD (Responsive Design) --- */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }

    .antigravity-minimap {
        width: 300px;
        min-width: 300px;
    }
}

/* Dispositivos móviles */
@media (max-width: 768px) {
    body {
        height: 100vh;
        overflow: hidden;
        /* Mantener la estructura de app */
    }

    .title-bar-center {
        display: none;
        /* Ocultar título central en mobile */
    }

    .title-menu {
        display: none !important;
        /* Ocultar menús desktop */
    }

    .app-container {
        flex-direction: column-reverse !important;
        /* Barra de actividad abajo, contenido arriba */
        height: calc(100vh - 30px) !important;
        /* 100vh - TitleBar */
    }

    /* Barra de actividad como Bottom Navigation */
    .activity-bar {
        width: 100% !important;
        height: 60px !important;
        flex-direction: row !important;
        padding-top: 0 !important;
        justify-content: space-around !important;
        border-top: 1px solid var(--border-color) !important;
        z-index: 1000 !important;
        background-color: var(--bg-activity-bar) !important;
    }

    .action-item {
        margin-bottom: 0 !important;
        width: auto !important;
        height: 60px !important;
        line-height: 60px !important;
        flex: 1 !important;
        font-size: 20px !important;
        position: relative;
    }

    .activity-bar .spacer {
        display: none !important;
        /* Hide spacer on mobile to keep icons compact */
    }

    .action-item.active::before {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 100% !important;
        height: 3px !important;
    }

    .action-item.active::after {
        display: none !important;
    }

    /* Sidebar en mobile */
    .sidebar {
        width: 100% !important;
        height: calc(100vh - 30px - 60px) !important;
        /* Debajo de Title, arriba de Activity */
        position: fixed !important;
        top: 30px !important;
        left: -100% !important;
        /* Iniciar fuera de pantalla */
        z-index: 800 !important;
        background-color: var(--bg-sidebar) !important;
        display: flex !important;
        transition: left 0.3s ease-in-out !important;
        border-right: 1px solid var(--border-color) !important;
    }

    .sidebar.mobile-open {
        left: 0 !important;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.8) !important;
    }

    /* Overlay effect to dim content when sidebar is open */
    .app-container::after {
        content: '';
        position: fixed;
        top: 30px;
        left: 0;
        right: 0;
        bottom: 60px;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        z-index: 700;
        backdrop-filter: blur(2px);
    }

    body.sidebar-open .app-container::after {
        opacity: 1;
        pointer-events: all;
    }

    .main-editor {
        width: 100% !important;
        flex: 1 !important;
        /* Take remaining space */
        height: auto !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .status-bar {
        display: none !important;
        /* Ocultar en mobile para ganar espacio */
    }

    .tabs-bar {
        height: 35px !important;
        min-height: 35px !important;
        display: flex !important;
        flex-shrink: 0 !important;
    }

    /* Editor y Contenido */
    .code-view {
        flex-direction: column !important;
        width: 100% !important;
    }

    .line-numbers {
        display: none !important;
        /* Ocultar números de línea en mobile */
    }

    .code-area {
        padding: 15px !important;
        font-size: 14px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Minimaps en mobile */
    .split-view-container {
        flex-direction: column !important;
        height: auto !important;
        overflow-y: visible !important;
        /* Let parent scroll */
    }

    .visual-content {
        height: auto !important;
        flex: none !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        overflow-y: visible !important;
        /* Let parent scroll */
    }

    .antigravity-minimap {
        width: 100% !important;
        min-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        /* Show full on mobile if parent scrolls */
        border-left: none !important;
        padding: 15px !important;
        overflow-y: visible !important;
        /* Let parent scroll */
    }

    /* Componentes visuales específicos */
    .current-track-hero {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px !important;
        gap: 15px !important;
    }

    .current-track-hero img {
        width: 150px !important;
        height: 150px !important;
    }

    .track-details h1 {
        font-size: 28px !important;
    }

    /* LinkedIn Section */
    .avatar-container img {
        width: 120px !important;
        height: 120px !important;
    }

    [style*="padding: 48px 48px"] {
        padding: 20px !important;
    }

    /* GitHub Section */
    [style*="gap: 40px"] {
        flex-direction: column !important;
        gap: 20px !important;
    }

    [style*="font-size: 32px"] {
        font-size: 24px !important;
    }

    [style*="gap: 32px"] {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Contacto */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .contact-container {
        padding: 20px !important;
    }

    /* Modal */
    .modal-container {
        width: 95% !important;
        margin: 10px !important;
    }
}