/* ================================================================
   Cliqza — Unified Glass & Halo Design System (All Auth & Onboarding Views)
   ================================================================ */

/* Letra de títulos: la misma del panel Admin, servida desde public/fonts (sin Google) */
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../../../fonts/bricolage-grotesque-latin.woff2') format('woff2');
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de marca (public/images/cliqza_info.png). Cada color tiene UN trabajo:
       naranja = la acción principal · azul = enlaces, foco y navegación
       turquesa = correcto / activo · marino = SOLO texto (sin bloques grandes) */
    --clq-orange: #ff772c;
    --clq-navy: #1b2645;
    --clq-blue: #106fb6;
    --clq-teal: #4bb9b6;
    --clq-gradient: linear-gradient(90deg, #4bb9b6, #106fb6);          /* degradado del ala del logo */
    --clq-gradient-warm: linear-gradient(100deg, #ff772c, #ff9a52);    /* botón principal */

    --clq-brand: #ff772c;
    --clq-brand-hover: #f2661a;
    --clq-brand-light: #fff4ec;
    --clq-brand-border: #ffe0cc;
    --clq-brand-subtle: rgba(255, 119, 44, 0.08);
    --clq-brand-glow: rgba(255, 119, 44, 0.16);
    --clq-blue-subtle: rgba(16, 111, 182, 0.1);
    --clq-blue-glow: rgba(16, 111, 182, 0.18);
    --clq-teal-subtle: rgba(75, 185, 182, 0.14);
    --clq-white: #ffffff;
    --clq-off-white: #f6f8fb;
    /* Grises teñidos de marino (combinan con el texto #1B2645) */
    --clq-gray-50: #f1f4f8;
    --clq-gray-100: #e3e8ef;
    --clq-gray-200: #cfd6e1;
    --clq-gray-300: #a9b3c3;
    --clq-gray-400: #7d889b;
    --clq-gray-500: #5d6880;
    --clq-gray-600: #414c66;
    --clq-gray-700: #1b2645;
    --clq-danger: #e11d48;
    --clq-danger-subtle: rgba(225, 29, 72, 0.08);
    --clq-success: #2a9a96;                    /* turquesa oscurecido: se lee sobre blanco */
    --clq-success-subtle: rgba(75, 185, 182, 0.14);
    --clq-radius-sm: 12px;
    --clq-radius: 22px;
    --clq-radius-lg: 28px;
    --clq-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --clq-input-h: 50px;
    --clq-font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
    --clq-font-display: 'Bricolage Grotesque', var(--clq-font);
}

html {
    height: 100%;
    font-family: var(--clq-font);
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100%;
    font-family: var(--clq-font);
    background-color: #f7f9fc;
    color: var(--clq-gray-700);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ── Utilities ─────────────────────────────────────────────────── */
.is-hidden {
    display: none !important;
}

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

.text-right {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase;
}

.w-full {
    width: 100%;
}

/* ================================================================
   FONDO CON AURAS DE MARCA
   Las 4 capas ya existen en todas las vistas (.clq-bg y sus hijos), así que
   ninguna vista tuvo que cambiar su HTML:
     .clq-bg::before   → aura naranja (arriba a la izquierda)
     .clq-bg::after    → aura azul (abajo a la derecha)
     .clq-bg-inner     → aura turquesa (centro derecha)
     .clq-bg-texture   → trama de puntos muy suave que se desvanece
     .clq-bg-halo      → luz que sigue al mouse (cliqza-auth-halo.js)
   Rendimiento: solo se anima transform/opacity (sin blur animado).
   ================================================================ */
.clq-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, #fbfcfe 0%, #f3f6fb 100%);
    pointer-events: none;
}

/* Base común de las 3 auras: un círculo de color difuminado con radial-gradient
   (más barato que filter: blur) */
.clq-bg::before,
.clq-bg::after,
.clq-bg-inner {
    content: '';
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

/* Aura naranja */
.clq-bg::before {
    width: 62vmax;
    height: 62vmax;
    top: -24vmax;
    left: -18vmax;
    background: radial-gradient(circle at center,
        rgba(255, 119, 44, 0.30) 0%,
        rgba(255, 119, 44, 0.12) 38%,
        rgba(255, 119, 44, 0) 68%);
    animation: clqAuraOrange 26s ease-in-out infinite alternate;
}

/* Aura azul */
.clq-bg::after {
    width: 70vmax;
    height: 70vmax;
    bottom: -30vmax;
    right: -22vmax;
    background: radial-gradient(circle at center,
        rgba(16, 111, 182, 0.30) 0%,
        rgba(16, 111, 182, 0.12) 40%,
        rgba(16, 111, 182, 0) 68%);
    animation: clqAuraBlue 30s ease-in-out infinite alternate;
}

/* Aura turquesa */
.clq-bg-inner {
    width: 50vmax;
    height: 50vmax;
    bottom: -22vmax;
    left: 12%;
    background: radial-gradient(circle at center,
        rgba(75, 185, 182, 0.34) 0%,
        rgba(75, 185, 182, 0.12) 42%,
        rgba(75, 185, 182, 0) 70%);
    animation: clqAuraTeal 34s ease-in-out infinite alternate;
}

@keyframes clqAuraOrange {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); }
}

@keyframes clqAuraBlue {
    0%   { transform: translate3d(0, 0, 0) scale(1.05); }
    100% { transform: translate3d(-9vmax, -5vmax, 0) scale(0.94); }
}

