/* ============================================
   RESET Y VARIABLES
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --accent: #F59E0B;
    --text: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --border: #E2E8F0;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body.public-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVBAR
   ============================================ */
.public-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
    z-index: 1000;
    transition: box-shadow .2s;
}
.public-navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
}
.brand-icon { font-size: 22px; }
.brand-accent { color: var(--primary); }

.nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color .15s;
}
.nav-links a:hover { color: var(--text); }

.btn-nav-login {
    padding: 9px 18px !important;
    background: var(--text);
    color: white !important;
    border-radius: 999px;
    font-weight: 600 !important;
}
.btn-nav-login:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

.nav-toggle {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text);
}

@media (min-width: 900px) {
    .nav-links { display: flex; }
    .nav-toggle { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(99, 102, 241, .12) 0%, transparent 45%),
        radial-gradient(circle at 85% 60%, rgba(245, 158, 11, .08) 0%, transparent 45%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}
@media (min-width: 900px) {
    .hero-inner { grid-template-columns: 1.1fr 1fr; }
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, .1);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text);
}
@media (min-width: 768px) {
    .hero-title { font-size: 54px; }
}
.text-accent { color: var(--primary); }

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    background: var(--text);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .25);
}
.btn-hero-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, .35);
}
.btn-hero-primary span { transition: transform .2s; }
.btn-hero-primary:hover span { transform: translateX(3px); }

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 26px;
    background: white;
    color: var(--text);
    text-decoration: none;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: all .2s;
}
.btn-hero-secondary:hover {
    border-color: var(--text);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.hero-stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
}
.hero-stat span {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}

/* ============================================
   MOCKUP DEL TELÉFONO
   ============================================ */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: #0F172A;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, .25),
        0 0 0 8px rgba(15, 23, 42, .05);
    transform: rotate(-3deg);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-3deg) translateY(-12px); }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #6366F1 0%, #4F46E5 40%, #F8FAFC 40%);
    border-radius: 30px;
    overflow: hidden;
    padding: 20px 16px;
}

.phone-header {
    height: 40px;
    background: rgba(255, 255, 255, .2);
    border-radius: 8px;
    margin-bottom: 12px;
}

.phone-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-item {
    height: 60px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.phone-qr {
    height: 100px;
    margin-top: 20px;
    background: 
        repeating-linear-gradient(0deg, #0F172A 0, #0F172A 4px, transparent 4px, transparent 8px),
        repeating-linear-gradient(90deg, #0F172A 0, #0F172A 4px, transparent 4px, transparent 8px),
        white;
    border-radius: 10px;
    background-size: 20px 20px;
    background-blend-mode: multiply;
}

.qr-badge {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: white;
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}
.qr-badge .qr-icon {
    font-size: 24px;
    color: var(--primary);
}

/* ============================================
   SECCIONES
   ============================================ */
.section {
    padding: 100px 0;
}
.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, .1);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .section-title { font-size: 42px; }
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 640px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    background: white;
    padding: 32px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all .25s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   STEPS
   ============================================ */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -2px;
    opacity: .25;
    margin-bottom: 12px;
}

.step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   CENTROS
   ============================================ */
.centros-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 640px) {
    .centros-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .centros-grid { grid-template-columns: repeat(3, 1fr); }
}

.centro-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all .25s;
    display: flex;
    flex-direction: column;
}
.centro-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.centro-card-banner {
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.centro-card-logo {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    object-fit: cover;
    background: white;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.centro-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.centro-card-body h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.centro-location {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.centro-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.centro-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.centro-tiendas {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.centro-arrow {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    transition: transform .2s;
}
.centro-card:hover .centro-arrow {
    transform: translateX(4px);
}

.centros-cta {
    text-align: center;
    margin-top: 44px;
}

.empty-centros {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-centros p { margin-bottom: 20px; }

/* ============================================
   CTA FINAL
   ============================================ */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    border-radius: 28px;
    padding: 60px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-card h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    position: relative;
}
@media (min-width: 768px) {
    .cta-card h2 { font-size: 40px; }
}

.cta-card p {
    font-size: 17px;
    opacity: .9;
    margin-bottom: 32px;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.cta-card .btn-hero-primary {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.cta-card .btn-hero-primary:hover {
    background: #F8FAFC;
    color: var(--primary-dark);
}

.cta-light {
    background: transparent !important;
    color: white !important;
    border-color: rgba(255, 255, 255, .4) !important;
}
.cta-light:hover {
    background: rgba(255, 255, 255, .1) !important;
    border-color: white !important;
}

/* ============================================
   FOOTER
   ============================================ */
.public-footer {
    background: #0F172A;
    color: #94A3B8;
    padding-top: 60px;
    margin-top: 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
@media (min-width: 768px) {
    .footer-inner { grid-template-columns: 1.5fr 2fr; }
}

.footer-brand .brand {
    color: white;
    margin-bottom: 12px;
}
.footer-brand .brand-icon { font-size: 20px; }

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
    margin-top: 12px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 500px) {
    .footer-links { grid-template-columns: 1fr; }
}

.footer-links h4 {
    color: white;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-links a {
    display: block;
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color .15s;
}
.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, .15);
    padding: 20px 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #64748B;
}

/* ============================================
   TIPOS DE ESPACIO (grid de 3 cards)
   ============================================ */
.tipos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1150px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .tipos-grid { grid-template-columns: repeat(3, 1fr); }
}

.tipo-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 32px 26px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all .3s;
}
.tipo-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.tipo-featured {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(99, 102, 241, .15);
    transform: scale(1.02);
}
.tipo-featured:hover {
    transform: scale(1.02) translateY(-6px);
}

.tipo-badge-top {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.tipo-icon {
    font-size: 44px;
    margin-bottom: 18px;
    line-height: 1;
}

.tipo-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    color: var(--text);
}

.tipo-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.tipo-beneficios {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.tipo-beneficios li {
    font-size: 13.5px;
    color: #334155;
    padding: 6px 0;
    font-weight: 500;
}

.tipo-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .5px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* ============================================
   BADGE DE TIPO EN CARDS DE CENTRO
   ============================================ */
.centro-tipo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(6px);
    color: #0F172A;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

/* ============================================
   CENTRO — HEADER
   ============================================ */
.centro-body {
    background: #F8FAFC;
}

.centro-header {
    color: white;
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.centro-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.centro-back {
    color: white;
    text-decoration: none;
    font-size: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .15);
    border-radius: 50%;
    transition: background .15s;
}
.centro-back:hover {
    background: rgba(255, 255, 255, .3);
}

.centro-brand {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.centro-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, .2);
    padding: 4px;
}

.centro-logo-fallback {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: white;
}

.centro-brand-info {
    min-width: 0;
}
.centro-tipo {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .85;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}
.centro-brand-info h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.centro-header-stats {
    display: flex;
    gap: 20px;
}
.centro-stat {
    text-align: center;
}
.centro-stat strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}
.centro-stat span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .8;
    font-weight: 600;
}

/* ============================================
   CENTRO — HERO / BIENVENIDA
   ============================================ */
.centro-hero {
    position: relative;
    background: #1E293B center/cover;
    overflow: hidden;
}

.centro-hero-overlay {
    padding: 60px 0 70px;
    color: white;
}

.centro-hero-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1.15;
}
@media (min-width: 768px) {
    .centro-hero-title { font-size: 48px; }
}

