:root {
    --bg: #f0f2f5;
    --card: #ffffff;
    --primary: #4CAF50;
    --primary-dark: #3e9c43;
    --primary-active: #144917;
    --border: #ddd;

    --txt: #333;
}

/* ===== BASE ===== */
body {
    font-family: "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    margin: 0;
    padding: 30px;
    color: var(--txt);
    display: flex;
    justify-content: center;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container {
    max-width: 950px;
    width: 100%;
    background: var(--card);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* ===== TITULOS ===== */
h1 {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    color: #333;
}

h2 {
    border-bottom: 2px solid var(--border);
    padding-bottom: 6px;
    margin-bottom: 18px;
    color: #444;
}

/* ===== CARD (adaptada al sistema nuevo) ===== */
.card {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin: auto;
}

/* ===== INPUT COLOR ===== */
input[type="color"] {
    border: none;
    width: 80px;
    height: 80px;
    cursor: pointer;
    background: none;
    margin-bottom: 10px;
}

/* ===== VALORES ===== */
.values {
    margin: 15px 0;
    font-family: monospace;
}

.hex-main {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.rgb-main {
    color: #888;
    font-size: 0.9rem;
}

/* ===== PALETA ===== */
.palette {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.swatch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.swatch {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: white;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.swatch:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.label {
    font-size: 0.7rem;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
}

/* ===== FORM INPUTS ===== */
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
}

textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 220px;
    overflow-y: auto;
}

/* ===== BOTONES ===== */
button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s;
    margin-top: 20px;
    font-weight: bold;
}

button:hover {
    background: var(--primary-dark);
}

button:active {
    background: var(--primary-active);
    transform: scale(0.97);
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    flex: 1;
    background: var(--primary);
    border: none;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
    margin: 10px;
    color: white;
}

.tab-btn.active {
    border-bottom: 3px solid var(--primary-active);
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== MISC ===== */
canvas {
    display: none;
}
