/* ============================================================
   MARKETPLACE — Estilos principales
   ============================================================ */

:root {
  --primary:    #0a2d6e;
  --primary-h:  #071e4a;
  --accent:     #1a56a8;
  --accent-h:   #154496;
  --dark:       #0d1b2a;
  --muted:      #6b7280;
  --light-bg:   #f0f4fa;
  --border:     #e5e7eb;
  --card-shadow: 0 2px 12px rgba(10,45,110,.08);
  --card-shadow-h: 0 8px 30px rgba(10,45,110,.15);
  --radius: 14px;
  --radius-sm: 8px;
  --sidebar-w: 250px;
  --topbar-h: 60px;
}

* { box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; color: var(--dark); background: #fff; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  background: var(--dark);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  padding: .75rem 0;
}
.navbar-brand { font-size: 1.2rem; letter-spacing: -.3px; }
.nav-link { font-size: .9rem; font-weight: 500; padding: .4rem .85rem !important; border-radius: 8px; transition: background .15s; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.1); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: .875rem;
  transition: background .15s, transform .1s;
}
.btn-accent:hover { background: var(--accent-h); color: #fff; transform: translateY(-1px); }

/* ── Hero ────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 60%, var(--accent) 100%);
  color: #fff;
  padding: 80px 0 60px;
}
.hero-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; margin-bottom: .75rem; }
.hero-subtitle { font-size: 1.1rem; opacity: .85; margin-bottom: 2rem; }
.hero-search-input { max-width: 420px; border-radius: 10px; border: none; padding: .7rem 1.1rem; font-size: 1rem; }

/* ── Hero search tabs ────────────────────────────────────── */
.hero-search-wrap { max-width: 560px; margin: 0 auto; }
.hero-search-tabs {
    display: inline-flex;
    background: rgba(255,255,255,.15);
    border-radius: 30px;
    padding: 4px;
    margin-bottom: 16px;
    gap: 2px;
}
.hero-tab {
    background: none;
    border: none;
    color: rgba(255,255,255,.75);
    font-family: 'Poppins', sans-serif;
    font-size: .875rem;
    font-weight: 500;
    padding: .45rem 1.2rem;
    border-radius: 24px;
    cursor: pointer;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.hero-tab:hover  { color: #fff; background: rgba(255,255,255,.12); }
.hero-tab.active { background: #fff; color: var(--primary); font-weight: 600; }

/* ── Section ─────────────────────────────────────────────── */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.section-title { font-size: 1.35rem; font-weight: 700; margin: 0; }
.section-link { color: var(--accent); font-weight: 600; text-decoration: none; font-size: .9rem; }
.section-link:hover { text-decoration: underline; }

/* ── Store Card ──────────────────────────────────────────── */
.store-card {
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
  background: #fff;
}
.store-card:hover { box-shadow: var(--card-shadow-h); transform: translateY(-4px); }

/* ── Ticker rotativo (novedades + nuevas tiendas) ───────────────────── */
.nticker-wrap {
    display: flex;
    align-items: center;
    background: #0f172a;
    height: 40px;
    overflow: hidden;
    gap: 0;
}
.nticker-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: .4rem;
    background: var(--accent, #1a56a8);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 0 14px;
    height: 100%;
    white-space: nowrap;
}
.nticker-label span { display: none; }
@media (min-width: 500px) { .nticker-label span { display: inline; } }

.nticker-stage {
    flex: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
}
.nticker-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: 0 1rem;
    font-size: .8rem;
    color: #cbd5e1;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(100%);
    transition: none;
    pointer-events: none;
}
.nticker-item.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: auto;
}
.nticker-item.out {
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
}
.nticker-item.incoming {
    opacity: 0;
    transform: translateY(100%);
    transition: none;
}
.nticker-item:hover { color: #e2e8f0; }
.nticker-icon {
    flex-shrink: 0;
    font-size: .72rem;
}
.nticker-icon--promo  { color: #f59e0b; }
.nticker-icon--tienda { color: #34d399; }

.nticker-dots {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
}
.nticker-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    transition: background .3s;
    display: block;
}
.nticker-dot.on { background: var(--accent, #1a56a8); }
/* ── Fin ticker ────────────────────────────────────────────────────── */

.store-card-banner { position: relative; height: 90px; }
.store-banner-img { width: 100%; height: 100%; object-fit: cover; }
.store-banner-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #dce8f7, #a8c4e8); }
.store-card-featured-badge {
    position: absolute; top: 6px; right: 6px;
    background: #f59e0b; color: #fff;
    font-size: .63rem; font-weight: 700;
    padding: 2px 7px; border-radius: 20px;
    letter-spacing: .03em;
}
.store-rating-mini { font-size: .72rem; margin-bottom: .3rem; }
.rating-widget { display: inline-block; text-align: center; }
.rating-stars .rating-star { transition: color .1s; }

.store-logo-wrap { position: absolute; bottom: -22px; left: 14px; }
.store-logo {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  background: #fff;
  display: block;
}
.store-logo-placeholder {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid #fff;
  background: #dce8f7;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}

.store-card-body { padding: 32px 14px 14px; text-align: center; }
.store-name { font-weight: 700; font-size: 1rem; margin: 0 0 .2rem; color: var(--dark); letter-spacing: -.01em; }
.store-category { font-size: .72rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: .35rem; }

/* Ubicación */
.store-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    font-size: .75rem;
    color: #374151;
    font-weight: 500;
    margin-bottom: .4rem;
    line-height: 1.35;
}
.store-location i { color: var(--accent); flex-shrink: 0; }

.store-meta { font-size: .78rem; color: var(--muted); text-align: center; }

/* ── Store tags (palabras clave) ─────────────────────────── */
.store-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    justify-content: center;
    margin-top: .5rem;
}
.store-tag {
    display: inline-block;
    font-size: .65rem;
    font-weight: 600;
    color: var(--accent);
    background: #e8f0fb;
    border: 1px solid #c3d9f5;
    border-radius: 20px;
    padding: 2px 8px;
    line-height: 1.6;
    letter-spacing: .01em;
    transition: background .15s, color .15s;
}
.store-card:hover .store-tag {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ── Product Card ────────────────────────────────────────── */
.product-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    color: inherit;
    background: #fff;
    transition: box-shadow .25s, transform .25s;
    text-decoration: none;
}
.product-card:hover {
    box-shadow: 0 12px 36px rgba(10,45,110,.13);
    transform: translateY(-5px);
    border-color: #c3d9f5;
}

/* Imagen: ocupa todo el ancho, ratio 4:3 */
.product-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
    display: block;
}
.product-card:hover .product-img { transform: scale(1.07); }
.product-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.product-placeholder-title {
    position: relative; z-index: 1; color: #fff;
    font-weight: 800;
    font-size: clamp(1rem, 3vw, 1.25rem);
    text-align: center;
    padding: .75rem 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
    line-height: 1.2;
    letter-spacing: -.01em;
    word-break: break-word;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card--sm .product-placeholder-title,
.product-card--compact .product-placeholder-title { font-size: clamp(.85rem, 2.5vw, 1rem); padding: .5rem .65rem; }
.product-type-badge {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,.52); backdrop-filter: blur(4px);
    color: #fff; font-size: .68rem; font-weight: 600;
    padding: 3px 9px; border-radius: 20px; letter-spacing: .02em;
}
.product-featured-badge {
    position: absolute; top: 10px; right: 10px;
    background: linear-gradient(135deg,#f59e0b,#d97706);
    color: #fff; font-size: .65rem; font-weight: 700;
    padding: 3px 8px; border-radius: 20px;
}

.product-card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Tienda */
.product-store {
    font-size: .68rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .01em;
    margin-bottom: .3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nombre */
.product-name {
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: auto;
    padding-bottom: .65rem;
    color: #111827;
    line-height: 1.35;
    letter-spacing: -.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fila precio + flecha */
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    padding-top: .6rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 0;
}

/* Precio */
.product-price {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--accent);
    margin: 0;
    line-height: 1;
    letter-spacing: -.02em;
}

.product-card-arrow {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #eef3fb;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: .85rem;
    transition: background .2s, color .2s, transform .2s;
    flex-shrink: 0;
}
.product-card:hover .product-card-arrow {
    background: var(--accent);
    color: #fff;
    transform: translateX(2px);
}

/* ── Category chips ─────────────────────────────────────── */
.cat-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.cat-chips-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}
.cat-chips-scroll::-webkit-scrollbar { display: none; }
.cat-chips {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: min-content;
    padding: 4px 2px;
}
@media (min-width: 768px) {
    .cat-chips { flex-wrap: wrap; justify-content: center; }
}
.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .875rem;
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid transparent;
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, opacity .15s;
    cursor: pointer;
    line-height: 1;
}
.cat-chip i {
    font-size: 1.05rem;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
    flex-shrink: 0;
}
.cat-chip:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 22px rgba(0,0,0,.13);
    text-decoration: none;
}
.cat-chip:hover i { transform: scale(1.2) rotate(-5deg); }
.cat-chip:active { transform: translateY(-1px); }
/* Chip "Todas" especial */
.cat-chip--all {
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(26,86,168,.3);
}
.cat-chip--all:hover { box-shadow: 0 8px 24px rgba(26,86,168,.4); color: #fff !important; }

/* ── Steps / Cómo funciona ───────────────────────────────── */
.steps-section {
    background: linear-gradient(160deg, #eef3fb 0%, #dce8f7 55%, #eef3fb 100%);
    border-top: 1px solid #b8d3ef;
    border-bottom: 1px solid #b8d3ef;
}
.steps-eyebrow {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(26,86,168,.1);
    padding: .3rem 1rem;
    border-radius: 20px;
    margin-bottom: .75rem;
}
.steps-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #1f2937;
    margin-bottom: .4rem;
    letter-spacing: -.025em;
}
.steps-subtitle {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 0;
}
.steps-row {
    position: relative;
}
/* Línea conectora entre pasos — solo desktop */
@media (min-width: 768px) {
    .steps-row::before {
        content: '';
        position: absolute;
        top: 52px;
        left: 16%;
        right: 16%;
        height: 2px;
        background: repeating-linear-gradient(90deg, #7aaad8 0, #7aaad8 8px, transparent 8px, transparent 18px);
        z-index: 0;
    }
}
.step-item {
    text-align: center;
    padding: 1rem .75rem 1.25rem;
    position: relative;
    z-index: 1;
}
.step-number {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .7rem;
    box-shadow: 0 3px 10px rgba(26,86,168,.35);
    letter-spacing: 0;
}
.step-number--last {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 3px 10px rgba(245,158,11,.4);
}
.step-icon-wrap {
    width: 72px; height: 72px;
    border-radius: 22px;
    background: #fff;
    border: 2px solid #b8d3ef;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    color: var(--accent);
    margin: 0 auto 1rem;
    box-shadow: 0 4px 18px rgba(26,86,168,.1);
    transition: transform .28s ease, box-shadow .28s ease;
}
.step-icon-wrap--last {
    color: #f59e0b;
    border-color: #fde68a;
}
.step-item:hover .step-icon-wrap {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 10px 28px rgba(26,86,168,.2);
}
.step-item:hover .step-icon-wrap--last {
    box-shadow: 0 10px 28px rgba(245,158,11,.2);
}
.step-title {
    font-weight: 700;
    font-size: .93rem;
    color: #1f2937;
    margin-bottom: .3rem;
}
.step-desc {
    font-size: .8rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}

/* ── CTA ─────────────────────────────────────────────────── */
.cta-section { background: var(--light-bg); }

/* ── Hero slideshow ──────────────────────────────────────── */
.hero-slideshow { position: relative; overflow: hidden; }

.hero-bg-slides {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
    transform: scale(1.04);
    animation: hero-ken-burns 12s ease-in-out infinite alternate;
}
.hero-bg-slide.active {
    opacity: 1;
}
@keyframes hero-ken-burns {
    from { transform: scale(1.04); }
    to   { transform: scale(1.00); }
}
.hero-bg-overlay {
    position: absolute; inset: 0; z-index: 1;
    /* Color base azul marino — se sobreescribe con inline style desde config */
    background: linear-gradient(135deg,rgba(5,20,60,.85) 0%,rgba(10,45,110,.70) 55%,rgba(10,45,110,.50) 100%);
}

/* ── Hero rediseñado ─────────────────────────────────────── */
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.95); font-size: .8rem; font-weight: 600;
    padding: .3rem .9rem; border-radius: 99px; margin-bottom: 1rem;
    letter-spacing: .02em;
}
.hero-title-highlight {
    background: linear-gradient(90deg, #7aaad8, #93d5f8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.btn-hero-primary {
    background: #fff; color: var(--accent); border: none;
    font-weight: 700; border-radius: 10px;
    transition: background .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.btn-hero-primary:hover { background: #eef3fb; color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.btn-hero-secondary {
    background: rgba(255,255,255,.15); color: #fff;
    border: 1.5px solid rgba(255,255,255,.4);
    font-weight: 600; border-radius: 10px;
    transition: background .15s, transform .1s;
    backdrop-filter: blur(4px);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.25); color: #fff; transform: translateY(-2px); }
.hero-benefits {
    display: flex; flex-wrap: wrap; gap: .5rem .75rem;
    justify-content: center;
}
@media (min-width: 992px) { .hero-benefits { justify-content: flex-start; } }
.hero-benefit {
    display: flex; align-items: center; gap: .35rem;
    color: rgba(255,255,255,.9); font-size: .82rem; font-weight: 500;
}
.hero-benefit i { color: #86efac; font-size: .9rem; }
.hero-search-card {
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    border-radius: 16px; padding: 1.5rem; backdrop-filter: blur(8px);
}
.hero-stats-row {
    display: flex; align-items: center; justify-content: center;
    gap: .75rem; margin-top: 1.25rem; padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat { text-align: center; }
.hero-stat-num { display: block; font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.1; }
.hero-stat-label { font-size: .72rem; color: rgba(255,255,255,.7); white-space: nowrap; }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.2); flex-shrink: 0; }

/* ── Beneficios ──────────────────────────────────────────── */
.benefits-section { background: #fff; }
.benefit-card {
    background: #fafafa; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem;
    text-align: center; height: 100%;
    transition: box-shadow .2s, transform .2s;
}
.benefit-card:hover { box-shadow: var(--card-shadow-h); transform: translateY(-3px); }
.benefit-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin: 0 auto .75rem;
}
.benefit-title { font-size: .875rem; font-weight: 700; margin-bottom: .35rem; color: var(--dark); }
.benefit-desc  { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ── Prueba social ───────────────────────────────────────── */
.social-proof-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    padding: 2.5rem 0;
}
.social-proof-grid {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 0; border-radius: var(--radius); overflow: hidden;
}
.social-proof-item {
    flex: 1 1 180px; text-align: center; padding: 1.5rem 1rem;
    border-right: 1px solid rgba(255,255,255,.1);
}
.social-proof-item:last-child { border-right: none; }
.social-proof-icon { display: block; font-size: 1.5rem; color: rgba(255,255,255,.6); margin-bottom: .5rem; }
.social-proof-num { display: block; font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1.1; }
.social-proof-label { font-size: .75rem; color: rgba(255,255,255,.65); }

/* ── Reglas ──────────────────────────────────────────────── */
.rules-section { background: #fafafa; border-top: 1px solid var(--border); }
.rule-card {
    display: flex; align-items: flex-start; gap: .75rem;
    background: #fff; border: 1px solid #fee2e2; border-radius: var(--radius-sm);
    padding: 1rem;
}
.rule-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: .1rem; }
.rule-title { font-size: .83rem; font-weight: 700; color: var(--dark); margin-bottom: .2rem; }
.rule-desc  { font-size: .75rem; color: var(--muted); margin: 0; line-height: 1.4; }

/* ── Page hero ───────────────────────────────────────────── */
.page-hero { background: var(--light-bg); border-bottom: 1px solid var(--border); }

/* ── Auth ────────────────────────────────────────────────── */
.auth-wrapper { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 200px); padding: 2rem 1rem; }
.auth-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 2.5rem; width: 100%; max-width: 440px; box-shadow: var(--card-shadow); }
.auth-logo { text-align: center; color: var(--accent); margin-bottom: .75rem; }
.auth-title { text-align: center; font-weight: 700; margin-bottom: 1.5rem; }

/* ── Store detail header ─────────────────────────────────── */
.store-header-wrap { background: #fff; border-bottom: 1px solid var(--border); }

/* Banner con overlay de gradiente */
.store-header-banner {
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d1b2a 0%, #0a2d6e 100%);
    position: relative;
}
@media (max-width: 575px) { .store-header-banner { height: 200px; } }
.store-header-banner-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.store-header-banner-placeholder { width: 100%; height: 100%; }

/* Overlay degradado de abajo hacia arriba */
.store-header-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; /* inset: 0 — compatibilidad con browsers viejos */
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.08) 0%,
        rgba(0,0,0,.30) 45%,
        rgba(0,0,0,.70) 100%
    );
}