.centro-hero-subtitle {
    font-size: 17px;
    opacity: .92;
    margin-bottom: 28px;
    max-width: 540px;
    line-height: 1.6;
}

.centro-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.centro-hero .btn-hero-primary {
    background: white;
    color: var(--centro-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.centro-hero .btn-hero-primary:hover {
    background: #F8FAFC;
    color: var(--centro-primary);
    transform: translateY(-2px);
}

/* ============================================
   CENTRO — SECCIONES
   ============================================ */
.centro-section {
    padding: 60px 0;
}
.centro-section-alt {
    background: white;
}

.centro-section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 40px;
}
.centro-section-header h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--text);
    margin-bottom: 8px;
}
@media (min-width: 768px) {
    .centro-section-header h2 { font-size: 32px; }
}
.centro-section-header p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ============================================
   CATEGORÍAS — GRID
   ============================================ */
.categorias-public-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 640px) {
    .categorias-public-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .categorias-public-grid { grid-template-columns: repeat(4, 1fr); }
}

.categoria-public-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 22px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.categoria-public-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
    border-color: var(--cat-color);
}

.categoria-public-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: transform .2s;
}
.categoria-public-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}
.categoria-public-card:hover .categoria-public-icon {
    transform: scale(1.08);
}

.categoria-public-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.categoria-public-stats {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}
.categoria-public-stats .cat-vacio {
    color: #CBD5E1;
}

/* ============================================
   TIENDAS — GRID
   ============================================ */
.tiendas-public-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 640px) {
    .tiendas-public-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .tiendas-public-grid { grid-template-columns: repeat(3, 1fr); }
}

.tienda-public-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #F8FAFC;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    transition: all .2s;
    border: 1.5px solid transparent;
}
.tienda-public-card:hover {
    background: white;
    border-color: var(--centro-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.tienda-public-logo {
    flex-shrink: 0;
}
.tienda-public-logo img,
.tienda-logo-fallback {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}
.tienda-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 20px;
}

.tienda-public-info {
    flex: 1;
    min-width: 0;
}
.tienda-public-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.tienda-public-info small {
    font-size: 12px;
    color: var(--text-light);
}

.tienda-public-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
}

/* ============================================
   INFO CARD
   ============================================ */
.centro-info-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    border: 1px solid var(--border);
}
.centro-info-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.centro-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
@media (min-width: 640px) {
    .centro-info-grid { grid-template-columns: repeat(3, 1fr); }
}

.centro-info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.centro-info-icon {
    font-size: 22px;
    flex-shrink: 0;
}
.centro-info-item strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 700;
}
.centro-info-item p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   EMPTY STATE PÚBLICO
   ============================================ */
.empty-state-public {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* Reutilizar badges del admin */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
    line-height: 1.4;
}
.badge-open   { background: #DCFCE7; color: #166534; }
.badge-closed { background: #FEE2E2; color: #991B1B; }

/* ============================================
   CENTRO — HEADER SIMPLE (sin navbar pública)
   ============================================ */
.centro-header-simple {
    color: white;
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.centro-header-simple-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.centro-brand-simple {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.centro-logo-simple {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(255, 255, 255, .2);
    padding: 4px;
}

.centro-logo-simple-fallback {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 26px;
    color: white;
}

.centro-tipo-simple {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: .85;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.centro-brand-simple h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
    color: white;
    line-height: 1.1;
}
@media (min-width: 768px) {
    .centro-brand-simple h1 { font-size: 28px; }
}

/* Stats en el hero del centro */
.centro-hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .25);
    flex-wrap: wrap;
}

.centro-hero-stat strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}
.centro-hero-stat span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
    opacity: .8;
    font-weight: 600;
}

