html { background-color: #0f172a; scroll-behavior: smooth; }

/* Canvas de fondo animado */
#linkya-bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════
   Base
══════════════════════════════════════════════════ */

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, #00d1ff 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    transition: all 0.3s ease;
}
.btn-primary:hover { transform: scale(1.02); box-shadow: 0 12px 32px rgba(249,115,22,0.35); }
.btn-primary:disabled { opacity: 0.6; transform: none; cursor: not-allowed; box-shadow: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ══════════════════════════════════════════════════
   Hero
══════════════════════════════════════════════════ */

.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(249,115,22,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* Marquee social proof */
.social-proof-marquee {
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    margin-bottom: 0;
}

.marquee-track {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.marquee-track span { margin-right: 24px; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════
   Form inputs
══════════════════════════════════════════════════ */

.input-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: white;
}
.input-field:focus {
    outline: none;
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

/* ══════════════════════════════════════════════════
   Avatar upload (creation form)
══════════════════════════════════════════════════ */

.avatar-upload { position: relative; width: 110px; height: 110px; cursor: pointer; display: block; }
.avatar-upload input[type="file"] { display: none; }

.avatar-preview {
    width: 110px; height: 110px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 3px dashed rgba(249,115,22,0.35);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}
.avatar-preview:hover { border-color: rgba(249,115,22,0.7); background: rgba(249,115,22,0.04); }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

.avatar-overlay {
    position: absolute; bottom: 0; right: 0;
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(249,115,22,0.4);
    transition: transform 0.2s;
}
.avatar-upload:hover .avatar-overlay { transform: scale(1.1); }

/* ══════════════════════════════════════════════════
   Link pair animations
══════════════════════════════════════════════════ */

.link-pair-enter { animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.link-pair-exit  { animation: slideDown 0.25s ease-out forwards; overflow: hidden; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 1; max-height: 200px; }
    to   { opacity: 0; max-height: 0; }
}

/* Char counter */
.char-counter { transition: color 0.2s; }
.char-counter.warn  { color: #f59e0b; }
.char-counter.danger { color: #ef4444; }

/* ══════════════════════════════════════════════════
   Theme Picker
══════════════════════════════════════════════════ */

.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.theme-option {
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.03);
    position: relative;
    text-align: center;
}
.theme-option:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-1px); }
.theme-option.selected { border-color: #f97316; box-shadow: 0 0 12px rgba(249,115,22,0.25); }
.theme-option.locked { cursor: pointer; }

.theme-swatch {
    height: 38px;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.theme-option-name {
    font-size: 9px; font-weight: 700;
    padding: 5px 4px;
    color: #9ca3af;
}

.theme-lock-wrap {
    position: absolute; top: 4px; right: 4px;
    background: rgba(0,0,0,0.5); border-radius: 6px;
    padding: 2px 4px; font-size: 7px; color: rgba(255,255,255,0.6);
    display: flex; align-items: center; gap: 2px;
}

.theme-selected-check {
    position: absolute; top: 4px; right: 4px;
    width: 14px; height: 14px; background: #f97316;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 7px; color: white;
}

.theme-tease-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 8px; color: #f59e0b; font-weight: 700;
    gap: 4px; border-radius: 12px;
    animation: fadeInOut 2s ease forwards;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

/* ══════════════════════════════════════════════════
   Phone Mockup (live preview)
══════════════════════════════════════════════════ */

/* Teléfono pequeño para comparación free vs premium */
.phone-mockup-sm {
    width: 155px; height: 290px;
    background: #1a1a2e;
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.02), 0 16px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.phone-mockup-sm::before {
    content: '';
    position: absolute; top: 9px; left: 50%;
    transform: translateX(-50%);
    width: 48px; height: 4px;
    background: rgba(0,0,0,0.5); border-radius: 3px;
    z-index: 10;
}

.phone-mockup {
    width: 220px; max-width: 100%; height: 420px;
    background: #1a1a2e;
    border-radius: 42px;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow:
        0 0 0 6px rgba(255,255,255,0.025),
        0 30px 70px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

/* Notch */
.phone-mockup::before {
    content: '';
    position: absolute; top: 12px; left: 50%;
    transform: translateX(-50%);
    width: 72px; height: 6px;
    background: rgba(0,0,0,0.5); border-radius: 3px;
    z-index: 10;
}

/* Side buttons */
.phone-mockup::after {
    content: '';
    position: absolute; right: -3px; top: 100px;
    width: 3px; height: 50px;
    background: rgba(255,255,255,0.08); border-radius: 2px;
}

.phone-screen {
    width: 100%; height: 100%;
    background: #0f172a;
    transition: background 0.4s ease;
    position: relative;
    overflow: hidden;
}

.preview-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 26px 10px 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex; flex-direction: column; align-items: center;
    gap: 5px;
}
.preview-scroll::-webkit-scrollbar { display: none; }

.preview-avatar-wrap { margin-bottom: 4px; }

.preview-avatar-circle {
    width: 62px; height: 62px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(249,115,22,0.5);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: relative;
    transition: border-color 0.4s;
}

.preview-username {
    font-size: 10px; font-weight: 800;
    color: white; text-align: center;
}

.preview-bio {
    font-size: 7.5px; line-height: 1.4;
    text-align: center; max-width: 150px;
    transition: color 0.4s;
}

.preview-links-list {
    width: 100%;
    display: flex; flex-direction: column; gap: 4px;
    margin-top: 8px;
}

.preview-link-item {
    display: flex; align-items: center; gap: 5px;
    padding: 7px 9px; border-radius: 9px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.07);
    font-size: 8px; font-weight: 600; color: #e2e8f0;
    transition: background 0.4s, border-color 0.4s;
}

.preview-powered {
    margin-top: 10px;
    font-size: 6.5px; color: rgba(255,255,255,0.18);
    text-align: center;
}

/* ── Preview Themes ── */
.phone-screen.t-neon    { background: #1a0533; }
.phone-screen.t-aurora  { background: #021a0f; }
.phone-screen.t-sunset  { background: #1a0600; }
.phone-screen.t-ocean   { background: #001626; }
.phone-screen.t-minimal { background: #f1f5f9; }

.phone-screen.t-neon .preview-bio,
.phone-screen.t-neon .preview-powered { color: #c084fc; }
.phone-screen.t-neon .preview-avatar-circle { border-color: rgba(168,85,247,0.6); }
.phone-screen.t-neon .preview-link-item { background: rgba(168,85,247,0.12); border-color: rgba(168,85,247,0.2); }

.phone-screen.t-aurora .preview-bio { color: #6ee7b7; }
.phone-screen.t-aurora .preview-avatar-circle { border-color: rgba(16,185,129,0.6); }
.phone-screen.t-aurora .preview-link-item { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); }

.phone-screen.t-sunset .preview-bio { color: #fca5a5; }
.phone-screen.t-sunset .preview-avatar-circle { border-color: rgba(220,38,38,0.6); }
.phone-screen.t-sunset .preview-link-item { background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.2); }

.phone-screen.t-ocean .preview-bio { color: #7dd3fc; }
.phone-screen.t-ocean .preview-avatar-circle { border-color: rgba(14,165,233,0.6); }
.phone-screen.t-ocean .preview-link-item { background: rgba(14,165,233,0.1); border-color: rgba(14,165,233,0.2); }

.phone-screen.t-minimal .preview-username { color: #1e293b; }
.phone-screen.t-minimal .preview-bio { color: #64748b; }
.phone-screen.t-minimal .preview-powered { color: rgba(0,0,0,0.2); }
.phone-screen.t-minimal .preview-link-item { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.1); color: #1e293b; }

/* ══════════════════════════════════════════════════
   Feature Cards + Comparison (creation page)
══════════════════════════════════════════════════ */

.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 20px 16px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.feature-card.premium-feature {
    background: rgba(249,115,22,0.04);
    border-color: rgba(249,115,22,0.12);
}

.premium-lock-badge {
    position: absolute; top: 12px; right: 12px;
    font-size: 9px; font-weight: 800; color: #f59e0b;
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: 100px; padding: 2px 7px;
}

.free-badge {
    display: inline-block;
    font-size: 9px; font-weight: 800; color: #34d399;
    background: rgba(52,211,153,0.12);
    border: 1px solid rgba(52,211,153,0.2);
    border-radius: 100px; padding: 2px 8px;
}

.comparison-table-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table thead { background: rgba(255,255,255,0.04); }
.comparison-table th { padding: 14px 20px; font-size: 13px; }
.comparison-table td { padding: 11px 20px; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.05); color: #d1d5db; }
.comparison-table .col-premium { background: rgba(249,115,22,0.04); }

/* ══════════════════════════════════════════════════
   Profile Mode — Avatar & Badge
══════════════════════════════════════════════════ */

.avatar-gradient-border {
    position: relative;
    width: 130px; height: 130px;
    border-radius: 50%;
    padding: 4px;
}
.avatar-gradient-border::before {
    content: '';
    position: absolute; inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #f59e0b, #f97316, #ef4444, #ec4899, #8b5cf6, #00d1ff, #34d399, #f59e0b);
    animation: gradientRotate 3s linear infinite;
    z-index: -1;
}
.avatar-gradient-border::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%; background: #0f172a; z-index: -1;
}
.avatar-gradient-border img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

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

.premium-badge {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 26px; height: 26px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border-radius: 50%;
    border: 2px solid #0f172a;
    display: flex; align-items: center; justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(249,115,22,0.5);
    z-index: 2;
}

/* ══════════════════════════════════════════════════
   Profile Links
══════════════════════════════════════════════════ */

.profile-link-btn {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.profile-link-btn:hover {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.15);
}

/* ══════════════════════════════════════════════════
   WhatsApp Button (premium)
══════════════════════════════════════════════════ */

.whatsapp-btn {
    background: linear-gradient(135deg, #128c7e, #25d366);
    border-radius: 16px;
    transition: all 0.3s ease;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(37,211,102,0.25);
}
.whatsapp-btn:hover { transform: scale(1.02); box-shadow: 0 8px 30px rgba(37,211,102,0.35); }

.whatsapp-btn-locked {
    background: rgba(37,211,102,0.06);
    border: 1.5px dashed rgba(37,211,102,0.3);
    border-radius: 16px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    position: relative;
}
.whatsapp-btn-locked:hover {
    background: rgba(37,211,102,0.1);
    border-color: rgba(37,211,102,0.5);
    color: rgba(255,255,255,0.6);
}

.locked-chip {
    font-size: 9px; font-weight: 800;
    background: rgba(245,158,11,0.2);
    border: 1px solid rgba(245,158,11,0.3);
    color: #f59e0b;
    border-radius: 100px; padding: 2px 6px;
    display: inline-flex; align-items: center; gap: 3px;
    margin-left: 4px;
}

/* ══════════════════════════════════════════════════
   Upgrade Banner v2
══════════════════════════════════════════════════ */

/* ── Benefit cards (upgrade section) ── */
.upgrade-benefit-card {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 14px 16px;
    transition: border-color 0.2s, background 0.2s;
}
.upgrade-benefit-card:hover {
    border-color: rgba(249,115,22,0.25);
    background: rgba(249,115,22,0.04);
}
.upgrade-benefit-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(249,115,22,0.12); color: #f97316;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}

/* ── Upgrade CTA wrap ── */
.upgrade-cta-wrap {
    background: linear-gradient(135deg, rgba(249,115,22,0.08) 0%, rgba(234,88,12,0.04) 100%);
    border: 1px solid rgba(249,115,22,0.2);
    border-radius: 24px; padding: 28px 24px;
}

/* ══════════════════════════════════════════════════
   Letreros Publicitarios Horizontales (Banner Ads)
══════════════════════════════════════════════════ */

.pub-banner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    min-height: 160px;
    transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), box-shadow 0.28s ease;
}
.pub-banner:hover { transform: translateX(4px); }

/* Cuerpo del texto */
.pub-body {
    flex: 1;
    padding: 18px 16px 18px 20px;
    display: flex; flex-direction: column;
    justify-content: center;
    gap: 4px;
    position: relative; z-index: 1;
}

/* Ícono decorativo lateral derecho */
.pub-icon {
    width: 80px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3.2rem;
    opacity: 0.18;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative; z-index: 1;
}
.pub-banner:hover .pub-icon { opacity: 0.28; transform: scale(1.1) rotate(-6deg); }

/* Tipografía */
.pub-eyebrow {
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.pub-title {
    font-size: 1.1rem; font-weight: 900;
    color: white; line-height: 1.1;
    margin: 2px 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.pub-copy {
    font-size: 10px; font-weight: 500;
    color: rgba(255,255,255,0.6);
    line-height: 1.45; margin: 0;
}

.pub-cta {
    display: inline-block;
    margin-top: 10px;
    font-size: 10px; font-weight: 900;
    color: white;
    background: rgba(255,255,255,0.2);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 50px;
    padding: 5px 14px;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
    transition: background 0.2s, border-color 0.2s;
    width: fit-content;
}
.pub-banner:hover .pub-cta {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.55);
}

/* Badge flotante tipo pegatina */
.pub-badge {
    position: absolute; top: 0; left: 16px;
    background: #facc15; color: #1a1000;
    font-size: 8px; font-weight: 900;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 3px 10px; border-radius: 0 0 8px 8px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.pub-badge-green { background: #4ade80; color: #052e16; }
.pub-badge-yellow { background: #fbbf24; color: #1a0a00; }
.pub-badge-dark { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.2); }

/* Línea decorativa vertical izquierda */
.pub-banner::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 4px 0 0 4px;
}

/* ── Paletas de color ── */
.pub-naranja {
    background: linear-gradient(125deg, #9a3412 0%, #ea580c 55%, #f97316 100%);
    box-shadow: 0 6px 28px rgba(234,88,12,0.4);
}
.pub-naranja:hover { box-shadow: 0 12px 40px rgba(234,88,12,0.55); }

.pub-morado {
    background: linear-gradient(125deg, #4c1d95 0%, #7c3aed 55%, #a855f7 100%);
    box-shadow: 0 6px 28px rgba(124,58,237,0.4);
}
.pub-morado:hover { box-shadow: 0 12px 40px rgba(124,58,237,0.55); }

.pub-azul {
    background: linear-gradient(125deg, #0c4a6e 0%, #0ea5e9 55%, #38bdf8 100%);
    box-shadow: 0 6px 28px rgba(14,165,233,0.4);
}
.pub-azul:hover { box-shadow: 0 12px 40px rgba(14,165,233,0.55); }

.pub-rojo {
    background: linear-gradient(125deg, #7f1d1d 0%, #dc2626 55%, #f87171 100%);
    box-shadow: 0 6px 28px rgba(220,38,38,0.4);
}
.pub-rojo:hover { box-shadow: 0 12px 40px rgba(220,38,38,0.55); }

.pub-rosa {
    background: linear-gradient(125deg, #831843 0%, #db2777 55%, #f472b6 100%);
    box-shadow: 0 6px 28px rgba(219,39,119,0.4);
}
.pub-rosa:hover { box-shadow: 0 12px 40px rgba(219,39,119,0.55); }

.pub-dorado {
    background: linear-gradient(125deg, #78350f 0%, #d97706 55%, #fbbf24 100%);
    box-shadow: 0 6px 28px rgba(217,119,6,0.4);
}
.pub-dorado:hover { box-shadow: 0 12px 40px rgba(217,119,6,0.55); }

/* ══════════════════════════════════════════════════
   Columna de Ads (servicios TuSitioYa) — legado
══════════════════════════════════════════════════ */

.ad-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.ad-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 60%);
    pointer-events: none;
}
.ad-card:hover {
    border-color: rgba(255,255,255,0.13);
    background: rgba(255,255,255,0.05);
}

.ad-chip {
    display: inline-block;
    font-size: 8px; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 2px 5px;
    margin-bottom: 10px;
}

.ad-icon-wrap {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px; flex-shrink: 0;
}

.ad-title {
    font-size: 13px; font-weight: 700; color: #f1f5f9;
    margin-bottom: 6px; line-height: 1.3;
}

.ad-desc {
    font-size: 11px; color: #64748b;
    line-height: 1.55; margin-bottom: 12px;
}

.ad-cta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11px; font-weight: 700; color: #f97316;
    text-decoration: none; cursor: pointer;
    padding: 7px 11px;
    background: rgba(249,115,22,0.08);
    border: 1px solid rgba(249,115,22,0.2);
    border-radius: 10px;
    transition: background 0.2s ease, border-color 0.2s ease;
    width: 100%;
}
.ad-cta:hover {
    background: rgba(249,115,22,0.16);
    border-color: rgba(249,115,22,0.35);
}

.upgrade-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(249,115,22,0.2);
    border-radius: 22px;
    overflow: hidden;
    text-align: left;
}

.upgrade-social-proof {
    background: rgba(249,115,22,0.08);
    border-bottom: 1px solid rgba(249,115,22,0.1);
    padding: 8px 16px;
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    font-size: 11px; font-weight: 600; color: #fb923c;
}

.social-dot {
    width: 6px; height: 6px;
    background: #22c55e; border-radius: 50%;
    animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

.upgrade-body { padding: 20px; }

.upgrade-header {
    display: flex; align-items: flex-start; gap: 12px;
}

.upgrade-crown-wrap {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.upgrade-features-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.upgrade-feature-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; color: #d1d5db;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px; padding: 8px 10px;
}

.upgrade-themes-preview {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 10px 12px;
}

.theme-dots-row {
    display: flex; gap: 7px; justify-content: flex-start; flex-wrap: wrap;
}

.theme-dot-preview {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    cursor: default;
    transition: transform 0.2s;
}
.theme-dot-preview:hover { transform: scale(1.15); }

.theme-dot-more {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 2px dashed rgba(255,255,255,0.15);
    font-size: 8px; font-weight: 700; color: #9ca3af;
    display: flex; align-items: center; justify-content: center;
}

.upgrade-cta-btn {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border: none; cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 14px;
}
.upgrade-cta-btn:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(249,115,22,0.35); }

/* ══════════════════════════════════════════════════
   Profile Themes (public view)
══════════════════════════════════════════════════ */

#profile-mode.t-neon    { background: #1a0533 !important; }
#profile-mode.t-aurora  { background: #021a0f !important; }
#profile-mode.t-sunset  { background: #1a0600 !important; }
#profile-mode.t-ocean   { background: #001626 !important; }
#profile-mode.t-minimal { background: #f1f5f9 !important; }

/* Neon adjustments for text */
#profile-mode.t-neon #profile-username { color: #e9d5ff; }
#profile-mode.t-neon #profile-bio      { color: #c084fc; }
#profile-mode.t-neon .profile-link-btn { background: rgba(168,85,247,0.12); border-color: rgba(168,85,247,0.25); color: #e9d5ff; }
#profile-mode.t-neon .profile-link-btn:hover { border-color: rgba(168,85,247,0.5); box-shadow: 0 8px 24px rgba(168,85,247,0.2); }
#profile-mode.t-neon .avatar-gradient-border::before { background: conic-gradient(from 0deg, #7c3aed, #db2777, #a855f7, #7c3aed); }

/* Aurora adjustments */
#profile-mode.t-aurora #profile-username { color: #d1fae5; }
#profile-mode.t-aurora #profile-bio      { color: #6ee7b7; }
#profile-mode.t-aurora .profile-link-btn { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2); color: #d1fae5; }
#profile-mode.t-aurora .profile-link-btn:hover { border-color: rgba(16,185,129,0.5); box-shadow: 0 8px 24px rgba(16,185,129,0.2); }
#profile-mode.t-aurora .avatar-gradient-border::before { background: conic-gradient(from 0deg, #059669, #00d1ff, #34d399, #059669); }

/* Sunset adjustments */
#profile-mode.t-sunset #profile-username { color: #fed7aa; }
#profile-mode.t-sunset #profile-bio      { color: #fca5a5; }
#profile-mode.t-sunset .profile-link-btn { background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.2); color: #fed7aa; }
#profile-mode.t-sunset .profile-link-btn:hover { border-color: rgba(220,38,38,0.5); box-shadow: 0 8px 24px rgba(220,38,38,0.2); }
#profile-mode.t-sunset .avatar-gradient-border::before { background: conic-gradient(from 0deg, #dc2626, #f59e0b, #f97316, #dc2626); }

/* Ocean adjustments */
#profile-mode.t-ocean #profile-username { color: #bae6fd; }
#profile-mode.t-ocean #profile-bio      { color: #7dd3fc; }
#profile-mode.t-ocean .profile-link-btn { background: rgba(14,165,233,0.1); border-color: rgba(14,165,233,0.2); color: #bae6fd; }
#profile-mode.t-ocean .profile-link-btn:hover { border-color: rgba(14,165,233,0.5); box-shadow: 0 8px 24px rgba(14,165,233,0.2); }
#profile-mode.t-ocean .avatar-gradient-border::before { background: conic-gradient(from 0deg, #0ea5e9, #6366f1, #38bdf8, #0ea5e9); }

/* Minimal adjustments */
#profile-mode.t-minimal #profile-username { color: #1e293b; }
#profile-mode.t-minimal #profile-bio      { color: #64748b; }
#profile-mode.t-minimal .profile-link-btn { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.12); color: #1e293b; }
#profile-mode.t-minimal .profile-link-btn:hover { background: rgba(0,0,0,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
#profile-mode.t-minimal .avatar-gradient-border::after { background: #f1f5f9; }
#profile-mode.t-minimal #profile-footer-branding { color: #94a3b8; }

/* Fix html bg for themed profiles */
html.profile-page-t-neon    { background: #1a0533; }
html.profile-page-t-aurora  { background: #021a0f; }
html.profile-page-t-sunset  { background: #1a0600; }
html.profile-page-t-ocean   { background: #001626; }
html.profile-page-t-minimal { background: #f1f5f9; }

/* ══════════════════════════════════════════════════
   Profile background orbs
══════════════════════════════════════════════════ */

.orb {
    position: fixed; border-radius: 50%;
    filter: blur(80px); pointer-events: none; z-index: -1;
}

/* ══════════════════════════════════════════════════
   Loading skeleton
══════════════════════════════════════════════════ */

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ══════════════════════════════════════════════════
   Spinner
══════════════════════════════════════════════════ */

.spinner {
    width: 18px; height: 18px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #fff; border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════
   Validación de campos con error
══════════════════════════════════════════════════ */

.input-field.field-error {
    border-color: rgba(239, 68, 68, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
    animation: fieldShake 0.35s ease;
}

@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-5px); }
    60%       { transform: translateX(5px); }
    80%       { transform: translateX(-3px); }
}

.field-error-msg {
    font-size: 11px; color: #f87171;
    margin-top: 5px; display: flex;
    align-items: center; gap: 4px;
    animation: fadeInUp 0.2s ease;
}

/* ══════════════════════════════════════════════════
   Modal de carga (loading)
══════════════════════════════════════════════════ */

.loading-modal-dialog {
    border: none; padding: 0; background: transparent;
    max-width: 22rem; width: calc(100% - 2rem);
}
.loading-modal-dialog::backdrop {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
}

.loading-modal-wrap {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 36px 28px;
    text-align: center;
}

.loading-spinner-lg {
    width: 68px; height: 68px;
    border: 4px solid rgba(249, 115, 22, 0.15);
    border-top-color: #f97316;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

/* Loading steps */
.loading-step {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px; color: #6b7280;
    transition: all 0.35s ease;
    text-align: left;
}

.loading-step .step-icon {
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; flex-shrink: 0;
    transition: all 0.35s ease;
}

.loading-step .step-label { flex: 1; font-weight: 600; }

.loading-step .step-status { font-size: 12px; flex-shrink: 0; }

/* Active: procesando ahora */
.loading-step.active {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
    color: white;
}
.loading-step.active .step-icon {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}
.loading-step.active .step-status::before { content: ''; display: inline-block; width: 8px; height: 8px; background: #f97316; border-radius: 50%; animation: pulse 1s ease infinite; }

/* Done: completado */
.loading-step.done {
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.25);
    color: #34d399;
}
.loading-step.done .step-icon { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.loading-step.done .step-status::before { content: '✓'; color: #34d399; font-weight: 900; font-size: 13px; }

/* Error en el paso */
.loading-step.step-err {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #f87171;
}
.loading-step.step-err .step-icon { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.loading-step.step-err .step-status::before { content: '✗'; color: #f87171; font-weight: 900; font-size: 13px; }

/* ══════════════════════════════════════════════════
   Modal de error
══════════════════════════════════════════════════ */

.error-modal-dialog {
    border: none; padding: 0; background: transparent;
    max-width: 22rem; width: calc(100% - 2rem);
}
.error-modal-dialog::backdrop {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
}

.error-modal-wrap {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 28px;
    padding: 36px 28px;
}

.error-icon-ring {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.25);
    display: flex; align-items: center; justify-content: center;
    animation: errorPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes errorPop {
    0%   { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

/* ══════════════════════════════════════════════════
   Success modal — Tarjeta de presentación
══════════════════════════════════════════════════ */

#success-modal {
    border: none; padding: 0; background: transparent;
    max-width: 22rem; width: calc(100% - 2rem);
}
#success-modal::backdrop { background: rgba(15, 23, 42, 0.92); backdrop-filter: blur(10px); }

.success-modal-wrap {
    background: rgba(15,23,42,0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 28px;
    padding: 24px 20px;
}

/* ── Share card (tarjeta de presentación) ── */
.share-card {
    width: 220px;
    background: linear-gradient(145deg, #1e1b3a 0%, #0f172a 100%);
    border-radius: 20px;
    border: 1px solid rgba(249,115,22,0.25);
    box-shadow:
        0 0 0 1px rgba(249,115,22,0.1),
        0 12px 40px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.06);
    padding: 20px 16px 16px;
    display: flex; flex-direction: column;
    align-items: center; gap: 7px;
    position: relative;
    overflow: hidden;
}

.share-card::before {
    content: '';
    position: absolute; top: -40px; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 80px;
    background: radial-gradient(ellipse, rgba(249,115,22,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.card-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(249,115,22,0.08);
    border: 2px solid rgba(249,115,22,0.4);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(249,115,22,0.08);
}
.card-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.card-username {
    font-size: 15px; font-weight: 900;
    color: white; text-align: center;
    letter-spacing: -0.01em;
}

.card-bio {
    font-size: 10px; color: #9ca3af;
    text-align: center; max-width: 170px;
    line-height: 1.5;
}

.card-divider {
    width: 100%; height: 1px;
    background: linear-gradient(to right, transparent, rgba(249,115,22,0.3), transparent);
    margin: 4px 0;
}

.card-qr-section { text-align: center; }

.card-qr {
    width: 100px; height: 100px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.08);
    display: block; margin: 0 auto;
    background: white; /* QR is white background */
    padding: 4px;
}

.card-qr-label {
    font-size: 8.5px; color: #6b7280;
    text-align: center; margin-top: 5px;
    letter-spacing: 0.02em;
}

.card-branding {
    font-size: 8px; font-weight: 800;
    color: rgba(249,115,22,0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* WhatsApp share button */
.whatsapp-share-btn {
    background: linear-gradient(135deg, #128c7e, #25d366);
    transition: all 0.3s ease;
}
.whatsapp-share-btn:hover { transform: scale(1.02); box-shadow: 0 6px 20px rgba(37,211,102,0.3); }

@keyframes animate-scale-in {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
.animate-scale-in { animation: animate-scale-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ══════════════════════════════════════════════════
   Animations
══════════════════════════════════════════════════ */

.fade-in-up { animation: fadeInUp 0.5s ease forwards; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeInItem 0.4s ease forwards; opacity: 0; }
@keyframes fadeInItem {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes animate-orb-1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(30px,20px) scale(1.1)} }
@keyframes animate-orb-2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-20px,30px) scale(0.95)} }
@keyframes animate-orb-3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(15px,-25px) scale(1.05)} }
.animate-orb-1 { animation: animate-orb-1 8s ease-in-out infinite; }
.animate-orb-2 { animation: animate-orb-2 11s ease-in-out infinite; }
.animate-orb-3 { animation: animate-orb-3 9s ease-in-out infinite; }
