/* =========================================================
   HEADER GLOBAL – ESC CARD GENERATOR
   ========================================================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #0b1024;
    border-bottom: 1px solid #222a4a;
    color: #e0e4ff;
    position: relative;
    z-index: 100;
}

header .logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* =========================================================
   NAV LINKS
   ========================================================= */

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav a {
    text-decoration: none;
    color: #e0e4ff;
    font-size: 14px;
    transition: 0.2s;
}

nav a:hover {
    color: #ffffff;
}

/* =========================================================
   WIKI MENU (NIVEL 1)
   ========================================================= */

.wiki-container {
    position: relative;
    display: inline-block;
}

.wiki-button {
    padding: 0.5rem 1rem;
    display: inline-block;
}

.wiki-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #0b1024;
    border: 1px solid #222a4a;
    width: 220px;
    display: none;
    flex-direction: column;
    z-index: 999;
}

.wiki-container:hover .wiki-dropdown {
    display: flex;
}

.wiki-dropdown a {
    padding: 0.5rem;
    color: #e0e4ff;
    text-decoration: none;
}

.wiki-dropdown a:hover {
    background: #1a1f3d;
}

/* =========================================================
   WIKI MENU (NIVEL 2)
   ========================================================= */

.wiki-item {
    position: relative;
}

.wiki-subdropdown {
    position: absolute;
    top: 0;
    right: 100%;
    background: #0b1024;
    border: 1px solid #222a4a;
    width: 200px;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.wiki-item:hover > .wiki-subdropdown {
    display: flex;
}

.wiki-subdropdown a {
    padding: 0.5rem;
    color: #e0e4ff;
    text-decoration: none;
}

.wiki-subdropdown a:hover {
    background: #1a1f3d;
}

/* =========================================================
   ACCOUNT AVATAR + DROPDOWN
   ========================================================= */

.account-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 1rem; /* separa el avatar del resto del menú */
}

.menu-avatar {
    width: 44px;              /* tamaño exacto como en tu captura */
    height: 44px;
    border-radius: 6px;       /* esquinas suaves, no círculo */
    object-fit: cover;        /* recorta bien la imagen */
    cursor: pointer;
    transition: 0.2s ease;
    border: 1px solid #1a1f3d; /* borde sutil para integrarlo con el header */
}

.menu-avatar:hover {
    transform: scale(1.03);   /* animación suave */
}

/* Dropdown */
.account-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: #0b1024;
    border: 1px solid #222a4a;
    width: 160px;
    display: none;
    flex-direction: column;
    z-index: 999;
}

.account-container:hover .account-dropdown {
    display: flex;
}

.account-dropdown a,
.account-dropdown .welcome {
    padding: 0.5rem;
    color: #e0e4ff;
    text-decoration: none;
    font-size: 14px;
}

.account-dropdown a:hover {
    background: #1a1f3d;
}

/* =========================================================
   FOOTER – ESC CARD GENERATOR 
   ========================================================= */

.footer-legal {
    background: #0b1024;
    border-top: 1px solid #222a4a;
    padding: 1.2rem 2rem;
    color: #e0e4ff;
    font-size: 14px;
}

.footer-legal-inner {
    display: flex;
    flex-direction: column;      /* apila el texto y los enlaces */
    align-items: center;         /* centra horizontalmente */
    justify-content: center;     /* centra verticalmente */
    gap: 0.8rem;                 /* separación elegante */
    text-align: center;          /* centra el texto */
}

.footer-legal-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;             /* si hay muchos enlaces, se adaptan */
    justify-content: center;     /* centrado perfecto */
}

.footer-legal-links a {
    color: #e0e4ff;
    text-decoration: none;
    transition: 0.2s ease;
    font-size: 14px;
}

.footer-legal-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 4px #ffffff55;
}

/* ------------------------------
   GLOBAL FOOTER (REDES)
------------------------------ */

.global-footer {
    background: #0b1024;
    border-top: 1px solid #222a4a;
    padding: 1rem 2rem;
    margin-top: 1rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;      /* centrado también aquí */
    align-items: center;
    gap: 0.6rem;
}

.footer-brand {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #e0e4ff;
}

.footer-right {
    display: flex;
    gap: 1rem;
}

.footer-link {
    color: #e0e4ff;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
    text-shadow: 0 0 4px #ffffff55;
}
