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

body {
    min-height: 100vh;
    background: #0f0f0f;
    color: white;
    display: flex;
}

.sidebar {
    width: 260px;
    background: #111;
    border-right: 1px solid rgba(255,255,255,.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    height: 100vh;
}

.logo {
    width: 170px;
    margin: 0 auto 30px;
}

.nav-btn,
.logout {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: white;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    font-size: .95rem;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: .25s;
}

.volver {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: white;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    font-size: .95rem;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: .25s;
}

.nav-btn:hover,
.nav-btn.active {
    background: white;
    color: black;
}

.logout {
    color: #ff6b6b;
}

.volver {
    margin-top: auto;
    color: #ffffff;
}

.dashboard {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 40px;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

h1, h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.subtitulo {
    color: rgba(255,255,255,.6);
    margin-bottom: 30px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    background: #171717;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 24px;
}

.card span {
    display: block;
    color: rgba(255,255,255,.55);
    margin-bottom: 8px;
}

.card strong {
    font-size: 1.3rem;
}

.form {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: rgba(255,255,255,.8);
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.05);
    color: white;
    outline: none;
}

.input-group select option {
    background: #111;
}

.input-group textarea {
    min-height: 130px;
    resize: vertical;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.switch-line {
    display: flex;
    gap: 10px;
    align-items: center;
}

.switch-line input {
    width: 20px;
    height: 20px;
    accent-color: white;
}

.btn-primary,
.btn-secondary {
    padding: 15px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: white;
    color: black;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,.2);
}

.upload-box {
    width: 100%;
    max-width: 500px;
    height: 140px;
    border: 2px dashed rgba(255,255,255,.25);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 25px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
}

.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 190px;
    background: #222;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delete-photo {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

@media (max-width: 850px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .dashboard {
        margin-left: 0;
        width: 100%;
        padding: 25px;
    }

    .cards,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}


.logo-dashboard{
    display: block;
    text-align: center;
}

.logo-dashboard img{
    cursor: pointer;
    transition: .25s ease;
}

.logo-dashboard:hover img{
    transform: scale(1.05);
    opacity: .9;
}


.gallery-item{
    cursor: grab;
}

.gallery-item:active{
    cursor: grabbing;
}

.gallery-item.dragging{
    opacity: .4;
}

.foto-principal-badge{
    position: absolute;
    left: 8px;
    top: 8px;
    background: white;
    color: black;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}