/* ============================================
   TIENDA — BUSCADOR Y FILTROS
   ============================================ */
.tienda-filters-wrap {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 20px 0 16px;
    position: sticky;
    top: 74px;
    z-index: 40;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, .96);
}

.tienda-search {
    margin-bottom: 14px;
}

.tienda-search-inner {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
}

.tienda-search-icon {
    position: absolute;
    left: 18px;
    font-size: 15px;
    opacity: .5;
    pointer-events: none;
}

.tienda-search-inner input {
    width: 100%;
    padding: 13px 44px 13px 46px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-family: inherit;
    background: #F8FAFC;
    color: var(--text);
    transition: all .15s;
}
.tienda-search-inner input:focus {
    outline: none;
    background: white;
    border-color: var(--centro-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--centro-primary) 15%, transparent);
}

.tienda-search-clear {
    position: absolute;
    right: 14px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #E2E8F0;
    color: #64748B;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}
.tienda-search-clear:hover {
    background: #CBD5E1;
}

/* ============================================
   PRODUCTOS — Extras
   ============================================ */
.producto-public-card.sin-stock {
    opacity: .7;
}
.producto-public-card.sin-stock:hover {
    transform: none;
    box-shadow: none;
}

.producto-overlay-agotado {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    backdrop-filter: blur(2px);
}

.producto-stock-bajo {
    display: inline-block;
    padding: 2px 8px;
    background: #FEF3C7;
    color: #92400E;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-left: auto;
}

.producto-btn.disabled {
    background: #E2E8F0 !important;
    color: #94A3B8;
    cursor: not-allowed;
}
.producto-btn.disabled:hover {
    transform: none;
    box-shadow: none;
    filter: none;
}

/* ============================================
   TIENDA — HORARIOS
   ============================================ */
.tienda-info-section {
    padding: 0 0 60px;
}

.tienda-info-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.tienda-info-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

.tienda-horarios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
@media (min-width: 640px) {
    .tienda-horarios-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px 24px; 
    }
}

.tienda-horario-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #F8FAFC;
    border-radius: 10px;
    font-size: 13.5px;
}
.tienda-horario-item.hoy {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    font-weight: 600;
}
.horario-dia {
    color: #334155;
    font-weight: 600;
}
.horario-valor {
    color: #475569;
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 13px;
}

/* ============================================
   CTA: REGISTRAR NEGOCIO
   ============================================ */
.cta-negocio-section {
    padding: 40px 0 80px;
}

.cta-negocio-card {
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}
.cta-negocio-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-negocio-icon {
    font-size: 56px;
    margin-bottom: 16px;
    line-height: 1;
    position: relative;
}

.cta-negocio-card h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    position: relative;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .cta-negocio-card h2 { font-size: 32px; }
}

.cta-negocio-card p {
    font-size: 16px;
    opacity: .92;
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.6;
    position: relative;
}

.cta-negocio-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: white;
    color: var(--centro-primary);
    text-decoration: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    transition: all .2s;
    position: relative;
}
.cta-negocio-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}
.cta-negocio-btn span {
    font-size: 20px;
}

.cta-negocio-note {
    display: block;
    margin-top: 18px;
    font-size: 13px;
    opacity: .8;
    position: relative;
}


/* ============================================================
   CATEGORÍA — DISEÑO MODERNO
   ============================================================ */
.categoria-body {
    background: #F1F5F9;
    padding-bottom: 0;
}

/* ============================================================
   HERO CON LA CATEGORÍA
   ============================================================ */
.cat-hero {
    background: var(--cat-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.cat-topbar {
    background: rgba(0, 0, 0, .15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 0;
    position: relative;
    z-index: 3;
}

.cat-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cat-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    min-width: 0;
}
.cat-topbar-brand img,
.cat-topbar-logo-fallback {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    object-fit: cover;
    background: rgba(255,255,255,.22);
    flex-shrink: 0;
}
.cat-topbar-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}
.cat-topbar-brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-topbar-back {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    opacity: .9;
    white-space: nowrap;
    transition: opacity .15s;
}
.cat-topbar-back:hover { opacity: 1; }

.cat-hero-content {
    padding: 40px 0 50px;
    position: relative;
    overflow: hidden;
}

.cat-hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,.08) 0%, transparent 40%);
    pointer-events: none;
}

.cat-hero-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.cat-hero-icon-wrap {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.cat-hero-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-hero-emoji {
    font-size: 44px;
}

.cat-hero-text {
    flex: 1;
    min-width: 0;
}

.cat-hero-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,.2);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
    backdrop-filter: blur(6px);
}

.cat-hero-text h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 8px;
    color: white;
}
@media (min-width: 768px) {
    .cat-hero-text h1 { font-size: 44px; }
}

.cat-hero-text p {
    font-size: 15px;
    opacity: .92;
    max-width: 620px;
    line-height: 1.55;
    margin-bottom: 18px;
}

.cat-hero-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.cat-hero-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}
.cat-hero-stat span {
    font-size: 11.5px;
    opacity: .85;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 600;
}

/* ============================================================
   TABS DE CATEGORÍAS
   ============================================================ */
.cat-tabs {
    background: white;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.cat-tabs-scroll {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 12px 16px;
    max-width: 1200px;
    margin: 0 auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.cat-tabs-scroll::-webkit-scrollbar { display: none; }

.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    color: #64748B;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
    border: 1.5px solid transparent;
}
.cat-tab:hover {
    background: #F1F5F9;
    color: #334155;
}

.cat-tab.active {
    background: var(--tab-color);
    color: white;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--tab-color) 35%, transparent);
}