@keyframes clqAuraTeal {
    0%   { transform: translate3d(0, 0, 0) scale(0.95); }
    100% { transform: translate3d(14vmax, -10vmax, 0) scale(1.1); }
}

/* Trama de puntos (marino muy tenue) que se apaga hacia los bordes */
.clq-bg-texture {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(27, 38, 69, 0.09) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 0%, transparent 75%);
    opacity: 0.7;
}

.clq-bg-halo {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 600ms var(--clq-ease);
}

.clq-bg-halo.is-visible {
    opacity: 1;
}

/* Quien pidió menos movimiento en su sistema: auras quietas */
@media (prefers-reduced-motion: reduce) {
    .clq-bg::before,
    .clq-bg::after,
    .clq-bg-inner {
        animation: none;
    }
}

/* ================================================================
   LAYOUT & GLASS CARDS
   ================================================================ */
.clq-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    padding: 24px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clq-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--clq-radius-lg);
    padding: 36px 36px 32px;
    box-shadow:
        0 1px 2px rgba(27, 38, 69, 0.04),
        0 14px 34px -10px rgba(27, 38, 69, 0.12),
        0 30px 70px -24px rgba(16, 111, 182, 0.18),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    animation: clqCardEnter 550ms var(--clq-ease) 60ms forwards;
}

.clq-card--sm { max-width: 440px; }
.clq-card--md { max-width: 520px; }
.clq-card--lg { max-width: 580px; }
.clq-card--plans { max-width: 1080px; }

.clq-card--checkout {
    max-width: 960px;
    padding: 0;
    overflow: hidden;
}

/* Rayo de luz que recorre el borde de la tarjeta sin detenerse (mismo truco que el
   panel Admin, sección 2.2 de cliqza-admin.css, y que el landing).
   Cómo funciona: el ::before cubre la tarjeta con un conic-gradient y la máscara deja
   visible SOLO un anillo de 1.5px (el borde). Se anima el ángulo (--clq-beam-angle,
   registrado con @property). Hay una sola tarjeta por pantalla: un solo repintado. */
@property --clq-beam-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.clq-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 1.5px;                /* grosor del rayo */
    border-radius: inherit;
    pointer-events: none;
    /* Cola turquesa, cuerpo azul y punta naranja (los colores del ala) */
    background: conic-gradient(
        from var(--clq-beam-angle),
        transparent 0deg 190deg,
        rgba(75, 185, 182, 0.5) 245deg,
        rgba(16, 111, 182, 0.85) 305deg,
        #ff772c 348deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    /* Giro lento, constante y sin pausas */
    animation: clqBeamSpin 9s linear infinite;
}

@keyframes clqBeamSpin {
    to { --clq-beam-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
    .clq-card::before {
        animation: none;
        opacity: 0;
    }
}

@keyframes clqCardEnter {
    0%   { opacity: 0; transform: translateY(12px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Header ────────────────────────────────────────────────────── */
.clq-header {
    text-align: center;
    margin-bottom: 22px;
}

.clq-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(8px);
    animation: clqFadeSlide 450ms var(--clq-ease) 150ms forwards;
}

/* Ave del logo (torogoz). Viene sin margen (se cambia desde la consola, "Logo y marca"):
   se fija el alto y el ancho se ajusta solo. */
.clq-logo img {
    height: 44px;
    width: auto;
    max-width: 96px;
    display: block;
}

.clq-header h1 {
    font-family: var(--clq-font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--clq-gray-700);
    line-height: 1.25;
    margin-bottom: 6px;
    opacity: 0;
    transform: translateY(8px);
    animation: clqFadeSlide 450ms var(--clq-ease) 200ms forwards;
}

.clq-subtext {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--clq-gray-500);
    line-height: 1.5;
    max-width: 420px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(8px);
    animation: clqFadeSlide 450ms var(--clq-ease) 250ms forwards;
}

.clq-subtext--wide {
    max-width: 580px;
}

.clq-subtext--spaced {
    margin-bottom: 18px;
}

.clq-subtext strong {
    color: var(--clq-gray-700);
    font-weight: 600;
}

@keyframes clqFadeSlide {
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ── Alert Container & Error Banner ────────────────────────────── */
.clq-alert-wrap {
    margin-bottom: 16px;
}

.clq-alert-wrap:empty {
    display: none;
    margin-bottom: 0;
}

.clq-error-box {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: var(--clq-radius-sm);
    font-size: 0.82rem;
    margin-bottom: 16px;
    line-height: 1.45;
}

.clq-error-box strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.clq-error-box ul {
    margin: 0;
    padding-left: 18px;
}

/* ================================================================
   FORMS, INPUTS & CONTROLS
   ================================================================ */
.clq-form {
    opacity: 0;
    transform: translateY(8px);
    animation: clqFadeSlide 450ms var(--clq-ease) 300ms forwards;
}

.clq-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.clq-field {
    margin-bottom: 14px;
    position: relative;
}

.clq-label {
    display: block;
    font-size: 0.79rem;
    font-weight: 600;
    color: var(--clq-gray-600);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
    transition: color 200ms ease;
}

.clq-label--center {
    text-align: center;
    margin-bottom: 10px;
}

.clq-field:focus-within .clq-label {
    color: var(--clq-blue);
}

.clq-required-dot,
.required-dot {
    color: var(--clq-brand);
    margin-left: 2px;
}

.clq-input-wrap,
.clq-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.clq-input-icon,
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clq-gray-400);
    pointer-events: none;
    transition: color 200ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.clq-input-icon--top {
    top: 16px;
    transform: none;
}

.clq-input-icon svg,
.input-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.clq-field:focus-within .clq-input-icon,
.clq-field:focus-within .input-icon {
    color: var(--clq-blue);
}

.clq-input,
.clq-select,
.clq-textarea {
    width: 100%;
    height: var(--clq-input-h);
    padding: 0 16px 0 44px;
    font-size: 0.92rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--clq-gray-700);
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid var(--clq-gray-100);
    border-radius: var(--clq-radius-sm);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition:
        border-color 200ms ease,
        box-shadow 200ms ease,
        background-color 200ms ease;
}

.clq-password-wrap .clq-input {
    padding-right: 46px;
}

.clq-textarea {
    height: auto;
    min-height: 92px;
    padding: 12px 16px 12px 44px;
    resize: vertical;
    line-height: 1.5;
}

.clq-select {
    cursor: pointer;
    padding-right: 44px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
}

.clq-input::placeholder,
.clq-textarea::placeholder {
    color: var(--clq-gray-300);
    font-weight: 400;
    font-size: 0.88rem;
}

.clq-input:hover:not(:read-only),
.clq-select:hover,
.clq-textarea:hover {
    border-color: var(--clq-gray-200);
    background: var(--clq-white);
}

.clq-input:focus:not(:read-only),
.clq-select:focus,
.clq-textarea:focus {
    border-color: var(--clq-blue);
    background: var(--clq-white);
    box-shadow:
        0 0 0 4px var(--clq-blue-subtle),
        0 0 0 1px var(--clq-blue-glow);
}

.clq-input:read-only {
    color: var(--clq-gray-500);
    cursor: default;
    background: rgba(242, 242, 243, 0.75);
    border-color: var(--clq-gray-100);
}

/* ── Checkbox Términos ─────────────────────────────────────────── */
.clq-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--clq-gray-500);
    line-height: 1.45;
    margin-top: 6px;
}

