/* ============================================================
   SearchMAS — multilocal.css
   Estilos del template Optimización Multi-Local (tol-*)
   Depende de producto.css (clases tp-* compartidas)
   ============================================================ */

/* ── Hero: badge y H1 más chicos para evitar wrap excesivo ─── */
.tp-hero .tp-tag {
    font-size: 12px;
}
.tp-hero .tp-h1 {
    font-size: clamp(24px, 2.8vw, 44px);
}

/* ── Hero: plataformas en el tag ────────────────────────────── */
.tol-plat-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
    font-size: 11px;
    font-weight: 600;
}
.tol-pl-sep  { color: rgba(255,255,255,.22); }
.tol-pl-gbp  { color: #4285F4; }
.tol-pl-maps { color: #34C759; }
.tol-pl-bing { color: #0078D4; }

/* ── Sync panel ─────────────────────────────────────────────── */
.tol-panel {
    background: #0f1520;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 80px rgba(0,0,0,.5);
}

.tol-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.tol-chrome-dots { display: flex; gap: 5px; }
.tol-chrome-dots span { width: 8px; height: 8px; border-radius: 50%; }
.tol-chrome-dots span:nth-child(1) { background: #FF5F57; }
.tol-chrome-dots span:nth-child(2) { background: #FEBC2E; }
.tol-chrome-dots span:nth-child(3) { background: #28C840; }

.tol-chrome-url {
    flex: 1;
    font-size: 10px;
    color: rgba(255,255,255,.32);
    text-align: center;
    font-family: monospace;
    letter-spacing: .3px;
}

.tol-agent-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 700;
    color: #FBBC05;
    letter-spacing: .5px;
    white-space: nowrap;
}
.tol-alive-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #FBBC05;
    animation: pulseDot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* Panel body */
.tol-panel-body {
    padding: 12px 12px 10px;
    display: flex;
    flex-direction: column;
}

.tol-panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}
.tol-pt-left { display: flex; flex-direction: column; gap: 2px; }
.tol-pt-title { font-size: 12px; font-weight: 700; color: #fff; }
.tol-pt-sub   { font-size: 10px; color: rgba(255,255,255,.32); }

.tol-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 700;
    background: rgba(251,188,5,.1);
    color: #FBBC05;
    border: 1px solid rgba(251,188,5,.25);
    border-radius: 100px;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.tol-sync-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #FBBC05;
    animation: pulseDot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* ── Lista estática de perfiles ──────────────────────────────── */
.tol-profile-list {
    display: flex;
    flex-direction: column;
}

/* ── Profile rows ────────────────────────────────────────────── */
.tol-profile-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    gap: 8px;
}

.tol-pr-left {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
}
.tol-pr-pin {
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
    line-height: 1;
}
.tol-pr-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.tol-pr-name {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.82);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}
.tol-pr-addr {
    font-size: 9px;
    color: rgba(255,255,255,.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Platform pills per row */
.tol-pr-plats {
    display: flex;
    gap: 3px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.tol-plat-pill {
    font-size: 8px;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 5px;
    letter-spacing: .2px;
}
.tol-pp-gbp  { background: rgba(66,133,244,.14);  color: #4285F4;  }
.tol-pp-maps { background: rgba(52,199,89,.12);   color: #34C759;  }
.tol-pp-bing { background: rgba(0,120,212,.12);   color: #0078D4;  }

/* Status badges */
.tol-pr-status {
    font-size: 9px;
    font-weight: 600;
    border-radius: 100px;
    padding: 2px 7px;
    letter-spacing: .3px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}
.tol-s-ok    { background: rgba(0,212,170,.1);  color: #00d4aa; border: 1px solid rgba(0,212,170,.22); }
.tol-s-sync  { background: rgba(251,188,5,.1);  color: #FBBC05; border: 1px solid rgba(251,188,5,.22); }
.tol-s-error { background: rgba(255,95,87,.1);  color: #FF5F57; border: 1px solid rgba(255,95,87,.22); }

/* ── Distribución activa en ──────────────────────────────────── */
.tol-distrib {
    padding: 10px 0 8px;
    border-top: 1px solid rgba(255,255,255,.07);
    margin-top: 4px;
}
.tol-distrib-lbl {
    display: block;
    font-size: 8px;
    font-weight: 600;
    color: rgba(255,255,255,.28);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 6px;
}
.tol-distrib-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.tol-di {
    font-size: 9px;
    font-weight: 600;
    border-radius: 5px;
    padding: 3px 6px;
    text-align: center;
}
.tol-di-gbp  { background: rgba(66,133,244,.1);  color: #4285F4;  border: 1px solid rgba(66,133,244,.2);  }
.tol-di-maps { background: rgba(52,199,89,.1);   color: #34C759;  border: 1px solid rgba(52,199,89,.2);   }
.tol-di-bing { background: rgba(0,120,212,.1);   color: #0078D4;  border: 1px solid rgba(0,120,212,.2);   }
.tol-di-dir  { background: rgba(255,255,255,.05); color: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.1); }

/* ── Metrics bar ─────────────────────────────────────────────── */
.tol-panel-mets {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 2px;
    border-top: 1px solid rgba(255,255,255,.07);
    margin-top: 6px;
}
.tol-pmet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    padding: 0 4px;
    border-right: 1px solid rgba(255,255,255,.06);
}
.tol-pmet:last-child { border-right: none; }
.tol-pmet-val {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
    line-height: 1;
}
.tol-pmet-lime .tol-pmet-val { color: #CCFF00; }
.tol-pmet-lbl {
    font-size: 8px;
    color: rgba(255,255,255,.32);
    text-align: center;
    line-height: 1.3;
}

/* ── Flow diagram: nodos específicos de Multilocal ───────────── */
.tol-fn-erp .tp-fn-inner {
    border-color: rgba(66,133,244,.28);
    background: rgba(66,133,244,.05);
}
.tol-fn-erp .tp-fn-inner:hover {
    border-color: rgba(66,133,244,.55);
    box-shadow: 0 12px 28px rgba(66,133,244,.12);
}

.tol-fn-gbp .tp-fn-inner {
    border-color: rgba(66,133,244,.22);
    background: rgba(66,133,244,.04);
}
.tol-fn-gbp .tp-fn-inner:hover {
    border-color: rgba(66,133,244,.48);
    box-shadow: 0 12px 28px rgba(66,133,244,.1);
}

.tol-fn-bing .tp-fn-inner {
    border-color: rgba(0,120,212,.22);
    background: rgba(0,120,212,.04);
}
.tol-fn-bing .tp-fn-inner:hover {
    border-color: rgba(0,120,212,.48);
    box-shadow: 0 12px 28px rgba(0,120,212,.1);
}

.tol-fn-apple .tp-fn-inner {
    border-color: rgba(52,199,89,.22);
    background: rgba(52,199,89,.04);
}
.tol-fn-apple .tp-fn-inner:hover {
    border-color: rgba(52,199,89,.48);
    box-shadow: 0 12px 28px rgba(52,199,89,.1);
}

/* ── Proceso: 3 steps en la misma fila, ancho completo ───────── */
/* specificity 0,3,0 vence al 0,2,0 de .tp-how .tp-how-layout en producto.css */
.tp-how .tp-how-layout.tp-how-layout--full {
    grid-template-columns: 1fr;
}
.tp-how .tp-how-layout--full .tp-steps-col {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    max-width: none;
    justify-items: stretch;
}
.tp-how .tp-how-layout--full .tp-sc {
    align-items: center;
    flex-direction: column;
    text-align: center;
    min-width: 0;
    box-sizing: border-box;
    width: 100%;
}
.tp-how .tp-how-layout--full .tp-sc-left {
    align-items: center;
}

@media (max-width: 768px) {
    .tp-how .tp-how-layout--full .tp-steps-col {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .tp-how .tp-how-layout--full .tp-steps-col {
        grid-template-columns: 1fr;
    }
    .tp-how .tp-how-layout--full .tp-sc {
        flex-direction: row;
        text-align: left;
    }
}

/* ── Stats: 3 columnas ───────────────────────────────────────── */
.tp-stats-grid.tm-stats-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* ── CTA cross-sell band (mismo diseño que merchant) ─────────── */
.tm-cta-band {
    background: #0d1117;
    padding: 40px 24px;
}
.tm-band-card {
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 48px;
    padding: 36px 48px;
    background: linear-gradient(120deg, rgba(204,255,0,.07) 0%, transparent 65%);
    border: 1px solid rgba(204,255,0,.22);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.tm-band-card::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(204,255,0,.18) 0%, transparent 70%);
    pointer-events: none;
}
.tm-band-card::after {
    content: '✦';
    position: absolute;
    right: 240px; top: 50%;
    transform: translateY(-50%);
    font-size: 96px;
    color: rgba(204,255,0,.06);
    pointer-events: none;
    line-height: 1;
    animation: tmStarPulse 3s ease-in-out infinite;
}
@keyframes tmStarPulse {
    0%, 100% { opacity: .5; transform: translateY(-50%) scale(1); }
    50%       { opacity: 1;  transform: translateY(-50%) scale(1.1); }
}
.tm-band-left { position: relative; z-index: 1; }
.tm-band-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #CCFF00;
    letter-spacing: .9px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.tm-band-kdot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #CCFF00;
    animation: pulseDot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
.tm-band-h {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 10px;
}
.tm-band-h em { font-style: normal; color: #CCFF00; }
.tm-band-desc {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    line-height: 1.65;
    margin: 0;
    max-width: 540px;
}
.tm-band-right { position: relative; z-index: 1; flex-shrink: 0; }