.cat-tab-count {
    display: inline-block;
    padding: 1px 7px;
    background: rgba(0, 0, 0, .08);
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
}
.cat-tab.active .cat-tab-count {
    background: rgba(255, 255, 255, .28);
    color: white;
}

/* ============================================================
   TOOLBAR (buscador + filtros)
   ============================================================ */
.cat-toolbar {
    background: white;
    border-bottom: 1px solid #E2E8F0;
    padding: 16px 0 14px;
    margin-bottom: 24px;
}

.cat-search {
    margin-bottom: 12px;
}

.cat-search-inner {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 560px;
    margin: 0 auto;
}

.cat-search-icon {
    position: absolute;
    left: 18px;
    color: #94A3B8;
    pointer-events: none;
}

.cat-search-inner input {
    width: 100%;
    padding: 13px 44px 13px 48px;
    border: 1.5px solid #E2E8F0;
    border-radius: 999px;
    font-size: 14.5px;
    font-family: inherit;
    background: #F8FAFC;
    color: #0F172A;
    transition: all .2s;
}
.cat-search-inner input:focus {
    outline: none;
    background: white;
    border-color: var(--cat-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--cat-color) 15%, transparent);
}

.cat-search-clear {
    position: absolute;
    right: 12px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #E2E8F0;
    color: #64748B;
    text-decoration: none;
    transition: all .15s;
}
.cat-search-clear:hover {
    background: #CBD5E1;
    color: #334155;
}

/* Pills de tiendas */
.cat-tiendas {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    max-width: 100%;
}
.cat-tiendas::-webkit-scrollbar { display: none; }

@media (min-width: 900px) {
    .cat-tiendas {
        justify-content: center;
        flex-wrap: wrap;
        overflow: visible;
    }
}

.cat-tienda-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    background: #F1F5F9;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
    border: 1.5px solid transparent;
}
.cat-tienda-pill:hover {
    background: #E2E8F0;
    color: #334155;
}
.cat-tienda-pill.active {
    background: #0F172A;
    color: white;
    border-color: #0F172A;
}

.cat-tienda-pill img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
}
.cat-tienda-avatar {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #CBD5E1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}
.cat-tienda-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 4px;
}
.cat-tienda-pill-count {
    display: inline-block;
    padding: 1px 7px;
    background: rgba(0, 0, 0, .08);
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
}
.cat-tienda-pill.active .cat-tienda-pill-count {
    background: rgba(255, 255, 255, .25);
}

/* Ordenamiento */
.cat-orden-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.cat-orden-label {
    font-size: 12px;
    color: #94A3B8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.cat-orden-select-wrap {
    position: relative;
    display: inline-block;
}

.cat-orden-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 32px 8px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 999px;
    background: white;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #334155;
    cursor: pointer;
    transition: all .15s;
}
.cat-orden-select:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
}
.cat-orden-select:focus {
    outline: none;
    border-color: var(--cat-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat-color) 15%, transparent);
}

.cat-orden-chev {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748B;
}

/* ============================================================
   GRID DE PRODUCTOS
   ============================================================ */
.cat-productos {
    padding-bottom: 60px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 640px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.cat-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    border: 1px solid transparent;
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, .12);
    border-color: color-mix(in srgb, var(--cat-color) 25%, transparent);
}

.cat-card.is-out {
    opacity: .65;
}
.cat-card.is-out:hover {
    transform: none;
}

.cat-card-img {
    position: relative;
    aspect-ratio: 1;
    background: #F1F5F9;
    overflow: hidden;
}
.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.cat-card:hover .cat-card-img img {
    transform: scale(1.06);
}

.cat-card-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    opacity: .3;
}

.cat-card-off {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .3px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, .4);
}

.cat-card-star {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, .5);
}

.cat-card-out {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cat-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.cat-card-shop {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 2px;
}
.cat-card-shop img,
.cat-card-shop-fallback {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}
.cat-card-shop-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 9px;
    font-weight: 800;
}
.cat-card-shop span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.2px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.cat-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
    flex-wrap: wrap;
}
.cat-price-now {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.6px;
}
.cat-price-before {
    font-size: 11.5px;
    color: #94A3B8;
    text-decoration: line-through;
    font-weight: 500;
}
.cat-stock-bajo {
    display: inline-block;
    padding: 2px 7px;
    background: #FEF3C7;
    color: #92400E;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-left: auto;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.cat-empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    border: 1px dashed #CBD5E1;
}
.cat-empty-illustration {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-empty-circle {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #F1F5F9 0%, transparent 70%);
    border-radius: 50%;
}
.cat-empty-emoji {
    font-size: 56px;
    opacity: .5;
    position: relative;
}
.cat-empty h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.cat-empty p {
    color: #64748B;
    font-size: 14.5px;
    max-width: 420px;
    margin: 0 auto 20px;
    line-height: 1.6;
}
.cat-empty-btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    background: #0F172A;
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: all .2s;
}
.cat-empty-btn:hover {
    background: var(--cat-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--cat-color) 30%, transparent);
}

/* ============================================================
   CTA REGISTRO
   ============================================================ */
.cat-cta-section {
    padding: 0 0 60px;
}

.cat-cta {
    border-radius: 24px;
    overflow: hidden;
    color: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
    position: relative;
}
.cat-cta::before {
    content: '';
    position: absolute;
    top: -60%; right: -15%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cat-cta-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 30px;
    flex-wrap: wrap;
    position: relative;
}