.clq-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--clq-brand);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.clq-checkbox a {
    color: var(--clq-blue);
    font-weight: 600;
    text-decoration: none;
}

.clq-checkbox a:hover {
    text-decoration: underline;
}

/* ── Eye Toggle ────────────────────────────────────────────────── */
.clq-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--clq-gray-400);
    cursor: pointer;
    transition: color 200ms ease, background-color 200ms ease;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.clq-eye svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.clq-eye:hover {
    color: var(--clq-gray-600);
    background: rgba(0, 0, 0, 0.03);
}

.clq-eye.visible {
    color: var(--clq-blue);
}

/* ── OTP Input (2FA) ───────────────────────────────────────────── */
.clq-otp-input {
    width: 100%;
    height: 60px;
    padding: 0 16px 0 calc(16px + 0.35em);
    font-size: 1.55rem;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-align: center;
    color: var(--clq-gray-700);
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid var(--clq-gray-100);
    border-radius: var(--clq-radius-sm);
    outline: none;
    transition:
        border-color 200ms ease,
        box-shadow 200ms ease,
        background-color 200ms ease;
}

.clq-otp-input::placeholder {
    color: var(--clq-gray-300);
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.35em;
}

.clq-otp-input:focus {
    border-color: var(--clq-blue);
    background: var(--clq-white);
    box-shadow:
        0 0 0 4px var(--clq-blue-subtle),
        0 0 0 1px var(--clq-blue-glow);
}

/* ── Validation Errors & Status ────────────────────────────────── */
.clq-input.is-invalid,
.clq-select.is-invalid,
.clq-textarea.is-invalid,
.clq-otp-input.is-invalid {
    border-color: var(--clq-danger);
    box-shadow: 0 0 0 4px var(--clq-danger-subtle);
}

.clq-field:has(.is-invalid) .clq-input-icon,
.clq-field:has(.is-invalid) .input-icon {
    color: var(--clq-danger);
}

.clq-field-error,
.auth-input-error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--clq-danger);
    margin-top: 6px;
    line-height: 1.35;
    animation: clqErrorIn 250ms var(--clq-ease);
}

.clq-field-error--center {
    justify-content: center;
}

.clq-field-error svg,
.auth-input-error svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

@keyframes clqErrorIn {
    0%   { opacity: 0; transform: translateY(-4px); }
    100% { opacity: 1; transform: translateY(0); }
}

.clq-helper,
.auth-helper {
    display: block;
    font-size: 0.79rem;
    color: var(--clq-gray-400);
    margin-top: 6px;
    line-height: 1.45;
}

.clq-helper strong,
.auth-helper strong {
    color: var(--clq-gray-600);
    font-weight: 600;
}

