/* IMPORTS DE FUENTES — eliminados.
   Las fuentes ahora se cargan en App.razor con <link rel="stylesheet"> desde
   Google Fonts en una única request (Inter + Sora). Razones:
   - @import bloquea el render hasta que termina la descarga (peor TTI).
   - Antes había 4 imports (Inter + Sora x2 + Cormorant + DM Sans) — Sora
     duplicado, Cormorant solo se usaba en PerfilInmobiliaria con inline
     style sin cargarse, DM Sans nunca se usó.
   El sistema tipográfico oficial es: Inter (body/UI) + Sora (titulares). */

/* RESET */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    /* Body usa Inter (legibilidad para texto largo). Sora queda reservada
       para titulares de sección y eyebrows — se aplica explícitamente en
       las clases que la necesitan. */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--color-bg, #f8fafc);
    /* Anti-overflow horizontal: en iOS Safari aparecía una franja blanca
       a la derecha del hero porque algún elemento absoluto (parallax-slides,
       decoraciones del eyebrow, etc.) excede 100vw por unos pocos píxeles.
       Clip lo absorbe sin crear scroll horizontal — más limpio que overflow:hidden
       porque no afecta a sticky-headers ni iframes embebidos. */
    overflow-x: clip;
    max-width: 100vw;
}

/* iOS Safari hace zoom automático cuando el usuario tocá un input con
   font-size < 16px. Es un "feature" molesto que dispara reflow + scroll
   inesperado. La solución estándar es forzar 16px mínimo en mobile a
   TODOS los inputs/selects/textareas. La diferencia visual entre 14 y 16
   es mínima en móvil, y el beneficio (cero zoom-in) es grande.
   Sólo aplica ≤768px — desktop mantiene los tamaños originales del diseño. */
