/* ─── OVERLAYS: Modal / Spotlight / Oracle / Calendar ─── */

/* Shared overlay base */
.sabinas-modal-overlay,
#spotlight-overlay,
#oracle-overlay,
#calendar-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.sabinas-modal-overlay.active,
#spotlight-overlay.active,
#oracle-overlay.active,
#calendar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ─── MODAL ─── */
.sabinas-modal-overlay {
    background: rgba(42, 39, 36, 0.5);
    backdrop-filter: blur(10px);
}

#service-modal {
    background: transparent;
    backdrop-filter: none;
    z-index: 2005;
    /* higher than element-modal */
}

.sabinas-modal {
    background: var(--clr-bg);
    width: 92%;
    max-width: 1000px;
    height: 80vh;
    max-height: 800px;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    /* Antigravity initial state */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s var(--antigravity-ease, cubic-bezier(0.175, 0.885, 0.32, 1.02)), opacity 0.4s ease, filter 0.6s var(--antigravity-ease, ease);
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.25);
}

.sabinas-modal-overlay.active .sabinas-modal.is-active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Antigravity pushed back state */
.sabinas-modal-overlay.active .sabinas-modal.is-pushed-back {
    transform: scale(0.92) translateY(-4%);
    filter: blur(4px);
    opacity: 0;
    pointer-events: none;
}

.modal-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

.modal-title-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--clr-text);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    color: var(--clr-text-muted);
    font-size: 1rem;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.09);
}

.modal-back {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-back:hover {
    color: var(--clr-text);
}

#modal-iframe {
    flex: 1;
    border: none;
    width: 100%;
}

.modal-footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

/* ─── SPOTLIGHT ─── */
#spotlight-overlay {
    background: rgba(246, 244, 240, 0.92);
    backdrop-filter: blur(24px);
    align-items: flex-start;
    padding: 8vh 0;
}

.spotlight-inner {
    width: 90%;
    max-width: 700px;
    position: relative;
}

.spotlight-input {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1.5px solid rgba(42, 39, 36, 0.2);
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--clr-text);
    padding: 0.5rem 0;
    outline: none;
    caret-color: var(--clr-sand);
    transition: border-color 0.3s ease;
}

.spotlight-input:focus {
    border-color: var(--clr-sage);
}

.spotlight-results {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 55vh;
    overflow-y: auto;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 1rem;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.25s ease;
}

.result-item:hover {
    transform: translateX(8px);
    background: #fff;
}

.result-name {
    font-size: 1rem;
    color: var(--clr-text);
}

.result-meta {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* ─── ORACLE QUESTIONNAIRE ─── */
#oracle-overlay {
    background: var(--clr-bg);
}

.q-card {
    width: 90%;
    max-width: 580px;
    text-align: center;
}

.q-step {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--clr-sand);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Utilities */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Scroll Lock */
body.no-scroll {
    overflow: hidden;
}

/* Mobile full-screen adjustments for modals and Oracle */
@media (max-width: 768px) {
    .sabinas-modal-overlay {
        align-items: flex-end;
        /* Bottom anchored */
    }

    .sabinas-modal {
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        transform: translateY(100%);
    }

    .sabinas-modal-overlay.active .sabinas-modal.is-active {
        transform: translateY(0);
    }

    .modal-bar {
        padding: 1rem 1.25rem;
    }

    .spot-close,
    .modal-close-mobile {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 50;
    }

    .q-card {
        width: 100%;
        height: 100%;
        max-width: none;
        padding: 3rem 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .q-title {
        font-size: 2rem;
    }
}

.q-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    line-height: 1.3;
    color: var(--clr-text);
    margin-bottom: 2.5rem;
}

.q-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.q-intenciones {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.q-opt {
    padding: 1.1rem 1.75rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--clr-text);
    cursor: pointer;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.q-pill {
    text-align: center;
    padding: 0.9rem 2rem;
}

.q-opt:hover {
    background: #fff;
    border-color: var(--clr-sage);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

/* Results */
.results-cards {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    position: relative;
}

.card-badge {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-sand);
    background: rgba(212, 163, 115, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.result-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.q-results-header {
    margin-bottom: 2rem;
}

.q-subtitle {
    color: var(--clr-text-muted);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.q-restart {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    transition: color 0.3s ease;
}

.q-restart:hover {
    color: var(--clr-text);
}

/* ─── CLOSE BUTTON (shared) ─── */
.spot-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: rgba(42, 39, 36, 0.08);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--clr-text);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.spot-close:hover {
    background: rgba(42, 39, 36, 0.15);
    transform: rotate(90deg);
}

/* ─── WA BOTTOM SHEET ─── */
#wa-bottom-sheet {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    align-items: flex-end;
    z-index: 2100;
}

.bottom-sheet {
    width: 100%;
    max-width: 600px;
    background: var(--clr-bg);
    border-radius: 2rem 2rem 0 0;
    padding: 2.5rem 2rem 3rem 2rem;
    transform: translateY(100%);
    transition: transform 0.5s var(--antigravity-ease);
    position: relative;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.1);
}

#wa-bottom-sheet.active .bottom-sheet {
    transform: translateY(0);
}

