/* ========================================
   WEBIMPULSER DIAMOND HERO v10.1
   Blue Theme - 2 Column Layout with SVG Background
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&display=swap');

:root {
    --primary-blue: #0066ff;
    --secondary-blue: #0044cc;
    --accent-cyan: #00ccff;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff !important;
    background-image: linear-gradient(135deg, #ffffff 0%, #f0f7ff 50%, #ffffff 100%) !important;
    color: #0f172a !important;
    overflow-x: hidden;
}

.glow-bg {
    display: none !important;
}

/* ===================================
   NAVIGATION
   =================================== */
.glass-nav {
    display: none !important;
    /* Managed by high-end-header.css */
}

.logo {
    font-weight: 900 !important;
    color: var(--secondary-blue) !important;
}

.logo span {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-muted) !important;
}

.nav-links a:hover {
    color: var(--primary-blue) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.8rem !important;
    border-radius: 2px !important;
    font-weight: 600 !important;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.35);
}

/* ===================================
   HERO - 2 COLUMN LAYOUT
   =================================== */
.hero-elite-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 60%, #ffffff 100%) !important;
    position: relative;
    overflow: hidden;
    padding: 180px 2rem 80px;
    display: flex;
    align-items: center;
}

/* SVG PATTERN BACKGROUND - NO PIXELATION */
.hero-elite-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230066ff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.15;
    z-index: 1;
}

/* SMOOTH GRADIENT ORBS */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 2;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.4), transparent);
    top: -100px;
    right: -100px;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 204, 255, 0.4), transparent);
    bottom: -100px;
    left: -100px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.4), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbPulse 6s ease-in-out infinite;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

@keyframes orbPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
}

/* Hide old elements */
.elite-orb,
.new-tag,
.bento-item,
.visual-showcase,
.diamond-shape,
.prism-light {
    display: none !important;
}

/* 2 COLUMN CONTAINER */
.elite-container {
    max-width: 1400px;
    margin: 0 auto;
    z-index: 10;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.elite-text-content {
    text-align: left;
}

.elite-headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: #0f172a !important;
}

.text-gradient-anim {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.elite-sub {
    font-size: 1.2rem;
    color: #475569 !important;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.elite-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-elite {
    padding: 1.1rem 2.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-elite.primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

.btn-elite.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.4);
}

.btn-elite.secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-elite.secondary:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* ===================================
   PHONE PREVIEW - RIGHT SIDE
   =================================== */
.elite-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.preview-badge-hero {
    text-align: center;
}

.magic-phone-container {
    position: relative;
    display: inline-block;
    text-align: center;
}

/* The hero now uses the standard .phone-frame from style.css */
.elite-visual .phone-frame {
    transform: scale(0.8);
    /* Scale it slightly so it doesn't dominate the hero */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    position: relative;
}

/* MAGICAL GLOW on HOVER */
.magic-phone-container:hover .phone-frame {
    transform: translateY(-10px) scale(0.82);
    box-shadow:
        0 40px 80px rgba(0, 102, 255, 0.15),
        0 0 80px rgba(0, 204, 255, 0.1),
        0 0 0 1px rgba(0, 102, 255, 0.2);
}

/* ANIMATED MAGIC BORDER */
.magic-phone-container::before {
    content: '';
    position: absolute;
    inset: -15px;
    background: conic-gradient(from 0deg,
            transparent,
            #3b82f6,
            transparent,
            #06b6d4,
            transparent);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.5s;
    animation: rotateBorder 4s linear infinite;
    filter: blur(20px);
    z-index: 5;
}

.magic-phone-container:hover::before {
    opacity: 0.6;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* SPARKLE PARTICLES */
.sparkle-trail {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(59, 130, 246, 1), transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleFloat 1.2s ease-out forwards;
    z-index: 20;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

@keyframes sparkleFloat {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.3) translateY(-60px);
    }
}

/* Classes removed as we use standard phone-screen and phone-button */

/* ===================================
   TEMPLATES SECTION
   =================================== */