@media (max-width: 768px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Safe-area-inset para iPhones con notch / Dynamic Island.
   Combinado con viewport-fit=cover en el <meta viewport>, hace que los
   elementos fixed al pie respeten la "home bar" iOS (banda táctil inferior)
   y los elementos sticky al tope respeten el notch.
   Aplicamos sólo en mobile (≤768px) ya que en desktop no hay safe-area. */
@media (max-width: 768px) {
    /* FAB de filtros en el listado de inmuebles */
    .li-mobile-filter-btn {
        bottom: calc(24px + env(safe-area-inset-bottom)) !important;
    }
    /* CTA sticky en detalle de inmueble */
    .di-mobile-cta {
        padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    }
}

/* ACCESIBILIDAD: la regla global de :focus-visible vive en tokens.css y
   usa var(--color-brand). Antes acá había una versión duplicada con un
   box-shadow indigo (rgba(99,102,241,0.15)) que no concordaba con la
   paleta teal — eliminada. */

/* Oculto visualmente pero accesible para lectores de pantalla */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* NAVBAR PREMIUM */
.top-navbar {
    height: 72px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* LINKS CENTRALES */
.nav-links {
    display: flex;
    gap: 40px;
    margin-left: 60px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #0d9488;
}

/* LADO DERECHO */
.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-login {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav-login:hover {
    color: #0d9488;
}

/* BOTÓN REGISTRARSE */
.nav-register {
    background: #0d9488;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.nav-register:hover {
    background: #1e4ed8;
}

/* =========================
   MAIN CONTENT
========================= */

.main-content {
    margin-top: 90px;
    padding: 40px;
}

/* =========================
   HERO SLIDER
========================= */

.hero-slider {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    animation: backgroundSlide 25s infinite;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15,23,42,0.85), rgba(15,23,42,0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin: 20px 0 40px 0;
}

.hero-buttons {
    display: flex;
    gap: 30px;
}

.btn-xl {
    padding: 14px 40px;
    font-size: 1.1rem;
    border-radius: 8px;
}

/* SLIDER IMAGES */
@keyframes backgroundSlide {

    0% {
        background-image: url('https://listomarketplace.blob.core.windows.net/category-tiles/ListoEdificio.webp');
    }

    40% {
        background-image: url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?q=80&w=1600');
    }

    60% {
        background-image: url('https://images.unsplash.com/photo-1517336714731-489689fd1ca8?q=80&w=2070&auto=format&fit=crop');
    }

    75% {
        background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=1600');
    }

    100% {
        background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?q=80&w=1600');
    }
}

/* ================= LOGIN PREMIUM ================= */

.login-container {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #0f172a;
}

/* Luces animadas suaves */
.login-container::before,
.login-container::after {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.45;
    animation: glowMove 14s infinite alternate ease-in-out;
}

.login-container::before {
    background: #0d9488;
    top: -200px;
    left: -200px;
}

.login-container::after {
    background: #0d9488;
    bottom: -200px;
    right: -200px;
    animation-delay: 4s;
}

@keyframes glowMove {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(120px,80px) scale(1.25); }
}

/* Card estilo glass */
.login-card {
    position: relative;
    z-index: 2;
    width: 420px;
    padding: 45px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    text-align: center;
    animation: fadeUp 0.6s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Títulos */
.brand {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    opacity: 0.75;
    margin-bottom: 30px;
}

/* Tabs */
.tabs {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.tab.active {
    background: rgba(255,255,255,0.25);
}

/* Inputs */
.input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
}

.input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* Botón principal */
.main-btn {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: white;
    font-weight: 500;
    font-size: 15px;
    transition: 0.25s;
}

.main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79,70,229,0.4);
}

/* ================= HOME FLOAT BUTTON ================= */

.login-home-btn {
    position: fixed;
    top: 30px;
    left: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    z-index: 1000;
}

.login-home-btn:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

/* ================= LOGO NAVBAR ================= */

.logo-container {
    display: flex;
    align-items: center;
    gap: 40px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 60px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.4px;
}

/* BOTÓN PRINCIPAL (registrarse / comprar) */
.btn-primary-modern {
    background: #111827;           /* gris oscuro elegante */
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-modern:hover {
    background: #000000;
    transform: translateY(-2px);
}

/* BOTÓN SECUNDARIO (vender) */
.btn-secondary-modern {
    background: transparent;
    color: #111827;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    border: 1.5px solid #d1d5db;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-secondary-modern:hover {
    border-color: #111827;
    background: #f9fafb;
}

.shop-container {
    padding: 80px;
    background: #f9fafb;
    min-height: 100vh;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.product-image {
    height: 220px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 180px;
    max-width: 90%;
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 600;
}

.price {
    font-size: 20px;
    font-weight: 700;
    margin: 12px 0 20px 0;
}

.sell-container {
    padding: 100px;
    display: flex;
    justify-content: center;
}

.sell-box {
    width: 600px;
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.sell-box h1 {
    margin-bottom: 10px;
}

.sell-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.sell-form input,
.sell-form textarea {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-family: 'Inter', sans-serif;
}

.sell-form textarea {
    min-height: 120px;
}
.error-box {
     background: #fee2e2;
     color: #991b1b;
     padding: 12px 20px;
     border-radius: 8px;
     margin-bottom: 20px;
 }
.top-navbar {
    background: white;
    height: 72px;
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}


.nav-links a {
    margin-left: 40px;
    font-weight: 500;
    text-decoration: none;
    color: #111827;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #0d9488;
}

.nav-cart {
    background: #111827;
    color: white;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 20px;
}
.cart-container {
    padding: 80px;
    background: #f9fafb;
}

.cart-item {
    background: white;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-primary-modern {
    background: #0d9488;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary-modern:hover {
    background: #1d4ed8;
}
.nav-cart {
    position: relative;
    margin-left: 30px;
    font-size: 22px;
    text-decoration: none;
    color: #111827;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 999px;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-card {
    background: white;
    width: 900px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: fadeIn 0.25s ease;
}

.modal-content {
    display: flex;
}

.modal-image {
    width: 50%;
    background: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image img {
    max-width: 80%;
    max-height: 400px;
}

.modal-info {
    padding: 40px;
    width: 50%;
}

.modal-price {
    font-size: 28px;
    font-weight: 700;
    margin: 15px 0;
}

.modal-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn-dark-modern {
    background: #111827;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.btn-outline-modern {
    background: transparent;
    border: 1px solid #111827;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
}.cart-container {
     padding: 80px;
     background: #f9fafb;
     min-height: 100vh;
 }

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

.cart-item {
    background: white;
    padding: 20px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.cart-summary {
    background: white;
    padding: 30px;
    border-radius: 16px;
    height: fit-content;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cart-total {
    font-size: 28px;
    font-weight: 700;
    margin: 20px 0;
}
.search-hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    animation: changeBackground 18s infinite;
}


@keyframes changeBackground {
    0% {
        background-image: url('https://listomarketplace.blob.core.windows.net/category-tiles/ListoEdificio.webp');
    }
    38% {
        background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?q=80&w=2072&auto=format&fit=crop');
    }
    66% {
        background-image: url('https://images.unsplash.com/photo-1518779578993-ec3579fee39f?q=80&w=2070&auto=format&fit=crop');
    }
    100% {
        background-image: url('https://images.unsplash.com/photo-1517336714731-489689fd1ca8?q=80&w=2070&auto=format&fit=crop');
    }
}
.search-overlay {
    background: rgba(0,0,0,0.6);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-box {
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 50px;
    border-radius: 24px;
    width: 600px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.search-box h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    margin-bottom: 20px;
}

.category-hint {
    margin-top: 30px;
}

.category-hint p {
    margin-bottom: 10px;
    opacity: 0.9;
}.categories-container {
     padding: 100px;
     background: #f9fafb;
     min-height: 100vh;
 }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.search-hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    animation: changeBackground 20s infinite ease-in-out;
    transition: background-image 1s ease-in-out;
}
.btn-search-modern {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0d9488, #1d4ed8);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 25px rgba(37,99,235,0.3);
}

.btn-search-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(37,99,235,0.4);
}
.nav-register-premium {
    background: linear-gradient(135deg, #0d9488, #5eead4);
    color: white;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(99,102,241,0.4);
    transition: all 0.3s ease;
}

.nav-register-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99,102,241,0.5);
}

/* Botón Sofi IA en navbar */
.nav-sofi-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0d9488, #5eead4);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    white-space: nowrap;
}

.nav-sofi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5);
    color: #ffffff;
}

/* category-card / categories-wrapper styles moved to Categorias.razor.css */

/* ===== CONTENEDOR GENERAL ===== */

.sell-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #f0fdfa 100%);
}

/* ===== TARJETA ===== */

.sell-card {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    padding: 50px 60px;
    border-radius: 20px;
    box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.06),
            0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.sell-card:hover {
    transform: translateY(-2px);
}

/* ===== TITULOS ===== */

.sell-card h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.sell-subtitle {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 35px;
}

/* ===== FORM ===== */

.form-group {
    margin-bottom: 22px;
}

.form-row {
    display: flex;
    gap: 18px;
    margin-bottom: 22px;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.form-control:focus {
    outline: none;
    border-color: #0d9488;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ===== BOTÓN ===== */

.btn-primary-modern {
    width: 100%;
    margin-top: 10px;
    padding: 15px;
    border-radius: 14px;
    background: linear-gradient(90deg, #0d9488, #0f766e);
    color: white;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-primary-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== MENSAJES ===== */

.error-box {
    margin-top: 25px;
    padding: 14px;
    border-radius: 12px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 14px;
}

.success-box {
    margin-top: 25px;
    padding: 14px;
    border-radius: 12px;
    background: #dcfce7;
    color: #166534;
    font-size: 14px;
}

/* ===== CONTADOR CARACTERES ===== */

small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .sell-card {
        padding: 35px 25px;
    }

    .form-row {
        flex-direction: column;
    }
}
/* ===== NUEVO LAYOUT VENDER ===== */

.sell-wrapper {
    min-height: 100vh;
    padding: 120px 60px;
    background: #f9fafb;
}

.sell-layout {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
}

/* ===== FORM ===== */

.sell-form-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.input-modern {
    width: 100%;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 15px;
    transition: all 0.2s ease;
}

.input-modern:focus {
    outline: none;
    background: white;
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.row-modern {
    display: flex;
    gap: 20px;
}

.btn-submit-modern {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg,#0d9488,#0f766e);
    color: white;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-submit-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(79,70,229,0.3);
}

/* ===== PREVIEW ===== */

.sell-preview {
    display: flex;
    align-items: flex-start;
    position: sticky;
    top: 120px;
}

.preview-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.preview-image {
    height: 250px;
    background: #f3f4f6;
}

.preview-info {
    padding: 30px;
}

.preview-info h3 {
    font-size: 20px;
    font-weight: 600;
}

.preview-price {
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0 20px 0;
}

.preview-desc {
    font-size: 14px;
    color: #6b7280;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1000px) {
    .sell-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

/* COLOR BASE */
.sell-wrapper {
    background: linear-gradient(135deg, #f0fdfa, #ecfdf5);
}

/* TARJETA FORM */
.sell-form-card {
    background: white;
    border-radius: 22px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* INPUT */
.input-modern {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 15px;
    transition: all 0.2s ease;
}

.input-modern:focus {
    outline: none;
    background: white;
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(124,58,237,0.15);
}

/* PRECIO */
.price-box {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    padding: 16px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 600;
}

.price-box span {
    margin-right: 10px;
    color: #0d9488;
}

.price-input {
    border: none;
    background: transparent;
    font-size: 20px;
    width: 100%;
}

.price-input:focus {
    outline: none;
}

/* BOTÓN */
.btn-submit-modern {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg,#0d9488,#0d9488);
    color: white;
    font-weight: 600;
    font-size: 16px;
    border: none;
    margin-top: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-submit-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(124,58,237,0.3);
}

/* IMAGE UPLOAD */
.image-upload-box {
    display: block;
    padding: 25px;
    border: 2px dashed #d1d5db;
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.image-upload-box:hover {
    border-color: #0d9488;
    background: #ecfdf5;
}

.image-upload-box input {
    display: none;
}

.preview-image-live {
    width: 100%;
    margin-top: 15px;
    border-radius: 12px;
}

/* PREVIEW */
.preview-card {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    background: white;
}

.preview-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.preview-placeholder {
    height: 250px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
}

.preview-info {
    padding: 30px;
}

.preview-price {
    font-size: 24px;
    font-weight: 700;
    color: #0d9488;
}

.products-grid{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
    gap:20px;
    padding:20px;
}

.product-card{
    background:white;
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    transition:0.2s;
    box-shadow:0 4px 12px rgba(0,0,0,0.05);
}

.product-card:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
}

.product-image{
    width:100%;
    height:140px;
    object-fit:cover;
}

.product-info{
    padding:10px;
}

.product-info h4{
    font-size:14px;
    margin:0;
}

.product-price{
    font-weight:600;
    margin-top:4px;
}
/* CONTENEDOR GENERAL */

.chat-box {
    position: fixed;
    bottom: 20px;
    right: 25px;
    width: 360px;
    height: 520px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: "Inter", sans-serif;
    animation: chatOpen 0.25s ease;
}

/* ANIMACION APERTURA */

@keyframes chatOpen {
    from{
        transform: translateY(30px);
        opacity:0;
    }
    to{
        transform: translateY(0);
        opacity:1;
    }
}

/* HEADER */

.chat-header{
    background: linear-gradient(135deg,#0d9488,#0f766e);
    color:white;
    padding:16px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-weight:600;
    font-size:15px;
}

.chat-header-left{
    display:flex;
    align-items:center;
    gap:10px;
}

.chat-avatar{
    width:34px;
    height:34px;
    border-radius:50%;
    background:#ffffff33;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
}

.chat-close{
    cursor:pointer;
    font-size:18px;
    opacity:0.8;
}

.chat-close:hover{
    opacity:1;
}

/* MENSAJES */

.chat-messages{
    flex:1;
    padding:16px;
    overflow-y:auto;
    background:#f7f7fb;
    display:flex;
    flex-direction:column;
    gap:10px;
}

/* SCROLL MODERNO */

.chat-messages::-webkit-scrollbar{
    width:6px;
}

.chat-messages::-webkit-scrollbar-thumb{
    background:#cfcfe8;
    border-radius:10px;
}

/* BURBUJAS */

.chat-msg{
    max-width:75%;
    padding:10px 14px;
    border-radius:14px;
    font-size:14px;
    line-height:1.4;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

/* MENSAJE DEL OTRO */

.chat-msg.other{
    background:white;
    align-self:flex-start;
    border-bottom-left-radius:4px;
}

/* MENSAJE MIO */

.chat-msg.me{
    background:#0f766e;
    color:white;
    align-self:flex-end;
    border-bottom-right-radius:4px;
}

/* USER NAME */

.chat-user{
    font-size:11px;
    opacity:0.6;
    margin-bottom:3px;
}

/* INPUT AREA */

.chat-input{
    display:flex;
    padding:10px;
    border-top:1px solid #eee;
    background:white;
    gap:8px;
}

/* INPUT */

.chat-input input{
    flex:1;
    border:none;
    background:#f3f3fa;
    padding:10px 14px;
    border-radius:25px;
    font-size:14px;
}

.chat-input input:focus{
    outline:none;
    background:#ececf7;
}

/* BOTON ENVIAR */

.chat-send{
    width:40px;
    height:40px;
    border-radius:50%;
    border:none;
    background:#0f766e;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:all 0.15s;
}

.chat-send:hover{
    background:#4338ca;
    transform:scale(1.05);
}

.chat-send:active{
    transform:scale(0.95);
}
.section-title{
    font-size:22px;
    font-weight:600;
    margin-bottom:16px;
    color:#111827;
}

/* GRID */

.seller-products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:18px;
}

/* CARD */

.seller-product-card{
    display:block;
    text-decoration:none;
    background:white;
    border-radius:12px;
    overflow:hidden;
    border:1px solid #e5e7eb;
    transition:all .2s ease;
}

.seller-product-card:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 22px rgba(0,0,0,.08);
}

/* IMAGE */

.seller-product-img{
    width:100%;
    height:140px;
    object-fit:cover;
}

/* INFO */

.seller-product-info{
    padding:10px 12px;
}

/* TITLE */

.seller-product-title{
    font-size:14px;
    font-weight:500;
    color:#374151;
    margin-bottom:6px;
    line-height:1.3;
    height:34px;
    overflow:hidden;
}

/* PRICE */

.seller-product-price{
    font-size:16px;
    font-weight:600;
    color:#111827;
}

.ai-wrapper{
    max-width:900px;
    margin:auto;
    margin-top:40px;
    background:white;
    border-radius:16px;
    box-shadow:0 20px 50px rgba(0,0,0,.08);
    display:flex;
    flex-direction:column;
    height:600px;
    overflow:hidden;
}

.ai-header{
    display:flex;
    gap:15px;
    padding:20px;
    border-bottom:1px solid #eee;
    align-items:center;
}

.ai-header h2{
    margin:0;
    font-size:20px;
    font-weight:600;
}

.ai-header p{
    margin:0;
    color:#777;
    font-size:14px;
}

.ai-icon{
    font-size:28px;
}

.ai-chat{
    flex:1;
    overflow:auto;
    padding:20px;
    display:flex;
    flex-direction:column;
    gap:14px;
    background:#fafafa;
}

.ai-message{
    display:flex;
}

.ai-message.user{
    justify-content:flex-end;
}

.bubble{
    max-width:65%;
    padding:12px 16px;
    border-radius:12px;
    font-size:14px;
    line-height:1.5;
}

.ai-message.user .bubble{
    background:#0d9488;
    color:white;
    border-bottom-right-radius:4px;
}

.ai-message.ai .bubble{
    background:white;
    border:1px solid #eee;
    border-bottom-left-radius:4px;
}

.loading{
    font-style:italic;
    opacity:.7;
}

.ai-input{
    display:flex;
    padding:15px;
    gap:10px;
    border-top:1px solid #eee;
    background:white;
}

.ai-input input{
    flex:1;
    padding:12px 14px;
    border-radius:8px;
    border:1px solid #ddd;
    font-size:14px;
    outline:none;
}

.ai-input input:focus{
    border-color:#0d9488;
}

.ai-input button{
    background:#0d9488;
    color:white;
    border:none;
    padding:12px 20px;
    border-radius:8px;
    font-weight:500;
    cursor:pointer;
    transition:.2s;
}

.ai-input button:hover{
    background:#1d4ed8;
}

.assistant-box{
    margin-top:15px;
}

.assistant-buttons{
    display:flex;
    gap:10px;
    margin-top:5px;
}

.btn-ai{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:linear-gradient(135deg,#0d9488,#5eead4);
    color:#fff;
    border:none;
    padding:8px 16px;
    border-radius:8px;
    font-size:13px;
    font-weight:600;
    font-family:inherit;
    cursor:pointer;
    white-space:nowrap;
    transition:opacity .15s, transform .1s, box-shadow .15s;
    box-shadow:0 2px 8px rgba(99,102,241,.3);
    flex-shrink:0;
}
.btn-ai:hover:not(:disabled){
    opacity:.9;
    transform:translateY(-1px);
    box-shadow:0 4px 14px rgba(99,102,241,.4);
}
.btn-ai:disabled{
    opacity:.55;
    cursor:not-allowed;
    transform:none;
}

/* Fila para alinear hint + botón IA bajo un campo */
.field-ai-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:8px;
}
.field-ai-row .field-hint,
.field-ai-row .price-preview-label{
    margin:0;
    flex:1;
}
/* category-search styles moved to Categorias.razor.css */
.cart-container{
    max-width:1200px;
    margin:auto;
    padding:40px;
}

.cart-title{
    font-size:32px;
    margin-bottom:30px;
}

.cart-layout{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:30px;
}

.cart-item{
    display:flex;
    align-items:center;
    justify-content:space-between;

    background:white;
    padding:20px;

    border-radius:14px;
    border:1px solid #eee;

    margin-bottom:20px;
}
.cart-image{
    width:110px;
    height:110px;
    object-fit:cover;
    border-radius:10px;
}

.cart-price{
    font-weight:600;
    margin:5px 0;
}

.cart-qty button{
    width:32px;
    height:32px;
}

.cart-summary{
    background:#fff;
    border:1px solid #eee;
    padding:25px;
    border-radius:12px;
    height:fit-content;
}

.summary-row{
    display:flex;
    justify-content:space-between;
    margin:10px 0;
}

.summary-total{
    display:flex;
    justify-content:space-between;
    font-size:20px;
    font-weight:700;
    margin-top:15px;
}

.checkout-btn{
    margin-top:20px;
    width:100%;
    padding:14px;
    background:#0d9488;
    color:white;
    border:none;
    border-radius:8px;
    font-size:16px;
}
.checkout-container{
    max-width:1200px;
    margin:auto;
    padding:40px;
}

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

.checkout-form input{
    width:100%;
    padding:12px;
    margin:8px 0;
    border:1px solid #ddd;
    border-radius:6px;
}

.card-row{
    display:flex;
    gap:10px;
}

.checkout-summary{
    border:1px solid #eee;
    padding:20px;
    border-radius:10px;
    height:fit-content;
}

.pay-btn{
    width:100%;
    margin-top:20px;
    padding:14px;
    background:#0d9488;
    color:white;
    border:none;
    border-radius:8px;
    font-size:16px;
}.cart-middle{
     flex:1;
     padding:0 25px;
 }

.cart-title{
    font-size:22px;
    margin-bottom:6px;
}

.cart-price{
    font-size:16px;
    color:#555;
}.cart-controls{
     display:flex;
     flex-direction:column;
     align-items:center;
     gap:12px;
 }
.qty-controls{
    display:flex;
    align-items:center;
    gap:10px;
}

.qty-btn{
    width:34px;
    height:34px;

    border:none;
    border-radius:8px;

    background:linear-gradient(135deg,#0d9488,#9333ea);
    color:white;
    font-weight:bold;
}
.remove-btn{
    padding:10px 18px;
    border:none;
    border-radius:10px;

    background:linear-gradient(135deg,#0d9488,#9333ea);
    color:white;
}
/* RECOMMENDED SECTION */

.recommended-section{
    margin-top:60px;
}

.recommended-section h2{
    font-size:26px;
    margin-bottom:25px;
    font-weight:600;
}


/* GRID */

.recommended-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill, minmax(220px,1fr));

    gap:25px;

}


/* CARD */

.recommended-card{

    background:white;

    border-radius:14px;

    border:1px solid #eee;

    padding:16px;

    text-align:center;

    transition:all 0.2s ease;

    cursor:pointer;

}


/* HOVER */

.recommended-card:hover{

    transform:translateY(-4px);

    box-shadow:0 10px 25px rgba(0,0,0,0.08);

}


/* IMAGE */

.recommended-card img{

    width:100%;

    height:170px;

    object-fit:cover;

    border-radius:10px;

    margin-bottom:10px;

}


/* TITLE */

.recommended-card h4{

    font-size:16px;

    font-weight:600;

    margin-bottom:6px;

}


/* PRICE */

.recommended-card p{

    font-size:15px;

    font-weight:500;

    color:#444;

    margin-bottom:12px;

}


/* BUTTON */

.recommended-card button{

    background:linear-gradient(135deg,#0d9488,#9333ea);

    border:none;

    padding:10px 16px;

    border-radius:8px;

    color:white;

    font-size:14px;

    font-weight:500;

    cursor:pointer;

    transition:all 0.2s ease;

}


/* BUTTON HOVER */

.recommended-card button:hover{

    transform:scale(1.05);

    box-shadow:0 6px 18px rgba(124,58,237,0.35);

}.subcategory-grid{
     display:grid;
     grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
     gap:25px;
     margin-top:30px;
 }

.subcategory-card{
    background:white;
    border-radius:16px;
    padding:40px;
    text-align:center;
    cursor:pointer;
    transition:0.2s;
    box-shadow:0 6px 20px rgba(0,0,0,0.08);
}

.subcategory-card:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 30px rgba(0,0,0,0.12);
}

.subcategory-card h3{
    font-size:20px;
    font-weight:600;
}
.tiles-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(280px, 1fr));
    gap:22px;
}
.tile{
    border-radius:18px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    cursor:pointer;
    transition:transform .12s ease, box-shadow .12s ease;
}
.tile:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 40px rgba(0,0,0,.10);
}
.tile-img{
    width:100%;
    height:180px;
    object-fit:cover;
    display:block;
}
.tile-label{
    padding:14px 16px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.5px;
    text-align:center;
}
/* ===== Category Landing (Pro) ===== */

.page-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 1.25rem 0 1rem;
}

.tiles-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 1rem;
}

.tile {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    height: 150px;
    background: #0b1220;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
    transition: transform .15s ease, box-shadow .15s ease;
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.tile-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
    transform: scale(1.02);
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2,6,23,.78) 0%, rgba(2,6,23,.25) 55%, rgba(2,6,23,.05) 100%);
}

.tile-label {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-shadow: 0 8px 18px rgba(0,0,0,.25);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .75rem;
}

.tile-chip {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .8rem;
    backdrop-filter: blur(10px);
}

.tile-brand::after {
    background: linear-gradient(90deg, rgba(88,28,135,.72) 0%, rgba(15,23,42,.2) 55%, rgba(2,6,23,.05) 100%);
}

/* ===== Product grid (Pro cards) ===== */

.products-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-top: 1rem;
}