.cat-cta-icon {
    font-size: 44px;
    line-height: 1;
    flex-shrink: 0;
}

.cat-cta-text {
    flex: 1;
    min-width: 240px;
}
.cat-cta-text h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 4px;
    line-height: 1.25;
}
.cat-cta-text p {
    font-size: 14px;
    opacity: .9;
    line-height: 1.5;
}

.cat-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: white;
    color: var(--centro-primary);
    text-decoration: none;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    transition: all .2s;
    flex-shrink: 0;
}
.cat-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}

/* ============================================================
   FOOTER
   ============================================================ */
.cat-footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 22px 0;
}

.cat-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.cat-footer-link {
    color: #94A3B8;
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
}
.cat-footer-link:hover { color: white; }

.cat-footer-inner strong {
    color: white;
    font-weight: 800;
}

/* ============================================================
   TIENDA — DISEÑO MODERNO
   ============================================================ */
.tienda-body {
    background: #F1F5F9;
    padding-bottom: 0;
}

/* ============================================================
   HERO DE LA TIENDA
   ============================================================ */
.shop-hero {
    background: #1E293B center/cover;
    position: relative;
}

.shop-hero-overlay {
    color: white;
    padding-bottom: 40px;
}

/* Topbar */
.shop-topbar {
    padding: 12px 0;
    background: rgba(0, 0, 0, .15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.shop-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shop-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    min-width: 0;
}
.shop-topbar-brand img,
.shop-topbar-logo-fallback {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    object-fit: cover;
    background: rgba(255,255,255,.22);
    flex-shrink: 0;
}
.shop-topbar-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}
.shop-topbar-brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-topbar-back {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    opacity: .9;
    white-space: nowrap;
    transition: opacity .15s;
}
.shop-topbar-back:hover { opacity: 1; }

/* Contenido del hero */
.shop-hero-content {
    padding: 32px 0 8px;
}

.shop-hero-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.shop-hero-logo {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    object-fit: cover;
    background: rgba(255,255,255,.2);
    padding: 6px;
    box-shadow: 0 12px 32px rgba(0,0,0,.2);
    flex-shrink: 0;
}

.shop-hero-logo-fallback {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    background: rgba(255,255,255,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 38px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 12px 32px rgba(0,0,0,.2);
}

.shop-hero-info {
    flex: 1;
    min-width: 0;
}

.shop-hero-info h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.7px;
    line-height: 1.1;
    margin-bottom: 6px;
    color: white;
}
@media (min-width: 768px) {
    .shop-hero-info h1 { font-size: 42px; }
}

.shop-hero-location {
    font-size: 14px;
    opacity: .92;
    margin-bottom: 12px;
}

.shop-hero-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,.2);
}
.shop-badge.is-open {
    background: rgba(16, 185, 129, .25);
    color: #BBF7D0;
}
.shop-badge.is-closed {
    background: rgba(239, 68, 68, .25);
    color: #FECACA;
}
.shop-badge-neutral {
    background: rgba(255, 255, 255, .18);
    color: white;
}

.shop-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 30%, transparent);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.shop-hero-motivo {
    font-size: 12.5px;
    opacity: .85;
    margin-top: 8px;
}

.shop-hero-desc {
    font-size: 15px;
    opacity: .92;
    max-width: 720px;
    line-height: 1.55;
    margin-top: 12px;
}

/* Acciones */
.shop-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.shop-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
    border: none;
    cursor: pointer;
}

.shop-action-primary {
    background: white;
    color: var(--centro-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.shop-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}

.shop-action-secondary {
    background: rgba(255, 255, 255, .18);
    color: white;
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, .25);
}
.shop-action-secondary:hover {
    background: rgba(255, 255, 255, .28);
    transform: translateY(-2px);
}

/* ============================================================
   TABS DE CATEGORÍAS
   ============================================================ */
.shop-tabs {
    background: white;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.shop-tabs-scroll {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 12px 16px;
    max-width: 1200px;
    margin: 0 auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.shop-tabs-scroll::-webkit-scrollbar { display: none; }

.shop-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    color: #64748B;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
    border: 1.5px solid transparent;
}
.shop-tab:hover {
    background: #F1F5F9;
    color: #334155;
}
.shop-tab.active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.shop-tab-count {
    display: inline-block;
    padding: 1px 7px;
    background: rgba(0, 0, 0, .08);
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
}
.shop-tab.active .shop-tab-count {
    background: rgba(255, 255, 255, .28);
    color: white;
}

/* ============================================================
   TOOLBAR
   ============================================================ */
.shop-toolbar {
    background: white;
    border-bottom: 1px solid #E2E8F0;
    padding: 16px 0;
    margin-bottom: 24px;
}

.shop-search {
    margin-bottom: 10px;
}

.shop-search-inner {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 560px;
    margin: 0 auto;
}

.shop-search-icon {
    position: absolute;
    left: 18px;
    color: #94A3B8;
    pointer-events: none;
}

.shop-search-inner input {
    width: 100%;
    padding: 13px 44px 13px 48px;
    border: 1.5px solid #E2E8F0;
    border-radius: 999px;
    font-size: 14.5px;
    font-family: inherit;
    background: #F8FAFC;
    color: #0F172A;
    transition: all .2s;
}
.shop-search-inner input:focus {
    outline: none;
    background: white;
    border-color: var(--centro-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--centro-primary) 15%, transparent);
}

.shop-search-clear {
    position: absolute;
    right: 12px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #E2E8F0;
    color: #64748B;
    text-decoration: none;
    transition: all .15s;
}
.shop-search-clear:hover {
    background: #CBD5E1;
    color: #334155;
}