.clq-helper a,
.auth-helper a {
    color: var(--clq-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 200ms ease;
}

.clq-helper a:hover,
.auth-helper a:hover {
    color: var(--clq-blue);
}

.clq-status,
.auth-status {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 6px;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.clq-btn-wrap {
    margin-top: 18px;
}

.clq-btn {
    position: relative;
    width: 100%;
    min-height: var(--clq-input-h);
    padding: 10px 22px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--clq-navy);
    font-weight: 700;
    background: var(--clq-gradient-warm);
    border: none;
    border-radius: var(--clq-radius-sm);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 6px 18px -6px rgba(255, 119, 44, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    -webkit-appearance: none;
    appearance: none;
    transition:
        background-color 220ms ease,
        transform 220ms ease,
        box-shadow 220ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.clq-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
        0 10px 24px -6px rgba(255, 119, 44, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Brillo que cruza el botón al pasar el cursor (solo transform) */
.clq-btn:not(.clq-btn-secondary)::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 35%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: translateX(-120%) skewX(-18deg);
    pointer-events: none;
}

.clq-btn:not(.clq-btn-secondary):not(:disabled):hover::after {
    transform: translateX(480%) skewX(-18deg);
    transition: transform 800ms var(--clq-ease);
}

.clq-btn:focus-visible {
    outline: 3px solid var(--clq-blue-glow);
    outline-offset: 2px;
}

.clq-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.clq-btn:disabled {
    background: var(--clq-gray-100);
    color: var(--clq-gray-400);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.clq-btn-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clq-btn-arrow,
.btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 220ms ease;
}

.clq-btn:not(:disabled):hover .clq-btn-arrow,
.clq-btn:not(:disabled):hover .btn-arrow {
    transform: translateX(3px);
}

.clq-btn-arrow svg,
.btn-arrow svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.clq-btn-secondary {
    background: var(--clq-gray-50);
    color: var(--clq-gray-600);
    border: 1.5px solid var(--clq-gray-100);
}

.clq-btn-secondary:hover:not(:disabled) {
    background: var(--clq-gray-100);
    color: var(--clq-gray-700);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ================================================================
   SELECT STORE / EMPRESA (Flecha 100% contenida y responsiva)
   ================================================================ */
.clq-store-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0 20px;
}

.clq-store-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid var(--clq-gray-100);
    border-radius: var(--clq-radius-sm);
    text-decoration: none;
    color: var(--clq-gray-700);
    overflow: hidden;
    transition:
        border-color 220ms ease,
        background-color 220ms ease,
        transform 220ms ease,
        box-shadow 220ms ease;
}

.clq-store-card:hover {
    border-color: var(--clq-brand);
    background: var(--clq-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(255, 119, 44, 0.12);
}

.clq-store-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.clq-store-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 119, 44, 0.15) 0%, rgba(255, 119, 44, 0.05) 100%);
    color: var(--clq-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 119, 44, 0.2);
}

.clq-store-details {
    min-width: 0;
    flex: 1;
}

.clq-store-details h3 {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--clq-gray-700);
    margin: 0 0 3px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clq-store-meta {
    font-size: 0.78rem;
    color: var(--clq-gray-400);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.clq-store-url {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.clq-role-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: capitalize;
    flex-shrink: 0;
}

.clq-role-badge--owner {
    background: var(--clq-success-subtle);
    color: #23807d;
}

.clq-role-badge--collaborator {
    background: var(--clq-blue-subtle);
    color: var(--clq-blue);
}

.clq-store-arrow {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--clq-gray-50);
    color: var(--clq-gray-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition:
        background-color 220ms ease,
        color 220ms ease,
        transform 220ms ease;
}

.clq-store-arrow svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.clq-store-card:hover .clq-store-arrow {
    background: var(--clq-brand);
    color: var(--clq-white);
    transform: translateX(2px);
}

.clq-btn-create-store {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 16px;
    background: rgba(249, 250, 251, 0.85);
    border: 1.5px dashed var(--clq-gray-200);
    border-radius: var(--clq-radius-sm);
    color: var(--clq-gray-600);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms ease;
    margin-top: 4px;
}

.clq-btn-create-store:hover {
    background: var(--clq-brand-light);
    border-color: var(--clq-brand);
    color: var(--clq-brand);
}

/* ================================================================
   OWNER INFORMATION & CREATE STORE STEPS
   ================================================================ */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--clq-gray-100);
    border: 2px solid var(--clq-gray-200);
    transition: all 300ms var(--clq-ease);
}

.step-dot.active,
.step-dot.completed {
    background: var(--clq-brand);
    border-color: var(--clq-brand);
}

.step-dot.active {
    box-shadow: 0 0 0 4px var(--clq-brand-subtle);
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--clq-gray-100);
    border-radius: 1px;
    transition: background 300ms var(--clq-ease);
}

.step-line.completed {
    background: var(--clq-brand);
}

.step-title {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--clq-gray-500);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.step-title span {
    color: var(--clq-brand);
}

.clq-owner-detected {
    background: rgba(255, 119, 44, 0.05);
    border: 1px solid rgba(255, 119, 44, 0.22);
    border-radius: var(--clq-radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.clq-owner-detected h4 {
    margin: 0 0 6px 0;
    font-size: 0.92rem;
    color: var(--clq-gray-700);
}

.clq-owner-detected p {
    margin: 0 0 12px 0;
    font-size: 0.82rem;
    color: var(--clq-gray-500);
    line-height: 1.45;
}

.clq-owner-detected-box {
    font-size: 0.84rem;
    color: var(--clq-gray-700);
    background: var(--clq-white);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--clq-gray-100);
    line-height: 1.55;
}

/* ================================================================
   PLANS VIEW (select_plan)
   ================================================================ */
.clq-trust-banner {
    background: linear-gradient(135deg, rgba(255, 119, 44, 0.08) 0%, rgba(255, 119, 44, 0.03) 100%);
    border: 1px solid rgba(255, 119, 44, 0.25);
    border-radius: var(--clq-radius-sm);
    padding: 12px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.clq-trust-banner-text {
    font-size: 0.88rem;
    color: var(--clq-gray-700);
    font-weight: 500;
}

.clq-trust-banner-text strong {
    color: var(--clq-brand);
    font-weight: 700;
}

.clq-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 18px;
    margin-bottom: 26px;
    align-items: stretch;
}

.clq-plan-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid var(--clq-gray-100);
    border-radius: 18px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 250ms var(--clq-ease);
}

