From 89b7efa428e2e486bfb02500dcf573f3d6e24978 Mon Sep 17 00:00:00 2001 From: Francisco Anfuso Date: Mon, 31 Aug 2026 16:10:59 -0300 Subject: [PATCH] cambios para menu mobile --- README.md | 20 -------------------- css/styles.css | 39 ++++++++++++++++++++------------------- includes/header.html | 8 +++++++- js/main.js | 16 ++++++++++++++-- 4 files changed, 41 insertions(+), 42 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index fb43dd3..0000000 --- a/README.md +++ /dev/null @@ -1,20 +0,0 @@ -
-GHBanner -
- -# Run and deploy your AI Studio app - -This contains everything you need to run your app locally. - -View your app in AI Studio: https://ai.studio/apps/62f9c45c-fa79-4ea7-bd03-756d1cdb54e9 - -## Run Locally - -**Prerequisites:** Node.js - - -1. Install dependencies: - `npm install` -2. Set the `GEMINI_API_KEY` in [.env.local](.env.local) to your Gemini API key -3. Run the app: - `npm run dev` diff --git a/css/styles.css b/css/styles.css index d79b448..ef19e23 100644 --- a/css/styles.css +++ b/css/styles.css @@ -286,18 +286,28 @@ h4 { font-size: 1.25rem; } [data-theme="dark"] .theme-icon-sun { display: block; } [data-theme="dark"] .theme-icon-moon { display: none; } -/* Botón Hamburguesa Móvil */ +/* --- Botón Hamburguesa Móvil --- */ .mobile-toggle-btn { - display: none; - background: none; - border: none; + display: none; /* Oculto por defecto en desktop */ + background: var(--bg-subtle); + border: 1px solid var(--border-color); color: var(--text-main); - font-size: 1.5rem; + min-width: 44px; + min-height: 44px; + border-radius: var(--radius-full); cursor: pointer; - padding: 0.5rem; + padding: 0; + transition: all var(--transition-fast); + align-items: center; + justify-content: center; } -/* Menú Móvil Overlay */ +.mobile-toggle-btn:hover { + background: var(--border-color); + color: var(--ide-accent); +} + +/* --- Menú Móvil Overlay --- */ .mobile-menu-drawer { display: none; position: fixed; @@ -316,6 +326,7 @@ h4 { font-size: 1.25rem; } } .mobile-menu-drawer.is-open { + display: block; transform: translateY(0); opacity: 1; } @@ -1006,7 +1017,7 @@ h4 { font-size: 1.25rem; } @media (max-width: 768px) { .nav-links, .nav-actions .btn { - display: none; + display: none !important; } .nav-actions { @@ -1016,17 +1027,11 @@ h4 { font-size: 1.25rem; } } .mobile-toggle-btn { - display: inline-flex; + display: flex !important; /* Forzamos la visualización */ align-items: center; justify-content: center; min-width: 44px; min-height: 44px; - background: var(--bg-subtle); - border: 1px solid var(--border-color); - color: var(--text-main); - border-radius: var(--radius-full); - padding: 0; - transition: all var(--transition-fast); } .mobile-toggle-btn:hover { @@ -1034,10 +1039,6 @@ h4 { font-size: 1.25rem; } color: var(--ide-accent); } - .mobile-menu-drawer { - display: block; - } - .hero-doble-entrada { grid-template-columns: 1fr; } diff --git a/includes/header.html b/includes/header.html index 92506ce..8123ffd 100644 --- a/includes/header.html +++ b/includes/header.html @@ -46,7 +46,13 @@ HABLEMOS -