/* =========================================================
 * White Artemisa — theme.css
 * Auth Form Styles + UI Components + Animations
 * ========================================================= */

/* ──── Formularios Auth ──── */
.auth-page-bg {
    background-color: oklch(97% 0.013 17.38) !important;
}

body.auth-page {
    background-color: oklch(97% 0.013 17.38) !important;
}

.form-card {
    background-color: oklch(98% 0.016 73.684);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-input-custom {
    width: 100%;
    border-radius: 9999px;
    border: 1px solid oklch(88% 0.062 18.334);
    padding: 0.75rem 1.25rem;
    background-color: white;
    transition: all 0.2s ease-in-out;
}

.form-input-custom:focus {
    outline: none;
    border-color: oklch(63% 0.237 25.331);
    box-shadow: 0 0 0 3px rgba(255, 143, 163, 0.3);
}

.btn-custom-primary {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    color: oklch(97% 0.014 254.604);
    background-color: oklch(63% 0.237 25.331);
    border: 1px solid oklch(63% 0.237 25.331);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.btn-custom-primary:hover {
    opacity: 0.9;
}

.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #999;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.form-divider-line {
    flex-grow: 1;
    border-bottom: 1px solid oklch(88% 0.062 18.334);
}

.form-divider-text {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem;
}

/* ──── Utilidades Generales ──── */
.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

/* ──── Toggle Switch (Account) ──── */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: oklch(63% 0.237 25.331);
}

input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

input:disabled+.toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ──── Sets / MercadoPago Styles ──── */
#walletBrick_container {
    max-width: 100% !important;
    background: transparent !important;
}

#walletBrick_container *,
#walletBrick_container>div,
#walletBrick_container>div>div {
    background: transparent !important;
}

#walletBrick_container button,
#walletBrick_container .mercadopago-button {
    background: linear-gradient(135deg, #ff8fa3 0%, #ff6b85 100%) !important;
    background-color: #ff8fa3 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(255, 143, 163, 0.3) !important;
    transition: all 0.3s ease !important;
    font-family: 'Comfortaa', sans-serif !important;
    width: 100% !important;
}

#walletBrick_container button:hover {
    background: linear-gradient(135deg, #ff6b85 0%, #ff5070 100%) !important;
    transform: translateY(-2px) !important;
}

@media (min-width: 768px) {
    #walletBrick_container button {
        font-size: 15px !important;
        padding: 12px 20px !important;
    }
}

/* ──── Animaciones ──── */
@keyframes likePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.animate-pop {
    animation: likePop 0.3s ease-in-out;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    animation: gradient 3s ease infinite;
}

.btn-quick-save {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-quick-save.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.btn-quick-save.saving i {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ──── Global Font Scale ──── */
html {
    font-size: 13px;
}

@media (min-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 1280px) {
    html {
        font-size: 15px;
    }
}

/* ──── Contract Styles ──── */
.contract-section {
    transition: all 0.3s ease;
}

.contract-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.step-indicator {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-indicator.active {
    background: linear-gradient(135deg, oklch(63% 0.237 25.331), oklch(70% 0.18 50));
    color: white;
    box-shadow: 0 4px 20px oklch(63% 0.237 25.331 / 0.4);
    transform: scale(1.1);
}

.step-indicator.completed {
    background: oklch(72% 0.19 154.1);
    color: white;
    box-shadow: 0 4px 15px oklch(72% 0.19 154.1 / 0.3);
}

.step-line {
    transition: background 0.4s ease;
}

.step-line.active {
    background: linear-gradient(90deg, oklch(72% 0.19 154.1), oklch(63% 0.237 25.331));
}

.contract-scroll::-webkit-scrollbar {
    width: 6px;
}

.contract-scroll::-webkit-scrollbar-track {
    background: oklch(95% 0.01 0);
    border-radius: 10px;
}

.contract-scroll::-webkit-scrollbar-thumb {
    background: oklch(75% 0.1 25);
    border-radius: 10px;
}

.clause-number {
    background: linear-gradient(135deg, oklch(63% 0.237 25.331), oklch(70% 0.18 50));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ──── Redes Links ──── */
.redes-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.redes-links a svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.redes-links a:hover svg {
    transform: scale(1.1);
}

.animate-section {
    animation: fadeSlideUp 0.5s ease forwards;
}

.form-section {
    transition: all 0.4s ease;
}

.form-section.locked {
    opacity: 0.4;
    pointer-events: none;
    filter: blur(1px);
}