.es-nochevieja {
    --en-ink: #203448;
    --en-night: #162d43;
    --en-gold: #f0cf83;
    --en-line: #d6dfdc;
    --en-green: #eaf1df;
    color: var(--en-ink);
}

.es-nochevieja .es-nochevieja__eyebrow {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.es-nochevieja__figure {
    margin: 1.8rem 0;
}

.es-nochevieja__figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.25rem;
}

.es-nochevieja__figure figcaption,
.es-nochevieja__translation {
    color: #52616a;
    font-size: 0.9rem;
}

.es-nochevieja__figure figcaption {
    margin-top: 0.6rem;
}

.es-nochevieja__terms {
    border-block: 1px solid var(--en-line);
    margin: 1.5rem 0;
}

.es-nochevieja__terms > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.9rem 0;
}

.es-nochevieja__terms > div + div {
    border-top: 1px solid var(--en-line);
}

.es-nochevieja__terms dt {
    font-weight: 700;
}

.es-nochevieja__terms dd {
    margin: 0;
}

.es-nochevieja__clock,
.es-nochevieja__practice,
.es-nochevieja__next {
    margin: 2rem 0;
    padding: clamp(1rem, 4vw, 2rem);
    border-radius: 1rem;
}

.es-nochevieja__clock {
    color: #f4f1e9;
    background: var(--en-night);
    border: 1px solid #3e5768;
}

.es-nochevieja__clock h3 {
    color: inherit;
    margin-top: 0;
}

.es-nochevieja__clock .es-nochevieja__eyebrow {
    color: var(--en-gold);
}

.es-nochevieja__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.2rem 0;
}

.es-nochevieja [hidden] {
    display: none;
}

.es-nochevieja__controls button {
    flex: 1 1 8rem;
    min-height: 44px;
    padding: 0.7rem;
    border: 1px solid #9daeb3;
    border-radius: 0.5rem;
    background: #fff;
    color: var(--en-ink);
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
}

.es-nochevieja__controls button[aria-pressed="true"] {
    background: var(--en-gold);
    color: #182d40;
    border-color: var(--en-gold);
    font-weight: 700;
    box-shadow: 0 0 0 2px #657a84;
}

.es-nochevieja__stages {
    padding-left: 1.5rem;
}

.es-nochevieja__stages li {
    margin: 0.9rem 0;
    padding: 0.75rem;
    border: 1px solid #586d7c;
    border-radius: 0.5rem;
}

.es-nochevieja__stages li strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--en-gold);
}

.es-nochevieja__stages .is-selected {
    border-color: var(--en-gold);
    background: #253f52;
    box-shadow: inset 4px 0 var(--en-gold);
}

.es-nochevieja__numbers {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.35rem;
    margin-top: 1.5rem;
}

.es-nochevieja__numbers span {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border: 1px solid #a7b993;
    border-radius: 50%;
    color: #e5eecf;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.es-nochevieja .es-nochevieja__status {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.es-nochevieja__safety {
    padding: 0.6rem 1.2rem;
    border-left: 4px solid #8c6324;
    background: #fbf4e6;
}

.es-nochevieja__dialogue {
    margin: 1.5rem 0;
    padding: 0.5rem 1.3rem;
    border-left: 4px solid #527765;
    background: #f1f5f0;
}

.es-nochevieja__audio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0.65rem;
    margin-left: 0.3rem;
    vertical-align: middle;
    border: 1px solid #b8c8b6;
    border-radius: 50%;
    background: #edf3e5;
    color: #234f42;
    cursor: pointer;
}

.es-nochevieja__audio .home-feature-icon {
    width: 22px;
    height: 22px;
    margin: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.es-nochevieja button:hover {
    filter: brightness(0.94);
}

.es-nochevieja button:focus-visible,
.es-nochevieja a:focus-visible {
    outline: 3px solid #b77a17;
    outline-offset: 4px;
}

.es-nochevieja__practice {
    background: #f6f6ee;
    border: 1px solid var(--en-line);
}

.es-nochevieja__practice h3 {
    margin-top: 0;
}

.es-nochevieja__greeting {
    margin: 0.7rem 0;
    padding: 0.1rem 1rem;
    background: #fff;
    border: 1px solid var(--en-line);
    border-radius: 0.6rem;
}

.es-nochevieja__greeting.is-selected {
    background: var(--en-green);
    border-color: #527765;
    box-shadow: inset 4px 0 #527765;
}

.es-nochevieja__next {
    background: var(--en-green);
}

.es-nochevieja__next h2 {
    margin-top: 0;
}

.es-nochevieja__sources {
    border-top: 1px solid var(--en-line);
    margin-top: 2rem;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

@media (max-width: 560px) {
    .es-nochevieja__terms > div {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .es-nochevieja__numbers {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        max-width: 20rem;
    }
}