.clq-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 119, 44, 0.4);
}

.clq-plan-card.featured {
    border: 2px solid var(--clq-brand);
    background: var(--clq-white);
    box-shadow: 0 12px 28px -10px rgba(255, 119, 44, 0.18);
}

.clq-plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clq-brand);
    color: var(--clq-white);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(255, 119, 44, 0.3);
    white-space: nowrap;
}

.clq-plan-name {
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--clq-gray-700);
    margin-bottom: 4px;
}

.clq-plan-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 8px 0 12px;
}

.clq-plan-price {
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--clq-gray-700);
    line-height: 1;
    letter-spacing: -0.5px;
}

.clq-plan-period {
    font-size: 0.88rem;
    color: var(--clq-gray-400);
    font-weight: 500;
}

.clq-plan-description {
    font-size: 0.86rem;
    color: var(--clq-gray-500);
    line-height: 1.48;
    margin-bottom: 20px;
    min-height: 42px;
}

.clq-plan-divider {
    height: 1px;
    background: var(--clq-gray-100);
    margin-bottom: 18px;
}

.clq-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 26px 0;
    flex-grow: 1;
}

.clq-plan-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--clq-gray-600);
    margin-bottom: 12px;
    line-height: 1.4;
}

.clq-plan-feature-icon {
    color: var(--clq-success);
    flex-shrink: 0;
    margin-top: 2px;
}

.clq-guarantee-note {
    text-align: center;
    font-size: 0.76rem;
    color: var(--clq-gray-400);
    margin-top: 10px;
}

/* ================================================================
   SUBSCRIPTION SUCCESS VIEW
   ================================================================ */
.clq-success-icon {
    background: rgba(255, 119, 44, 0.1);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    color: var(--clq-brand);
}

.clq-success-title {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    color: var(--clq-gray-700);
}

.clq-success-copy {
    color: var(--clq-gray-500);
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 22px;
}

.clq-success-copy strong {
    color: var(--clq-gray-700);
}

.clq-receipt-notice {
    background: rgba(249, 250, 251, 0.9);
    border: 1px solid var(--clq-gray-100);
    border-radius: var(--clq-radius-sm);
    padding: 14px 16px;
    margin-bottom: 26px;
    font-size: 0.84rem;
    color: var(--clq-gray-600);
}

/* ================================================================
   INVITATION BADGE & EXISTING USER SUMMARY
   ================================================================ */
.clq-invite-badge {
    background-color: var(--clq-brand-light);
    color: var(--clq-brand);
    padding: 12px 16px;
    border-radius: var(--clq-radius-sm);
    border: 1px solid var(--clq-brand-border);
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.clq-invite-badge svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.clq-user-summary {
    text-align: center;
    padding: 8px 0 6px;
    margin-bottom: 12px;
}

.clq-avatar-circle {
    background: var(--clq-brand-light);
    border: 1.5px solid var(--clq-brand-border);
    color: var(--clq-brand);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.35rem;
    font-weight: 700;
}

.clq-user-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clq-gray-700);
    margin-bottom: 6px;
}

.clq-user-desc {
    font-size: 0.88rem;
    color: var(--clq-gray-500);
    line-height: 1.5;
}

/* ================================================================
   2FA RESEND, FOOTER & LOGOUT ACTION
   ================================================================ */
.clq-resend {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--clq-gray-100);
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    animation: clqFadeSlide 450ms var(--clq-ease) 380ms forwards;
}

.clq-resend p {
    font-size: 0.84rem;
    color: var(--clq-gray-500);
    margin-bottom: 8px;
}

.clq-resend-btn {
    background: none;
    border: none;
    color: var(--clq-brand);
    font-weight: 600;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 200ms ease, background-color 200ms ease;
}

.clq-resend-btn:hover:not(:disabled) {
    background: var(--clq-brand-subtle);
    color: var(--clq-brand-hover);
}

.clq-resend-btn:disabled {
    color: var(--clq-gray-300);
    cursor: not-allowed;
}

.clq-timer {
    display: block;
    font-size: 0.78rem;
    color: var(--clq-gray-400);
    margin-top: 4px;
}

.clq-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(27, 38, 69, 0.08);
    opacity: 0;
    transform: translateY(8px);
    animation: clqFadeSlide 450ms var(--clq-ease) 420ms forwards;
}

.clq-footer p {
    font-size: 0.84rem;
    color: var(--clq-gray-500);
    line-height: 1.5;
}

.clq-footer a {
    color: var(--clq-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 200ms ease;
}

.clq-footer a:hover {
    color: var(--clq-blue);
}

.clq-logout-form {
    margin: 0;
}

.clq-logout-text {
    margin-bottom: 10px;
    font-size: 0.82rem;
    color: var(--clq-gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.clq-logout-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    color: #dc2626;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    transition: background-color 200ms ease;
}

.clq-logout-btn:hover {
    background: rgba(220, 38, 38, 0.08);
}

.clq-footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
}

.clq-footer-links:first-child {
    margin-top: 0;
}

.clq-footer-links a {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--clq-gray-500);
}