/* Contenido dentro del overlay, alineado al fondo — centrado */
.store-header-inner {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0 0 1.25rem;
}
.store-header-inner > .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    text-align: center;
}

/* Logo redondo con borde blanco */
.store-header-logo {
    width: 76px; height: 76px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.9);
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
    background: #dce8f7;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--accent);
}
@media (max-width: 575px) { .store-header-logo { width: 60px; height: 60px; } }
.store-header-logo img { width: 100%; height: 100%; object-fit: cover; }

.store-header-text { min-width: 0; text-align: center; }
.store-header-name {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
    margin: 0 0 .2rem;
    line-height: 1.15;
}
@media (max-width: 575px) { .store-header-name { font-size: 1.3rem; } }
.store-header-badges { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; justify-content: center; }
.store-header-badge-featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 20px;
    border: none;
    box-shadow: 0 2px 8px rgba(245,158,11,.4);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.store-header-badge-cat {
    background: rgba(255,255,255,.2);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    padding: .15rem .55rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.35);
}
.store-header-badge-loc {
    color: rgba(255,255,255,.85);
    font-size: .75rem;
    display: flex;
    align-items: center;
    gap: .25rem;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* Fila de meta debajo del banner — centrada */
.store-header-meta {
    padding: 1rem 0 1.25rem;
    border-top: none;
    text-align: center;
}
.store-header-desc {
    color: var(--muted);
    font-size: .9rem;
    margin: 0 auto .75rem;
    max-width: 640px;
}

/* Banner position picker */
.banner-pos-btn { background: #f3f4f6; border: 2px solid var(--border); border-radius: 6px; padding: 4px 12px; font-size: .82rem; cursor: pointer; transition: border-color .15s, background .15s; }
.banner-pos-btn:hover { background: #dce8f7; border-color: var(--accent); }
.banner-pos-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Store mini card (in product detail) ─────────────────── */
.store-mini-card { background: var(--light-bg); border-radius: var(--radius-sm); padding: 1rem; border: 1px solid var(--border); }
.store-mini-logo {
  width: 44px; height: 44px; border-radius: 50%;
  background: #dce8f7; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.store-mini-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Product gallery (detail) ────────────────────────────── */
.product-main-img-wrap { background: var(--light-bg); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; min-height: 300px; max-height: 460px; overflow: hidden; }
.product-main-img { max-width: 100%; max-height: 440px; border-radius: var(--radius); object-fit: contain; padding: 12px; }
.product-thumb { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; cursor: pointer; border: 3px solid transparent; transition: border-color .15s; background: var(--light-bg); padding: 3px; }
.product-thumb.active, .product-thumb:hover { border-color: var(--accent); }
.product-img-placeholder-lg { background: var(--light-bg); border-radius: var(--radius); min-height: 300px; }

/* ── Product card —sm (sección "Más de la tienda") ── */
.product-card--sm .product-img-wrap   { aspect-ratio: 4 / 3; }
.product-card--sm .product-img        { object-fit: cover; }
.product-card--sm .product-card-body  { padding: .65rem .85rem .75rem; }
.product-card--sm .product-name       { font-size: .83rem; }
.product-card--sm .product-price      { font-size: .88rem; }
.product-card--sm .product-card-arrow { width: 26px; height: 26px; font-size: .74rem; }

/* ── Product card —compact (grilla de tienda) ── */
.product-card--compact .product-img-wrap  { aspect-ratio: 4 / 3; }
.product-card--compact .product-img       { object-fit: cover; }
.product-card--compact .product-card-body { padding: .5rem .7rem .6rem; }
.product-card--compact .product-name      { font-size: .8rem; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.product-card--compact .product-price     { font-size: .82rem; }
.product-card--compact .product-card-arrow { width: 24px; height: 24px; font-size: .7rem; }

/* Bloque de precio en detalle de producto */
.product-price-block {
    display: inline-block;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem 1rem 1.25rem;
}
.product-price-label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: .4rem;
}
.product-detail-price {
    display: block;
    font-size: 2.4rem;
    font-weight: 900;
    color: #111827;
    letter-spacing: -.04em;
    line-height: 1;
}
.product-detail-price .price-currency {
    font-size: 1.3rem;
    font-weight: 700;
    color: #374151;
    vertical-align: super;
    margin-right: 2px;
    letter-spacing: 0;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--dark); color: #d1d5db; padding: 3rem 0 1.5rem; }
.footer .text-muted { color: #a8b0be !important; }
.footer h5, .footer h6 { color: #f3f4f6; }
.footer-link { color: #9ca3af; text-decoration: none; font-size: .875rem; display: block; margin-bottom: .3rem; transition: color .15s; }
.footer-link:hover { color: #fff; }
.social-icon { color: #9ca3af; transition: color .15s; }
.social-icon:hover { color: #fff; }

/* ── Admin layout ────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; background: #f3f4f6; }

.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--dark);
  color: #d1d5db;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex; align-items: center;
  padding: 1.25rem 1.25rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.sidebar-nav { padding: .75rem .5rem; flex: 1; }
.sidebar-section { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #6b7280; padding: .5rem .75rem .25rem; }
.sidebar-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .75rem;
  border-radius: 8px;
  color: #9ca3af;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.sidebar-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-link.active { background: var(--accent); color: #fff; }

.admin-main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.admin-topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  flex-shrink: 0;
  z-index: 10;
}
.admin-page-title { font-size: 1.1rem; font-weight: 600; }
.admin-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
}
.panel-avatar { background: #059669; }
.admin-content { padding: 1.5rem; flex: 1; overflow-y: auto; }

/* ── Stat cards ──────────────────────────────────────────── */
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.stat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.bg-primary-soft { background: #dce8f7; }
.bg-success-soft { background: #d1fae5; }
.bg-warning-soft { background: #fef3c7; }
.bg-info-soft    { background: #dbeafe; }
.bg-accent-soft  { background: #dce8f7; }
.text-accent     { color: var(--accent); }

.stat-label { font-size: .78rem; color: var(--muted); margin-bottom: .15rem; font-weight: 500; }
.stat-value { font-size: 1.5rem; font-weight: 700; margin: 0; color: var(--dark); }

/* ── Admin card ──────────────────────────────────────────── */
.admin-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.admin-card-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); background: #fafafa; }
.admin-card > form,
.admin-card > .table-responsive,
.admin-card > .row { padding: 1.25rem; }
.admin-card > .table-responsive { padding: 0; }

/* ── Quick actions (panel) ───────────────────────────────── */
.quick-action-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--dark);
  text-align: center;
  transition: box-shadow .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.quick-action-card:hover { box-shadow: var(--card-shadow-h); border-color: var(--accent); transform: translateY(-2px); color: var(--accent); }

/* ── Store/Product avatars in tables ─────────────────────── */
.store-avatar-sm {
  width: 36px; height: 36px; border-radius: 50%;
  background: #dce8f7; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
  flex-shrink: 0;
}
.product-avatar-sm {
  width: 44px; height: 44px; border-radius: 8px;
  background: #f3f4f6; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Image preview in forms ──────────────────────────────── */
.img-preview-item { position: relative; display: inline-block; }
.img-delete-btn {
  position: absolute; top: -6px; right: -6px;
  cursor: pointer; font-size: 1rem; line-height: 1;
}

/* ── Panel sidebar accent ────────────────────────────────── */
.sidebar-panel .sidebar-link.active { background: #059669; }
.sidebar-panel { border-right: none; }

/* ── Share bar ───────────────────────────────────────────── */
.share-bar {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 16px 14px;
    display: inline-block;
    max-width: 100%;
}
.share-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
    margin-bottom: 10px;
    text-align: center;
}
.share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

/* Cada ítem: círculo + label */
.share-btn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    min-width: 52px;
}
.share-btn-item span {
    font-size: .68rem;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
}
.share-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: transform .15s, box-shadow .15s;
}
.share-btn-item:hover .share-icon-circle,
.share-btn-item:focus .share-icon-circle {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 5px 14px rgba(0,0,0,.2);
}
.share-btn-item:active .share-icon-circle {
    transform: scale(.94);
}
/* Colores de cada red */
.share-ic-copy    { background: #6b7280; }
.share-ic-copy.copied { background: #059669; }
.share-ic-native  { background: var(--accent); }
.share-ic-wa      { background: #25D366; }
.share-ic-fb      { background: #1877F2; }
.share-ic-x       { background: #000; }
.share-ic-tg      { background: #229ED9; }

/* ── Desktop (≥576px): pills horizontales ────────────────── */
@media (min-width: 576px) {
    .share-bar { padding: 10px 14px; }
    .share-label { display: inline; margin-bottom: 0; margin-right: 4px; }
    .share-btns { flex-wrap: nowrap; gap: 6px; }
    .share-btn-item {
        flex-direction: row;
        gap: 6px;
        min-width: unset;
        background: #f1f5f9;
        border-radius: 20px;
        padding: 5px 13px 5px 7px;
        transition: background .15s, transform .1s;
    }
    .share-btn-item:hover { background: #e2e8f0; transform: translateY(-1px); }
    .share-btn-item:active { transform: scale(.97); }
    .share-btn-item span { font-size: .8rem; color: var(--dark); font-weight: 500; }
    .share-icon-circle {
        width: 26px; height: 26px;
        font-size: .85rem;
        box-shadow: none;
    }
    .share-btn-item:hover .share-icon-circle,
    .share-btn-item:focus .share-icon-circle {
        transform: none; box-shadow: none;
    }
    /* Tinted pills por red */
    .share-btn-item.share-wa { background: #dcfce7; }
    .share-btn-item.share-wa:hover { background: #bbf7d0; }
    .share-btn-item.share-fb { background: #dbeafe; }
    .share-btn-item.share-fb:hover { background: #bfdbfe; }
    .share-btn-item.share-x  { background: #f3f4f6; }
    .share-btn-item.share-x:hover  { background: #e5e7eb; }
    .share-btn-item.share-tg { background: #e0f2fe; }
    .share-btn-item.share-tg:hover { background: #bae6fd; }
    .share-native-btn { display: none !important; }
}
/* ── Mobile (<576px): círculos grandes centrados ────────── */
@media (max-width: 575px) {
    .share-btns {
        justify-content: space-around;
        gap: 0;
    }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .admin-main { margin-left: 0; height: 100vh; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    position: fixed;
    z-index: 400;
  }
  .sidebar.show { transform: translateX(0); }
  .admin-content { padding: 1rem; }

  /* Backdrop oscuro al abrir sidebar en mobile */
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 399;
    backdrop-filter: blur(1px);
  }
  .sidebar-backdrop.show { display: block; }
}

@media (max-width: 767px) {
  .hero-section { padding: 50px 0 40px; }
  .store-header-info { flex-direction: column; gap: 1rem; margin-top: -30px; }
  .store-header-logo { width: 64px; height: 64px; }
}

@media (max-width: 575px) {
  /* ── Admin panel ── */
  .admin-content { padding: .85rem; }
  .admin-page-title { font-size: .95rem; }
  .stat-value { font-size: 1.2rem; }
  .stat-card { padding: .85rem 1rem; }
  .stat-icon { width: 38px; height: 38px; font-size: 1rem; }
  .quick-action-card { padding: 1rem .5rem; font-size: .82rem; }
  .quick-action-card .fs-3 { font-size: 1.4rem !important; }

  /* ── Tarjetas de producto — ajuste de tamaño en mobile ── */
  .product-name { font-size: .88rem; }
  .product-price { font-size: .95rem; }
  .product-card-arrow { width: 28px; height: 28px; font-size: .78rem; }
}

/* ── Mobile product cards (panel mis productos) ──────────── */
.prod-mobile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem;
  margin-bottom: .5rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.prod-mobile-img {
  width: 54px; height: 54px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--light-bg);
}
.prod-mobile-placeholder {
  width: 54px; height: 54px;
  border-radius: 10px;
  background: var(--light-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}
.prod-mobile-name {
  font-weight: 600;
  font-size: .88rem;
  color: #1f2937;
  margin-bottom: .1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prod-mobile-meta {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: .4rem;
}
.prod-mobile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}
.prod-mobile-price {
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent);
}

/* ══════════════════════════════════════════════════
   Breadcrumb pill-style
   ══════════════════════════════════════════════════ */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
    padding: 0;
    margin: 0;
    list-style: none;
    background: none;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: .3rem;
}
/* Quita el separador por defecto de Bootstrap */
.breadcrumb-item + .breadcrumb-item::before {
    content: '';
    display: none;
}
/* Flecha SVG entre ítems */
.breadcrumb-item + .breadcrumb-item::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2394a3b8' d='M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06L7.28 12.78a.75.75 0 1 1-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E") center/contain no-repeat;
    order: -1;
    flex-shrink: 0;
}
/* Pill base — ítems con link */
.breadcrumb-item a {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: .75rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
    white-space: nowrap;
    line-height: 1;
}
.breadcrumb-item a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(var(--accent-rgb, 99,102,241),.25);
}
/* Primer ítem: ícono de home */
.breadcrumb-item:first-child a::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='currentColor' d='M8.354 1.146a.5.5 0 0 0-.708 0l-6 6-.146.147V14.5A1.5 1.5 0 0 0 3 16h3.5v-4h3v4H13a1.5 1.5 0 0 0 1.5-1.5V7.293l-.146-.147-6-6z'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}
/* Ítem activo (último, sin link) */
.breadcrumb-item.active {
    display: inline-flex;
    align-items: center;
    padding: .3rem .85rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* ── Online badge ────────────────────────────────────────── */
.online-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.95);
    font-size: .8rem;
    font-weight: 500;
    padding: .3rem .85rem;
    border-radius: 99px;
    backdrop-filter: blur(4px);
}
.online-badge--sm {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: .78rem;
}
.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    animation: pulse-online 2s ease-in-out infinite;
}
.online-badge--sm .online-dot {
    background: #22c55e;
}
@keyframes pulse-online {
    0%, 100% { opacity: 1;   transform: scale(1);    box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
    50%       { opacity: .85; transform: scale(1.15); box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

/* ── PWA Install Banner ──────────────────────────────────────────────────── */
.pwa-install-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1095;
    background: #0a2d6e;
    color: white;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem 1rem;
    box-shadow: 0 -4px 24px rgba(10,45,110,.35);
    border-top: 1px solid rgba(255,255,255,.12);
    animation: pwa-slide-up .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pwa-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.pwa-banner-icon  { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; }
.pwa-banner-text  { flex: 1; min-width: 0; overflow: hidden; }
.pwa-banner-text strong { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwa-banner-text span   { font-size: .74rem; opacity: .78; }

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG — Listado y artículos
═══════════════════════════════════════════════════════════════════════════ */

.blog-hero {
    background: linear-gradient(135deg, #0a2d6e 0%, #1a56a8 100%);
    color: #fff;
    padding: 3.5rem 0 2.5rem;
}
.blog-hero-inner { max-width: 720px; }
.blog-hero-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem .9rem;
    border-radius: 99px;
    margin-bottom: 1rem;
}
.blog-hero-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: .75rem;
    letter-spacing: -.02em;
}
.blog-hero-sub { font-size: 1.05rem; opacity: .9; line-height: 1.6; margin: 0; }

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 1.5rem 0;
    justify-content: center;
}
.blog-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #fff;
    border: 1.5px solid var(--border);
    color: #374151;
    font-size: .85rem;
    font-weight: 600;
    padding: .5rem 1rem;
    border-radius: 99px;
    text-decoration: none;
    transition: all .2s;
}
.blog-filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.blog-filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.blog-featured {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 12px rgba(10,45,110,.06);
    transition: box-shadow .25s, transform .25s;
    color: inherit;
}
.blog-featured:hover { box-shadow: 0 14px 40px rgba(10,45,110,.14); transform: translateY(-4px); }
.blog-featured-icon {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #fff;
}
.blog-featured-body { padding: 1.75rem 1.75rem 1.75rem 0; flex: 1; }
.blog-featured-title { font-size: 1.6rem; font-weight: 800; color: #0d1b2a; margin: .4rem 0 .6rem; line-height: 1.2; }
.blog-featured-desc { color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.blog-featured-meta { font-size: .85rem; color: var(--accent); font-weight: 600; }

.blog-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    color: inherit;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.blog-card:hover { box-shadow: 0 12px 32px rgba(10,45,110,.13); transform: translateY(-5px); border-color: #c3d9f5; }
.blog-card-top {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card-icon { font-size: 3rem; }
.blog-card-tag-float {
    position: absolute;
    top: .75rem;
    left: .75rem;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.blog-card-body { padding: 1.1rem 1.2rem 1.2rem; }
.blog-card-tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.blog-card-title { font-size: 1.08rem; font-weight: 700; color: #0d1b2a; margin: .2rem 0 .5rem; line-height: 1.3; }
.blog-card-desc {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-foot { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.blog-card-arrow {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
}
.blog-card:hover .blog-card-arrow { background: var(--accent); color: #fff; }

.blog-cta {
    text-align: center;
    background: var(--light-bg);
    border: 1px solid #d7e3f5;
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
}
.blog-cta-title { font-size: 1.5rem; font-weight: 800; color: #0d1b2a; margin-bottom: .4rem; }
.blog-cta-sub { color: var(--muted); margin-bottom: 1.25rem; }

.article-wrap { padding: 1.5rem 0 3rem; }
.article-breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.article-breadcrumb a { color: var(--accent); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb i { font-size: .7rem; opacity: .5; }

.article-header { margin-bottom: 2rem; }
.article-tag {
    display: inline-flex;
    align-items: center;
    font-size: .8rem;
    font-weight: 700;
    padding: .35rem .85rem;
    border-radius: 99px;
    text-decoration: none;
    margin-bottom: 1rem;
}
.article-title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; color: #0d1b2a; line-height: 1.15; letter-spacing: -.02em; margin-bottom: .9rem; }
.article-lead { font-size: 1.15rem; color: #475569; line-height: 1.6; margin-bottom: 1rem; }
.article-meta { font-size: .85rem; color: var(--muted); padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }

.article-content { font-size: 1.08rem; line-height: 1.8; color: #1f2937; }
.article-content h2 { font-size: 1.5rem; font-weight: 800; color: #0d1b2a; margin: 2.2rem 0 .9rem; letter-spacing: -.01em; }
.article-content h3 { font-size: 1.2rem; font-weight: 700; color: #0d1b2a; margin: 1.6rem 0 .7rem; }
.article-content p { margin-bottom: 1.2rem; }
.article-content ul, .article-content ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.article-content li { margin-bottom: .6rem; }
.article-content a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--primary); }
.article-content strong { color: #0d1b2a; font-weight: 700; }
.article-content blockquote {
    border-left: 4px solid var(--accent);
    background: var(--light-bg);
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: 0 10px 10px 0;
    color: #334155;
    font-style: italic;
}

.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 1.5rem; }
.article-tag-pill { background: var(--light-bg); color: #475569; font-size: .78rem; font-weight: 600; padding: .35rem .8rem; border-radius: 99px; }

.article-share { display: flex; align-items: center; gap: .6rem; padding: 1.25rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 2rem; flex-wrap: wrap; }
.article-share-label { font-size: .85rem; font-weight: 600; color: var(--muted); margin-right: .25rem; }
.article-share-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: #fff;
    color: #475569;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.article-share-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }

.article-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #0a2d6e, #1a56a8);
    color: #fff;
    border-radius: 18px;
    padding: 1.75rem;
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
}
.article-cta-icon { font-size: 2.5rem; flex-shrink: 0; }
.article-cta-body { flex: 1; min-width: 200px; }
.article-cta-body h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: .3rem; }
.article-cta-body p { opacity: .9; margin: 0; font-size: .92rem; line-height: 1.5; }

.article-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.article-related-title { font-size: 1.4rem; font-weight: 800; color: #0d1b2a; margin-bottom: 1.5rem; }

@media (max-width: 767px) {
    .blog-featured { flex-direction: column; }
    .blog-featured-icon { flex: 0 0 140px; width: 100%; height: 140px; font-size: 3rem; }
    .blog-featured-body { padding: 0 1.25rem 1.5rem; }
    .article-cta { flex-direction: column; text-align: center; }
}
