:root {
    color-scheme: light;
    --navy: #062d5c;
    --green: #7ec85d;
    --ink: #18334e;
    --muted: #526781;
    --line: #d9e3ed;
    --paper: #fff;
    --canvas: #f3f6fa;
    font: 16px/1.5 Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: var(--navy); }
:focus-visible { outline: 3px solid #2570b9; outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(1320px, 100% - 3rem); margin-inline: auto; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.top { justify-content: space-between; }
.sitebar { background: var(--paper); border-bottom: 1px solid var(--line); }
.sitebar .wrap { min-height: 76px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 176px; height: auto; }
.sitebar nav { gap: 1rem; }
.sitebar nav a { text-decoration: none; font-size: .875rem; font-weight: 650; }
.sitebar nav a:hover { text-decoration: underline; }

main { padding-block: 1.5rem 3rem; }
.hero {
    padding: clamp(1.4rem, 4vw, 2.6rem);
    margin-bottom: 1.25rem;
    border-radius: 18px;
    background: radial-gradient(ellipse at top right, #134d7f, transparent 64%), var(--navy);
    color: white;
}
.hero :focus-visible { outline-color: white; }
.hero p { margin: .45rem 0 0; color: #d9e8f6; }
.hero h1 { margin: .35rem 0 0; font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 span { color: #8bd26a; }
.eyebrow { display: flex; gap: .55rem; align-items: center; font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow::before { content: ""; width: 1.2rem; height: 2px; background: var(--green); }

.workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 1.25rem; }
.calendar-column { display: grid; gap: 1.25rem; min-width: 0; }
.card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1rem, 2.5vw, 1.65rem); box-shadow: 0 8px 24px #062d5c08; }
.card h2 { margin: 0; color: var(--navy); font-size: clamp(1.25rem, 3vw, 1.55rem); line-height: 1.2; letter-spacing: -.025em; }
.card h3 { margin: 1.25rem 0 .5rem; font-size: .95rem; }
.card .eyebrow { margin: 0 0 .35rem; color: #3d6741; }
.hint { margin: .45rem 0 0; color: var(--muted); font-size: .85rem; }
.note { background: #e7f3e1; border: 1px solid #c8dfbe; padding: .8rem 1rem; border-radius: 10px; color: #234b30; }
.empty { padding: .85rem; margin-bottom: 0; background: var(--canvas); border-radius: 9px; }

form { margin: 0; }
label { display: grid; gap: .4rem; margin: .9rem 0; font-size: .9rem; font-weight: 650; }
label .hint { margin: 0; font-weight: 400; }
input, textarea, select, button, .button { font: inherit; }
input, textarea, select {
    min-width: 0;
    width: 100%;
    min-height: 42px;
    padding: .55rem .65rem;
    border: 1px solid #afc0d2;
    border-radius: 8px;
    background: white;
    color: var(--ink);
}
textarea { resize: vertical; }
input[type="file"] { padding: .4rem; font-size: .84rem; }
input::file-selector-button { padding: .4rem .55rem; margin-right: .55rem; border: 0; border-radius: 5px; color: var(--navy); background: #e8eff7; font: inherit; font-weight: 650; cursor: pointer; }

button, .button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding: .55rem .85rem;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--navy);
    background: var(--green);
    font-size: .875rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}
button:hover, .button:hover { background: #93d477; }
button:disabled { opacity: .55; cursor: default; }
.secondary { background: var(--paper); border-color: var(--line); }
.secondary:hover { background: #eaf1f8; }
.submit { width: 100%; margin-top: 1rem; }
.month-nav a { width: 40px; padding: 0; font-size: 1.25rem; line-height: 1; }

.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 1rem; }
.weekday { text-align: center; font-size: .75rem; font-weight: 750; color: var(--muted); padding-bottom: .25rem; }
.day { background: var(--canvas); min-height: 69px; padding: .45rem; border: 1px solid transparent; border-radius: 8px; font-size: .84rem; }
.day--today { border-color: #648b55; background: #eaf5e4; }
.day a { display: flex; align-items: center; gap: .2rem; margin-top: .25rem; padding: .13rem .3rem; border-radius: 5px; background: #dfeaf6; text-decoration: none; font-size: .71rem; line-height: 1.4; font-weight: 750; width: fit-content; }
.day a:hover { background: #cddff2; }

fieldset { min-width: 0; margin: 1rem 0 0; border: 1px solid var(--line); border-radius: 10px; padding: .65rem .8rem .8rem; background: var(--canvas); }
legend { font-size: .9rem; font-weight: 750; padding-inline: .3rem; }
fieldset .hint { margin-top: 0; }
fieldset .row { gap: .5rem; align-items: end; }
fieldset label { flex: 1 1 11rem; margin: .55rem 0 0; }
fieldset .remove-date { color: #873f33; }
#add-schedule-date { margin-top: .65rem; }

.post { padding: .8rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.post .row { gap: .4rem; }
.post p { white-space: pre-wrap; margin: .45rem 0; }
.post small { color: var(--muted); }
.post form { margin-top: .6rem; }
.status { padding: .15rem .55rem; border-radius: 999px; background: #eaf0f6; color: var(--navy); font-size: .75rem; font-weight: 750; }
.status--sent { background: #e7f3e1; color: #234b30; }
.status--failed, .status--unknown { background: #faede5; color: #853522; }
.login { width: min(440px, 100%); margin-inline: auto; }

@media (max-width: 950px) {
    .workspace { grid-template-columns: minmax(0, 1fr); }
    .calendar-column { display: contents; }
    #publicaciones { grid-row: 3; }
}
@media (max-width: 560px) {
    .wrap { width: calc(100% - 1.25rem); }
    .sitebar .wrap { min-height: 64px; }
    .sitebar nav { gap: .45rem; }
    .sitebar nav a { display: none; }
    .brand img { width: 135px; }
    main { padding-top: .65rem; }
    .workspace, .calendar-column { gap: .85rem; }
    .calendar { gap: 3px; }
    .day { min-height: 53px; padding: .22rem; }
    .day a { padding-inline: .23rem; }
    .day a span { display: none; }
}