.product-card {
    border-radius: 18px;
    overflow: hidden;
    background: white;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform .15s ease, box-shadow .15s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.product-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #f1f5f9;
    display: block;
}

.product-body {
    padding: 14px 14px 16px;
}

.product-title {
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.15;
    margin: 0 0 8px;
    color: #0f172a;
}

.product-meta {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: #475569;
    font-size: .85rem;
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.badge {
    font-size: .75rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfeff;
    color: #155e75;
    border: 1px solid #cffafe;
}
/* ===== BuscarGrupo (Pro) ===== */

.bg-page{
    background: #f6f7fb;
    min-height: calc(100vh - 56px);
}

.container{
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 16px 60px;
}

.header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.header-left{ display:flex; flex-direction:column; gap:6px; }

.back-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#334155;
    font-weight:650;
    cursor:pointer;
    width: fit-content;
    text-decoration:none;
}
.back-link:hover{ text-decoration: underline; }

.title{
    margin:0;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color:#0f172a;
}

.subtitle{
    color:#64748b;
    font-weight:600;
    font-size: .95rem;
}

.header-right{ display:flex; align-items:center; gap:12px; }

.sort-box{
    display:flex;
    align-items:center;
    gap:10px;
    background:white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    padding: 10px 12px;
}

.sort-label{
    color:#475569;
    font-weight:700;
    font-size: .85rem;
}

