/* ----------------------------------------------------
   PICWILD – Web App Dashboard UI
----------------------------------------------------- */

:root {
    --color-bg: #f5f6f7;
    --color-surface: #ffffff;
    --color-border: #e2e3e5;
    --color-text: #1a1a1a;
    --color-primary: #ea3332;
    --color-primary-dark: #c62828;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.07);
    --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    font-family: var(--font);
    color: var(--color-text);
}

/* HEADER */
header {
    background: #fff;
    padding: 12px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header img {
    height: 42px;
}

/* MENU ESCRITORIO */
.desktop-nav a {
    text-decoration: none;
    padding: 8px 16px;
    margin-left: 6px;
    border-radius: 20px;
    font-weight: 500;
    background: #f0f0f0;
    color: var(--color-text);
    transition: 0.2s;
}

.desktop-nav a:hover {
    background: #e3e3e3;
}

.desktop-nav a.activo {
    background: var(--color-primary);
    color: white;
}

/* CONTAINER */
.container {
    max-width: 1080px;
    margin: 40px auto;
    padding: 0 20px;
}

/* CARDS */
.card {
    background: var(--color-surface);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.card h1, .card h2 {
    margin-top: 0;
    font-weight: 600;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

th, td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--color-border);
}

th {
    background: #fafafa;
    text-align: left;
    font-size: 14px;
}

tr:hover td {
    background: #f7f7f7;
}

/* FORM */
input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin-top: 6px;
    margin-bottom: 14px;
    font-size: 15px;
    background: white;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* BOTONES */
.btn, button {
    background: var(--color-primary);
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 15px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover, button:hover {
    background: var(--color-primary-dark);
}

/* --- MENÚ MOBILE --- */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 28px;
    cursor: pointer;
}

.hamburger div {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 3px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 16px rgba(0,0,0,0.15);
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: right 0.3s;
    z-index: 1500;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 18px;
    font-weight: 600;
}

.mobile-menu.open {
    right: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1400;
}

.menu-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* RESPONSIVE */

@media(max-width:700px) {
    .desktop-nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    header {
        padding: 12px 16px;
    }
}