.clq-footer-links a:hover {
    color: var(--clq-gray-600);
}

/* ── Loading Overlay ───────────────────────────────────────────── */
.clq-loading-overlay,
.auth-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 300ms ease, visibility 300ms ease;
    border-radius: inherit;
}

.clq-loading-overlay.is-active,
.auth-loading-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
}

.loading-spinner-ring {
    width: 48px;
    height: 48px;
    border: 3.5px solid rgba(255, 119, 44, 0.15);
    border-top-color: var(--clq-brand);
    border-radius: 50%;
    animation: clqSpin 0.75s linear infinite;
    margin-bottom: 16px;
}

.loading-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clq-gray-700);
    margin-bottom: 6px;
}

.loading-text {
    font-size: 0.86rem;
    color: var(--clq-gray-500);
    line-height: 1.5;
}

@keyframes clqSpin {
    to { transform: rotate(360deg); }
}

/* ================================================================
   CHECKOUT PLAN & 3D CARD (Wompi Bridge)
   ================================================================ */
.checkout-context {
    padding: 24px 36px 18px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.65);
}

.checkout-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.checkout-back:hover {
    color: var(--clq-brand);
    transform: translateX(-2px);
}

.checkout-eyebrow {
    display: block;
    margin: 0 0 4px;
    color: var(--clq-brand);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.checkout-context h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.checkout-context-subtitle {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.35;
}

.checkout-main {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
    column-gap: 40px;
    padding: 28px 36px 36px;
}

.checkout-sidebar,
.checkout-form-area {
    min-width: 0;
}

.summary-intro {
    margin-bottom: 12px;
}

.summary-intro h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 0.82rem;
}

.checkout-row strong {
    color: #0f172a;
    font-weight: 600;
}

.checkout-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.total-label {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.total-amount-highlight {
    display: block;
    color: #0f172a;
    font-size: clamp(1.75rem, 3vw, 2.1rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.total-currency {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.coupon-applied-banner {
    background: rgba(16, 185, 129, 0.08);
    border-left: 3px solid var(--clq-success);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
}

.coupon-applied-title {
    margin: 0;
    font-size: 0.78rem;
    color: #0f172a;
    line-height: 1.35;
}

.coupon-applied-sub {
    margin: 2px 0 0;
    font-size: 0.68rem;
    color: #64748b;
}

.coupon-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.coupon-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.coupon-input-applied {
    background-color: #f8fafc !important;
    border-color: var(--clq-success) !important;
    color: var(--clq-success) !important;
    font-weight: 700 !important;
    text-align: center;
}

.coupon-btn-remove {
    color: #ef4444 !important;
    border-color: #fecaca !important;
}

.coupon-helper {
    margin-top: 8px;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.3;
}

.trust-badges-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid #f1f5f9;
}

.trust-badge-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 6px;
}

.trust-badge-icon.green {
    background: var(--clq-success-subtle);
    color: var(--clq-success);
}

.trust-badge-icon.blue {
    background: var(--clq-blue-subtle);
    color: var(--clq-blue);
}

.trust-badge-content h4 {
    margin: 0;
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 700;
}

.trust-badge-content p {
    margin: 1px 0 0;
    color: #64748b;
    font-size: 0.65rem;
}

.payment-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.payment-heading-copy span {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.payment-heading-copy h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.payment-secure-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--clq-success);
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.08);
    padding: 3px 8px;
    border-radius: 20px;
}

.card-container {
    position: relative;
    perspective: 1000px;
    width: 100%;
    max-width: 320px;
    margin: 12px auto 20px;
    aspect-ratio: 1.586;
    z-index: 2;
}

.card-container::before {
    content: '';
    position: absolute;
    inset: 8% 4%;
    z-index: -1;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.22);
    filter: blur(14px);
    transform: translateY(6px);
    transition: opacity 0.3s ease;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

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

.card-front,
.card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.card-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: cardShine 8s infinite ease-in-out;
}

@keyframes cardShine {
    0%   { left: -150%; }
    15%  { left: 200%; }
    100% { left: 200%; }
}

.card-back {
    transform: rotateY(180deg);
    padding: 0;
    justify-content: flex-start;
}