.templates-section {
    background: #020b1a !important;
    padding: 80px 2rem;
    color: #ffffff !important;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 900;
    color: #ffffff !important;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .elite-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

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

    .elite-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .elite-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-elite-wrapper {
        padding: 120px 2rem 60px;
    }

    .elite-headline {
        font-size: 2.2rem;
    }

    .elite-visual .phone-frame {
        transform: scale(0.6);
    }

    .nav-links {
        display: none;
    }

    .elite-container {
        grid-template-columns: 1fr;
    }

    .hero-text-column,
    .hero-visual-column {
        text-align: center;
    }

    .elite-actions {
        justify-content: center;
    }
}

/* ===================================
   MINI APP MOCKUP STYLES (Realistic Preview)
   =================================== */
.template-market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    gap: 1.5rem !important;
}

.template-visual-wrapper {
    aspect-ratio: 9/16 !important;
    border-radius: 4px 4px 0 0;
    background: #f1f5f9;
}

.mini-app-canvas {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    pointer-events: none;
    user-select: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
    aspect-ratio: 9/16;
}

.mini-app-canvas.theme-dark {
    background: #030712;
    color: #f8fafc;
}

/* Status Bar */
.mini-status-bar {
    height: 24px;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
    font-weight: 700;
}

.mini-status-icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.mini-status-icon {
    width: 10px;
    height: 5px;
    background: #000;
    opacity: 0.8;
    border-radius: 1px;
}

.theme-dark .mini-status-icon {
    background: #fff;
}

.mini-status-icon.battery {
    width: 14px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    position: relative;
    background: transparent;
}

.mini-status-icon.battery::before {
    content: '';
    position: absolute;
    left: 1px;
    top: 1px;
    width: 8px;
    height: 3px;
    background: #10b981;
}