/* Ordenamiento */
.shop-orden-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-orden-label {
    font-size: 12px;
    color: #94A3B8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.shop-orden-select-wrap {
    position: relative;
    display: inline-block;
}

.shop-orden-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 32px 8px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 999px;
    background: white;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #334155;
    cursor: pointer;
    transition: all .15s;
}
.shop-orden-select:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
}
.shop-orden-select:focus {
    outline: none;
    border-color: var(--centro-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--centro-primary) 15%, transparent);
}

.shop-orden-chev {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748B;
}

/* ============================================================
   GRID DE PRODUCTOS
   ============================================================ */
.shop-productos {
    padding-bottom: 60px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 640px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
    .shop-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.shop-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    border: 1px solid transparent;
}
.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, .12);
    border-color: color-mix(in srgb, var(--centro-primary) 25%, transparent);
}

.shop-card.is-out { opacity: .65; }
.shop-card.is-out:hover { transform: none; }

.shop-card-img {
    position: relative;
    aspect-ratio: 1;
    background: #F1F5F9;
    overflow: hidden;
}
.shop-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.shop-card:hover .shop-card-img img {
    transform: scale(1.06);
}

.shop-card-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    opacity: .3;
}

.shop-card-off {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(239, 68, 68, .4);
}

.shop-card-star {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, .5);
}

.shop-card-out {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.shop-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.shop-card-cat {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

.shop-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.2px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.shop-card-desc {
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
    flex-wrap: wrap;
}

.shop-price-now {
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.6px;
}
.shop-price-before {
    font-size: 11.5px;
    color: #94A3B8;
    text-decoration: line-through;
}
.shop-stock-bajo {
    display: inline-block;
    padding: 2px 7px;
    background: #FEF3C7;
    color: #92400E;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-left: auto;
}

.shop-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    margin-top: 6px;
    border: none;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.shop-card-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    filter: brightness(1.06);
}
.shop-card-btn.disabled {
    background: #E2E8F0 !important;
    color: #94A3B8;
    cursor: not-allowed;
}
.shop-card-btn.disabled:hover {
    transform: none;
    box-shadow: none;
    filter: none;
}

/* ============================================================
   INFO Y HORARIOS
   ============================================================ */
.shop-info-section {
    padding-bottom: 40px;
}

.shop-info-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.shop-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.shop-info-icon {
    width: 40px;
    height: 40px;
    background: color-mix(in srgb, var(--centro-primary) 12%, transparent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.shop-info-header h3 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #0F172A;
}

.shop-horarios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
@media (min-width: 640px) {
    .shop-horarios-grid { grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
}

.shop-horario-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #F8FAFC;
    border-radius: 12px;
    font-size: 14px;
    gap: 12px;
}
.shop-horario-item.is-hoy {
    background: color-mix(in srgb, var(--centro-primary) 10%, white);
    border: 1.5px solid color-mix(in srgb, var(--centro-primary) 30%, transparent);
}
.shop-horario-item.is-closed .shop-horario-dia {
    color: #94A3B8;
}

.shop-horario-dia {
    color: #334155;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-horario-hoy {
    display: inline-block;
    padding: 2px 7px;
    background: var(--centro-primary);
    color: white;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .5px;
}

.shop-horario-val {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 13px;
    color: #0F172A;
}
.shop-horario-val strong {
    font-weight: 700;
    color: #0F172A;
}
.shop-horario-sep {
    color: #CBD5E1;
    font-size: 12px;
}
.shop-horario-closed {
    color: #94A3B8;
    font-style: italic;
    font-family: inherit;
}

/* ============================================================
   CTA REGISTRO
   ============================================================ */
.shop-cta-section {
    padding: 0 0 60px;
}

.shop-cta {
    border-radius: 24px;
    overflow: hidden;
    color: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
    position: relative;
}
.shop-cta::before {
    content: '';
    position: absolute;
    top: -60%; right: -15%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.shop-cta-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 30px;
    flex-wrap: wrap;
    position: relative;
}

.shop-cta-icon {
    font-size: 44px;
    line-height: 1;
    flex-shrink: 0;
}

.shop-cta-text {
    flex: 1;
    min-width: 240px;
}
.shop-cta-text h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 4px;
    line-height: 1.25;
}
.shop-cta-text p {
    font-size: 14px;
    opacity: .9;
}

.shop-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: white;
    color: var(--centro-primary);
    text-decoration: none;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    transition: all .2s;
    flex-shrink: 0;
}
.shop-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.shop-empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    border: 1px dashed #CBD5E1;
}
.shop-empty-illustration {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-empty-circle {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #F1F5F9 0%, transparent 70%);
    border-radius: 50%;
}
.shop-empty-emoji {
    font-size: 56px;
    opacity: .5;
    position: relative;
}
.shop-empty h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.shop-empty p {
    color: #64748B;
    font-size: 14.5px;
    max-width: 420px;
    margin: 0 auto 20px;
    line-height: 1.6;
}
.shop-empty-btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    background: #0F172A;
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: all .2s;
}
.shop-empty-btn:hover {
    background: var(--centro-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--centro-primary) 30%, transparent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.shop-footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 22px 0;
}

.shop-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.shop-footer-link {
    color: #94A3B8;
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
}
.shop-footer-link:hover { color: white; }

.shop-footer-inner strong {
    color: white;
    font-weight: 800;
}


/* ============================================================
   CARRITO
   ============================================================ */