.sheet-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: var(--clr-text-muted);
}

.sheet-content {
    text-align: center;
}

.sheet-content h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.sheet-content p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

#wa-name-input {
    width: 100%;
    max-width: 300px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    text-align: center;
    margin-bottom: 1.5rem;
    outline: none;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

#wa-name-input:focus {
    border-color: var(--clr-sage);
}

#wa-continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── CALENDAR OVERLAY ─── */
#calendar-overlay {
    background: rgba(42, 39, 36, 0.5);
    backdrop-filter: blur(10px);
}

.cal-modal {
    background: var(--clr-bg);
    width: 90%;
    max-width: 500px;
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.2);
    transform: scale(0.92);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

#calendar-overlay.active .cal-modal {
    transform: scale(1);
}

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

.cal-month-label {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--clr-text);
    text-transform: capitalize;
}

.cal-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: var(--clr-text);
    cursor: pointer;
    transition: background 0.3s ease;
}

.cal-arrow:hover {
    background: rgba(0, 0, 0, 0.1);
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 0.5rem;
}

.cal-weekdays span {
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    padding: 0.5rem 0;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    aspect-ratio: 1;
    border-radius: 50%;
    font-size: 0.85rem;
    color: var(--clr-text);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cal-day:hover {
    background: var(--clr-sage);
    color: #fff;
}

.cal-day.today {
    background: rgba(212, 163, 115, 0.15);
    font-weight: 600;
    color: var(--clr-sand);
}

.cal-day.disabled {
    color: rgba(42, 39, 36, 0.2);
    cursor: not-allowed;
}

/* Booking Flow inputs */
.flow-input {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--clr-text);
    outline: none;
    transition: border-color 0.3s ease;
}

.flow-input:focus {
    border-color: var(--clr-sage);
}

/* ─── WA BUTTON ─── */
.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: #25D366;
    color: #fff;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.wa-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.3);
}

/* Mini cal in footer (dark context) */
.mini-cal-wrapper .cal-grid .cal-day {
    color: rgba(246, 244, 240, 0.6);
    font-size: 0.75rem;
}

.mini-cal-wrapper .cal-day.today {
    background: rgba(212, 163, 115, 0.25);
    color: var(--clr-sand);
}

/* ─── CALENDAR EVENT DOTS ─── */
.cal-day {
    position: relative;
    flex-direction: column;
}

.event-dots-front {
    display: flex;
    gap: 2px;
    margin-top: 1px;
}

.event-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.dot-agua {
    background: #3B82F6;
}

.dot-fuego {
    background: #EF4444;
}

.dot-tierra {
    background: #92400E;
}

.dot-aire {
    background: #6EE7B7;
}

.dot-eter {
    background: #A78BFA;
}

.dot-default {
    background: var(--clr-sand);
}

/* ─── COLAB FORM ─── */
.colab-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
    text-align: left;
}

.colab-textarea {
    resize: none;
    min-height: 80px;
    font-family: var(--font-body);
}

.colab-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.success-msg {
    background: rgba(37, 211, 102, 0.1);
    color: #1a9647;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.error-msg {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ─── OVERRIDE: COLAB MODAL AL CENTRO ─── */
#colab-bottom-sheet {
    align-items: center !important;
    /* Forza el centrado horizontal y vertical incluso en móviles */
}

#colab-bottom-sheet .bottom-sheet {
    width: 90%;
    max-width: 500px;
    border-radius: 2rem;
    transform: scale(0.95) translateY(0) !important;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    padding-bottom: 2.5rem;
}

#colab-bottom-sheet.active .bottom-sheet {
    transform: scale(1) translateY(0) !important;
    opacity: 1;
}

/* ─── SPONSORS LOGOS (MARQUEE) ─── */
.marquee-item-img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Eliminamos el height: 100% que estaba colapsando el alto real */
}

.marquee-item-img img {
    height: 200px;
    width: auto;
    object-fit: contain;
    filter: invert(1) brightness(200%);
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.marquee-item-img:hover img {
    opacity: 1;
    transform: scale(1.05);
    /* Incrementado del hover normal */
}

@media (max-width: 768px) {
    .marquee-item-img img {
        height: 120px;
    }
}