.card-header-icons {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.card-chip-group {
    display: flex;
    align-items: center;
}

.card-chip {
    width: 32px;
    height: auto;
    opacity: 0.95;
}

.card-contactless {
    width: 14px;
    height: auto;
    opacity: 0.6;
    margin-top: 6px;
    margin-left: 8px;
}

.card-logo-placeholder {
    height: 20px;
    text-align: right;
    font-weight: 800;
    font-size: 0.95rem;
    font-style: italic;
    letter-spacing: -0.02em;
}

.card-number-display {
    margin-top: auto;
    margin-bottom: 12px;
    z-index: 2;
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    letter-spacing: 1.8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.card-details-row {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    z-index: 2;
}

.card-label {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.card-value {
    display: block;
    max-width: 160px;
    overflow: hidden;
    color: #ffffff;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-magnetic-stripe {
    width: 100%;
    height: 38px;
    margin-top: 18px;
    background: #020617;
}

.card-cvv-band {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 30px;
    margin: 16px 18px;
    padding-right: 10px;
    border-radius: 4px;
    background: #ffffff;
    color: #0f172a;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Checkout Form Controls */
.form-group {
    position: relative;
    margin-bottom: 12px;
}

.form-label {
    display: block;
    margin-bottom: 4px;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-family: var(--clq-font);
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.form-control--cvv {
    padding-right: 32px;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    outline: none;
    border-color: var(--clq-brand);
    box-shadow: 0 0 0 3px rgba(255, 119, 44, 0.12);
}

.form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-control.is-valid {
    border-color: var(--clq-success);
}

.error-feedback {
    display: none;
    margin-top: 3px;
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 500;
}

.form-group.has-error .error-feedback {
    display: block;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.exp-inputs-row {
    display: flex;
    gap: 4px;
    align-items: center;
}

.exp-divider {
    color: #cbd5e1;
    font-weight: 600;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-toggle-visibility {
    position: absolute;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 0;
    background: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.btn-toggle-visibility:hover {
    color: var(--clq-brand);
}

.btn-container {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    width: 100%;
}

.clq-btn-checkout,
.auth-btn-checkout {
    flex: 1.6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--clq-brand);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 119, 44, 0.22);
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.clq-btn-checkout--full {
    width: 100%;
    margin-top: 6px;
}

.clq-btn-checkout:hover,
.auth-btn-checkout:hover {
    background: var(--clq-brand-hover);
    box-shadow: 0 6px 14px rgba(255, 119, 44, 0.32);
    transform: translateY(-1px);
}

.clq-btn-outline,
.auth-btn-secondary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.clq-btn-outline:hover,
.auth-btn-secondary:hover {
    border-color: var(--clq-brand);
    background: var(--clq-brand-subtle);
    color: var(--clq-brand);
}

/* Modal Transferencia */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px -8px rgba(0,0,0,0.22);
    transform: scale(0.92) translateY(8px);
    transition: transform 0.2s var(--clq-ease);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.modal-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
}

.btn-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-close:hover {
    background: #e2e8f0;
}

.modal-body {
    padding: 20px;
}

.bank-transfer-banner {
    position: relative;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    text-align: center;
}

.bank-transfer-title {
    color: #0f172a;
    font-size: 0.88rem;
}

/* A-01: aviso de que el cupón de bienvenida no aplica por transferencia */
.bank-transfer-note {
    margin: 10px 0 0;
    color: #92400e;
    font-size: 0.8rem;
    line-height: 1.4;
}

.bank-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    text-align: left;
    margin-top: 10px;
}

.info-item--span-2 {
    grid-column: span 2;
}

.info-item .label {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.info-item .value {
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 700;
}

.info-item .value--brand {
    color: var(--clq-brand);
    font-size: 0.9rem;
}

.info-item .value-mono {
    color: var(--clq-blue);
    font-family: 'Space Mono', monospace;
    font-size: 0.88rem;
    letter-spacing: 0.4px;
}

.file-upload-wrapper {
    position: relative;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
}

.file-upload-wrapper:hover {
    border-color: var(--clq-brand);
    background: var(--clq-brand-subtle);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    margin-top: 6px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Loading state on checkout button */
.is-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.is-loading svg {
    opacity: 0;
}

.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: clqSpin 0.8s linear infinite;
}

/* ================================================================
   RESPONSIVE DESIGN (100% Mobile, Tablet & Desktop)
   ================================================================ */
@media (max-width: 840px) {
    .checkout-context {
        padding: 20px 20px 16px;
    }

    .checkout-main {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }

    .checkout-sidebar {
        padding-bottom: 20px;
        border-bottom: 1px solid #f1f5f9;
    }
}

@media (max-width: 640px) {
    :root {
        --clq-input-h: 46px;
    }

    .clq-wrapper {
        padding: 14px 12px;
    }

    .clq-card,
    .clq-card--sm,
    .clq-card--md,
    .clq-card--lg {
        max-width: 100%;
        padding: 26px 20px 22px;
        border-radius: var(--clq-radius);
    }

    .clq-card--checkout {
        padding: 0;
        border-radius: 18px;
    }

    .checkout-context {
        padding: 16px;
    }

    .checkout-main {
        padding: 16px;
        gap: 20px;
    }

    .btn-container {
        flex-direction: column;
        gap: 10px;
    }

    .clq-btn-checkout,
    .auth-btn-checkout,
    .clq-btn-outline,
    .auth-btn-secondary {
        width: 100%;
        flex: none;
    }

    .card-container {
        max-width: 100%;
        width: 100%;
        margin: 8px 0 20px;
    }

    .modal-body {
        padding: 16px;
    }

    .bank-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .info-item--span-2 {
        grid-column: span 1;
    }

    .clq-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .clq-plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .clq-plan-card {
        padding: 22px 18px;
    }

    .clq-store-card {
        padding: 13px 14px;
    }

    .clq-store-avatar {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}

@media (max-width: 380px) {
    .clq-card {
        padding: 22px 16px 18px;
        border-radius: 18px;
    }

    .clq-header h1 {
        font-size: 1.25rem;
    }

    .clq-footer-links {
        gap: 12px;
        flex-wrap: wrap;
    }
}
/* ─── Anti-bot de los formularios de acceso (admin/auth/partials/anti-bot) ─────────────── */

/* Honeypot: fuera de la pantalla, no display:none (muchos bots se saltan los campos con display:none) */
.clq-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Widget de Cloudflare Turnstile */
.clq-turnstile {
    display: flex;
    justify-content: center;
    margin: 4px 0 12px;
    min-height: 65px;
}

/* ── Casilla "Acepto los Términos y la Política de privacidad" (partials/accept-terms) ── */
.clq-terms {
    margin-top: 14px;
}

.clq-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--clq-gray-600);
    cursor: pointer;
}

.clq-terms-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--clq-brand);
    cursor: pointer;
}

.clq-terms-label a {
    color: var(--clq-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ================================================================
   ACCESO EN DOS COLUMNAS (inicio de sesión y registro)
   Vista: <div class="clq-wrapper clq-wrapper--split"> + partials/brand-aside
   - Escritorio (≥ 1000 px): panel de marca a la izquierda, formulario a la derecha.
   - Tableta y celular: solo el formulario (el panel se oculta).
   ================================================================ */
.clq-wrapper--split {
    gap: clamp(40px, 6vw, 88px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 28px;
}

.clq-wrapper--split .clq-card {
    flex: 0 1 480px;
}

.clq-wrapper--split .clq-card--lg {
    flex-basis: 540px;
}

/* ── Panel de marca ────────────────────────────────────────────── */
.clq-aside {
    display: none;
    flex: 1 1 0;
    max-width: 540px;
    color: var(--clq-navy);
}

@media (min-width: 1000px) {
    .clq-aside {
        display: block;
    }

    /* Con el panel a la vista, el ave del formulario sobra */
    .clq-wrapper--split .clq-card .clq-logo {
        display: none;
    }

    .clq-wrapper--split .clq-header {
        text-align: left;
    }

    .clq-wrapper--split .clq-subtext {
        margin: 0;
    }
}

/* Entrada escalonada: cada bloque usa --clq-delay */
.clq-aside > * {
    opacity: 0;
    transform: translateY(10px);
    animation: clqFadeSlide 600ms var(--clq-ease) var(--clq-delay, 0ms) forwards;
}

.clq-aside-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    text-decoration: none;
}

/* Logo sin margen (se cambia en la consola, "Logo y marca"): alto fijo, ancho automático */
.clq-aside-brand img {
    display: block;
    height: 40px;
    width: auto;
}

.clq-aside-brand img + img {
    height: 26px;
}

/* Etiqueta pequeña con punto turquesa que "late" */
.clq-aside-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    margin-bottom: 18px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--clq-gray-600);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(27, 38, 69, 0.08);
    border-radius: 999px;
}

.clq-aside-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--clq-teal);
}

.clq-aside-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--clq-teal);
    opacity: 0;
    animation: clqPulse 2.4s ease-out infinite;
}