.cart-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .4);
    transition: all .25s;
    z-index: 900;
}
.cart-float:hover { transform: scale(1.08); }
.cart-float:active { transform: scale(.95); }

.cart-float-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #EF4444;
    color: white;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid #F1F5F9;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    z-index: 950;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 100%;
    max-width: 440px;
    background: white;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    z-index: 960;
    box-shadow: -20px 0 60px rgba(15, 23, 42, .2);
}
.cart-panel.open { transform: translateX(0); }

.cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #F1F5F9;
    flex-shrink: 0;
}
.cart-panel-header h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #0F172A;
}
.cart-panel-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #334155;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
.cart-panel-close:hover { background: #E2E8F0; color: #0F172A; }

.cart-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 22px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    height: 100%;
}
.cart-empty-emoji { font-size: 64px; margin-bottom: 16px; opacity: .35; }
.cart-empty h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 6px;
}
.cart-empty p {
    font-size: 14px;
    color: #64748B;
    max-width: 260px;
    line-height: 1.5;
}

.cart-tienda-group {
    background: #F8FAFC;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid #E2E8F0;
}
.cart-tienda-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E2E8F0;
}
.cart-tienda-icon { font-size: 16px; }
.cart-tienda-nombre {
    font-size: 13.5px;
    font-weight: 800;
    color: #0F172A;
}
.cart-tienda-items { display: flex; flex-direction: column; gap: 10px; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 12px;
    position: relative;
}
.cart-item-img {
    width: 52px; height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: #F1F5F9;
    flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-img-fallback {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    opacity: .35;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 24px;
}
.cart-item-price { font-size: 12px; color: #64748B; margin-bottom: 6px; }
.cart-item-qty { display: flex; align-items: center; gap: 6px; }

.cart-qty-btn {
    width: 26px; height: 26px;
    border-radius: 8px;
    background: #F1F5F9;
    color: #334155;
    border: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
.cart-qty-btn:hover { background: #0F172A; color: white; }
.cart-qty-value { min-width: 24px; text-align: center; font-weight: 800; color: #0F172A; }
.cart-item-subtotal {
    margin-left: auto;
    font-weight: 800;
    color: #0F172A;
    font-size: 13.5px;
}
.cart-item-remove {
    position: absolute;
    top: 6px; right: 6px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: transparent;
    color: #94A3B8;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
.cart-item-remove:hover { background: #FEE2E2; color: #EF4444; }

.cart-tienda-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 10px;
    margin-top: 10px;
    border-top: 1px dashed #CBD5E1;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
}
.cart-tienda-footer strong {
    color: #0F172A;
    font-size: 15px;
    font-weight: 800;
}

.cart-btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #25D366;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 800;
    transition: all .2s;
}
.cart-btn-wa:hover {
    background: #1FAF54;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, .35);
}

.cart-panel-footer {
    padding: 18px 22px 22px;
    border-top: 1px solid #F1F5F9;
    background: #F8FAFC;
    flex-shrink: 0;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #475569;
}
.cart-total-row strong {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
}
.cart-clear-btn {
    width: 100%;
    padding: 10px;
    background: #FEE2E2;
    color: #991B1B;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}
.cart-clear-btn:hover { background: #FECACA; }


/* ============================================================
   BOTÓN COMPARTIR (en el header del centro)
   ============================================================ */
.centro-header-simple-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.share-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, .18);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.share-trigger:hover {
    background: rgba(255, 255, 255, .28);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
.share-trigger:active {
    transform: translateY(0);
}

.share-trigger svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .share-trigger span {
        display: none;
    }
    .share-trigger {
        padding: 10px;
        width: 42px;
        height: 42px;
        justify-content: center;
    }
}

/* ============================================================
   MODAL COMPARTIR
   ============================================================ */
.share-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.share-modal.open {
    display: flex;
    animation: share-fade-in .2s ease;
}

@keyframes share-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.share-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.share-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .3);
    animation: share-slide-up .3s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
}

@keyframes share-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 16px;
    flex-shrink: 0;
}
.share-modal-header h3 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #0F172A;
}

.share-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #334155;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
.share-modal-close:hover {
    background: #E2E8F0;
    color: #0F172A;
}

/* Preview */
.share-modal-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 22px 20px;
    padding: 12px;
    background: #F8FAFC;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
}

.share-preview-img {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #E2E8F0;
    flex-shrink: 0;
}

.share-preview-info {
    flex: 1;
    min-width: 0;
}
.share-preview-info strong {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.2px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.share-preview-info small {
    font-size: 12.5px;
    color: #64748B;
}

/* Opciones */
.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 22px 22px;
    overflow-y: auto;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 6px;
    border-radius: 14px;
    text-decoration: none;
    background: #F8FAFC;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}
.share-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    border-color: #E2E8F0;
}
.share-option:active {
    transform: translateY(0);
}

.share-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.share-option-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    text-align: center;
    letter-spacing: -0.1px;
    line-height: 1.2;
}

