/* Seguidor Market — SaaS landing + efectos */
:root {
    --sm-gradient: linear-gradient(135deg, #0f4c81 0%, #1a73e8 100%);
    --sm-glow: 0 0 80px -20px rgba(14, 165, 233, 0.55);
}

.sm-gradient-bg {
    background: var(--sm-gradient);
}

.sm-landing-body {
    background-color: #f8fafc;
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -30%, rgba(14, 165, 233, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(56, 189, 248, 0.08), transparent 50%);
}

/* Hero */
.sm-hero-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0f4c81 0%, #1358a8 38%, #1a73e8 72%, #3b82f6 100%);
}

.sm-hero-wrap::before {
    content: "";
    position: absolute;
    inset: 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='%23ffffff' fill-opacity='0.04'%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.9;
    pointer-events: none;
}

.sm-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    pointer-events: none;
    animation: sm-blob-float 18s ease-in-out infinite;
}

.sm-blob-1 {
    width: 380px;
    height: 380px;
    background: #38bdf8;
    top: -120px;
    right: -80px;
    animation-delay: 0s;
}

.sm-blob-2 {
    width: 280px;
    height: 280px;
    background: #a5f3fc;
    bottom: -60px;
    left: 10%;
    animation-delay: -6s;
}

.sm-blob-3 {
    width: 200px;
    height: 200px;
    background: #7dd3fc;
    top: 40%;
    left: -40px;
    animation-delay: -12s;
}

@keyframes sm-blob-float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -15px) scale(1.05);
    }
    66% {
        transform: translate(-15px, 10px) scale(0.98);
    }
}

.sm-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.sm-glass-dark {
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(255, 255, 255, 0.12);
}

.sm-card {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.sm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(14, 116, 144, 0.2);
}

.sm-icon-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(56, 189, 248, 0.08));
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 4px 14px -4px rgba(14, 165, 233, 0.35);
}

.sm-shine {
    position: relative;
    overflow: hidden;
}

.sm-shine::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    animation: sm-shine 6s ease-in-out infinite;
}

@keyframes sm-shine {
    0%,
    80% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes sm-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sm-animate-in {
    animation: sm-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sm-delay-1 {
    animation-delay: 0.1s;
}
.sm-delay-2 {
    animation-delay: 0.2s;
}
.sm-delay-3 {
    animation-delay: 0.3s;
}
.sm-delay-4 {
    animation-delay: 0.4s;
}
.sm-delay-5 {
    animation-delay: 0.5s;
}

.sm-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sm-reveal.sm-reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.sm-stat-pill {
    animation: sm-pulse-soft 3s ease-in-out infinite;
}

@keyframes sm-pulse-soft {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.25);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(56, 189, 248, 0);
    }
}

.sm-mock-bar {
    animation: sm-bar-grow 2.4s ease-in-out infinite alternate;
}

.sm-mock-bar:nth-child(1) {
    animation-delay: 0s;
}
.sm-mock-bar:nth-child(2) {
    animation-delay: 0.2s;
}
.sm-mock-bar:nth-child(3) {
    animation-delay: 0.4s;
}
.sm-mock-bar:nth-child(4) {
    animation-delay: 0.6s;
}
.sm-mock-bar:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes sm-bar-grow {
    from {
        transform: scaleY(0.45);
    }
    to {
        transform: scaleY(1);
    }
}

/* —— Panel usuario (app) —— */
/* Evita parpadeo del menú móvil antes de que Alpine muestre/oculte con x-show */
[x-cloak] {
    display: none !important;
}

.sm-app-shell {
    min-height: 100vh;
    background-color: #f1f5f9;
    background-image:
        radial-gradient(ellipse 100% 60% at 0% 0%, rgba(14, 165, 233, 0.07), transparent 45%),
        radial-gradient(ellipse 80% 50% at 100% 10%, rgba(56, 189, 248, 0.06), transparent 50%);
}

.sm-app-nav {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 24px -12px rgba(15, 23, 42, 0.12);
}

.sm-panel-card {
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.08);
}

.sm-panel-card-hover:hover {
    border-color: rgba(125, 211, 252, 0.5);
    box-shadow: 0 12px 40px -12px rgba(14, 165, 233, 0.15);
}

.sm-header-gradient {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

/* —— Panel admin —— */
.sm-admin-shell {
    min-height: 100vh;
    background: linear-gradient(160deg, #f1f5f9 0%, #e2e8f0 45%, #f8fafc 100%);
}

.sm-admin-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #0c4a6e 55%, #0e7490 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 8px 0 32px -8px rgba(15, 23, 42, 0.35);
}

.sm-admin-sidebar a.sm-admin-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(241, 245, 249, 0.88);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sm-admin-sidebar a.sm-admin-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sm-admin-sidebar a.sm-admin-link-active {
    background: rgba(56, 189, 248, 0.2);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.sm-admin-card {
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.1);
}

.sm-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(56, 189, 248, 0.08));
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: rgb(2 132 199);
}

/* Tabla pedidos: apilado móvil + etiquetas (Mis pedidos, Dashboard) */
@media screen and (max-width: 480px) {
    .orders-mobile-table thead {
        display: none !important;
    }
    .orders-mobile-table tbody tr.order-row-empty {
        display: block !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
        box-sizing: border-box !important;
    }
    .orders-mobile-table tbody tr.order-row-empty td {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 2rem 1rem !important;
    }
    .orders-mobile-table tbody tr.order-row-empty td::before {
        content: none !important;
        display: none !important;
    }
    .orders-mobile-table tbody tr:not(.order-row-empty) {
        display: block !important;
        width: 100% !important;
        margin-bottom: 1.25rem !important;
        padding-bottom: 1.25rem !important;
        border-bottom: 1px solid #e2e8f0 !important;
        box-sizing: border-box !important;
    }
    .orders-mobile-table tbody tr:not(.order-row-empty):last-child {
        border-bottom: none !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    .orders-mobile-table tbody tr:not(.order-row-empty) td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.4rem 1rem !important;
        text-align: left !important;
        border: none !important;
    }
    .orders-mobile-table tbody tr:not(.order-row-empty) td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #64748b;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        display: inline-block;
        min-width: 5.75rem;
        vertical-align: baseline;
    }
    .orders-mobile-table tbody td.order-cell--status {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.35rem 0.5rem;
    }
    .orders-mobile-table tbody td.order-cell--status::before {
        flex: 0 0 auto;
    }
    .orders-mobile-table .order-cell-inner {
        flex-wrap: wrap !important;
    }
}
