:root {

    /* Textos */
    --text-color: #ffffff;
    --text-h2: #d5d5e4;
    --text-p: #e0e0e0;

    /* Fondos principales */
    --body-bg: #101214;
    --app-bg: #20232a;
    --nav-bar-bg: #2c303d;
    --card-bg: #2c303d;

    /* Botones y detalles */
    --btn-bg: #d0d0d0;

    /* Paleta principal */
    --color-lila: #8a7ece;
    --color-cian: #376070;

    /* Extras */
    --border: #3a3f51;
    --border2: #727992;
    --nav-hover-bg: #4d5370;
    --nav-item-bg: #3a3f51;
    --nav-icon: #aaa;
    --nav-icon-active: #ffffff;
}

[data-theme="dark"] {
    --text-color: #e0e0e0;
}

/* -------- GLOBAL -------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-overflow-scrolling: touch;
}

body {
    background: var(--body-bg);
    font-family: "Segoe UI", sans-serif;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
    overflow: hidden;
    padding: 0px;
}

    .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #2c303d;
    color: white;
    }

/*
    .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 0 16px;
    }
*/

    .header-icons {
    display: flex;
    gap: 12px;
    }

#app {
    background: var(--app-bg);
    width: 100%;
    max-width: 420px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

/* -------- CONTENT -------- */

.content {
    flex: 1;
    overflow-y: auto;
    margin: 16px 16px 0 16px;
    border-radius: 12px;
}

/* -------- CARDS -------- */

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.card h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-h2);
}

/* -------- TAGS -------- */

.tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    background: var(--color-lila);
    color: #fff;
}

.tag.cian {
    background: var(--color-cian);
}

.text-love {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-lila);
    text-align: center;
    display: block;
    letter-spacing: 6px;
}

/* -------- NAV BAR -------- */

.nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 14px 0 18px 0;
    padding-top: 28px;
    border-top: 2px solid var(--border);
    margin-top: 18px;
    background: var(--nav-bar-bg);
    border-radius: 22px 22px 0 0;
    flex-shrink: 0;
    z-index: 800;
}

.nav-item {
    width: 46px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--nav-item-bg);
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s;
}

.center {
    width: 56px;
    height: 56px;
    margin-top: -20px;
    background: var(--nav-item-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-item .material-icons {
    color: var(--nav-icon);
}

.nav-item.active,
.nav-item:hover {
    background: var(--nav-hover-bg);
}

.nav-item.active .material-icons,
.nav-item:hover .material-icons {
    color: var(--nav-icon-active);
}

/* -------- SCROLL -------- */

.content::-webkit-scrollbar {
    display: none;
}











    /* ===== PANEL LATERAL ===== */
    .sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: var(--nav-bar-bg);
    padding: 20px;
    transition: 0.3s ease;
    z-index: 1000;

    }

    .sidebar.active {
    left: 0;
    }

    .sidebar-header {
    display: flex;
    justify-content: flex-end;
    }

    .sidebar-header span {
    font-size: 28px;
    cursor: pointer;
    }

    /* ===== OVERLAY ===== */
    .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 900;
    }

    .overlay.active {
    opacity: 1;
    pointer-events: all;
    }

/* -------- BUTTONS -------- */

li {
    list-style: none;
    margin: 10px 0;
    padding: 10px 15px;
    background: #3a3f51;
    color: #e9e9e9;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    border: 3px solid #4e5468;
}

    .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0 10px 0;
    }

    .sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    padding-top: 2px;
    color: #f0f0f0;
    }

    .sidebar-header .material-icons {
    font-size: 26px;
    cursor: pointer;
    color: var(--btn-bg);
    }

    img {
    border-radius: 12px;
    object-fit: cover;
    object-position: bottom;
    width:100%;
    height:180px;
    opacity: 0.15;
    }

.section {
  display: none;
}

.section.active {
  display: block;
}

/* botón activo del footer */
.nav-item.active span {
  color: var(--text-color);
  transform: scale(1.15);
}

.barrier {
  height: 8px;
  background-color: var(--border2);
  margin: 10px 0;
  border-radius: 18px;
}
