:root {
    --ritual-glass: rgba(255, 255, 255, 0.12);
    --ritual-border: rgba(255, 255, 255, 0.45);
    --ritual-teal: #1a8a8a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.ritual-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #fff;
    background: #0d6b6b url("/img/1x/Fondo-80.jpg") center / cover no-repeat fixed;
}

.ritual-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: clamp(1rem, 2vh, 2rem) clamp(1rem, 3vw, 3.5rem);
}

.ritual-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: clamp(1rem, 2.5vh, 2rem);
}

.ritual-progress__bar {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.35);
    position: relative;
}

.ritual-progress__fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #fff;
    transition: width 0.3s ease;
}

.ritual-progress__label {
    font-size: clamp(0.875rem, 1vw, 1.125rem);
    white-space: nowrap;
    opacity: 0.9;
}

.ritual-glass {
    background: var(--ritual-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--ritual-border);
    border-radius: 16px;
}

.ritual-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
}

.ritual-title-box {
    padding: 1.25rem 2rem;
    max-width: 90vw;
}

.ritual-title {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ritual-subtitle {
    margin: 0;
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 400;
    opacity: 0.95;
}

.ritual-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: clamp(0.65rem, 1.2vh, 1rem) clamp(1.25rem, 2vw, 2rem);
    border: 1px solid var(--ritual-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: clamp(0.95rem, 1vw, 1.125rem);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.ritual-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.ritual-btn--primary {
    background: rgba(26, 138, 138, 0.55);
}

.ritual-form-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 1.5rem;
}

.ritual-form-wrap h2 {
    margin: 0 0 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
}

.ritual-field {
    margin-bottom: 1rem;
    text-align: left;
}

.ritual-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.ritual-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ritual-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    font-size: 1rem;
}

.ritual-field input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ritual-field input:focus {
    outline: none;
    border-color: #fff;
}

.ritual-error {
    color: #ffb4b4;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.ritual-question-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: min(1200px, 88vw);
    margin: auto;
    padding: clamp(1.5rem, 3vh, 3rem) clamp(1.5rem, 4vw, 4rem);
}

.ritual-question-wrap h2 {
    margin: 0 0 clamp(1.25rem, 3vh, 2.5rem);
    font-size: clamp(1.35rem, 2.2vw, 2.75rem);
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.ritual-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.75rem, 1.8vh, 1.5rem);
}

@media (max-width: 520px) {
    .ritual-options {
        grid-template-columns: 1fr;
    }

    .ritual-option span {
        height: 100px;
        min-height: 100px;
    }
}

.ritual-option {
    display: flex;
    cursor: pointer;
}

.ritual-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ritual-option span {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100px;
    padding: clamp(1rem, 2vh, 1.75rem) clamp(1rem, 2vw, 2rem);
    border: 1px solid var(--ritual-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    font-size: clamp(0.95rem, 1.15vw, 1.35rem);
    line-height: 1.35;
    transition: background 0.2s, border-color 0.2s;
}

.ritual-option input:checked + span,
.ritual-option span:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
}

.ritual-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: clamp(1rem, 2vh, 2rem);
}

.ritual-result--fullscreen {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ritual-result__exit {
    position: fixed;
    top: 15px;
    right: 15px;
    margin: 0;
    z-index: 10;
}

.ritual-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
}
