/* Estilos del sitio (wrapper) — coloring/paint.tarrago.com */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Roboto", Arial, sans-serif;
    background: #ecedf0;
    color: #333;
    min-height: 100vh;
}

/* ---------- header ---------- */
.header {
    background: #000;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.logo-container { display: flex; align-items: center; gap: 14px; }
.logo img { display: block; }
.menu-toggle { background: none; border: 0; cursor: pointer; display: none; padding: 4px; }
.social { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.social a { opacity: .9; }
.social a:hover { opacity: 1; }

/* ---------- layout ---------- */
.inner-wrapper { display: flex; min-height: calc(100vh - 60px); }
.sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid #dadada;
    padding: 0 0 30px;
    flex-shrink: 0;
}
.sidebar-title {
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #8a8a8a;
    padding: 16px 22px 10px;
    border-bottom: 1px solid #eee;
}
.nav-main { list-style: none; margin: 8px 0 0; padding: 0; }
.nav-main a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
}
.nav-main a:hover { background: #f5f5f5; color: #000; }
body[data-active="home"] .nav-home a,
body[data-active="select"] .nav-select a,
body[data-active="chart"] .nav-chart a,
body[data-active="picker"] .nav-picker a {
    border-left-color: #000;
    background: #f2f2f2;
    color: #000;
    font-weight: 700;
}
.lang-widget { margin-top: 40px; text-align: center; }
.lang-widget h6 {
    font-size: 11px;
    color: #8a8a8a;
    letter-spacing: .5px;
    margin: 0 0 12px;
}
.lang-links { display: flex; justify-content: center; align-items: center; gap: 10px; }
.lang {
    color: #444;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.lang svg { border: 1px solid #ccc; }
.lang.selected-lang { font-weight: 700; color: #000; }

/* ---------- contenido ---------- */
.content-body { flex: 1; padding: 0 28px 40px; min-width: 0; }
.page-header {
    border-bottom: 1px solid #dadada;
    margin: 0 -28px 24px;
    padding: 18px 28px;
    background: #f7f7f7;
}
.page-header h2 { margin: 0; font-size: 22px; font-weight: 400; color: #111; }

/* home */
video { display: block; margin-bottom: 24px; max-width: 100%; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
    background: #fff;
    border-radius: 6px;
    padding: 26px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
}
.card h3 { margin-top: 0; font-size: 19px; }
.card p { font-size: 14px; line-height: 1.6; color: #555; }
.card p:empty { display: none; }
.btn-cta {
    display: inline-block;
    margin-top: auto;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    border: 0;
    cursor: pointer;
}
.btn-cta:hover { background: #2d2d2d; }

/* carta de colores */
.cart-toolbar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 22px;
}
.btn-dark {
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 4px;
    font-size: 14px;
}
.cart-search {
    flex: 1;
    min-width: 200px;
    max-width: 340px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}
.color-tile {
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.color-tile .swatch { height: 105px; }
.color-tile .meta { padding: 10px 12px; }
.color-tile .meta h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.color-tile .meta .links { font-size: 12px; }
.color-tile .meta .links a { color: #0a58a5; text-decoration: none; margin-right: 8px; }
.color-tile .meta .links a:hover { text-decoration: underline; }

/* formulario color nuevo */
.picker-card {
    background: #fff;
    border-radius: 6px;
    padding: 28px;
    max-width: 640px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.picker-card form { display: flex; flex-direction: column; gap: 14px; }
.form-control {
    padding: 11px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}
.color-field { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.color-field input[type="color"] { width: 56px; height: 36px; border: 1px solid #ccc; border-radius: 4px; padding: 2px; background: #fff; }
.hp { position: absolute; left: -9999px; }
.sent-ok {
    background: #e6f6e6;
    border: 1px solid #9fd49f;
    color: #1d6b1d;
    padding: 12px 16px;
    border-radius: 4px;
}

/* iframe del selector */
#picker-iframe { display: block; background: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .menu-toggle { display: block; }
    .inner-wrapper { display: block; }
    .sidebar {
        width: 100%;
        display: none;
        border-right: 0;
        border-bottom: 1px solid #dadada;
    }
    .sidebar.open { display: block; }
    .content-body { padding: 0 16px 30px; }
    .page-header { margin: 0 -16px 18px; padding: 14px 16px; }
}
