/* ==========================================================================
   ESTILOS DE NAVEGADORES (CHROME, EDGE, BRAVE) Y SERVICIOS WEB
   ABC Training - Elaborado por el Lic. Victor Elias Sellis Zeballos
   ========================================================================== */

/* Ventanas de Navegadores con Fluent Design */
.browser-window {
    width: 980px;
    height: 640px;
    max-width: 95vw;
    max-height: calc(100vh - 58px);
    top: 30px;
    left: 80px;
}

/* ==========================================================================
   CONTROLES DE VENTANA WINDOWS 11 (MINIMIZAR, MAXIMIZAR, CERRAR)
   Fieles a Windows 11 Fluent Design y a los navegadores Chrome, Edge y Brave
   ========================================================================== */
.win-controls {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    -webkit-app-region: no-drag !important;
}

.win-btn {
    width: 46px !important;
    height: 100% !important;
    min-height: 34px !important;
    max-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #444746 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: background-color 0.12s ease, color 0.12s ease !important;
}

.browser-win-brave .win-btn,
.browser-win-edge .win-btn,
.dark-theme .win-btn {
    color: #c7c7c7 !important;
}

.win-btn svg {
    display: block !important;
    pointer-events: none !important;
}

.win-btn-min:hover,
.win-btn-max:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #000000 !important;
}

.browser-win-brave .win-btn-min:hover,
.browser-win-brave .win-btn-max:hover,
.browser-win-edge .win-btn-min:hover,
.browser-win-edge .win-btn-max:hover,
.dark-theme .win-btn-min:hover,
.dark-theme .win-btn-max:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.win-btn-close:hover {
    background: #e81123 !important;
    color: #ffffff !important;
}

.win-btn-close:hover svg path {
    stroke: #ffffff !important;
}

.win-btn-close:active {
    background: #c42b1c !important;
    color: #ffffff !important;
}

/* ==========================================================================
   1. GOOGLE CHROME
   ========================================================================== */
.browser-win-chrome {
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

.chrome-tabs-bar {
    display: flex;
    align-items: center;
    background: #dfe1e5;
    height: 42px;
    padding: 0 8px;
    border-bottom: 1px solid #c7cdd6;
}

.chrome-tabs-list {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 100%;
    padding-top: 6px;
    overflow-x: auto;
}

.chrome-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    background: #e5e7eb;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    white-space: nowrap;
    max-width: 220px;
    transition: background 0.15s, color 0.15s;
}

.chrome-tab:hover {
    background: #f3f4f6;
    color: #111827;
}

.chrome-tab.active {
    background: #ffffff;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.06);
}

.chrome-navbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.chrome-omnibox {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f1f3f4;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 5px 14px;
    gap: 8px;
}

.chrome-omnibox:focus-within {
    background: #ffffff;
    border-color: #1a73e8;
    box-shadow: 0 1px 6px rgba(26, 115, 232, 0.28);
}

.chrome-omnibox input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 13px;
    color: #1f2937;
    user-select: text;
    -webkit-user-select: text;
}

/* Barra de Marcadores de Chrome (según captura real 055456.png) */
.chrome-bookmarks-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    font-size: 11.5px;
    overflow-x: auto;
}

.chrome-bm-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: #475569;
    white-space: nowrap;
}

.chrome-bm-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Página Nueva Pestaña Google (según capturas 055456.png y 060038.png) */
.google-home-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 14px 24px;
    font-size: 13px;
}

.google-link {
    color: #1f2937;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}
.google-link:hover {
    text-decoration: underline;
}

.google-apps-icon {
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
}
.google-apps-icon:hover {
    background: #f1f5f9;
}

.google-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0067c0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.google-search-container {
    text-align: center;
    padding: 20px 40px;
    max-width: 760px;
    margin: 0 auto;
}

.google-logo-text {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.google-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 10px 18px;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.google-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #1f2937;
    user-select: text;
    -webkit-user-select: text;
}

/* Gmail View inside Chrome (según capturas 055824.png, 055836.png, 055857.png) */
.gmail-container {
    display: flex;
    height: calc(100% - 76px);
}

.gmail-sidebar {
    width: 210px;
    background: #f6f8fc;
    border-right: 1px solid #e5e7eb;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gmail-compose-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #c2e7ff;
    color: #001d35;
    border: none;
    border-radius: 16px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.gmail-compose-btn:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.16);
}

