:root {
  --dander-radius: 18px;
  --dander-dark: #111111;
  --dander-gold: #ffc107;
  --dander-bg: #f7f5f0;
  --dander-soft: #fff8e1;
  --dander-shadow: 0 10px 30px rgba(17,17,17,.08);
}
* { -webkit-tap-highlight-color: rgba(255,193,7,.18); }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(circle at top left, rgba(255,193,7,.16), transparent 28rem), var(--dander-bg);
  color: #151515;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: #111; }
.navbar-brand { letter-spacing: .5px; }
.navbar { box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.navbar .nav-link { border-radius: 999px; padding-left: .75rem !important; padding-right: .75rem !important; }
.navbar .nav-link:hover { background: rgba(255,255,255,.10); }
.card {
  border: 0;
  border-radius: var(--dander-radius);
  box-shadow: var(--dander-shadow);
  overflow: hidden;
}
.card-body { border-radius: var(--dander-radius); }
.btn { border-radius: 999px; font-weight: 700; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; }
.btn-sm { min-height: 34px; }
.form-control, .form-select {
  border-radius: 14px;
  min-height: 44px;
  border-color: rgba(17,17,17,.14);
  font-size: 1rem;
}
.form-control:focus, .form-select:focus { border-color: #111; box-shadow: 0 0 0 .2rem rgba(255,193,7,.25); }
.product-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-top-left-radius: var(--dander-radius);
  border-top-right-radius: var(--dander-radius);
  background:#e9ecef;
}
.product-card { transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(17,17,17,.12); }
.product-card .card-title { line-height: 1.15; }
.price { font-size: 1.25rem; font-weight: 900; letter-spacing: -.02em; }
.badge-soft { background: #fff3cd; color: #7a5a00; border: 1px solid rgba(122,90,0,.08); }
.hero {
  background: linear-gradient(135deg, #111, #2a2926 55%, #6b5200);
  color: white;
  border-radius: 28px;
  padding: 38px;
  box-shadow: 0 18px 44px rgba(17,17,17,.18);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -100px;
  background: rgba(255,193,7,.18);
  border-radius: 50%;
}
.hero > * { position: relative; z-index: 1; }
.search-card { position: sticky; top: 72px; z-index: 10; }
.code-box {
  font-size: 2.3rem;
  letter-spacing: .35rem;
  font-weight: 900;
  border: 2px dashed #111;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  text-align:center;
  overflow-wrap: anywhere;
}
.small-code { font-size: 1.25rem; letter-spacing: .12rem; }
.rating { color: #f5a623; font-weight: 800; }
.cart-thumb { width: 74px; height: 74px; border-radius: 16px; object-fit: cover; background:#e9ecef; flex: 0 0 auto; }
.table td, .table th { vertical-align: middle; }
.sticky-lg-top { z-index: 1; }
.mobile-bottom-nav, .floating-whatsapp { display: none; }
.kpi-card { background: linear-gradient(180deg, #fff, #fff9e8); }
.product-detail-img { height: 440px; }
.summary-card { position: sticky; top: 90px; }
.install-app-banner {
  background: #111;
  color: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.install-app-banner.show { display: flex; }
@media (max-width: 991.98px) {
  body { padding-bottom: 74px; }
  main.container { padding-top: 1rem !important; padding-left: .85rem; padding-right: .85rem; }
  .navbar .container { padding-left: .85rem; padding-right: .85rem; }
  .navbar-collapse { padding-top: .75rem; }
  .navbar .nav-link { padding-top: .65rem !important; padding-bottom: .65rem !important; }
  .navbar .d-flex { width: 100%; margin-top: .65rem; }
  .navbar .d-flex .btn { flex: 1; }
  .hero { padding: 22px; border-radius: 22px; }
  .hero .display-6 { font-size: 1.85rem; }
  .hero .lead { font-size: 1rem; }
  .hero .btn { width: 100%; }
  .search-card { position: static; }
  .product-detail-img { height: 340px !important; }
  .summary-card { position: static; }
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: rgba(17,17,17,.96);
    backdrop-filter: blur(12px);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(0,0,0,.22);
  }
  .mobile-bottom-nav a {
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 14px;
    padding: 6px 2px;
  }
  .mobile-bottom-nav a span { display: block; font-size: 1.15rem; line-height: 1.1; }
  .mobile-bottom-nav a:active, .mobile-bottom-nav a:hover { background: rgba(255,193,7,.20); }
  .floating-whatsapp {
    display: flex;
    position: fixed;
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.55rem;
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
    z-index: 1039;
  }
  .floating-whatsapp:hover { color: #fff; }
}
@media (max-width: 767.98px) {
  .d-flex.justify-content-between.align-items-center,
  .d-flex.align-items-center.justify-content-between {
    gap: .75rem;
    flex-wrap: wrap;
  }
  .d-flex.justify-content-between.align-items-center > .btn,
  .d-flex.align-items-center.justify-content-between > .btn,
  .d-flex.justify-content-between.align-items-center > a.btn,
  .d-flex.align-items-center.justify-content-between > a.btn { width: 100%; }
  .card.card-body, .card-body { padding: 1rem !important; }
  .product-img { height: 210px; }
  .product-card .card-body { padding: .85rem !important; }
  .product-card .card-title { font-size: .98rem; min-height: 2.25rem; }
  .product-card .small-description { display: none; }
  .product-card .price { font-size: 1.08rem; }
  .product-card .btn { width: 100%; margin-top: .5rem; }
  .product-card .product-actions { display: block !important; }
  .product-detail-img { height: 310px !important; }
  .code-box { font-size: 1.65rem; letter-spacing: .18rem; padding: 14px; }
  .table-mobile-card thead { display: none; }
  .table-mobile-card, .table-mobile-card tbody, .table-mobile-card tr, .table-mobile-card td { display: block; width: 100%; }
  .table-mobile-card tr {
    border: 1px solid rgba(17,17,17,.08);
    border-radius: 18px;
    padding: .85rem;
    margin-bottom: .85rem;
    background: #fff;
    box-shadow: 0 8px 20px rgba(17,17,17,.04);
  }
  .table-mobile-card td {
    border: 0 !important;
    padding: .35rem 0 !important;
  }
  .table-mobile-card td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #777;
    font-weight: 800;
    margin-bottom: .1rem;
  }
  .table-mobile-card td.actions-cell .btn,
  .table-mobile-card td.actions-cell form,
  .table-mobile-card td.actions-cell button { width: 100%; }
}
@media (max-width: 575.98px) {
  main.container { padding-left: .7rem; padding-right: .7rem; }
  h1, .h1 { font-size: 1.75rem; }
  h2, .h2 { font-size: 1.35rem; }
  .hero { padding: 18px; }
  .product-img { height: 175px; }
  .product-detail-img { height: 280px !important; }
  .badge { white-space: normal; }
  footer { padding-bottom: 90px !important; }
}


/* Navegacion activa D'Ander: resalta la seccion actual en PC y celular */
.navbar-dark .navbar-nav .nav-link.dander-active,
.navbar-dark .navbar-nav .nav-link.active.dander-active {
  color: #111 !important;
  background: linear-gradient(135deg, var(--dander-gold), #ffe082);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 8px 20px rgba(255,193,7,.24), inset 0 1px 0 rgba(255,255,255,.55);
  font-weight: 900;
  transform: translateY(-1px);
}
.navbar-dark .navbar-nav .nav-link.dander-active::before {
  content: "●";
  font-size: .48rem;
  margin-right: .42rem;
  vertical-align: middle;
}
.navbar-dark .navbar-nav .nav-link.dander-active:hover,
.navbar-dark .navbar-nav .nav-link.dander-active:focus {
  color: #111 !important;
  background: linear-gradient(135deg, #ffca2c, #fff1a6);
}
.mobile-bottom-nav a.dander-active {
  color: #111;
  background: linear-gradient(135deg, var(--dander-gold), #ffe082);
  box-shadow: 0 8px 18px rgba(255,193,7,.30);
  transform: translateY(-2px);
}
.mobile-bottom-nav a.dander-active span {
  transform: scale(1.08);
}
@media (max-width: 991.98px) {
  .navbar-dark .navbar-nav .nav-link.dander-active {
    margin: .12rem 0;
    padding-left: .95rem !important;
    padding-right: .95rem !important;
  }
}

/* v8.8 - Galeria profesional de productos */
.product-card-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.product-photo-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(33, 37, 41, .86);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: .25rem .55rem;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.product-gallery {
    overflow: hidden;
}

.product-gallery-main-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #f8f6f0;
}

.product-gallery-main-wrap .product-detail-img {
    width: 100%;
    height: min(66vh, 620px);
    object-fit: contain;
    background: #f8f6f0;
    cursor: zoom-in;
    transition: transform .25s ease;
}

.product-gallery-main-wrap:hover .product-detail-img {
    transform: scale(1.015);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(33, 37, 41, .82);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

.gallery-arrow:hover {
    background: #ffc107;
    color: #212529;
}

.gallery-arrow-left { left: 14px; }
.gallery-arrow-right { right: 14px; }

.gallery-zoom-hint {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    background: rgba(255, 255, 255, .90);
    color: #212529;
    font-weight: 700;
    font-size: .82rem;
    border-radius: 999px;
    padding: .35rem .75rem;
    box-shadow: 0 12px 26px rgba(0,0,0,.12);
}

.product-gallery-thumbs {
    display: flex;
    gap: .65rem;
    overflow-x: auto;
    padding: .85rem .1rem .15rem;
    scroll-snap-type: x mandatory;
}

.gallery-thumb {
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    scroll-snap-align: start;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: #ffc107;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-zoom-modal {
    position: relative;
    border: none;
    border-radius: 26px;
    background: rgba(18, 18, 18, .96);
    padding: 1.25rem;
    min-height: 75vh;
    display: grid;
    place-items: center;
}

.product-zoom-modal img {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 18px;
}

.product-zoom-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    background-color: #fff;
    opacity: 1;
    border-radius: 999px;
    padding: .75rem;
}

.admin-gallery-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.admin-gallery-item {
    border: 1px solid #e6e2d8;
    border-radius: 16px;
    background: #fff;
    padding: .6rem;
}

.admin-gallery-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
}

@media (max-width: 576px) {
    .product-gallery-main-wrap .product-detail-img {
        height: 430px;
    }
    .gallery-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.55rem;
    }
    .gallery-zoom-hint {
        font-size: .72rem;
        padding: .28rem .6rem;
    }
    .gallery-thumb {
        flex-basis: 66px;
        width: 66px;
        height: 66px;
    }
    .admin-gallery-list {
        grid-template-columns: 1fr;
    }
}

/* v9.0 - Ficha de producto más vendedora: carrito principal, WhatsApp secundario */
.product-buy-btn {
    min-height: 46px;
    font-size: 1rem;
    box-shadow: 0 10px 22px rgba(17, 17, 17, .13);
}

.product-help-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(25, 135, 84, .22);
    background: linear-gradient(135deg, rgba(25, 135, 84, .06), rgba(255, 255, 255, .72));
    border-radius: 18px;
    padding: .95rem 1rem;
}

.product-help-box strong,
.product-help-box span {
    display: block;
}

.product-help-box span {
    color: #5f6368;
    font-size: .92rem;
    margin-top: .1rem;
}

.btn-whatsapp-secondary {
    flex: 0 0 auto;
    background: #fff;
    border-width: 1.5px;
    min-height: 40px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.product-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.product-trust-strip span {
    border: 1px solid rgba(17,17,17,.08);
    background: #fff;
    border-radius: 999px;
    color: #424242;
    font-size: .82rem;
    font-weight: 700;
    padding: .35rem .65rem;
}

@media (max-width: 575.98px) {
    .product-help-box {
        display: block;
    }
    .btn-whatsapp-secondary {
        width: 100%;
        margin-top: .75rem;
    }
    .product-trust-strip span {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* v9.1 - Optimizacion movil real para clientes y administrador */
.install-app-banner.d-none { display: none !important; }
.install-app-banner.show {
  display: flex !important;
}
.install-actions .btn { border-radius: 999px; font-weight: 700; }
.profile-summary-card { position: sticky; top: 86px; }
.phone-change-card .alert { border-radius: 18px; }

.admin-table-wrap { overflow-x: auto; }
.admin-responsive-table td, .admin-responsive-table th { vertical-align: middle; }

@media (max-width: 991px) {
  body { padding-bottom: 78px; }
  .navbar { position: sticky; top: 0; z-index: 1030; }
  .navbar .container { align-items: flex-start; }
  .navbar-collapse { width: 100%; padding-top: .75rem; }
  .navbar-nav { gap: .35rem; }
  .navbar .nav-link { padding: .72rem .9rem; border-radius: 999px; }
  .dander-active { box-shadow: 0 8px 22px rgba(255, 193, 7, .22); }
  main.container { padding-left: 14px; padding-right: 14px; }
  .hero { padding: 2rem 1.35rem; border-radius: 24px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .search-panel { padding: .9rem; }
  .search-panel .row > * { margin-bottom: .65rem; }
  .product-card { border-radius: 22px; }
  .product-card .card-img-top { height: 245px; }
  .product-card .card-body { padding: 1rem; }
  .product-card .btn, .search-panel .btn, .hero .btn { width: 100%; min-height: 44px; }
  .mobile-bottom-nav { height: 68px; align-items: center; }
  .mobile-bottom-nav a { min-width: 58px; font-size: .72rem; padding: .3rem .2rem; }
  .admin-mobile-bottom-nav { grid-template-columns: repeat(5, 1fr); }
  .install-app-banner { margin-left: 0; margin-right: 0; border-radius: 20px; align-items: flex-start; }
  .install-app-banner .install-actions { width: 100%; justify-content: flex-start !important; }
  .install-app-banner .btn { min-height: 40px; }
  .profile-summary-card { position: static; }
  .profile-grid .card { border-radius: 22px; }
  .form-mobile-stack .form-control, .form-mobile-stack .form-select { min-height: 46px; }
  .form-mobile-stack .btn { width: 100%; min-height: 46px; }
}

@media (max-width: 767px) {
  .container { max-width: 100%; }
  .hero { margin-top: .75rem; }
  .hero .d-flex { align-items: stretch !important; }
  .hero .btn { justify-content: center; display: inline-flex; align-items: center; }
  .product-card .card-img-top { height: 230px; object-fit: cover; }
  .gallery-main { height: min(72vh, 520px); border-radius: 22px; }
  .gallery-nav { width: 44px; height: 44px; }
  .gallery-thumbs { gap: .55rem; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .4rem; }
  .gallery-thumb { min-width: 64px; width: 64px; height: 64px; }
  .product-detail-card { border-radius: 22px; }
  .product-detail-card .row.g-3 > * { margin-bottom: .6rem; }
  .product-detail-card .btn { min-height: 48px; }
  .cart-table, .checkout-summary { font-size: .92rem; }
  .admin-mobile-card { border-radius: 22px; }
  .admin-responsive-table thead { display: none; }
  .admin-responsive-table, .admin-responsive-table tbody, .admin-responsive-table tr, .admin-responsive-table td { display: block; width: 100%; }
  .admin-responsive-table tr { border: 1px solid #e8e2d8; border-radius: 18px; padding: .75rem; margin-bottom: .85rem; background: #fff; box-shadow: 0 12px 26px rgba(16, 24, 40, .06); }
  .admin-responsive-table td { border: 0 !important; padding: .45rem 0; }
  .admin-responsive-table td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; color: #746b5f; margin-bottom: .2rem; }
  .admin-responsive-table .btn { min-height: 40px; }
  .alert { border-radius: 18px; }
  footer { padding-bottom: 78px; }
}

@media (max-width: 420px) {
  .navbar-brand { font-size: 1rem; }
  .hero h1 { font-size: 2rem; }
  .product-card .card-img-top { height: 205px; }
  .mobile-bottom-nav a { font-size: .66rem; }
  .mobile-bottom-nav span { font-size: 1rem; }
  .gallery-main { height: 66vh; }
  .btn { white-space: normal; }
}

/* v9.3 Premium: tablero de ganancias, PWA y flujo de pedidos */
.premium-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #fff7d6, #ffffff 55%, #ffe7a3);
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 22px;
  padding: 1rem 1.15rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
.metric-card {
  min-height: 150px;
  border-radius: 24px;
  padding: 1.1rem;
  background: radial-gradient(circle at top right, rgba(255, 193, 7, .28), transparent 35%), linear-gradient(145deg, #111827, #0b1220);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
}
.metric-card span { display:block; color: rgba(255,255,255,.72); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.metric-card strong { display:block; font-size: clamp(1.35rem, 2.5vw, 2rem); margin: .45rem 0 .35rem; }
.metric-card small { color: rgba(255,255,255,.68); }
.glow-card { box-shadow: 0 22px 60px rgba(15, 23, 42, .22); }
.bar-row { margin-bottom: 1rem; }
.bar-row.compact { margin-bottom: .8rem; }
.bar-row-head { display:flex; justify-content:space-between; align-items:center; gap:.75rem; font-size:.92rem; }
.bar-track { height: 12px; background: #eef2f7; border-radius: 999px; overflow:hidden; margin:.35rem 0; }
.bar-fill { height:100%; background: linear-gradient(90deg, #111827, #f59e0b); border-radius:999px; }
.spearman-card { background: linear-gradient(145deg, #ffffff, #fff7df); }
.rho-number { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 900; letter-spacing: -.08em; line-height: 1; color: #111827; }
.pwa-install-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 1080;
  background: #111827;
  color: #fff;
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 25px 80px rgba(0,0,0,.25);
  display: none;
  max-width: 760px;
  margin: 0 auto;
}
.pwa-install-banner.show { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.pwa-install-banner p { margin:0; color:rgba(255,255,255,.72); }
.pwa-install-banner .btn-close-mini {
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 999px;
  width: 34px;
  height: 34px;
}
.order-flow-help {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}
.order-flow-help .step {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: .85rem;
}
.install-steps li { margin-bottom: .75rem; }
@media (max-width: 1200px) { .analytics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-strip { flex-direction: column; align-items: stretch; }
  .order-flow-help { grid-template-columns: 1fr 1fr; }
  .pwa-install-banner { bottom: 76px; }
}
@media (max-width: 480px) {
  .analytics-grid { grid-template-columns: 1fr; }
  .order-flow-help { grid-template-columns: 1fr; }
}

/* v9.4 - microinteracciones, marca y libro de reclamaciones */
@keyframes softRise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes buttonPop {
    0% { transform: scale(1); }
    50% { transform: scale(.97); }
    100% { transform: scale(1); }
}

.card, .product-card, .hero-card, .metric-card, .glass-panel {
    animation: softRise .45s ease both;
}

.btn, .mobile-bottom-nav a, .floating-whatsapp, .product-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.btn:active, .mobile-bottom-nav a:active, .floating-whatsapp:active {
    animation: buttonPop .2s ease;
}

.btn:hover, .product-card:hover {
    transform: translateY(-2px);
}

.brand-logo-mini {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255,255,255,.9);
    padding: 3px;
}

.hero-brand-logo {
    width: min(180px, 55vw);
    max-height: 90px;
    object-fit: contain;
    display: block;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    padding: .7rem 1rem;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.brand-preview-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 22px;
    background: linear-gradient(135deg, #fff, #f8f3dc);
}

.brand-preview-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
    border-radius: 20px;
    background: #fff;
    padding: .55rem;
    box-shadow: 0 12px 26px rgba(0,0,0,.12);
}

.brand-preview-placeholder {
    width: 86px;
    height: 86px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: #111;
    color: #ffc107;
    font-size: 2.4rem;
    font-weight: 900;
}

.app-toast-wrap {
    position: fixed;
    top: 88px;
    right: 18px;
    z-index: 2000;
    display: grid;
    gap: .65rem;
    max-width: min(360px, calc(100vw - 32px));
}

.app-toast {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    background: rgba(20,20,20,.94);
    color: #fff;
    padding: .9rem 1rem;
    box-shadow: 0 18px 45px rgba(0,0,0,.24);
    animation: softRise .28s ease both;
}

.app-toast.success { background: linear-gradient(135deg, #11823b, #0b5a2a); }
.app-toast.warning { background: linear-gradient(135deg, #ffc107, #c48d00); color: #171717; }
.app-toast.danger { background: linear-gradient(135deg, #cf2e2e, #8b1010); }

.timeline-list {
    display: grid;
    gap: .8rem;
}

.timeline-item {
    border-left: 4px solid #ffc107;
    padding: .75rem .9rem;
    background: #fff9e7;
    border-radius: 0 16px 16px 0;
}

.timeline-item span {
    display: block;
    color: #6c757d;
    font-size: .86rem;
    margin: .1rem 0 .35rem;
}

.timeline-item p { margin: 0; }

.claim-card {
    border: 1px solid rgba(255,193,7,.35);
    box-shadow: 0 24px 60px rgba(0,0,0,.1);
}

.claim-detail-box {
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    padding: 1rem;
}

.metric-card {
    background: #fff;
    border-radius: 22px;
    padding: 1.1rem;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 14px 34px rgba(0,0,0,.08);
}

.metric-card span {
    color: #6c757d;
    font-size: .9rem;
}

.metric-card strong {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
}

.admin-list-card {
    max-height: 72vh;
    overflow: auto;
}

.admin-list-item {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: #fff;
}

.admin-list-item:hover,
.admin-list-item.active {
    background: #fff7d6;
}

.admin-list-item span,
.admin-list-item small {
    display: block;
    color: #6c757d;
    margin-top: .25rem;
}

@media (max-width: 576px) {
    .app-toast-wrap { top: auto; bottom: 92px; right: 12px; left: 12px; }
    .hero-brand-logo { margin-inline: auto; }
    .brand-preview-box { align-items: flex-start; }
}

/* D'Ander Marketplace Fix v9.6.1 */
.fw-black{font-weight:900!important}
.marketplace-hero{position:relative;overflow:hidden;border-radius:28px;background:linear-gradient(135deg,#171717 0%,#24221b 52%,#705600 100%);color:#fff;padding:42px 36px;margin-bottom:22px;box-shadow:0 24px 60px rgba(0,0,0,.12)}
.marketplace-hero::after{content:"";position:absolute;width:310px;height:310px;border-radius:50%;background:rgba(255,193,7,.24);right:-70px;top:-50px}.marketplace-hero .hero-content{position:relative;z-index:2;max-width:720px}.marketplace-hero .eyebrow{font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;color:#ffc107;font-weight:800;margin-bottom:8px}.marketplace-hero h1{font-size:clamp(2rem,4vw,3.5rem);font-weight:900;line-height:1.04;margin-bottom:14px}.marketplace-hero p{color:rgba(255,255,255,.86);font-size:1.05rem;max-width:650px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.search-shell{background:#fff;border-radius:24px;padding:16px;box-shadow:0 18px 45px rgba(0,0,0,.08);margin:22px 0}.search-shell .form-control,.search-shell .form-select{border-radius:16px;min-height:52px}.search-shell .btn{border-radius:999px;min-height:52px;font-weight:800}.market-category-wrap{margin:26px 0 30px}.section-kicker{color:#896600;font-weight:800;font-size:.86rem;letter-spacing:.04em;text-transform:uppercase;margin-bottom:2px}.market-category-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}.market-category-card{grid-column:span 4;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:22px;padding:18px;box-shadow:0 14px 34px rgba(0,0,0,.055);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.market-category-card:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(0,0,0,.09);border-color:rgba(255,193,7,.75)}.market-category-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:12px}.market-category-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#fff3cd;font-size:1.25rem;flex:0 0 42px}.market-category-title{font-weight:900;color:#1f2326;text-decoration:none;display:block;line-height:1.15}.market-category-desc{color:#666;font-size:.88rem;margin:3px 0 0}.subcategory-pills{display:flex;flex-wrap:wrap;gap:7px}.subcategory-pill{display:inline-flex;align-items:center;border:1px solid rgba(0,0,0,.08);background:#f8f5ee;color:#252525;text-decoration:none;border-radius:999px;padding:7px 10px;font-size:.82rem;font-weight:700;line-height:1}.subcategory-pill:hover,.subcategory-pill.active{background:#212529;color:#fff;border-color:#212529}.catalog-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:22px 0 14px}.catalog-head h2{margin:0;font-weight:900}.empty-catalog{background:#fff;border:1px dashed rgba(0,0,0,.18);border-radius:24px;padding:34px;text-align:center;box-shadow:0 14px 34px rgba(0,0,0,.04)}.empty-catalog .emoji{font-size:2.2rem;margin-bottom:10px}.product-card{height:100%}.product-card .product-img{background:#f4f1ea}.category-chip-active{display:inline-flex;align-items:center;gap:8px;border-radius:999px;background:#fff3cd;color:#6b4d00;padding:8px 12px;font-size:.85rem;font-weight:800}@media(max-width:991px){.market-category-card{grid-column:span 6}.marketplace-hero{padding:32px 24px}}@media(max-width:575px){.market-category-card{grid-column:span 12}.marketplace-hero{border-radius:22px;padding:28px 20px}.search-shell{border-radius:20px;padding:12px}.catalog-head{align-items:flex-start;flex-direction:column}}


/* DANDER_PRODUCT_GRID_FIX_V971 */
.trust-chip-install{color:#fff;text-decoration:none}
.trust-chip-install:hover{color:#111;background:#ffd33d;text-decoration:none}
.market-products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem;align-items:stretch}
.market-product-item{min-width:0}
.product-card{display:flex;flex-direction:column;height:100%;overflow:hidden;border:1px solid rgba(15,23,42,.08);border-radius:24px;background:#fff;color:#111827;text-decoration:none;box-shadow:0 14px 32px rgba(15,23,42,.08);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.product-card:hover{transform:translateY(-4px);box-shadow:0 22px 45px rgba(15,23,42,.14);border-color:rgba(251,191,36,.7);color:#111827;text-decoration:none}
.product-image-box{position:relative;width:100%;height:250px;background:#f8fafc;overflow:hidden;border-radius:24px 24px 0 0}
.product-img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.product-no-img{height:100%;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-weight:900;background:linear-gradient(135deg,#f8fafc,#eef2ff)}
.product-count-badge{position:absolute;top:.75rem;right:.75rem;background:rgba(17,24,39,.86);color:#fff;border-radius:999px;padding:.35rem .55rem;font-size:.75rem;font-weight:900}
.product-content{display:flex;flex-direction:column;gap:.45rem;padding:1rem;min-height:210px;flex:1}
.product-content .small-muted{font-size:.78rem;color:#64748b}
.product-title{margin:0;font-size:1.05rem;line-height:1.18;font-weight:950;color:#111827}
.product-desc{margin:0;color:#475569;font-size:.88rem;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rating-row{font-size:.84rem;color:#334155;display:flex;gap:.35rem;align-items:center;margin-top:auto}
.rating-row .star{color:#f59e0b}
.price-line{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;font-weight:950;color:#111827;font-size:1.05rem}
.price-line .price-old{text-decoration:line-through;color:#94a3b8;font-weight:800;font-size:.9rem}
.product-cta{margin-top:.25rem;border-radius:999px;background:#111827;color:#fff;text-align:center;padding:.68rem .9rem;font-weight:950;font-size:.9rem}
.product-card:hover .product-cta{background:#ffc107;color:#111827}
@media(max-width:1100px){.market-products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-image-box{height:230px}}
@media(max-width:780px){.market-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}.product-image-box{height:180px}.product-content{padding:.85rem;min-height:190px}.product-title{font-size:.96rem}.product-desc{font-size:.82rem}.price-line{font-size:.95rem}.market-search{grid-template-columns:1fr}.market-hero{padding:1.4rem}.market-hero h1{font-size:2.35rem}}
@media(max-width:430px){.market-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-card{border-radius:18px}.product-image-box{height:142px;border-radius:18px 18px 0 0}.product-content{padding:9px 10px;min-height:150px;gap:5px}.product-title,.product-card h3{font-size:13px;line-height:1.16}.product-desc{font-size:11.5px;line-height:1.25;-webkit-line-clamp:2}.rating-row,.product-meta,.product-category{font-size:11.5px}.price-line,.price-main,.product-card .price{font-size:14px}.product-cta,.view-pill{padding:.55rem .55rem;font-size:12px}}

.product-card .product-link{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}
.product-image-box img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.photos-badge{position:absolute;top:.75rem;right:.75rem;background:rgba(17,24,39,.86);color:#fff;border-radius:999px;padding:.35rem .6rem;font-size:.75rem;font-weight:900}
.product-card h3{margin:0;font-size:1.08rem;line-height:1.18;font-weight:950;color:#111827}
.product-card .price{font-weight:950;color:#111827}
.product-card .price-old{text-decoration:line-through;color:#94a3b8;font-weight:800}
.view-pill{margin-top:.25rem;border-radius:999px;background:#111827;color:#fff;text-align:center;padding:.68rem .9rem;font-weight:950;font-size:.9rem;display:inline-flex;justify-content:center}
.product-card:hover .view-pill{background:#ffc107;color:#111827}

.offer-badge{position:absolute;top:.75rem;left:.75rem;background:#ef4444;color:#fff;border-radius:999px;padding:.35rem .65rem;font-size:.75rem;font-weight:950}
.product-category{font-size:.78rem;color:#64748b;font-weight:800}
.product-meta{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;font-size:.85rem;color:#334155}
.price-main{font-weight:950;color:#111827;font-size:1.08rem}

.market-trust a{display:inline-flex;align-items:center;gap:6px;padding:9px 13px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);color:#fff;text-decoration:none;font-weight:800;font-size:.88rem}
.market-trust a:hover{color:#111;background:#ffd33d;text-decoration:none}

/* DANDER v9.7.7 - Buzon privado */
.pm-nav-badge{font-size:.67rem;vertical-align:middle}.client-mobile-bottom-nav{grid-template-columns:repeat(5,1fr)}
.pm-hero{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:linear-gradient(135deg,#fff,#fff8df);border:1px solid rgba(0,0,0,.06);border-radius:26px;padding:1.25rem 1.35rem;box-shadow:0 16px 40px rgba(15,23,42,.07)}
.pm-kicker{display:inline-flex;align-items:center;gap:.4rem;color:#806000;background:#fff2b7;border-radius:999px;padding:.25rem .7rem;font-weight:900;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;margin-bottom:.35rem}.pm-kicker::before{content:'✉'}
.pm-shell .card{border:1px solid rgba(15,23,42,.08);border-radius:24px;box-shadow:0 18px 42px rgba(15,23,42,.08)}.pm-sidebar-card{position:sticky;top:92px;overflow:hidden}.pm-search-form .form-control,.pm-search-form .btn{border-radius:14px}.pm-section-title{font-weight:950;text-transform:uppercase;letter-spacing:.04em;font-size:.78rem;color:#6b7280;margin:.6rem 0 .5rem}
.pm-user-list{display:flex;flex-direction:column;gap:.55rem}.pm-user-row{display:flex;align-items:center;gap:.75rem;padding:.75rem;border:1px solid rgba(15,23,42,.07);border-radius:18px;color:#111827;text-decoration:none;background:#fff;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.pm-user-row:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(15,23,42,.08);color:#111827}.pm-user-row.active{border-color:#fbbf24;background:#fffbeb}.pm-avatar{width:42px;height:42px;border-radius:16px;background:linear-gradient(135deg,#111827,#374151);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:950;flex:0 0 42px}.pm-avatar-lg{width:52px;height:52px;border-radius:18px;flex-basis:52px}.pm-user-info{min-width:0;display:block;flex:1}.pm-user-info strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pm-user-info small{display:block;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pm-dot{width:11px;height:11px;background:#ffc107;border-radius:999px;box-shadow:0 0 0 4px rgba(255,193,7,.18);flex:0 0 11px}.pm-empty-small{border:1px dashed rgba(15,23,42,.16);border-radius:16px;padding:.9rem;color:#6b7280;background:#fafafa;font-size:.9rem}.pm-empty-chat{min-height:470px;align-items:center;justify-content:center}.pm-empty-icon{width:76px;height:76px;border-radius:26px;background:#111827;color:#fff;display:flex;align-items:center;justify-content:center;font-size:2rem;margin:0 auto 1rem}.pm-privacy-note{max-width:460px;border-radius:18px;background:#f8fafc;border:1px solid rgba(15,23,42,.08);padding:.8rem;color:#475569;font-weight:700;font-size:.92rem}
.pm-chat-card{overflow:hidden}.pm-chat-head{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1rem 1.1rem;border-bottom:1px solid rgba(15,23,42,.08);background:#fff}.pm-privacy-strip{padding:.65rem 1.1rem;background:#f8fafc;color:#475569;font-weight:700;font-size:.86rem;border-bottom:1px solid rgba(15,23,42,.06)}.pm-chat-body{height:560px;overflow:auto;padding:1.2rem;background:linear-gradient(180deg,#f8fafc,#fff7dc)}.pm-day-pill{width:max-content;max-width:90%;margin:.25rem auto 1rem;padding:.38rem .75rem;background:rgba(17,24,39,.8);color:#fff;border-radius:999px;font-size:.78rem;font-weight:800}.pm-message-row{display:flex;margin-bottom:.75rem}.pm-message-row.mine{justify-content:flex-end}.pm-message-row.theirs{justify-content:flex-start}.pm-message-bubble{max-width:min(74%,520px);padding:.72rem .85rem;border-radius:20px;box-shadow:0 10px 22px rgba(15,23,42,.08);line-height:1.42;overflow-wrap:anywhere}.pm-message-row.mine .pm-message-bubble{background:#111827;color:#fff;border-bottom-right-radius:7px}.pm-message-row.theirs .pm-message-bubble{background:#fff;color:#111827;border:1px solid rgba(15,23,42,.08);border-bottom-left-radius:7px}.pm-message-bubble small{display:block;margin-top:.32rem;opacity:.68;font-size:.72rem;text-align:right}.pm-chat-compose{padding:.9rem;border-top:1px solid rgba(15,23,42,.08);background:#fff}.pm-compose-form{display:flex;gap:.65rem;align-items:flex-end}.pm-compose-form textarea{resize:none;border-radius:18px;min-height:46px;max-height:120px}.pm-compose-form .btn{border-radius:999px;min-height:46px;padding-left:1.1rem;padding-right:1.1rem}
@media(max-width:991.98px){.client-mobile-bottom-nav{grid-template-columns:repeat(5,1fr)}.pm-hero{align-items:flex-start;flex-direction:column}.pm-sidebar-card{position:static}.pm-chat-head{align-items:flex-start;flex-direction:column}.pm-chat-body{height:58vh;min-height:380px}.pm-message-bubble{max-width:86%}.pm-compose-form{gap:.45rem}.pm-compose-form .btn{padding-left:.85rem;padding-right:.85rem}.mobile-bottom-nav.client-mobile-bottom-nav a{font-size:.62rem;min-width:0}}
@media(max-width:430px){.pm-hero{border-radius:20px;padding:1rem}.pm-shell .card{border-radius:20px}.pm-chat-body{padding:.8rem;height:56vh}.pm-message-bubble{max-width:91%;font-size:.93rem}.pm-avatar{width:38px;height:38px;border-radius:14px;flex-basis:38px}.pm-compose-form textarea{font-size:.95rem}.pm-compose-form .btn{font-size:.9rem}.mobile-bottom-nav.client-mobile-bottom-nav span{font-size:.95rem}}


/* =========================================================
   D'Ander v9.7.8 - Chat mejorado: burbujas, emojis y multimedia
   ========================================================= */
.pm-chat-card{border-radius:26px;overflow:hidden;background:#fff}.pm-chat-head{background:linear-gradient(135deg,#ffffff,#fff9e8)}
.pm-privacy-strip{display:flex;align-items:center;gap:.5rem;background:#fff7df;color:#725200;border-bottom:1px solid rgba(180,123,0,.14)}
.pm-chat-body{background:radial-gradient(circle at top left,rgba(255,193,7,.16),transparent 34%),linear-gradient(180deg,#f8fafc,#fffdf7);padding:1.15rem;scroll-behavior:smooth}
.pm-message-row{display:flex;width:100%;margin:.45rem 0}.pm-message-row.mine{justify-content:flex-end}.pm-message-row.theirs{justify-content:flex-start}
.pm-message-bubble{position:relative;max-width:min(76%,560px);padding:.72rem .86rem;border-radius:22px;box-shadow:0 10px 24px rgba(15,23,42,.08);line-height:1.38;overflow-wrap:anywhere;word-break:break-word}
.pm-message-row.mine .pm-message-bubble{background:linear-gradient(135deg,#111827,#263244);color:#fff;border-bottom-right-radius:7px}.pm-message-row.theirs .pm-message-bubble{background:linear-gradient(135deg,#ffffff,#fff8df);color:#111827;border:1px solid rgba(251,191,36,.36);border-bottom-left-radius:7px}
.pm-message-text{white-space:normal}.pm-message-bubble small{display:block;margin-top:.34rem;font-size:.71rem;opacity:.7;text-align:right}.pm-message-row.mine .pm-message-bubble small{color:rgba(255,255,255,.82)}
.pm-attachment{margin-bottom:.45rem}.pm-attachment img{display:block;width:100%;max-width:310px;max-height:330px;object-fit:cover;border-radius:18px;border:1px solid rgba(255,255,255,.18)}.pm-message-row.theirs .pm-attachment img{border-color:rgba(15,23,42,.08)}
.pm-attachment video{display:block;width:100%;max-width:360px;border-radius:18px;background:#000}.pm-attachment audio{display:block;width:min(280px,100%)}.pm-file-link{display:inline-flex;align-items:center;gap:.35rem;color:inherit;font-weight:800;text-decoration:none}.pm-file-link:hover{text-decoration:underline}
.pm-chat-compose{padding:.72rem;border-top:1px solid rgba(15,23,42,.08);background:linear-gradient(180deg,#fff,#fffaf0)}.pm-compose-form{display:flex;gap:.55rem;align-items:flex-end;position:relative}.pm-compose-toolbar{display:flex;gap:.32rem;align-items:center;padding-bottom:.2rem}.pm-tool-btn{width:42px;height:42px;border:1px solid rgba(15,23,42,.1);background:#fff;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:1.05rem;box-shadow:0 7px 18px rgba(15,23,42,.06);transition:transform .15s ease,background .15s ease}.pm-tool-btn:hover{transform:translateY(-1px);background:#fff7df}.pm-tool-btn.recording{background:#fee2e2;border-color:#ef4444;animation:pmPulse 1s infinite}
@keyframes pmPulse{0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,.35)}50%{box-shadow:0 0 0 8px rgba(239,68,68,0)}}.pm-compose-main{flex:1;min-width:0;position:relative}.pm-compose-form textarea{width:100%;resize:none;border-radius:22px;min-height:44px;max-height:120px;padding:.68rem .95rem;border:1px solid rgba(15,23,42,.14);background:#fff}.pm-send-btn{border-radius:999px;min-height:44px;padding-left:1.05rem;padding-right:1.05rem;box-shadow:0 8px 20px rgba(251,191,36,.25)}
.pm-emoji-panel{position:absolute;left:0;right:auto;bottom:calc(100% + 10px);z-index:5;display:grid;grid-template-columns:repeat(10,1fr);gap:.28rem;max-width:340px;padding:.55rem;background:#fff;border:1px solid rgba(15,23,42,.12);border-radius:18px;box-shadow:0 16px 36px rgba(15,23,42,.16)}.pm-emoji-panel button{border:0;background:#f8fafc;border-radius:12px;min-width:28px;height:32px;font-size:1.05rem}.pm-emoji-panel button:hover{background:#fff2b7}.pm-attachment-preview{margin-top:.38rem;padding:.42rem .55rem;border-radius:14px;background:#f8fafc;border:1px solid rgba(15,23,42,.08);display:flex;justify-content:space-between;gap:.6rem;align-items:center;font-size:.82rem;color:#475569}.pm-attachment-preview button{border:0;background:#111827;color:#fff;width:24px;height:24px;border-radius:50%;line-height:1;font-weight:900}
@media(max-width:991.98px){.pm-shell{gap:1rem}.pm-message-bubble{max-width:84%}.pm-chat-body{height:62vh;min-height:410px}.pm-chat-compose{position:sticky;bottom:0;z-index:8}.pm-compose-form{gap:.42rem}.pm-tool-btn{width:39px;height:39px}.pm-compose-toolbar{gap:.22rem}.pm-send-btn{min-width:70px}}
@media(max-width:520px){.pm-chat-head{padding:.85rem}.pm-privacy-strip{font-size:.78rem;padding:.55rem .75rem}.pm-chat-body{padding:.72rem;height:60vh}.pm-message-bubble{max-width:88%;font-size:.94rem;border-radius:19px}.pm-attachment img{max-width:245px;max-height:260px}.pm-attachment video{max-width:260px}.pm-chat-compose{padding:.55rem}.pm-compose-form{align-items:flex-end}.pm-compose-toolbar{flex-direction:row}.pm-tool-btn{width:36px;height:36px;font-size:.95rem}.pm-compose-form textarea{min-height:42px;font-size:.94rem}.pm-send-btn{min-height:42px;padding-left:.85rem;padding-right:.85rem;font-size:.88rem}.pm-emoji-panel{grid-template-columns:repeat(5,1fr);max-width:230px}.pm-hero p{font-size:.9rem}}

/* =========================================================
   D'Ander v9.7.9 - Reacciones, editar y borrar para todos
   ========================================================= */
.pm-message-wrap{display:flex;flex-direction:column;max-width:min(76%,560px)}
.pm-message-row.mine .pm-message-wrap{align-items:flex-end}.pm-message-row.theirs .pm-message-wrap{align-items:flex-start}
.pm-message-wrap .pm-message-bubble{max-width:100%}.pm-message-bubble.is-deleted{background:#f1f5f9!important;color:#64748b!important;border:1px dashed rgba(100,116,139,.32)!important;box-shadow:none;font-style:italic}
.pm-message-deleted{font-weight:800;color:#64748b}.pm-reaction-summary{display:flex;gap:.25rem;flex-wrap:wrap;margin-top:.22rem}.pm-message-row.mine .pm-reaction-summary{justify-content:flex-end}.pm-reaction-pill{display:inline-flex;align-items:center;gap:.18rem;padding:.16rem .42rem;border-radius:999px;background:#fff;border:1px solid rgba(15,23,42,.10);box-shadow:0 6px 14px rgba(15,23,42,.06);font-size:.77rem;line-height:1}.pm-reaction-pill.mine{background:#fff7df;border-color:rgba(251,191,36,.52)}.pm-reaction-pill b{font-size:.72rem;color:#475569}
.pm-message-actions{display:flex;align-items:center;gap:.34rem;flex-wrap:wrap;margin-top:.28rem;opacity:.78;transition:opacity .15s ease}.pm-message-wrap:hover .pm-message-actions{opacity:1}.pm-message-row.mine .pm-message-actions{justify-content:flex-end}.pm-react-form,.pm-delete-form{display:inline-flex;align-items:center;gap:.18rem;margin:0}.pm-react-form button{width:27px;height:27px;border:1px solid rgba(15,23,42,.08);border-radius:999px;background:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:.92rem;line-height:1;box-shadow:0 6px 14px rgba(15,23,42,.05);transition:transform .13s ease,background .13s ease,border-color .13s ease}.pm-react-form button:hover,.pm-react-form button.active{transform:translateY(-1px);background:#fff2b7;border-color:#fbbf24}.pm-action-text,.pm-action-danger{border:0;background:transparent;font-size:.75rem;font-weight:900;padding:.2rem .35rem;border-radius:999px}.pm-action-text{color:#0f172a}.pm-action-text:hover{background:#e2e8f0}.pm-action-danger{color:#dc2626}.pm-action-danger:hover{background:#fee2e2}
.pm-edit-box{width:100%;margin-top:.35rem;padding:.48rem;border-radius:16px;background:#fff;border:1px solid rgba(15,23,42,.10);box-shadow:0 12px 28px rgba(15,23,42,.08)}.pm-edit-box textarea{border-radius:14px;resize:none;min-height:42px}.pm-edit-actions{display:flex;justify-content:flex-end;gap:.4rem;margin-top:.4rem}
@media(max-width:991.98px){.pm-message-wrap{max-width:84%}.pm-message-actions{opacity:1}.pm-react-form button{width:30px;height:30px}.pm-action-text,.pm-action-danger{font-size:.78rem;background:rgba(255,255,255,.78)}}
@media(max-width:520px){.pm-message-wrap{max-width:90%}.pm-react-form{max-width:190px;overflow-x:auto;padding-bottom:1px}.pm-react-form button{flex:0 0 30px}.pm-message-actions{gap:.25rem}.pm-edit-box{padding:.4rem}}

/* =========================================================
   D'Ander v9.7.11 - Acciones limpias por mantener presionado
   ========================================================= */
.pm-message-wrap{position:relative;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.pm-message-wrap.is-pressing .pm-message-bubble{filter:brightness(.985);transform:scale(.995)}
.pm-message-actions{position:absolute;z-index:40;bottom:calc(100% + 9px);display:flex;align-items:center;gap:.38rem;max-width:min(92vw,420px);padding:.32rem;background:rgba(255,255,255,.96);border:1px solid rgba(15,23,42,.10);border-radius:999px;box-shadow:0 18px 40px rgba(15,23,42,.18);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px) scale(.96);transition:opacity .16s ease,transform .16s ease,visibility .16s ease;margin-top:0;backdrop-filter:blur(10px)}
.pm-message-wrap.is-actions-open .pm-message-actions{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1)}
.pm-message-row.mine .pm-message-actions{right:0;left:auto;justify-content:flex-end}.pm-message-row.theirs .pm-message-actions{left:0;right:auto;justify-content:flex-start}
.pm-message-actions::after{content:'';position:absolute;bottom:-7px;width:14px;height:14px;background:rgba(255,255,255,.96);border-right:1px solid rgba(15,23,42,.10);border-bottom:1px solid rgba(15,23,42,.10);transform:rotate(45deg)}
.pm-message-row.mine .pm-message-actions::after{right:22px}.pm-message-row.theirs .pm-message-actions::after{left:22px}
.pm-react-form{display:inline-flex;align-items:center;gap:.16rem;margin:0;background:#f8fafc;border:1px solid rgba(15,23,42,.06);border-radius:999px;padding:.14rem;max-width:none;overflow:visible}.pm-delete-form{display:inline-flex;align-items:center;margin:0}
.pm-react-form button{width:32px;height:32px;border:0;border-radius:999px;background:transparent;box-shadow:none;font-size:1rem}.pm-react-form button:hover,.pm-react-form button.active{transform:translateY(-1px) scale(1.06);background:#fff2b7;border-color:transparent}
.pm-action-text,.pm-action-danger{background:#f8fafc;border:1px solid rgba(15,23,42,.08);font-size:.76rem;font-weight:950;padding:.38rem .62rem;border-radius:999px;white-space:nowrap}.pm-action-text{color:#111827}.pm-action-text:hover{background:#e5e7eb}.pm-action-danger{color:#dc2626}.pm-action-danger:hover{background:#fee2e2}
.pm-message-wrap:hover .pm-message-actions{opacity:0;visibility:hidden;pointer-events:none}.pm-message-wrap.is-actions-open:hover .pm-message-actions{opacity:1;visibility:visible;pointer-events:auto}
.pm-message-bubble{cursor:default}.pm-message-wrap[data-pm-longpress-wrap] .pm-message-bubble{cursor:pointer}
@media(max-width:991.98px){.pm-message-actions{bottom:calc(100% + 8px);gap:.3rem}.pm-react-form button{width:33px;height:33px}.pm-action-text,.pm-action-danger{font-size:.75rem;background:#fff}}
@media(max-width:520px){.pm-message-actions{max-width:88vw;padding:.28rem;border-radius:22px;gap:.28rem}.pm-react-form{max-width:205px;overflow-x:auto;scrollbar-width:none}.pm-react-form::-webkit-scrollbar{display:none}.pm-react-form button{flex:0 0 32px;width:32px;height:32px}.pm-action-text,.pm-action-danger{padding:.34rem .52rem;font-size:.72rem}.pm-message-row.mine .pm-message-actions{right:0}.pm-message-row.theirs .pm-message-actions{left:0}}

/* v9.7.12 - acciones limpias por mantener presionado */
.pm-message-wrap[data-pm-longpress-wrap] .pm-message-bubble{
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
  touch-action:manipulation;
}
.pm-message-wrap.is-actions-open .pm-message-bubble{
  box-shadow:0 14px 34px rgba(15,23,42,.16);
}

/* v9.8.0 - Checklist ejecutivo / ISO-ready */
.check-hero{display:flex;justify-content:space-between;gap:24px;align-items:stretch;background:linear-gradient(135deg,#fff7ed,#fff,#eef2ff);border:1px solid rgba(15,23,42,.08);border-radius:28px;padding:24px;box-shadow:0 18px 50px rgba(15,23,42,.08)}
.check-hero .eyebrow{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#9a3412;background:#ffedd5;border-radius:999px;padding:6px 12px;margin-bottom:10px}
.fw-black{font-weight:950}.check-score{min-width:190px;border-radius:24px;background:#111827;color:#fff;padding:18px;text-align:center;display:grid;place-items:center;gap:6px}.check-score span,.check-score small{color:#d1d5db}.check-score strong{font-size:2.3rem;line-height:1}.check-stat{border-radius:22px;padding:18px 20px;background:#fff;border:1px solid rgba(15,23,42,.08);box-shadow:0 12px 34px rgba(15,23,42,.06)}.check-stat span{display:block;color:#64748b;font-size:.86rem;font-weight:800}.check-stat strong{font-size:2rem;line-height:1}.check-stat.ok{border-left:6px solid #16a34a}.check-stat.warning{border-left:6px solid #f59e0b}.check-stat.critical{border-left:6px solid #dc2626}.check-stat.total{border-left:6px solid #111827}.check-card{border:0;border-radius:24px;box-shadow:0 18px 44px rgba(15,23,42,.08)}.check-list .list-group-item{border-color:rgba(15,23,42,.08);padding-top:16px;padding-bottom:16px}.check-plan{padding-left:1.1rem}.check-plan li{margin-bottom:12px;color:#334155}
@media(max-width:768px){.check-hero{flex-direction:column;border-radius:22px;padding:18px}.check-score{min-width:0}.check-stat{padding:14px 16px}.check-score strong{font-size:2rem}}


/* DANDER_UI_V10_1 - microanimación visible para botones sin agrandar demasiado */
@keyframes danderButtonPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.045); }
  100% { transform: scale(1); }
}

.dander-tap-pop {
  animation: danderButtonPop .22s cubic-bezier(.2,.8,.2,1);
}

/* DANDER_VIDEO_PRODUCTOS_V10 - videos en productos y botones con microtransición */
.btn,
button:not(.gallery-arrow):not(.navbar-toggler):not(.accordion-button),
.view-pill,
.product-cta,
.subcategory-strip a,
.mobile-category-scroller a {
  transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.btn:active,
button:not(.gallery-arrow):not(.navbar-toggler):not(.accordion-button):active,
.view-pill:active,
.product-cta:active,
.subcategory-strip a:active,
.mobile-category-scroller a:active {
  transform: scale(1.035);
}

.product-video-main {
  width: 100%;
  height: min(66vh, 620px);
  object-fit: contain;
  background: #111;
  border-radius: 20px;
}

.gallery-thumb video,
.admin-gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
  border-radius: 12px;
}

.gallery-thumb-video {
  position: relative;
  background: #111;
}

.gallery-play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  text-shadow: 0 3px 12px rgba(0,0,0,.45);
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.28));
  pointer-events: none;
}

.video-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: rgba(220, 38, 38, .92);
  color: #fff;
  border-radius: 999px;
  padding: .35rem .6rem;
  font-size: .75rem;
  font-weight: 900;
}

.photos-badge.has-video {
  top: 2.75rem;
}

.admin-gallery-item video {
  height: 130px;
}


/* El cliente no debe ver contadores de fotos/videos encima de la foto del producto. */
.product-image-box .photos-badge,
.product-image-box .video-badge {
  display: none !important;
}


/* DANDER_UI_V10_5 - Botón Menú más visible en celular Android/iPhone */
.dander-menu-toggler {
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  padding: .54rem 1rem;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  color: #111;
  font-weight: 950;
  letter-spacing: .01em;
  background: linear-gradient(135deg, var(--dander-gold), #ffe082 88%);
  box-shadow: 0 10px 24px rgba(255, 193, 7, .30), inset 0 1px 0 rgba(255,255,255,.62);
  transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s ease, background .16s ease;
}

.navbar-dark .dander-menu-toggler,
.navbar-dark .dander-menu-toggler:hover,
.navbar-dark .dander-menu-toggler:focus {
  color: #111;
  background: linear-gradient(135deg, var(--dander-gold), #fff0a3 88%);
}

.dander-menu-toggler:hover,
.dander-menu-toggler:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 193, 7, .36), 0 0 0 .18rem rgba(255, 193, 7, .18);
}

.dander-menu-toggler:active {
  transform: scale(1.035);
}

.dander-menu-toggler[aria-expanded="true"] {
  background: linear-gradient(135deg, #ffd43b, #fff4bd 88%);
  box-shadow: 0 12px 28px rgba(255, 193, 7, .42), 0 0 0 .14rem rgba(255,255,255,.18);
}

.dander-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transform: translateY(-1px);
}

.dander-menu-text {
  font-size: .92rem;
  line-height: 1;
}

@keyframes danderMenuSoftPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(255, 193, 7, .30), inset 0 1px 0 rgba(255,255,255,.62); }
  50% { box-shadow: 0 14px 32px rgba(255, 193, 7, .46), 0 0 0 .18rem rgba(255, 193, 7, .12), inset 0 1px 0 rgba(255,255,255,.72); }
}

@media (max-width: 991.98px) {
  .app-navbar .container {
    align-items: center;
    flex-wrap: wrap;
  }

  .app-navbar .navbar-brand {
    margin-right: auto;
    min-width: 0;
  }

  .app-navbar .dander-menu-toggler {
    display: inline-flex;
    margin-left: auto;
    animation: danderMenuSoftPulse 2.8s ease-in-out infinite;
  }

  .app-navbar .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .dander-menu-toggler {
    padding: .5rem .82rem;
    min-height: 40px;
  }

  .dander-menu-text {
    font-size: .86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-navbar .dander-menu-toggler {
    animation: none;
  }
}


/* v10.6 - Footer D'Ander más claro para marketplace peruano */
.dander-footer .footer-brand-copy {
  line-height: 1.55;
  font-weight: 700;
}
.dander-footer .footer-brand-copy strong {
  color: #343a40;
  white-space: nowrap;
}
.dander-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  justify-content: flex-end;
}
.dander-footer .footer-links a {
  margin-right: 0 !important;
  font-weight: 800;
  line-height: 1.25;
}
@media (max-width: 767.98px) {
  .dander-footer {
    padding-left: .35rem;
    padding-right: .35rem;
  }
  .dander-footer .footer-brand-copy {
    font-size: .94rem;
  }
  .dander-footer .footer-links {
    justify-content: flex-start;
    gap: .55rem .9rem;
  }
  .dander-footer .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }
}