.sort-select{
    border: none;
    outline: none;
    background: transparent;
    font-weight: 800;
    color:#0f172a;
    padding: 6px 8px;
    border-radius: 10px;
}

.layout{
    display:grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
    align-items:start;
}

@media (max-width: 980px){
    .layout{ grid-template-columns: 1fr; }
}

.filters-card{
    position: sticky;
    top: 16px;
    background:white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    padding: 16px;
}

.filters-title{
    font-size: 1.05rem;
    font-weight: 900;
    color:#0f172a;
    letter-spacing:-0.01em;
    margin-bottom: 12px;
}

.filters-section{
    padding: 12px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.section-label{
    font-weight: 850;
    color:#0f172a;
    font-size: .9rem;
    margin-bottom: 10px;
}

.price-range{
    display:flex;
    align-items:center;
    gap: 10px;
    margin-bottom: 10px;
}

.input{
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 650;
    outline: none;
    background: #fff;
}
.input:focus{
    border-color: rgba(59,130,246,.45);
    box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

.dash{ color:#94a3b8; font-weight:900; }

.check{
    display:flex;
    align-items:center;
    gap: 10px;
    color:#0f172a;
    font-weight: 700;
    margin: 10px 0;
}

.filters-hint{
    margin-top: 10px;
    color:#64748b;
    font-size: .85rem;
    line-height: 1.3;
}

.btn{
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 900;
    cursor:pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    margin-top: 8px;
}

.btn-primary{
    background: #0f172a;
    color:white;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.14);
}
.btn-primary:hover{ transform: translateY(-1px); }

.btn-ghost{
    background: transparent;
    color:#0f172a;
    border: 1px solid rgba(15, 23, 42, 0.12);
}
.btn-ghost:hover{ background: rgba(15, 23, 42, 0.03); }

.grid{
    display:grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card{
    background:white;
    border-radius: 18px;
    overflow:hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
    cursor:pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover{
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.10);
}

.thumb{
    position:relative;
    background:#f1f5f9;
    height: 190px;
}
.thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.badge{
    position:absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: .78rem;
    backdrop-filter: blur(10px);
}

.badge-soldout{
    background: rgba(15, 23, 42, 0.82);
    color:white;
    border: 1px solid rgba(255,255,255,0.18);
}

.badge-featured{
    background: rgba(59,130,246,0.90);
    color:white;
    border: 1px solid rgba(255,255,255,0.18);
}

.body{
    padding: 14px 14px 16px;
}

.card-title{
    font-weight: 900;
    letter-spacing: -0.01em;
    color:#0f172a;
    line-height: 1.15;
    margin-bottom: 8px;
    font-size: 1rem;
    min-height: 2.2em;
}

.meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap: 6px;
    color:#64748b;
    font-weight: 700;
    font-size: .86rem;
    margin-bottom: 10px;
}

.dot{ color:#cbd5e1; font-weight:900; }

.price-row{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:10px;
    margin-bottom: 10px;
}

.price{
    font-size: 1.25rem;
    font-weight: 950;
    color:#0f172a;
}

.pill{
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 950;
    font-size: .78rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.pill-discount{
    background: #ecfeff;
    color:#155e75;
    border-color: #cffafe;
}

.chips{
    display:flex;
    flex-wrap:wrap;
    gap: 8px;
}

.chip{
    background: rgba(15, 23, 42, 0.06);
    color:#0f172a;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: .78rem;
}

.chip-ghost{
    background: transparent;
    color:#475569;
    border-color: rgba(15, 23, 42, 0.10);
}

.empty{
    background:white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    padding: 22px;
    text-align:center;
}
.empty-title{
    font-weight: 950;
    font-size: 1.1rem;
    color:#0f172a;
    margin-bottom: 6px;
}
.empty-subtitle{
    color:#64748b;
    font-weight: 650;
    margin-bottom: 14px;
}
/* ═══════════════════════════════════════════════════
   ProductoDetalle — Secciones IA
   (movido aquí para evitar problemas con @keyframes
    dentro del CSS isolation de Blazor)
═══════════════════════════════════════════════════ */
.pd-ai-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:20px;
}
.pd-ai-subtitle{
    font-size:13px;
    color:#94a3b8;
    margin:2px 0 0;
}
.pd-btn-ai{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:linear-gradient(135deg,#0d9488,#5eead4);
    color:#fff;
    border:none;
    border-radius:10px;
    padding:11px 20px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    white-space:nowrap;
    transition:opacity .15s, transform .1s;
    box-shadow:0 4px 14px rgba(99,102,241,.35);
}
.pd-btn-ai:hover{ opacity:.9; transform:translateY(-1px); }
.pd-ai-icon{ font-size:16px; }
.pd-ai-loading{
    display:flex;
    align-items:center;
    gap:12px;
    color:#0d9488;
    font-size:14px;
    font-weight:500;
    padding:24px 0;
}
.pd-ai-spinner{
    width:20px;
    height:20px;
    border:2.5px solid #ccfbf1;
    border-top-color:#0d9488;
    border-radius:50%;
    animation:pdSpin .7s linear infinite;
    flex-shrink:0;
}
@keyframes pdSpin{ to{ transform:rotate(360deg); } }
.pd-ai-error{
    background:#fef2f2;
    border:1px solid #fecaca;
    border-radius:10px;
    padding:14px 18px;
    color:#dc2626;
    font-size:14px;
}
.pd-ai-card{
    background:#fafbff;
    border:1px solid #ccfbf1;
    border-radius:14px;
    padding:24px 28px;
    display:flex;
    flex-direction:column;
    gap:20px;
}
.pd-ai-resumen{
    font-size:15px;
    color:#334155;
    line-height:1.7;
    margin:0;
}
.pd-ai-pros-cons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}
.pd-ai-block-title{
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
    color:#64748b;
    margin-bottom:10px;
}
.pd-ai-pros-title{ color:#15803d; }
.pd-ai-cons-title{ color:#dc2626; }
.pd-ai-list{
    list-style:none;
    padding:0;
    margin:0;
    display:flex;
    flex-direction:column;
    gap:7px;
}
.pd-ai-list li{
    font-size:14px;
    color:#334155;
    padding-left:20px;
    position:relative;
    line-height:1.5;
}
.pd-ai-list-pros li::before{
    content:"✔";
    position:absolute;
    left:0;
    color:#16a34a;
    font-size:12px;
    top:1px;
}
.pd-ai-list-cons li::before{
    content:"✗";
    position:absolute;
    left:0;
    color:#dc2626;
    font-size:12px;
    top:1px;
}
.pd-ai-list-neutral li::before{
    content:"·";
    position:absolute;
    left:4px;
    color:#0d9488;
    font-size:18px;
    top:-3px;
}
.pd-ai-para-quien{
    background:#f0fdfa;
    border-radius:10px;
    padding:14px 16px;
    display:flex;
    flex-direction:column;
    gap:4px;
    font-size:14px;
    color:#3730a3;
}
.pd-ai-pq-label{
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
    color:#0d9488;
}
.pd-ai-veredicto{
    background:#f0fdf4;
    border-left:3px solid #16a34a;
    border-radius:0 10px 10px 0;
    padding:14px 16px;
    display:flex;
    flex-direction:column;
    gap:4px;
    font-size:14px;
    color:#15803d;
}
.pd-ai-veredicto-label{
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
}
.pd-ai-ganador{
    background:linear-gradient(135deg,#fffbeb,#fef9c3);
    border:1px solid #fde68a;
    border-radius:12px;
    padding:16px 20px;
    display:flex;
    flex-direction:column;
    gap:4px;
}
.pd-ai-ganador-badge{
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
    color:#92400e;
}
.pd-ai-ganador-nombre{
    font-size:18px;
    font-weight:800;
    color:#78350f;
}
.pd-ai-ganador-razon{
    font-size:13px;
    color:#92400e;
    margin-top:2px;
}
.pd-ai-table-wrap{
    overflow-x:auto;
    border-radius:10px;
    border:1px solid #ccfbf1;
}
.pd-ai-table{
    width:100%;
    border-collapse:collapse;
    font-size:14px;
}
.pd-ai-table th{
    background:#f1f5f9;
    padding:11px 14px;
    text-align:left;
    font-weight:700;
    font-size:13px;
    color:#475569;
    border-bottom:1px solid #ccfbf1;
    white-space:nowrap;
}
.pd-ai-table td{
    padding:10px 14px;
    color:#334155;
    border-bottom:1px solid #f1f5f9;
    vertical-align:top;
}
.pd-ai-table tr:last-child td{ border-bottom:none; }
.pd-ai-th-main{
    background:#f0fdfa;
    color:#0f766e;
}
.pd-ai-td-main{
    background:#fafbff;
    font-weight:600;
    color:#3730a3;
}
.pd-ai-td-aspecto{
    font-weight:600;
    color:#475569;
    white-space:nowrap;
}
.pd-ai-este{
    font-size:10px;
    background:#0d9488;
    color:#fff;
    border-radius:4px;
    padding:1px 5px;
    margin-left:6px;
    vertical-align:middle;
    font-weight:700;
}
.pd-ai-recomendacion{
    background:#f0fdf4;
    border-radius:10px;
    padding:14px 16px;
    display:flex;
    flex-direction:column;
    gap:4px;
    font-size:14px;
    color:#166534;
}
.pd-ai-rec-label{
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
}

/* ── Keyframes globales (no pueden estar en .razor.css) ── */
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Tira de miniaturas de fotos (Vender) ── */
.preview-strip{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:12px;
}
.strip-thumb-btn{
    position:relative;
    padding:0;
    border:2px solid #e2e8f0;
    border-radius:10px;
    background:none;
    cursor:pointer;
    overflow:hidden;
    width:80px;
    height:80px;
    flex-shrink:0;
    transition:border-color .15s, box-shadow .15s;
}
.strip-thumb-btn:hover{
    border-color:#0d9488;
    box-shadow:0 0 0 3px rgba(99,102,241,.15);
}
.strip-thumb-active{
    border-color:#0d9488;
    box-shadow:0 0 0 3px rgba(99,102,241,.2);
}
.strip-thumb{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.strip-thumb-badge{
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    background:rgba(99,102,241,.85);
    color:#fff;
    font-size:10px;
    font-weight:700;
    text-align:center;
    padding:2px 0;
    letter-spacing:.3px;
}
.perfil-page{
    max-width:1200px;
    margin:auto;
    padding:30px;
}

/* HERO */

.perfil-hero{
    background:linear-gradient(135deg,#0d9488,#0f766e);
    border-radius:18px;
    padding:30px;
    color:white;
    margin-bottom:30px;
}

.perfil-hero-content{
    display:flex;
    align-items:center;
    gap:20px;
}

.perfil-avatar{
    width:70px;
    height:70px;
    border-radius:50%;
    background:white;
    color:#0f766e;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    font-weight:bold;
}

.btn-editar{
    margin-left:auto;
    background:white;
    color:#0f766e;
    border:none;
    padding:10px 18px;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
}

/* LAYOUT */

.perfil-layout{
    display:grid;
    grid-template-columns:220px 1fr;
    gap:30px;
}

/* MENU */

.perfil-menu{
    background:white;
    border-radius:12px;
    padding:10px;
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
}

.menu-item{
    padding:12px 14px;
    border-radius:8px;
    cursor:pointer;
    font-weight:500;
}

.menu-item:hover{
    background:#f3f4f6;
}

.menu-item.active{
    background:#f0fdfa;
    color:#0f766e;
}

.menu-item.logout{
    color:#ef4444;
}

/* CONTENT */

.perfil-content{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.perfil-card{
    background:white;
    border-radius:14px;
    padding:24px;
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
}

.perfil-info{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-top:20px;
}

.perfil-info label{
    font-size:13px;
    color:#6b7280;
}

.perfil-info p{
    font-weight:600;
}

.btn-primary{
    background:#0d9488;
    color:white;
    border:none;
    padding:10px 18px;
    border-radius:8px;
    cursor:pointer;
    text-decoration:none;
    display:inline-block;
    font-weight:600;
    font-size:14px;
    transition:background .2s;
}
.btn-primary:hover{ background:#0f766e; }

/* ── PERFIL HERO EXTENSIONS ──────────────────────────────────────────────── */
.perfil-hero-info{ flex:1; }
.perfil-hero-info h1{ margin:0 0 4px; font-size:22px; }
.perfil-hero-info p{ margin:0; opacity:.85; font-size:14px; }

.perfil-hero-stats{
    display:flex;
    gap:32px;
    margin-right:24px;
}
.hero-stat{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:2px;
}
.hero-stat-num{ font-size:22px; font-weight:700; }
.hero-stat-lbl{ font-size:12px; opacity:.8; }

/* ── MENU EXTENSIONS ─────────────────────────────────────────────────────── */
.menu-icon{ margin-right:8px; }
.menu-badge{
    margin-left:auto;
    background:#ef4444;
    color:white;
    border-radius:20px;
    padding:1px 7px;
    font-size:11px;
    font-weight:700;
}
.menu-item{ display:flex; align-items:center; }

/* ── SECTION HEADER ──────────────────────────────────────────────────────── */
.section-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:4px;
}
.card-title{ margin:0; font-size:18px; font-weight:700; color:#111827; }
.mt-16{ margin-top:16px; }

/* ── STATS ROW ───────────────────────────────────────────────────────────── */
.stats-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin-bottom:8px;
}
.stat-card{
    background:white;
    border-radius:12px;
    padding:16px 20px;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
    display:flex;
    flex-direction:column;
    gap:4px;
    border-left:4px solid #e5e7eb;
}
.stat-card.accent{ border-left-color:#f59e0b; }
.stat-card.green{  border-left-color:#10b981; }
.stat-card.red{    border-left-color:#ef4444; }
.stat-num{ font-size:24px; font-weight:700; color:#111827; }
.stat-lbl{ font-size:12px; color:#6b7280; }

/* ── ESTADO BADGES ───────────────────────────────────────────────────────── */
.estado-badge{
    display:inline-block;
    padding:3px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}
.badge-pendiente{  background:#fef3c7; color:#92400e; }
.badge-confirmado{ background:#dbeafe; color:#1e40af; }
.badge-completado{ background:#d1fae5; color:#065f46; }
.badge-cancelado{  background:#fee2e2; color:#991b1b; }
.badge-default{    background:#f3f4f6; color:#374151; }

/* ── ORDEN CARDS ─────────────────────────────────────────────────────────── */
.orden-list{ display:flex; flex-direction:column; gap:12px; }

.orden-card{
    background:white;
    border-radius:14px;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
    overflow:hidden;
    border:1px solid #f3f4f6;
    transition:box-shadow .2s;
}
.orden-card:hover{ box-shadow:0 4px 20px rgba(0,0,0,0.1); }

.orden-card-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 18px;
    cursor:pointer;
    border-bottom:1px solid #f9fafb;
    gap:12px;
}
.orden-card-header:hover{ background:#fafafa; }

.orden-header-left{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}
.orden-numero{ font-weight:700; font-size:15px; color:#111827; }
.orden-fecha{ font-size:13px; color:#6b7280; }
.comprador-label{ font-size:13px; color:#6b7280; }
.comprador-label strong{ color:#111827; }

.orden-header-right{
    display:flex;
    align-items:center;
    gap:12px;
    margin-left:auto;
}
.orden-total{ font-weight:700; font-size:16px; color:#111827; }
.expand-arrow{ color:#9ca3af; font-size:12px; }

/* ── ITEMS PREVIEW ───────────────────────────────────────────────────────── */
.orden-items-preview{
    padding:12px 18px;
    display:flex;
    flex-direction:column;
    gap:10px;
    border-bottom:1px solid #f3f4f6;
}
.item-linea{
    display:flex;
    align-items:center;
    gap:12px;
}
.item-linea-img{
    width:48px;
    height:48px;
    object-fit:contain;
    border-radius:8px;
    border:1px solid #f3f4f6;
    flex-shrink:0;
}
.item-linea-img-placeholder{
    width:48px;
    height:48px;
    background:#f3f4f6;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    flex-shrink:0;
}
.item-linea-info{ flex:1; display:flex; flex-direction:column; gap:2px; }
.item-linea-titulo{ font-weight:600; font-size:14px; color:#111827; }
.item-linea-meta{ font-size:12px; color:#6b7280; }
.item-linea-subtotal{ font-weight:700; font-size:14px; color:#111827; margin-left:auto; }
.items-mas{ font-size:13px; color:#0d9488; margin:0; }

/* ── DETALLE EXPANDIBLE ──────────────────────────────────────────────────── */
.orden-detalle{
    padding:16px 18px;
    background:#fafafa;
    animation:fadeIn .15s ease;
}
.orden-detalle-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:16px;
    margin-bottom:14px;
}
.orden-detalle-col h4{
    font-size:13px;
    font-weight:700;
    color:#374151;
    margin:0 0 8px;
    text-transform:uppercase;
    letter-spacing:.5px;
}
.orden-detalle-col p{
    font-size:13px;
    color:#4b5563;
    margin:0 0 4px;
}
.orden-resumen-totales{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    border-top:1px solid #e5e7eb;
    padding-top:12px;
    font-size:13px;
    color:#374151;
    align-items:center;
}
.orden-resumen-totales strong{ font-size:15px; color:#111827; margin-left:auto; }

/* ── PERFIL INFO ─────────────────────────────────────────────────────────── */
.perfil-info-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}
.perfil-info-row label{ font-size:13px; color:#6b7280; display:block; margin-bottom:2px; }
.perfil-info-row p{ font-weight:600; margin:0; color:#111827; }

/* ── FILTER TABS ─────────────────────────────────────────────────────────── */
.filter-tabs{
    display:flex;
    gap:8px;
    margin-bottom:16px;
    flex-wrap:wrap;
}
.filter-tab{
    padding:7px 16px;
    border-radius:20px;
    border:1px solid #e5e7eb;
    background:white;
    font-size:13px;
    font-weight:500;
    cursor:pointer;
    color:#374151;
    transition:all .15s;
}
.filter-tab:hover{ border-color:#0d9488; color:#0d9488; }
.filter-tab.active{
    background:#0d9488;
    color:white;
    border-color:#0d9488;
}

/* ── PUB GRID ────────────────────────────────────────────────────────────── */
.pub-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
    gap:16px;
}
.pub-card{
    background:white;
    border-radius:14px;
    box-shadow:0 2px 10px rgba(0,0,0,0.06);
    overflow:hidden;
    border:1px solid #f3f4f6;
    transition:box-shadow .2s, transform .2s;
    display:flex;
    flex-direction:column;
}
.pub-card:hover{ box-shadow:0 6px 20px rgba(0,0,0,0.1); transform:translateY(-2px); }
.pub-card.inactiva{ opacity:.65; }
.pub-card.sin-stock{ opacity:.7; }

.pub-card-img-wrap{
    position:relative;
    height:150px;
    background:#f9fafb;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}
.pub-card-img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:8px;
}
.pub-card-img-placeholder{
    font-size:48px;
    color:#d1d5db;
}

.pub-badge{
    position:absolute;
    top:8px;
    left:8px;
    padding:3px 8px;
    border-radius:20px;
    font-size:11px;
    font-weight:700;
}
.sin-stock-badge{  background:#fee2e2; color:#991b1b; }
.inactiva-badge{   background:#f3f4f6; color:#374151; }
.ultimas-badge{    background:#fef3c7; color:#92400e; }

.pub-card-body{
    padding:12px;
    flex:1;
    display:flex;
    flex-direction:column;
    gap:6px;
}
.pub-card-titulo{
    font-size:14px;
    font-weight:600;
    color:#111827;
    margin:0;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.pub-card-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.pub-card-precio{ font-size:16px; font-weight:700; color:#111827; }
.pub-card-stock{ font-size:12px; color:#6b7280; }
.pub-card-categoria{
    display:inline-block;
    font-size:11px;
    background:#f0fdfa;
    color:#0f766e;
    padding:2px 8px;
    border-radius:20px;
    font-weight:500;
}

.pub-card-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    border-top:1px solid #f3f4f6;
}
.btn-edit, .btn-view{
    padding:10px;
    border:none;
    background:transparent;
    cursor:pointer;
    font-size:13px;
    font-weight:500;
    text-align:center;
    text-decoration:none;
    color:#374151;
    transition:background .15s;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;
}
.btn-edit:hover{ background:#f0fdfa; color:#0f766e; }
.btn-view:hover{ background:#f0fdf4; color:#065f46; }
.btn-edit{ border-right:1px solid #f3f4f6; }

/* ── CONFIGURACIÓN ───────────────────────────────────────────────────────── */
.config-list{ display:flex; flex-direction:column; gap:1px; margin-top:16px; }
.config-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 0;
    border-bottom:1px solid #f3f4f6;
}
.config-item strong{ font-size:15px; color:#111827; display:block; margin-bottom:2px; }
.config-item p{ font-size:13px; color:#6b7280; margin:0; }

/* ── EMPTY STATE ─────────────────────────────────────────────────────────── */
.empty-state{
    background:white;
    border-radius:14px;
    padding:60px 24px;
    text-align:center;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
}
.empty-icon{ font-size:52px; margin-bottom:16px; }
.empty-state h3{ font-size:18px; font-weight:700; margin:0 0 8px; color:#111827; }
.empty-state p{ color:#6b7280; margin:0 0 20px; font-size:14px; }

@keyframes fadeIn{
    from{ opacity:0; transform:translateY(-4px); }
    to{ opacity:1; transform:translateY(0); }
}

/* ══════════════════════════════════════════════════════
   VENDER TIPO PAGE
══════════════════════════════════════════════════════ */
.vt-page {
    min-height: 100vh;
    background: #f8f9fc;
}

/* Hero */
.vt-hero {
    position: relative;
    height: 340px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vt-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.vt-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 100%);
    z-index: 1;
}

.vt-hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px 32px;
    color: #fff;
}

.vt-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 10px;
    text-shadow: 0 2px 16px rgba(0,0,0,.5);
}

.vt-hero-sub {
    font-size: 1.15rem;
    opacity: .9;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

/* Cards section — no negative margin, sits cleanly below hero */
.vt-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 900px;
    margin: 40px auto 60px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

@media (max-width: 680px) {
    .vt-cards { grid-template-columns: 1fr; margin-top: 24px; }
    .vt-hero-title { font-size: 2rem; }
    .vt-hero { height: 260px; }
}

/* Card */
.vt-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    cursor: pointer;
}

.vt-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,.14);
    border-color: #0d9488;
    text-decoration: none;
    color: inherit;
}

.vt-card--empresa {
    border-color: #0d9488;
}

.vt-card--empresa:hover {
    border-color: #0f766e;
    box-shadow: 0 12px 40px rgba(99,102,241,.22);
}

.vt-card-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0d9488, #5eead4);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: .4px;
    white-space: nowrap;
}

.vt-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #f0f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
}

.vt-card--empresa .vt-card-icon {
    background: linear-gradient(135deg, #f0fdfa, #f0fdfa);
}

.vt-card-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.vt-card-desc {
    font-size: .95rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.vt-card-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .88rem;
    color: #374151;
}

.vt-card-features span::before { margin-right: 2px; }

.vt-card-btn {
    margin-top: 8px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    font-size: .95rem;
    padding: 13px 20px;
    border-radius: 12px;
    text-align: center;
    transition: background .18s ease;
}

.vt-card:hover .vt-card-btn {
    background: #e8e9fd;
    color: #0f766e;
}

.vt-card-btn--empresa {
    background: linear-gradient(135deg, #0d9488, #5eead4);
    color: #fff;
}

.vt-card:hover .vt-card-btn--empresa {
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: #fff;
}

/* ══════════════════════════════════════════════════════
   REVIEWS / REPUTACIÓN
══════════════════════════════════════════════════════ */

/* Review form card */
.rv-form-card {
    background: #f8f9ff;
    border: 1.5px solid #ccfbf1;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rv-form-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0;
}

/* Star input */
.rv-stars-input {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rv-star-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    color: #d1d5db;
    transition: color .15s, transform .15s;
}

.rv-star-btn:hover, .rv-star-btn--on {
    color: #f59e0b;
    transform: scale(1.15);
}

.rv-stars-label {
    margin-left: 8px;
    font-size: .88rem;
    color: #6b7280;
}

.rv-textarea {
    width: 100%;
    min-height: 90px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    font-size: .93rem;
    resize: vertical;
    outline: none;
    transition: border-color .18s;
    box-sizing: border-box;
}

.rv-textarea:focus {
    border-color: #0d9488;
}

.rv-error {
    background: #fef2f2;
    color: #dc2626;
    font-size: .88rem;
    padding: 8px 12px;
    border-radius: 8px;
}

.rv-exito {
    background: #f0fdf4;
    color: #16a34a;
    font-size: .88rem;
    padding: 8px 12px;
    border-radius: 8px;
}

.rv-submit-btn {
    align-self: flex-start;
    background: linear-gradient(135deg, #0d9488, #5eead4);
    color: #fff;
    border: none;
    padding: 11px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .93rem;
    cursor: pointer;
    transition: opacity .18s;
}

.rv-submit-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Review list */
.rv-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rv-item {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rv-item-hdr {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rv-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9488, #5eead4);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rv-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rv-name {
    font-weight: 600;
    font-size: .93rem;
    color: #111827;
}

.rv-date {
    font-size: .8rem;
    color: #9ca3af;
}

.rv-stars {
    display: flex;
    gap: 2px;
}

.rv-star {
    width: 14px;
    height: 14px;
    color: #d1d5db;
}

.rv-star--on {
    color: #f59e0b;
}

.rv-comment {
    font-size: .93rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.rv-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
    font-size: .93rem;
    padding: 20px 0;
}

/* ── Pagination ─────────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 0 16px;
}
.pagination-btn {
    padding: 8px 20px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.pagination-btn:hover:not(:disabled) {
    border-color: #0d9488;
    color: #0d9488;
}
.pagination-btn:disabled {
    opacity: .4;
    cursor: default;
}
.pagination-info {
    font-size: .9rem;
    color: #6b7280;
}

/* ══════════════════════════════════════════════════════
   PERFIL EDITAR — PE-* NAMESPACE
══════════════════════════════════════════════════════ */

.pe-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
.pe-header { display: flex; align-items: center; gap: 16px; }
.pe-back {
    background: none; border: none; cursor: pointer;
    color: #0d9488; font-weight: 600; font-size: 14px;
    padding: 6px 0;
}
.pe-back:hover { text-decoration: underline; }
.pe-title { margin: 0; font-size: 24px; font-weight: 700; color: #111827; }

/* Tabs */
.pe-tabs {
    display: flex;
    gap: 4px;
    background: white;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.pe-tab {
    flex: 1;
    padding: 10px 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.pe-tab:hover { background: #f3f4f6; color: #374151; }
.pe-tab.active { background: #0d9488; color: white; font-weight: 600; }

/* Alert */
.pe-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}
.pe-alert-ok    { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.pe-alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }

/* Cards */
.pe-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pe-card-neutral { border-top: 3px solid #e5e7eb; }
.pe-card-form    { border: 2px dashed #e5e7eb; }
.pe-card-title   { margin: 0; font-size: 18px; font-weight: 700; color: #111827; }
.pe-card-subtitle { margin: 0; font-size: 14px; color: #6b7280; }
.pe-card-header-row { display: flex; align-items: center; justify-content: space-between; }

.pe-divider { border: none; border-top: 1px solid #f3f4f6; margin: 0; }

/* Avatar section */
.pe-avatar-section  { display: flex; align-items: center; gap: 20px; }
.pe-avatar-wrap     { flex-shrink: 0; }
.pe-avatar-img      { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid #e5e7eb; }
.pe-avatar-placeholder {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: white; font-size: 32px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.pe-avatar-info     { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pe-avatar-hint     { margin: 0; font-size: 13px; color: #6b7280; }
.pe-input-row       { display: flex; gap: 8px; }
.pe-input-row .pe-input { flex: 1; }

/* Form grid */
.pe-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.pe-form-single { grid-template-columns: 1fr; max-width: 420px; }
.pe-field       { display: flex; flex-direction: column; gap: 6px; }
.pe-field-wide  { grid-column: 1 / -1; }
.pe-field label { font-size: 13px; font-weight: 600; color: #374151; }

.pe-input, .pe-select {
    padding: 10px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    transition: border-color .15s;
    background: white;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.pe-input:focus, .pe-select:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

/* Verificación email */
.pe-verified   { font-size: 12px; color: #059669; font-weight: 600; }
.pe-unverified { font-size: 12px; color: #d97706; font-weight: 600; }

/* Historial */
.pe-historial       { display: flex; flex-direction: column; gap: 12px; }
.pe-historial-title { margin: 0; font-size: 14px; font-weight: 700; color: #374151; }
.pe-historial-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pe-historial-item  { display: flex; flex-direction: column; gap: 3px; background: #f9fafb; padding: 12px; border-radius: 10px; }
.pe-historial-lbl   { font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: .4px; }
.pe-historial-val   { font-size: 14px; font-weight: 700; color: #111827; }

/* Password rules */
.pe-password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rule-pending { font-size: 12px; color: #9ca3af; }
.rule-ok      { font-size: 12px; color: #059669; font-weight: 600; }

/* Direcciones */
.pe-dir-list { display: flex; flex-direction: column; gap: 12px; }
.pe-dir-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color .15s;
}
.pe-dir-card.principal { border-color: #0d9488; background: #ecfdf5; }
.pe-dir-badge  { font-size: 12px; font-weight: 700; color: #0d9488; }
.pe-dir-resumen { margin: 0; font-size: 14px; color: #111827; font-weight: 500; }
.pe-dir-ref    { margin: 0; font-size: 13px; color: #6b7280; }
.pe-dir-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

/* Notificaciones toggle */
.pe-section-subtitle { margin: 0; font-size: 14px; font-weight: 700; color: #374151; }
.pe-notif-list { display: flex; flex-direction: column; gap: 1px; }
.pe-notif-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}
.pe-notif-item:last-child { border-bottom: none; }
.pe-notif-item strong { font-size: 14px; color: #111827; display: block; margin-bottom: 2px; }
.pe-notif-item p { margin: 0; font-size: 13px; color: #6b7280; }

/* Toggle switch */
.pe-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.pe-toggle input { opacity: 0; width: 0; height: 0; }
.pe-toggle-slider {
    position: absolute; inset: 0;
    background: #d1d5db;
    border-radius: 24px;
    cursor: pointer;
    transition: background .2s;
}
.pe-toggle-slider::before {
    content: "";
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform .2s;
}
.pe-toggle input:checked + .pe-toggle-slider { background: #0d9488; }
.pe-toggle input:checked + .pe-toggle-slider::before { transform: translateX(20px); }

/* Checkbox field */
.pe-checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row !important;
}
.pe-checkbox-field label { font-size: 14px; font-weight: 500; color: #374151; margin: 0; }
.pe-checkbox-field input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: #0d9488; }

/* Buttons */
.pe-btn-primary {
    background: #0d9488; color: white;
    border: none; border-radius: 8px;
    padding: 10px 20px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background .15s;
    text-decoration: none; display: inline-block;
}
.pe-btn-primary:hover { background: #0f766e; }

.pe-btn-secondary {
    background: white; color: #0d9488;
    border: 1.5px solid #0d9488; border-radius: 8px;
    padding: 9px 18px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .15s;
}
.pe-btn-secondary:hover { background: #f0fdfa; }

.pe-btn-ghost {
    background: transparent; color: #6b7280;
    border: 1.5px solid #e5e7eb; border-radius: 8px;
    padding: 9px 18px; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all .15s;
}
.pe-btn-ghost:hover { background: #f9fafb; border-color: #d1d5db; }

.pe-btn-link {
    background: none; border: none; cursor: pointer;
    color: #0d9488; font-size: 13px; font-weight: 600;
    padding: 0; text-decoration: underline;
}
.pe-btn-link:hover { color: #0f766e; }
.pe-btn-link.danger { color: #ef4444; }
.pe-btn-link.danger:hover { color: #b91c1c; }

.pe-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Empty state */
.pe-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}
.pe-empty-icon { font-size: 40px; margin-bottom: 10px; }
.pe-empty p    { margin: 0; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════════════════
   AI BUDGET SHOPPING — Setup Cards
   Prefix: bs-
   ═══════════════════════════════════════════════════════════════════════════ */

/* Grid de 3 cards (1 col mobile, 2 tablet, 3 desktop) */
.bs-setups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 14px 0 8px;
}

/* ── Card base ── */
.bs-setup-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .18s, transform .18s;
}
.bs-setup-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

/* Variantes de color del borde superior (acento) */
.bs-card--green  { border-top: 4px solid #22c55e; }
.bs-card--blue   { border-top: 4px solid #3b82f6; }
.bs-card--purple { border-top: 4px solid #5eead4; }

/* ── Cabecera de la card ── */
.bs-card-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f3f4f6;
}
.bs-card-title-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
}
.bs-emoji     { font-size: 20px; line-height: 1; }
.bs-card-name { font-size: 15px; font-weight: 700; color: #111827; }
.bs-card-desc { font-size: 12px; color: #6b7280; margin: 6px 0 0; line-height: 1.4; }

/* Badge de tier */
.bs-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    letter-spacing: .2px;
}
.bs-tag--green  { background: #dcfce7; color: #15803d; }
.bs-tag--blue   { background: #dbeafe; color: #1d4ed8; }
.bs-tag--purple { background: #f0fdfa; color: #0f766e; }

/* ── Lista de componentes ── */
.bs-componentes {
    flex: 1;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bs-componente {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bs-comp-rol {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #9ca3af;
}

.bs-comp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 8px;
    background: #f9fafb;
    text-decoration: none;
    transition: background .15s;
}
.bs-comp-item:hover { background: #f0f0ff; }

.bs-comp-img-wrap {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
}
.bs-comp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bs-comp-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.bs-comp-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.bs-comp-title {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.bs-comp-marca {
    font-size: 11px;
    color: #9ca3af;
}

.bs-comp-price {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Footer de la card ── */
.bs-card-footer {
    padding: 12px 14px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.bs-totales {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bs-total-row, .bs-ahorro-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.bs-total-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.bs-total-amount {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}
.bs-total--green  { color: #15803d; }
.bs-total--blue   { color: #1d4ed8; }
.bs-total--purple { color: #0f766e; }

.bs-ahorro-label  { font-size: 11px; color: #9ca3af; }
.bs-ahorro-amount { font-size: 12px; font-weight: 600; color: #22c55e; }

/* Botón "Agregar todo al carrito" */
.bs-btn-cart {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 13px;
    border-radius: 8px;
    background: #0d9488;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s, transform .1s;
}
.bs-btn-cart:hover  { background: #0f766e; }
.bs-btn-cart:active { transform: scale(.97); }

/* Nota al pie */
.bs-disclaimer {
    font-size: 11.5px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 8px 0 0;
}

/* Toast de confirmación */
.bs-toast {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0 0;
    animation: bs-fadein .2s ease;
}
.bs-toast--ok  { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.bs-toast--err { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

@keyframes bs-fadein {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .bs-setups-grid { grid-template-columns: 1fr; }
    .bs-card-footer { flex-direction: column; align-items: stretch; }
    .bs-btn-cart    { justify-content: center; }
}

/* ══════════════════════════════════════════════════════════
   VisitaCalendar (global, NO scoped) — prefijo .vcal-*
   Vive en app.css para no depender del bundle de scoped CSS
   de Blazor cuando se agregan componentes nuevos.
   ══════════════════════════════════════════════════════════ */
.vcal {
    background: #ffffff;
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    font-family: 'Inter', system-ui, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.vcal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 4px;
}

.vcal-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(13, 148, 136, 0.15);
    background: #ffffff;
    color: #0d9488;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    flex-shrink: 0;
    padding: 0;
}

.vcal-nav-btn:hover:not(:disabled) {
    background: rgba(13, 148, 136, 0.08);
    border-color: rgba(13, 148, 136, 0.4);
}

.vcal-nav-btn:active:not(:disabled) { transform: scale(0.94); }

.vcal-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.vcal-title {
    flex: 1;
    text-align: center;
    color: #0f172a;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
    text-transform: capitalize;
    user-select: none;
}

.vcal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 0 2px;
}

.vcal-weekday {
    text-align: center;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 0 2px;
}

.vcal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.vcal-day {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #0f172a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.12s;
    padding: 0;
}

.vcal-day:hover:not(:disabled) {
    background: rgba(13, 148, 136, 0.08);
    border-color: rgba(13, 148, 136, 0.25);
}

.vcal-day:active:not(:disabled) { transform: scale(0.95); }

.vcal-day-num { line-height: 1; }

.vcal-day-outside { color: #d1d5db; }

.vcal-day-disabled {
    cursor: not-allowed;
    color: #cbd5e1;
    background: transparent;
}

.vcal-day-disabled:hover {
    background: transparent;
    border-color: transparent;
}

.vcal-day-today {
    color: #0d9488;
    font-weight: 700;
}

.vcal-day-dot {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0d9488;
}

.vcal-day-selected,
.vcal-day-selected:hover {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border-color: #0d9488;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}

.vcal-day-selected .vcal-day-dot { background: #ffffff; }
.vcal-day-selected.vcal-day-today { color: #ffffff; }

.vcal-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: 10px;
    color: #0d9488;
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
}

/* ══════════════════════════════════════════════════════════
   Modal Agendar Visita (DetalleInmueble) — clases .dvis-*
   Tambien globales por la misma razon.
   ══════════════════════════════════════════════════════════ */
.dvis-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.dvis-step:last-child { margin-bottom: 0; }

.dvis-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.dvis-times {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.dvis-time {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
    font-family: 'Sora', sans-serif;
}

.dvis-time:hover {
    border-color: rgba(13, 148, 136, 0.4);
    background: rgba(13, 148, 136, 0.04);
    transform: translateY(-1px);
}

.dvis-time:active { transform: scale(0.97); }

.dvis-time.selected {
    border-color: #0d9488;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(94, 234, 212, 0.12));
    color: #0d9488;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.18);
}

.dvis-input {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.9rem;
    font-family: 'Sora', sans-serif;
    color: #0f172a;
    outline: none;
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

.dvis-input::placeholder { color: #94a3b8; }

.dvis-input:focus {
    border-color: #0d9488;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.dvis-inputs { display: flex; flex-direction: column; gap: 12px; }

.dvis-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dvis-success-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.dvis-success-sub {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

.dvis-summary {
    width: 100%;
    background: #f0fdfa;
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dvis-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.dvis-summary-row span {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dvis-summary-row strong {
    font-size: 0.88rem;
    color: #0f172a;
    font-weight: 700;
    text-transform: capitalize;
}

.dvis-body {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding-bottom: 24px;
}

.dvis-body::-webkit-scrollbar { width: 6px; }
.dvis-body::-webkit-scrollbar-thumb {
    background: rgba(13, 148, 136, 0.25);
    border-radius: 4px;
}

/* ─────────────────────────────────────────────────────────
   Scroll reveal — fade-up aplicado por scroll-reveal.js
   cuando un elemento [data-reveal] entra al viewport.
   Variantes: data-reveal="up" (default), "left", "right",
   "zoom". Delay opcional con --reveal-delay (ms).
   Respeta prefers-reduced-motion: cuando está activo, el JS
   aplica .is-visible inmediatamente sin transición.
   ───────────────────────────────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    /* Duración pausada (1100ms) con easing cubic-bezier suave estilo Apple.
       Se siente más intencional que una entrada rápida tipo "flash". */
    transition:
        opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"]  { transform: scale(0.94); }

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   PWA INSTALL BANNER
   ───────────────────────────────────────────────────────────────────── */
#listo-pwa-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18), 0 4px 14px rgba(15, 23, 42, 0.06);
    font-family: 'Inter', system-ui, sans-serif;
    animation: listoPwaSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes listoPwaSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.listo-pwa-banner-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 14px 14px 16px;
}

.listo-pwa-banner-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ccfbf1;
    color: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listo-pwa-banner-icon svg { width: 24px; height: 24px; }

.listo-pwa-banner-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.listo-pwa-banner-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.listo-pwa-banner-text span {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.35;
}

.listo-pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.listo-pwa-btn-primary {
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 16px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.listo-pwa-btn-primary:hover {
    background: #0f766e;
    transform: translateY(-1px);
}

.listo-pwa-btn-close {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.listo-pwa-btn-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

@media (max-width: 480px) {
    .listo-pwa-banner-text strong { font-size: 0.88rem; }
    .listo-pwa-banner-text span   { font-size: 0.76rem; }
    .listo-pwa-btn-primary { padding: 8px 12px; font-size: 0.8rem; }
}

/* Si el user prefiere movimiento reducido, sin animación de entrada. */
@media (prefers-reduced-motion: reduce) {
    #listo-pwa-banner { animation: none; }
}