.gmail-folder-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 13px;
    color: #444746;
    cursor: pointer;
}
.gmail-folder-btn:hover {
    background: #eaebef;
}
.gmail-folder-btn.active {
    background: #d3e3fd;
    color: #041e49;
    font-weight: 700;
}

.gmail-content {
    flex: 1;
    padding: 14px 20px;
    overflow-y: auto;
    background: #ffffff;
}

.gmail-mail-list {
    display: none;
}
.gmail-mail-list.active {
    display: block;
}

.gmail-mail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-bottom: 1px solid #f1f3f4;
    font-size: 13px;
    cursor: pointer;
}
.gmail-mail-row:hover {
    background: #f8fafc;
    box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0;
}

/* Modal Flotante de Redacción de Gmail (Exclusivo dentro de Gmail) */
.email-compose-modal {
    display: none !important;
    position: absolute;
    bottom: 0;
    right: 24px;
    width: 480px;
    max-width: calc(100% - 48px);
    background: #ffffff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.22);
    border: 1px solid #cbd5e1;
    z-index: 100;
    flex-direction: column;
    overflow: hidden;
}

.email-compose-modal.active {
    display: flex !important;
}

.compose-header {
    background: #1f2937;
    color: #ffffff;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    font-weight: 600;
}

.compose-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
}

.compose-body input, .compose-body textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background: #ffffff;
}

.compose-body input:focus, .compose-body textarea:focus {
    border-color: #0067c0;
    box-shadow: 0 0 0 2px rgba(0, 103, 192, 0.15);
}

.compose-footer {
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Panel Lateral Drawer Carrito de Compras (Exclusivo dentro de Tienda Online) */
.cart-drawer-modal {
    display: none !important;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    max-width: 100%;
    background: #ffffff;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.18);
    border-left: 1px solid #cbd5e1;
    z-index: 100;
    flex-direction: column;
}

.cart-drawer-modal.active {
    display: flex !important;
}

/* Chrome Settings (según captura real 060238.png) */
.chrome-settings-container {
    display: flex;
    height: calc(100% - 76px);
}

.chrome-settings-nav {
    width: 240px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chrome-settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #3c4043;
    cursor: pointer;
}
.chrome-settings-nav-item.active {
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 600;
}

/* ==========================================================================
   2. MICROSOFT EDGE
   ========================================================================== */
.browser-win-edge {
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

.edge-tabs-bar {
    display: flex;
    align-items: center;
    background: #002b49;
    color: #fff;
    height: 42px;
    padding: 0 8px;
}

.edge-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 12px;
    color: #94a3b8;
    background: #003a63;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    white-space: nowrap;
}
.edge-tab.active {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
}

.edge-bing-page {
    padding: 30px 40px;
    max-width: 850px;
    margin: 0 auto;
}

/* ==========================================================================
   3. BRAVE BROWSER
   ========================================================================== */
.browser-win-brave {
    border-radius: 8px;
    background: #18191c;
    color: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.brave-tabs-bar {
    display: flex;
    align-items: center;
    background: #121316;
    height: 42px;
    padding: 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brave-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 12px;
    color: #9ca3af;
    background: #1f2024;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
}
.brave-tab.active {
    background: #2b2c32;
    color: #ffffff;
    font-weight: 600;
}

.brave-newtab-page {
    padding: 30px 40px;
    height: calc(100% - 76px);
    overflow-y: auto;
    background: radial-gradient(circle at 50% 30%, #1e1b4b 0%, #0f172a 100%);
}

.brave-dropdown {
    position: absolute;
    top: 76px;
    right: 14px;
    width: 240px;
    background: #202124;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    padding: 6px 0;
    z-index: 1000;
    font-size: 13px;
}
.brave-dropdown.active {
    display: flex;
}
.brave-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    color: #e5e7eb;
    cursor: pointer;
}
.brave-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Barra lateral Leo AI en Brave */
.brave-leo-sidebar {
    position: absolute;
    top: 76px;
    right: -360px;
    width: 350px;
    height: calc(100% - 76px);
    background: #202124;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -4px 0 16px rgba(0,0,0,0.3);
    z-index: 500;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 16px;
}
.brave-leo-sidebar.active {
    right: 0;
}

/* ==========================================================================
   4. CONFIGURACIÓN DE WINDOWS 11
   ========================================================================== */
.settings-container {
    display: flex;
    height: calc(100% - 38px);
}

.settings-sidebar {
    width: 250px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
}
.settings-nav-item:hover {
    background: #f1f5f9;
}
.settings-nav-item.active {
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 700;
}

.settings-content {
    flex: 1;
    padding: 24px 30px;
    overflow-y: auto;
    background: #ffffff;
}

.settings-page {
    display: none;
}
.settings-page.active {
    display: block;
}

/* Helper vistas de pestañas */
.browser-tab-view {
    display: none;
    position: relative;
    height: calc(100% - 76px);
    overflow-y: auto;
}
.browser-tab-view.active {
    display: block;
}

/* ==========================================================================
   PESTAÑA DEDICADA: HISTORIA Y FUNDAMENTOS DE INTERNET
   Diseño amplio, despejado, moderno y altamente pedagógico
   ========================================================================== */
.history-page-container {
    padding: 28px 36px;
    max-width: 960px;
    margin: 0 auto;
    font-family: 'Segoe UI Variable Display', 'Segoe UI', sans-serif;
    color: #1f2937;
}

.history-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.25);
    position: relative;
    overflow: hidden;
}

