.es-caj {
    --caj-blue: #153b61;
    line-height: 1.48;
    color: #172d43;
}
.es-caj * {
    box-sizing: border-box;
}
.es-caj button,
.es-caj input {
    font: inherit;
}
.es-caj button {
    cursor: pointer;
}
.es-caj button:disabled {
    cursor: default;
}
.es-caj [hidden] {
    display: none !important;
}
.es-caj .caj-layout {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    border-radius: 14px;
    overflow: hidden;
}
.es-caj .caj-cover {
    position: relative;
    isolation: isolate;
    background: #26392b;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(22px, 4vw, 52px);
}
.es-caj .caj-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 44%;
    z-index: -2;
}
.es-caj .caj-cover:before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        #0c141b99,
        transparent 31%,
        #07181def 100%
    );
}
.es-caj .caj-period {
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.88rem;
    font-weight: 700;
}
.es-caj .caj-period:before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    margin: 0 9px 4px 0;
    background: var(--caj-accent);
}
.es-caj .caj-copy {
    padding-top: 54px;
}
.es-caj .caj-copy h2 {
    color: white;
    font: 800 clamp(3.35rem, 6vw, 6.1rem) / 0.96 inherit;
    font-family: inherit;
    font-size: clamp(3.35rem, 6vw, 6.1rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.055em;
    margin: 0;
    overflow-wrap: anywhere;
}
.es-caj .caj-copy h2 .caj-title-accent {
    color: var(--caj-accent);
}
.es-caj .caj-copy p {
    max-width: 39ch;
    margin: 17px 0 20px;
    color: white;
}
.es-caj .caj-primary,
.es-caj .caj-choice {
    border: 0;
    border-radius: 5px;
    min-height: 44px;
    padding: 9px 16px;
    font-weight: 700;
}
.es-caj .caj-primary {
    background: var(--caj-accent);
    color: var(--caj-ink);
}
.es-caj .caj-primary:disabled {
    opacity: 0.65;
}
.es-caj .caj-choice {
    background: #e9f1f8;
    color: #153b61;
}
.es-caj .caj-board {
    padding: clamp(18px, 3vw, 40px);
    background: radial-gradient(ellipse at 100% 0, #245076, #10294c 70%);
    color: white;
}
.es-caj .caj-board-head,
.es-caj .caj-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.es-caj .caj-board-head h3 {
    color: white;
    margin: 0;
}
.es-caj .caj-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    margin: 16px 0;
}
.es-caj .caj-door {
    position: relative;
    min-width: 0;
    padding: 0;
    font:
        normal clamp(1.35rem, 2.6vw, 2.55rem) / 1 Georgia,
        serif;
    aspect-ratio: 1.1;
    border-radius: 5px;
    border: 1px dashed #a4bed078;
    background: #234665;
    color: #f8ead2;
    opacity: 1;
}
.es-caj .caj-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin: 0 0 .65rem;
    padding: 0;
    list-style: none;
    font-size: .83rem;
    color: #fff;
}
.es-caj .caj-legend li {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.es-caj .caj-key {
    display: inline-grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border: 1px dashed #9ab1c3;
    border-radius: 3px;
    background: #234665;
    font: bold .8rem/1 sans-serif;
}
.es-caj .caj-key[data-state='today'],
.es-caj .caj-door[data-state='today'] {
    background: var(--caj-accent);
    color: var(--caj-ink);
    border-style: solid;
}
.es-caj .caj-key[data-state='played'],
.es-caj .caj-door[data-state='played'] {
    background: #d7e9f1;
    border: 1px solid #c6dce7;
    color: #17364f;
}
.es-caj .caj-door[data-state='played'][aria-current='date'] {
    border: 3px solid var(--caj-accent);
}
.es-caj .caj-key[data-state='closed'],
.es-caj .caj-door[data-state='closed'] {
    background: #24364b;
    border: 1px solid #546576;
    color: #b2bdc8;
}
.es-caj .caj-door[data-state='closed'] .caj-door-number {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}
.es-caj .caj-door-check {
    position: absolute;
    top: 1px;
    right: 2px;
    font: bold clamp(.68rem, 1.5vw, .95rem)/1 sans-serif;
}
.es-caj .caj-door:disabled {
    cursor: default;
    opacity: 1;
    -webkit-text-fill-color: currentColor;
}
.es-caj .caj-board p {
    color: white;
    font-size: 0.87rem;
    margin: 0;
}
.es-caj .caj-help {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}
.es-caj summary {
    cursor: pointer;
    font-weight: bold;
}
.es-caj .caj-links {
    display: flex;
    gap: 18px;
}
.es-caj dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(455px, calc(100% - 24px));
    height: fit-content;
    max-height: 90dvh;
    overflow: auto;
    background: white;
    color: #183752;
    border: 0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 65px #1235;
}
.es-caj dialog::backdrop {
    background: #09182ebf;
}
.es-caj .caj-dialog-head > button {
    flex: none;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    border: 0;
    background: none;
}
.es-caj .caj-dialog-head > span {
    font-weight: bold;
    padding-top: 8px;
}
.es-caj dialog h3 {
    color: inherit;
    font-size: 1.6rem;
}
.es-caj dialog label {
    display: block;
    margin: 12px 0;
}
.es-caj dialog input[type='email'],
.es-caj dialog input[name='postal_code'],
.es-caj dialog select[name='country'] {
    width: 100%;
    padding: 8px;
}
.es-caj .caj-country {
    margin: -.25rem 0 .75rem;
}
.es-caj .caj-country summary {
    font-size: .9rem;
    color: #435d71;
    font-weight: normal;
    text-decoration: underline;
    text-underline-offset: .15em;
}
.es-caj dialog input[type='checkbox'] {
    margin-right: 8px;
}
.es-caj .caj-choices {
    display: grid;
    gap: 8px;
}
.es-caj .caj-skip {
    display: block;
    margin-top: 12px;
    border: 0;
    background: none;
    text-decoration: underline;
    color: #475d70;
    min-height: 42px;
}
.es-caj .caj-outcome {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 218px;
    border-radius: 9px;
    background: #eef3f8;
    color: #183752;
    perspective: 850px;
}
.es-caj .caj-result-face,
.es-caj .caj-reveal {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 10px;
    text-align: center;
    overflow-wrap: anywhere;
}
.es-caj .caj-result-face {
    min-height: 218px;
    padding: 26px 20px;
}
.es-caj .caj-result-face::before,
.es-caj .caj-reveal::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px dashed #a6b6c4;
    border-radius: 5px;
    pointer-events: none;
}
.es-caj .caj-outcome[data-win='yes'] {
    background: #fae9bb;
    background: radial-gradient(ellipse at 55% 2%, #fffcef, color-mix(in srgb, var(--caj-accent), white 22%));
}
.es-caj .caj-outcome[data-win='yes'] .caj-result-face::before {
    border-color: #b69d6d;
}
.es-caj .caj-result-face h3 {
    margin: 0;
    line-height: 1.12;
    font-size: clamp(1.55rem, 6.5vw, 1.95rem);
}
.es-caj .caj-result-face h3 strong {
    display: block;
    margin-top: .12em;
    font-size: clamp(1.9rem, 8vw, 2.8rem);
    letter-spacing: -.035em;
}
.es-caj .caj-result-face p {
    max-width: 29ch;
    margin: 0;
    line-height: 1.4;
}
.es-caj .caj-reveal {
    position: absolute;
    z-index: 1;
    inset: 0;
    padding: 15px;
    border: 1px solid var(--caj-accent);
    border-radius: inherit;
    background: linear-gradient(133deg, #365e7c, #183653 68%);
    color: #ffe4aa;
    transform-origin: left center;
    backface-visibility: hidden;
}
.es-caj .caj-reveal::before {
    border-color: var(--caj-accent);
    opacity: .75;
}
.es-caj .caj-reveal::after {
    content: '';
    position: absolute;
    right: -5px;
    top: calc(50% - 7px);
    width: 13px;
    height: 14px;
    border-radius: 50%;
    background: var(--caj-accent);
}
.es-caj .caj-case-number {
    font: normal 4rem/1 Georgia, serif;
}
.es-caj .caj-opening-label {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 700;
}
.es-caj .caj-result-footer {
    padding-top: 14px;
}
.es-caj .caj-result-footer p {
    margin: 0 0 10px;
}
.es-caj .caj-opening + .caj-result-footer {
    visibility: hidden;
}
.es-caj .caj-opening .caj-reveal {
    animation: caj-lift-cover var(--caj-reveal-duration) ease-in-out both;
}
.es-caj .caj-opening .caj-result-face > * {
    animation: caj-result-fade-in var(--caj-reveal-duration) both;
}
.es-caj .caj-code {
    font: bold 1.15rem monospace;
    overflow-wrap: anywhere;
    user-select: all;
}
.es-caj dialog a {
    display: inline-block;
    margin: 5px 8px 5px 0;
}
.es-caj :focus-visible {
    outline: 3px solid #397aaf;
    outline-offset: 3px;
}
@keyframes caj-lift-cover {
    0%, 15% { transform: rotateY(0); opacity: 1; }
    32% { transform: rotateY(-8deg); }
    42% { transform: rotateY(-6deg); opacity: 1; }
    88%, 100% { transform: rotateY(-100deg); opacity: 0; }
}
@keyframes caj-result-fade-in {
    0%, 24% { opacity: 0; transform: translateY(5px); }
    78%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes caj-dissolve-cover {
    0%, 48% { opacity: 1; }
    83%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .es-caj .caj-opening .caj-reveal {
        animation-name: caj-dissolve-cover;
    }
    .es-caj .caj-opening .caj-result-face > * {
        animation: none;
    }
}
@media (max-width: 700px) {
    .es-caj .caj-layout,
    .es-caj .caj-help {
        grid-template-columns: 1fr;
    }
    .es-caj .caj-cover {
        min-height: 260px;
    }
    .es-caj .caj-grid {
        gap: 5px;
    }
    .es-caj .caj-legend {
        display: grid;
        grid-template-columns: repeat(2, max-content);
    }
}

.es-caj .caj-demo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    color: #183b55;
    background: #f1f5f8;
    border-inline-start: 4px solid var(--caj-accent);
}
.es-caj .caj-demo label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin: 0;
    max-width: 100%;
}
.es-caj .caj-demo select {
    max-width: 100%;
    min-height: 44px;
    padding: .35rem .5rem;
    font: inherit;
}

.es-caj .caj-visual-question[hidden],
.es-caj .caj-visual-question [hidden] { display: none; }
.es-caj .caj-prompt-photo, .es-caj .caj-option { position: relative; }
.es-caj .caj-prompt-photo img, .es-caj .caj-option label > img {
    display: block; width: 100%; object-fit: cover; background: #edf1f3;
}
.es-caj .caj-prompt-photo img { height: clamp(120px, 24dvh, 205px); border-radius: 7px; }
.es-caj .caj-visual-intro { margin: 10px 0; font-size: .94rem; line-height: 1.35; }
.es-caj .caj-visual-choices {
    margin: 14px 0; padding: 0; border: 0; min-width: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.es-caj .caj-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.es-caj .caj-option { min-width: 0; border: 1px solid #bdcbd3; border-radius: 7px; overflow: hidden; }
.es-caj .caj-option label { margin: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; cursor: pointer; }
.es-caj .caj-option label > img { aspect-ratio: 1.95; }
.es-caj .caj-option-caption { display: flex; align-items: center; gap: 7px; padding: 7px 9px; min-height: 44px; overflow-wrap: anywhere; }
.es-caj .caj-option-caption input { width: 16px; height: 16px; flex: none; margin: 0; accent-color: #204766; }
.es-caj .caj-option:has(input:checked) { background: #eef5f8; border-color: #204766; box-shadow: inset 0 0 0 1px #204766; }
.es-caj .caj-option:focus-within { outline: 2px solid #245c89; outline-offset: 1px; }
.es-caj .caj-zoom { position: absolute; z-index: 1; top: 3px; right: 3px; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; color: #173a53; cursor: zoom-in; }
.es-caj .caj-zoom::before { content: ''; position: absolute; inset: 5px; background: #fff; border-radius: 50%; box-shadow: 0 1px 5px #142f4355; }
.es-caj .caj-zoom::after { content: ''; position: absolute; width: 19px; height: 19px; inset: 12px; background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173a53' stroke-width='2'%3E%3Ccircle cx='10' cy='10' r='6.5'/%3E%3Cpath d='m15 15 6 6'/%3E%3C/svg%3E"); }
.es-caj .caj-confirm, .es-caj .caj-image-detail > button { width: 100%; }
.es-caj .caj-visual-question .caj-skip { margin: 4px auto 0; }
.es-caj .caj-image-detail img { display: block; width: 100%; max-height: 55dvh; object-fit: contain; margin: 12px auto; }
.es-caj .caj-photo-nav { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 12px; }


