@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
}

body {
    height: 100vh;
    transition: background 2s ease;
}

/* =========================
   TOP BAR
========================= */
.top-bar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 15px 20px;
    z-index: 1000;
}

.top-bar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.2px;
    transition: 0.2s;
}

.top-bar a:hover {
    color: white;
    transform: translateY(-1px);
}

/* =========================
   APPS ICON
========================= */
.apps-icon {
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    font-size: 18px;
    padding: 5px 8px;
    border-radius: 8px;
    transition: 0.2s;
}

.apps-icon:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* =========================
   APPS MENU
========================= */
.apps-menu {
    position: absolute;
    top: 55px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    display: none;
    grid-template-columns: repeat(2, 90px);
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.apps-menu a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    padding: 8px;
    border-radius: 10px;
    transition: 0.2s;
}

.apps-menu a:hover {
    background: #f1f3f4;
}

/* =========================
   CENTRO
========================= */
.center {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* =========================
   LOGO
========================= */
.logo {
    font-size: 64px;
    font-weight: 500;
    color: white;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

/* =========================
   BUSCADOR
========================= */
.search-box {
    width: 420px;
    max-width: 90%;
    padding: 12px 18px;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* =========================
   MENU INFERIOR
========================= */
.menu {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.menu a {
    background: rgba(255,255,255,0.9);
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu a:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* =========================
   MODO OSCURO AUTOMÁTICO
========================= */

body.dark {
    color: white;
}

/* TOP BAR */
body.dark .top-bar a {
    color: rgba(255,255,255,0.8);
}

body.dark .top-bar a:hover {
    color: white;
}

/* LOGO */
body.dark .logo {
    color: white;
    text-shadow: 0 2px 15px rgba(0,0,0,0.6);
}

/* BUSCADOR */
body.dark .search-box {
    background: rgba(0,0,0,0.4);
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

body.dark .search-box::placeholder {
    color: rgba(255,255,255,0.6);
}

/* MENU INFERIOR */
body.dark .menu a {
    background: rgba(0,0,0,0.4);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

body.dark .menu a:hover {
    background: rgba(0,0,0,0.6);
}

/* APPS MENU */
body.dark .apps-menu {
    background: rgba(30,30,30,0.95);
}

body.dark .apps-menu a {
    color: white;
}

body.dark .apps-menu a:hover {
    background: rgba(255,255,255,0.1);
}}