.history-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.history-hero h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.history-hero p {
    font-size: 14px;
    color: #e0e7ff;
    line-height: 1.6;
    margin: 0;
    max-width: 780px;
}

.history-concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.concept-interactive-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.concept-interactive-card:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.concept-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.concept-card-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 14px;
    flex: 1;
}

.history-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 32px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.timeline-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    opacity: 0;
    transition: opacity 0.2s;
}

.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.09);
    border-color: #93c5fd;
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-year {
    align-self: flex-start;
    display: inline-block;
    padding: 3px 10px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.timeline-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.timeline-card p {
    font-size: 13px;
    color: #475569;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.timeline-card-meta {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    font-size: 11.5px;
    color: #64748b;
    font-style: italic;
}

/* ==========================================================================
   ASISTENTES DE IA: GEMINI EN CHROME Y COPILOT EN EDGE (SEGÚN CAPTURAS REALES)
   ========================================================================== */

/* Botón Gemini en Chrome (al lado izquierdo de minimizar, maximizar y cerrar) */
.chrome-gemini-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    margin-left: auto;
    margin-right: 8px;
    border-radius: 16px;
    background: #3c352a;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f3f4f6;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    flex-shrink: 0;
    -webkit-app-region: no-drag;
}
.chrome-gemini-pill-btn:hover {
    background: #4d4436;
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Botón Copilot en Edge (en toolbar, a la misma altura que Leo en Brave) */
.edge-copilot-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    margin-left: 6px;
    border-radius: 16px;
    background: rgba(2, 132, 199, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.edge-copilot-pill-btn:hover {
    background: rgba(2, 132, 199, 0.32);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Barras laterales deslizantes de IA (Edge Copilot y Chrome Gemini) */
.edge-copilot-sidebar,
.chrome-gemini-sidebar {
    position: absolute;
    top: 76px;
    right: -380px;
    width: 360px;
    height: calc(100% - 76px);
    background: #1c1c1f;
    color: #f1f5f9;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.45);
    z-index: 500;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 16px;
}
.edge-copilot-sidebar.active,
.chrome-gemini-sidebar.active {
    right: 0;
}

.copilot-prompt-card,
.gemini-prompt-card {
    background: #27272a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.15s ease;
}
.copilot-prompt-card:hover,
.gemini-prompt-card:hover {
    background: #3f3f46;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
