@font-face {
    font-family: Cultures;
    src: url(/assets/fonts/Cultures.ttf) format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-er-bg: #fef9f7;
    --color-er-blush: #f7cdcf;
    --color-er-blush-mid: #ed7aa0;
    --color-er-rose: #cf3c53;
    --color-er-body: #4a3040;
    --color-er-muted: #8a6878;
    --color-er-plum: #3d1028;
    --color-er-plum-soft: #6b2e4a;
    --color-er-white: #fff;
    --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
    --font-display: "Cultures", ui-serif, Georgia, serif;
    --radius: 0.75rem;
    --shadow: 0 8px 24px rgba(61, 16, 40, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-er-body);
    background: var(--color-er-bg);
}

a {
    color: var(--color-er-rose);
    text-decoration: none;
}

a:hover {
    color: var(--color-er-plum-soft);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(1100px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    background: var(--color-er-white);
    border-bottom: 1px solid var(--color-er-blush);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    height: 48px;
    width: auto;
}

.header-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.header-label {
    font-family: var(--font-display);
    color: var(--color-er-plum);
    font-size: 1.15rem;
    line-height: 1.2;
}

.header-sub {
    color: var(--color-er-muted);
    font-size: 0.875rem;
}

.site-main {
    flex: 1;
    padding: 2rem 0 3rem;
}

.site-footer {
    border-top: 1px solid var(--color-er-blush);
    padding: 1.25rem 0;
    color: var(--color-er-muted);
    font-size: 0.875rem;
    text-align: center;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--color-er-plum);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

.lead {
    color: var(--color-er-muted);
    margin: 0 0 1.5rem;
}

.card {
    background: var(--color-er-white);
    border: 1px solid var(--color-er-blush);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.card + .card {
    margin-top: 1rem;
}

.auth-wrap {
    max-width: 420px;
    margin: 2rem auto;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.row-between {
    justify-content: space-between;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--color-er-plum);
}

.field {
    margin-bottom: 1rem;
}

.hint {
    display: block;
    margin-top: 0.35rem;
    color: var(--color-er-muted);
    font-size: 0.8125rem;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    font: inherit;
    color: var(--color-er-body);
    background: var(--color-er-bg);
    border: 1px solid var(--color-er-blush);
    border-radius: var(--radius);
    padding: 0.7rem 0.9rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-er-blush-mid);
    outline-offset: 1px;
    border-color: var(--color-er-rose);
}

.checkbox-grid {
    display: grid;
    gap: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    background: var(--color-er-bg);
    border: 1px solid var(--color-er-blush);
    border-radius: var(--radius);
}

.checkbox-item input {
    margin-top: 0.2rem;
}

.checkbox-item label {
    margin: 0;
    font-weight: 400;
    color: var(--color-er-body);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font: inherit;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    padding: 0.7rem 1.15rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background: var(--color-er-rose);
    color: var(--color-er-white);
}

.btn-primary:hover {
    background: var(--color-er-plum-soft);
    color: var(--color-er-white);
}

.btn-secondary {
    background: var(--color-er-blush);
    color: var(--color-er-plum);
}

.btn-secondary:hover {
    background: var(--color-er-blush-mid);
    color: var(--color-er-plum);
}

.btn-danger {
    background: #9b1c2e;
    color: #fff;
}

.btn-danger:hover {
    background: #7a1523;
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--color-er-muted);
    border: 1px solid var(--color-er-blush);
}

.btn-ghost:hover {
    color: var(--color-er-plum);
    border-color: var(--color-er-blush-mid);
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
}

.alert {
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.alert-ok {
    background: #e8f7ef;
    border-color: #b7e4c7;
    color: #1b4332;
}

.alert-error {
    background: #fde8ec;
    border-color: #f5c2cc;
    color: #7a1523;
}

.alert-info {
    background: #fff5f7;
    border-color: var(--color-er-blush);
    color: var(--color-er-plum);
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-ok {
    background: var(--color-er-blush-mid);
    color: var(--color-er-plum);
}

.badge-pending {
    background: #eee4e8;
    color: var(--color-er-muted);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.entregable {
    display: grid;
    gap: 0.85rem;
}

.entregable-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.entregable-title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-er-plum);
}

.meta-line {
    color: var(--color-er-muted);
    font-size: 0.875rem;
}

.terms-box {
    background: #fff5f7;
    border: 1px dashed var(--color-er-blush-mid);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--color-er-plum-soft);
    font-size: 0.9375rem;
}

.terms-box strong {
    color: var(--color-er-plum);
}

.welcome-box {
    background: var(--color-er-white);
    border: 1px solid var(--color-er-blush);
    border-left: 4px solid var(--color-er-rose);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--color-er-body);
    font-size: 0.9375rem;
}

.welcome-box strong {
    color: var(--color-er-plum);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-er-blush);
    border-radius: var(--radius);
    background: var(--color-er-white);
}

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

table.data th,
table.data td {
    padding: 0.75rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--color-er-blush);
    vertical-align: top;
}

table.data th {
    background: #fff5f7;
    color: var(--color-er-plum);
    font-weight: 600;
    white-space: nowrap;
}

table.data tr:last-child td {
    border-bottom: none;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.status-item {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.copy-box {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.copy-box input {
    flex: 1;
    min-width: 200px;
}

.nivel-pill {
    display: inline-block;
    background: var(--color-er-blush);
    color: var(--color-er-plum);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.panel-intro {
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .header-meta {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .brand-logo {
        height: 40px;
    }

    .card {
        padding: 1.15rem;
    }
}