/* Colores por red */
.share-wa .share-option-icon { background: #25D366; }
.share-fb .share-option-icon { background: #1877F2; }
.share-tw .share-option-icon { background: #0F172A; }
.share-tg .share-option-icon { background: #0088CC; }
.share-mail .share-option-icon { background: #EA4335; }
.share-copy .share-option-icon { background: #6366F1; }
.share-native .share-option-icon { background: #F59E0B; }

.share-option.copied {
    background: #DCFCE7;
    border-color: #10B981;
}
.share-option.copied .share-option-icon {
    background: #10B981;
}

@media (max-width: 420px) {
    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   BODY: no scroll cuando el modal está abierto
   ============================================================ */
body:has(.share-modal.open) {
    overflow: hidden;
}


/* ============================================================
   BUSCADOR EN EL HERO DEL CENTRO
   ============================================================ */
.centro-hero-search {
    max-width: 640px;
    margin: 0 auto 24px;
    width: 100%;
}

.centro-hero-search-inner {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 999px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    gap: 8px;
    position: relative;
}

.centro-hero-search-icon {
    color: #94A3B8;
    flex-shrink: 0;
}

.centro-hero-search-inner input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 15px;
    font-family: inherit;
    color: #0F172A;
    background: transparent;
    min-width: 0;
}
.centro-hero-search-inner input::placeholder {
    color: #94A3B8;
}

.centro-hero-search-btn {
    padding: 12px 22px;
    background: var(--centro-primary);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
    white-space: nowrap;
}
.centro-hero-search-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}
.centro-hero-search-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .centro-hero-search-inner {
        padding: 4px 4px 4px 16px;
    }
    .centro-hero-search-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    .centro-hero-search-inner input {
        font-size: 14px;
    }
}


/* ============================================================
   BUSCAR
   ============================================================ */
.buscar-body {
    background: #F1F5F9;
    min-height: 100vh;
}

.buscar-header {
    color: white;
    padding: 14px 0;
}
.buscar-header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}
.buscar-back {
    color: white;
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .15);
    border-radius: 50%;
    transition: all .15s;
    flex-shrink: 0;
}
.buscar-back:hover { background: rgba(255, 255, 255, .28); }

.buscar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 14.5px;
    min-width: 0;
}
.buscar-brand img {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    object-fit: cover;
    background: rgba(255,255,255,.2);
}
.buscar-brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.buscar-bar-wrap {
    background: white;
    border-bottom: 1px solid #E2E8F0;
    padding: 18px 0 14px;
    margin-bottom: 24px;
}

.buscar-form-inner {
    display: flex;
    align-items: center;
    max-width: 640px;
    margin: 0 auto;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 999px;
    padding: 5px 5px 5px 18px;
    gap: 8px;
    transition: all .15s;
}
.buscar-form-inner:focus-within {
    background: white;
    border-color: var(--centro-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--centro-primary) 15%, transparent);
}

.buscar-icon {
    color: #94A3B8;
    flex-shrink: 0;
}

.buscar-form-inner input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 0;
    font-size: 15px;
    font-family: inherit;
    color: #0F172A;
    background: transparent;
    min-width: 0;
}

.buscar-clear {
    width: 26px; height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #E2E8F0;
    color: #64748B;
    text-decoration: none;
    transition: all .15s;
    flex-shrink: 0;
}
.buscar-clear:hover { background: #CBD5E1; color: #334155; }

.buscar-btn {
    padding: 11px 20px;
    background: var(--centro-primary);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0;
}
.buscar-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.buscar-summary {
    text-align: center;
    font-size: 14px;
    color: #64748B;
    margin-top: 14px;
}
.buscar-summary strong { color: #0F172A; }

/* Tabs */
.buscar-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    justify-content: center;
}
.buscar-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: white;
    color: #475569;
    text-decoration: none;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1.5px solid #E2E8F0;
    transition: all .15s;
}
.buscar-tab:hover {
    border-color: #CBD5E1;
    color: #334155;
}
.buscar-tab.active {
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

/* Secciones */
.buscar-seccion {
    margin-bottom: 40px;
}
.buscar-seccion-title {
    font-size: 17px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.3px;
    margin-bottom: 16px;
    padding-left: 4px;
}

/* Grid de tiendas */
.buscar-tiendas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
@media (min-width: 640px) {
    .buscar-tiendas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .buscar-tiendas-grid { grid-template-columns: repeat(3, 1fr); }
}

.buscar-tienda-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border-radius: 14px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    border: 1.5px solid transparent;
    transition: all .2s;
}
.buscar-tienda-card:hover {
    border-color: var(--centro-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.buscar-tienda-logo img,
.buscar-tienda-logo-fallback {
    width: 52px; height: 52px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}
.buscar-tienda-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 22px;
}

.buscar-tienda-info {
    flex: 1;
    min-width: 0;
}
.buscar-tienda-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.buscar-tienda-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #64748B;
}

/* Empty */
.buscar-empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    border: 1px dashed #CBD5E1;
    max-width: 520px;
    margin: 0 auto;
}
.buscar-empty-emoji {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: .4;
}
.buscar-empty h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.buscar-empty p {
    color: #64748B;
    font-size: 14.5px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.buscar-empty-btn {
    display: inline-flex;
    padding: 11px 22px;
    background: #0F172A;
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: all .2s;
}
.buscar-empty-btn:hover {
    background: var(--centro-primary);
    transform: translateY(-2px);
}

/* ============================================================
   TOPBAR DE CATEGORÍA — con acciones (compartir + volver)
   ============================================================ */
.cat-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-trigger-compact {
    padding: 8px 14px;
    font-size: 12.5px;
    background: rgba(255, 255, 255, .18);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .15s;
    backdrop-filter: blur(6px);
}
.share-trigger-compact:hover {
    background: rgba(255, 255, 255, .28);
    transform: translateY(-1px);
}
.share-trigger-compact svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .share-trigger-compact span {
        display: none;
    }
    .share-trigger-compact {
        padding: 8px;
        width: 36px;
        height: 36px;
        justify-content: center;
    }
}