@keyframes clqPulse {
    0%   { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.clq-aside-title {
    font-family: var(--clq-font-display);
    font-size: clamp(2.2rem, 3.6vw, 3.1rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--clq-navy);
    margin-bottom: 18px;
}

/* Palabras clave del título pintadas con el degradado del ala */
.clq-aside-ink {
    background: var(--clq-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.clq-aside-ink--warm {
    background: linear-gradient(90deg, #f2661a, var(--clq-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.clq-aside-lead {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--clq-gray-500);
    max-width: 460px;
    margin-bottom: 28px;
}

/* ── Canales de venta (fichas con ícono) ───────────────────────── */
.clq-aside-channels {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 470px;
    margin-bottom: 28px;
}

.clq-aside-channel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--clq-navy);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    box-shadow: 0 6px 18px -12px rgba(27, 38, 69, 0.35);
    transition: transform 220ms var(--clq-ease), box-shadow 220ms var(--clq-ease);
}

.clq-aside-channel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -14px rgba(27, 38, 69, 0.45);
}

.clq-aside-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.clq-aside-icon svg {
    width: 18px;
    height: 18px;
}

/* Un color de la paleta por canal */
.clq-aside-icon--blue   { color: var(--clq-blue);   background: var(--clq-blue-subtle); }
.clq-aside-icon--teal   { color: #23807d;           background: var(--clq-teal-subtle); }
.clq-aside-icon--orange { color: #e35f17;           background: var(--clq-brand-subtle); }
.clq-aside-icon--wing   { color: #ffffff;           background: var(--clq-gradient); }

/* ── Promesas (iguales a las de la landing) ────────────────────── */
.clq-aside-promises {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--clq-gray-500);
}

.clq-aside-promises li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.clq-aside-promises svg {
    width: 15px;
    height: 15px;
    color: var(--clq-teal);
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .clq-aside > * {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .clq-aside-dot::after {
        animation: none;
    }
}

/* Celular: mismo aire que el resto de pantallas de acceso */
@media (max-width: 640px) {
    .clq-wrapper--split {
        padding: 14px 12px;
    }
}

/* =========================================================================
   Ambiente de pruebas (DEMO_MODE): tarjeta con el usuario y la contraseña
   Vista: resources/views/admin/auth/partials/demo-credentials.blade.php
   ========================================================================= */
.demo-credentials {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--clq-brand-light);
    border: 1px solid var(--clq-brand-border);
    text-align: left;
}

.demo-credentials-title {
    margin: 0 0 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--clq-brand-hover);
}

.demo-credentials-text,
.demo-credentials-note {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--clq-gray-600);
}

.demo-credentials-list {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--clq-white);
    border: 1px solid var(--clq-brand-border);
}

.demo-credentials-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
}

.demo-credentials-row dt {
    font-size: 0.8rem;
    color: var(--clq-gray-500);
}

.demo-credentials-row dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--clq-gray-700);
    user-select: all; /* un clic selecciona el dato completo para copiarlo */
    word-break: break-all;
}
