/* Reserva ritual — Esencia Arcana */

:root {
    --gold: #f0d78c;
}

.ritual-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.ritual-hero .section-title {
    background: linear-gradient(135deg, #d8b4fe 0%, #f0d78c 55%, #d8b4fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ritual-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ritual-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(212, 168, 247, 0.25);
    transition: all 0.4s ease;
}

.ritual-dot.active {
    background: var(--gold);
    box-shadow: 0 0 12px rgba(240, 215, 140, 0.65);
    transform: scale(1.2);
}

.ritual-dot.done {
    background: rgba(240, 215, 140, 0.55);
}

.ritual-container {
    background: rgba(10, 10, 26, 0.75);
    border: 1px solid rgba(240, 215, 140, 0.28);
    box-shadow: 0 0 40px rgba(240, 215, 140, 0.08);
    border-radius: 16px;
    padding: 2rem;
    max-width: 720px;
    margin: 0 auto;
    backdrop-filter: blur(12px);
}

.ritual-act {
    animation: ritualFadeIn 0.6s ease;
}

.ritual-act.hidden {
    display: none;
}

@keyframes ritualFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.ritual-act-title {
    font-family: 'Cinzel Decorative', serif;
    color: var(--gold);
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.ritual-act-sub {
    text-align: center;
    color: var(--text-muted, rgba(255,255,255,0.85));
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.ritual-scarcity {
    text-align: center;
    font-size: 1rem;
    color: var(--gold);
    opacity: 0.95;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.threshold-cards {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.threshold-card {
    width: 100px;
    height: 150px;
    perspective: 800px;
    cursor: pointer;
}

.threshold-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.threshold-card.flipped .threshold-card-inner {
    transform: rotateY(180deg);
}

.threshold-card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.threshold-card-back {
    background: linear-gradient(145deg, #2d1b69, #1a0d3d);
    font-size: 2rem;
    color: var(--secondary);
}

.threshold-card-front {
    background: linear-gradient(145deg, rgba(124,58,237,0.3), rgba(26,13,61,0.9));
    transform: rotateY(180deg);
}

.threshold-card-front h4 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--gold);
    font-size: 0.95rem;
    margin: 0 0 0.35rem;
}

.threshold-card-front p {
    font-size: 0.8rem;
    margin: 0;
    color: rgba(255,255,255,0.85);
    line-height: 1.3;
}

.threshold-reveal {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1.35rem 1.25rem;
    border-radius: 12px;
    background: rgba(240, 215, 140, 0.1);
    border: 1px solid rgba(240, 215, 140, 0.35);
    display: none;
}

.threshold-reveal p {
    font-size: 1.2rem;
    line-height: 1.65;
    color: #f5edff;
    margin-bottom: 1rem;
}

.threshold-reveal strong {
    color: var(--gold);
    font-size: 1.35rem;
}

.threshold-reveal.visible {
    display: block;
    animation: ritualFadeIn 0.5s ease;
}

.portal-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.portal-option {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.35s ease;
}

.portal-option:hover,
.portal-option.selected {
    border-color: var(--gold);
    background: rgba(240, 215, 140, 0.1);
    box-shadow: 0 0 20px rgba(240, 215, 140, 0.18);
}

.portal-option h4 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    color: var(--text-light);
}

.portal-option p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.85;
}

.plan-portals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.plan-portal {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.35s ease;
}

.plan-portal:hover,
.plan-portal.selected {
    border-color: var(--gold);
    background: rgba(240, 215, 140, 0.1);
}

.plan-portal.featured {
    border-color: rgba(240, 215, 140, 0.45);
}

.plan-portal p {
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0.35rem 0 0;
    color: rgba(255,255,255,0.8);
}

.plan-portal h4 {
    font-size: 1.05rem;
    margin: 0.15rem 0 0;
}

.plan-portal .plan-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--gold);
    color: var(--primary);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.plan-portal .plan-price {
    font-family: 'Cinzel Decorative', serif;
    color: var(--gold);
    font-size: 1.45rem;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-nav button {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 1.5rem;
}

.cal-header {
    text-align: center;
    font-size: 0.7rem;
    color: var(--secondary);
    opacity: 0.7;
    padding: 0.25rem;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: default;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.cal-day.empty { visibility: hidden; }
.cal-day.weekend { opacity: 0.25; pointer-events: none; }
.cal-day.available { cursor: pointer; background: rgba(255,255,255,0.04); }
.cal-day.available:hover {
    border-color: rgba(212, 168, 247, 0.4);
    background: rgba(212, 168, 247, 0.1);
}
.cal-day.selected {
    border-color: var(--secondary);
    background: rgba(212, 168, 247, 0.2);
    box-shadow: 0 0 14px rgba(212, 168, 247, 0.3);
}
.cal-day.past { opacity: 0.2; pointer-events: none; }

.time-portals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.time-portal {
    padding: 0.6rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.03);
}

.time-portal:hover,
.time-portal.selected {
    border-color: var(--secondary);
    background: rgba(212, 168, 247, 0.15);
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.2);
    transform: scale(1.03);
}

.hold-banner {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1.25rem;
    border-radius: 10px;
    background: rgba(212, 168, 247, 0.1);
    border: 1px solid rgba(212, 168, 247, 0.25);
}

.hold-timer {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.5rem;
    color: var(--secondary);
}

.hold-bar-wrap {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.hold-bar {
    height: 100%;
    background: var(--secondary);
    transition: width 1s linear;
    border-radius: 2px;
}

.ritual-form .form-group { margin-bottom: 1rem; }
.ritual-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: var(--secondary);
}
.ritual-form input,
.ritual-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.3);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}
.ritual-form textarea { resize: vertical; min-height: 70px; }

.payment-portals {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.payment-portal {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.payment-portal:hover,
.payment-portal.selected { border-color: var(--gold); background: rgba(240, 215, 140, 0.1); }
.payment-portal i { font-size: 1.5rem; color: var(--gold); width: 2rem; text-align: center; }

.total-seal {
    text-align: center;
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.85rem;
    color: var(--gold);
    margin: 1rem 0;
}

.seal-screen {
    text-align: center;
    padding: 2rem 1rem;
    animation: sealReveal 0.8s ease;
}

@keyframes sealReveal {
    0% { opacity: 0; transform: scale(0.95); }
    60% { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

.seal-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.seal-screen h2 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.seal-archetype {
    font-style: italic;
    color: rgba(212, 168, 247, 0.9);
    margin-bottom: 1.5rem;
}

.seal-prep {
    text-align: left;
    max-width: 400px;
    margin: 1.5rem auto;
    padding: 1rem;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.seal-prep li { margin-bottom: 0.5rem; }

.btn-ritual {
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem 2.2rem;
    background: linear-gradient(135deg, #7c3aed, #f0d78c);
    color: #1a0d3d;
    border: none;
    border-radius: 8px;
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(240, 215, 140, 0.25);
}

.btn-ritual:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(240, 215, 140, 0.35); }
.btn-ritual-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    margin-left: 0.5rem;
    box-shadow: none;
}

.hidden { display: none !important; }

@media (max-width: 600px) {
    .ritual-container { padding: 1.25rem; }
    .threshold-card { width: 85px; height: 130px; }
    .calendar-grid { gap: 4px; }
    .cal-day { font-size: 0.75rem; }
}
