/* Distribución y componentes específicos de la actividad. Los colores,
la tipografía y los estilos generales se toman de /css/style.css. */
header, main, footer {
    max-width: 1160px;
    margin: auto;
    padding: 24px;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--cyan);
    text-decoration: none;
}
.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}
.brand strong {
    display: block;
    letter-spacing: .1em;
    font-size: 20px;
}
.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.intro {
    max-width: 900px;
    margin: 42px 0 32px;
}
h1 {
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -.045em;
}
h1 span {
    color: var(--cyan);
}
h2 {
    font-size: 26px;
    line-height: 1.2;
    margin: 0 0 12px;
}
p {
    margin: 10px 0;
}
.intro > p, .muted {
    color: var(--muted);
}
.muted {
    font-size: 14px;
}
.tag {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.tabs, .row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.tabs {
    margin-bottom: 22px;
}
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
    gap: 24px;
}
.card {
    padding: 24px;
}
.card:hover {
    transform: none;
}
.plot {
    display: block;
    width: 100%;
    height: auto;
    margin: 16px 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-soft);
    touch-action: none;
}
.metric {
    margin: 12px 0;
    color: var(--cyan);
    font: 44px/1.2 Consolas, Monaco, monospace;
}
.chip {
    display: inline-block;
    padding: 4px 12px;
    color: var(--cyan);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
}
button, select, input, textarea {
    font: inherit;
}
button {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    color: var(--text);
    font-weight: 650;
    cursor: pointer;
}
button:hover {
    border-color: var(--cyan);
}
button.active, .primary {
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    color: var(--bg);
}
button:disabled {
    opacity: .5;
    cursor: default;
}
input[type=range] {
    width: 100%;
    accent-color: var(--cyan);
}
select, textarea, input[type=text], input[type=number] {
    max-width: 100%;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--text);
}
select, textarea, input[type=text] {
    width: 100%;
}
input[type=number] {
    width: 125px;
}
textarea {
    min-height: 95px;
    resize: vertical;
}
label {
    display: block;
    margin: 16px 0 6px;
    font-size: 14px;
    font-weight: 600;
}
.scale {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
.feedback {
    margin: 16px 0;
    padding: 10px 14px;
    border-left: 3px solid var(--cyan);
    background: var(--surface);
}
.hidden {
    display: none !important;
}
.notes {
    margin-top: 24px;
}
.notes p {
    font-size: 15px;
}
details {
    margin-top: 16px;
}
summary {
    color: var(--cyan);
    font-weight: 600;
    cursor: pointer;
}
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
footer {
    margin-top: 30px;
    color: var(--muted);
    font-size: 12px;
}
@media (max-width: 760px) {
    .layout {
        grid-template-columns: 1fr;
    }
    header, main, footer {
        padding: 18px;
    }
    header .muted {
        display: none;
    }
    .card {
        padding: 18px;
    }
    .brand img {
        width: 46px;
        height: 46px;
    }
    .intro {
        margin-top: 26px;
    }
}
@media print {
    header, .tabs, button, .intro, footer {
        display: none;
    }
    body, .card {
        background: white;
        color: black;
    }
    .layout {
        display: block;
    }
    .card {
        break-inside: avoid;
    }
    textarea {
        height: 120px;
    }
}