/* Header */
.mini-app-header {
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.mini-app-header h5 {
    font-size: 11px;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
}

.theme-dark .mini-app-header h5 {
    color: #fff;
}

.mini-header-icons {
    display: flex;
    gap: 8px;
}

.mini-icon {
    width: 14px;
    height: 14px;
    background: #64748b;
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

.mini-icon.layers {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12.83 2.18a2 2 0 0 0-1.66 0L2.1 6.27a2 2 0 0 0 0 3.66l9.07 4.09a2 2 0 0 0 1.66 0l9.07-4.09a2 2 0 0 0 0-3.66Z'/%3E%3Cpath d='m2.1 14.07 9.07 4.09a2 2 0 0 0 1.66 0l9.07-4.09'/%3E%3Cpath d='m2.1 10.07 9.07 4.09a2 2 0 0 0 1.66 0l9.07-4.09'/%3E%3C/svg%3E");
}

.mini-icon.square {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3C/svg%3E");
}

.mini-icon.bell {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E");
}

/* Body */
.mini-app-body-scroll {
    flex: 1;
    overflow: hidden;
    padding: 10px 14px;
}

.mini-category-header {
    margin-bottom: 12px;
}

.mini-category-header h6 {
    font-size: 13px;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
}

.theme-dark .mini-category-header h6 {
    color: #fff;
}

.mini-category-header p {
    font-size: 8px;
    color: #64748b;
    margin: 2px 0 0 0;
    font-weight: 500;
}

/* Product Card */
.mini-product-grid {
    display: flex;
    flex-direction: column;
}

.mini-product-card {
    background: #f8fafc;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9/11;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.mini-img-container {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.mini-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #ff4d4d;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mini-product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 15px 12px 10px;
    color: white;
}

.mini-p-details {
    margin-bottom: 8px;
}

.mini-p-name {
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.mini-p-price {
    font-size: 9px;
    font-weight: 600;
}

.mini-buy-btn {
    background: #111827;
    color: white;
    border-radius: 2px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    font-weight: 700;
    width: fit-content;
}

.mini-cart-icon {
    width: 10px;
    height: 10px;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
    mask-size: contain;
}

/* Bottom Nav */
.mini-bottom-nav {
    height: 50px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding: 0 10px 5px;
}

.theme-dark .mini-bottom-nav {
    background: #111827;
    border-top-color: rgba(255, 255, 255, 0.04);
}

.mini-nav-item {
    width: 18px;
    height: 18px;
    background: #cbd5e1;
    mask-size: contain;
    mask-repeat: no-repeat;
}

.mini-nav-item:nth-child(1) {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

.mini-nav-item:nth-child(2) {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}

.mini-nav-item:nth-child(4) {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
}

.mini-nav-item:nth-child(5) {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.mini-nav-item.active {
    background: var(--primary-blue);
}

.mini-nav-center {
    width: 36px;
    height: 36px;
    background: var(--primary-blue);
    border-radius: 50% !important;
    margin-top: -25px;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.theme-dark .mini-nav-center {
    border-color: #030712;
}

.mini-bag-icon {
    width: 16px;
    height: 16px;
    background: white;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
    mask-size: contain;
}

/* --- VISOR DE IMAGEN COMPLETA (MODAL native fix) --- */
.full-image-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 99999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.full-image-overlay.active {
    display: flex !important;
    pointer-events: auto !important;
}

.full-image-overlay img {
    max-width: 95%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
}

.full-image-overlay.zoomed {
    align-items: center;
    justify-content: center;
    overflow: scroll !important;
    -webkit-overflow-scrolling: touch;
}

.full-image-overlay.zoomed img {
    max-width: none;
    max-height: none;
    transform: scale(1.5);
    margin: auto;
    cursor: zoom-out;
}

.full-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.full-image-overlay.zoomed .full-image-container {
    width: 200%;
    height: 200%;
}

.close-full-image {
    position: absolute;
    top: 50px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(5px);
    z-index: 100000;
}

/* --- PROGRESS BAR: FREE SHIPPING --- */
.free-shipping-bar {
    padding: 15px;
    background: #f8fafc;
    border-radius: 4px;
    margin: 10px 0 15px;
    border: 1px solid #f1f5f9;
}

.free-shipping-bar.reached {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.bar-message {
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 8px;
    text-align: center;
}

.free-shipping-bar.reached .bar-message {
    color: #059669;
}

.bar-progress-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.bar-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.free-shipping-bar.reached .bar-progress-fill {
    background: #10b981;
}

/* Modal specific adjustment */
.app-confirm-modal .free-shipping-bar {
    margin: 15px 0;
    width: 100%;
}

/* ===================================
   CONNECT INTERFACE REDESIGN (Canva-Premium)
   =================================== */
.connect-step-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.connect-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
}

.premium-card {
    background: #ffffff;
    border-radius: 4px;
    padding: 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid #f1f5f9;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-step-tag {
    position: absolute;
    top: -12px;
    left: 24px;
    background: #1e293b;
    color: white;
    padding: 6px 16px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.premium-card.active-sync .card-step-tag {
    background: var(--primary-blue);
}

.card-icon-header {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* PREMIUM SYNC BAR SYSTEM */
.sync-progress-container {
    height: 54px;
    position: relative;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    display: none;
    /* Hidden by default */
}

.sync-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
    background-size: 200% 100%;
    transition: width 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
    animation: gradientShift 2s infinite linear;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.sync-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: progressShimmer 1.5s infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

.sync-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 0.85rem;
    color: #1e293b;
    z-index: 5;
    white-space: nowrap;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }

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

/* BUTTONS & INPUTS */
.btn-premium-action {
    width: 100%;
    height: 52px;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-premium-action:hover {
    background: #0f172a;
    transform: scale(1.02);
}

.btn-premium-action.sync-btn {
    background: var(--primary-blue);
}

.input-premium-key {
    width: 100%;
    height: 52px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    padding: 0 16px;
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.input-premium-key:focus {
    border-color: var(--primary-blue);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* AUTO-FILL PREVIEW */
.premium-auto-fill {
    background: #fff;
    border-radius: 4px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 20px;
}

.url-detected-box {
    flex: 1;
}

.url-detected-label {
    font-size: 0.7rem;
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.url-detected-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- PREMIUM CIRCULAR LOADER (v2026) --- */
.premium-loader {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-top: 4px solid var(--primary-blue, #3b82f6);
    border-radius: 50% !important;
    animation: premium-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    position: relative;
}

.premium-loader::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-bottom: 4px solid rgba(6, 182, 212, 0.4);
    animation: premium-spin-reverse 2s linear infinite;
}

@keyframes premium-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes premium-spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* Ensure all loaders are circular */
.checker-loader, .spinner-mini, .loading-spinner, .spinner, .spinner-tiny, .payment-spinner {
    border-radius: 50% !important;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .connect-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .premium-card {
        padding: 24px;
    }

    .premium-auto-fill {
        flex-direction: column;
        text-align: center;
    }

    .url-detected-value {
        justify-content: center;
    }
}

/* =============================================================
   HERO SLIDER ADD-ONS (Arrows & Progress Bar)
   ============================================================= */

/* --- SIDE ARROWS --- */
.hero-side-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-side-arrow i {
    width: 28px;
    height: 28px;
}

.hero-side-arrow:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.hero-side-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-side-arrow.prev {
    left: 40px;
}

.hero-side-arrow.next {
    right: 40px;
}

@media (max-width: 1400px) {
    .hero-side-arrow.prev {
        left: 20px;
    }

    .hero-side-arrow.next {
        right: 20px;
    }
}

@media (max-width: 1024px) {
    .hero-side-arrow {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .hero-side-arrow {
        display: none;
        /* Mobile hide arrows for cleaner UI */
    }
}

/* --- PROGRESS BAR --- */
.hero-progress-container {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 100;
    overflow: hidden;
}

.hero-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
    background-size: 200% 100%;
    animation: gradientFlow 3s linear infinite;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
    transition: width 0.08s linear;
}

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

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

/* --- IQ IMAGE PREMIUM STYLES --- */
.iq-visual-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #001f3f;
    margin: 0 auto;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    perspective: 1000px;
}

.iq-visual-container:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.iq-premium-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.iq-visual-container:hover .iq-premium-img {
    transform: scale(1.03);
}

.iq-glass-caption {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    z-index: 10;
}

.caption-dot {
    width: 6px;
    height: 6px;
    background: #00f2ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f2ff;
    animation: pulseIQ 2s infinite;
}

@keyframes pulseIQ {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* --- PURPLE GLOW TEXT --- */
.text-purple-glow {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3));
}

/* --- IQ FEATURES GRID --- */
.iq-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2.5rem 0;
}

.iq-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 18px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.iq-feature:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateX(8px) scale(1.02);
}

.iq-feature i {
    color: #a855f7;
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.5));
}

.iq-feature span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #cbd5e1;
}

/* --- HIDE PAUSE HINT --- */
.slider-pause-hint {
    display: none !important;
}

/* --- IMPROVED SLIDE TRANSITION (SNAPPY) --- */
.hero-slide {
    transition: opacity 0.3s ease !important;
    /* Quitado el efecto de movimiento, solo fade rápido */
}

.hero-slide:not(.active) {
    transform: none;
    /* No movement */
}

.visual-component {
    transition: opacity 0.3s ease !important;
}

.visual-component:not(.active) {
    transform: none;
}

/* --- STAR PRODUCT BADGE (ULTRAPREMIUM) --- */
.star-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 900;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4), 0 0 40px rgba(245, 158, 11, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 15px 35px rgba(245, 158, 11, 0.6);
    }
}

/* --- MOBILE RESPONSIVE REFINEMENTS --- */
@media (max-width: 900px) {
    .elite-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
        padding: 40px 15px;
        overflow-x: hidden;
    }

    .elite-text-content {
        order: 1;
        /* Letras primero */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .elite-visual {
        order: 2;
        /* Visual segundo */
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Centramos el preview del móvil específicamente */
    #visual-phone {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .magic-phone-container {
        margin: 0 auto;
        transform: scale(0.95);
    }

    .elite-headline {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .elite-sub {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .elite-actions {
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }

    /* El buscador IQ lo dejamos como estaba (grid columns se adaptan o se mantienen centradas) */
    .iq-features-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}
