:root {
  --bs-primary-rgb: 37, 54, 70 !important;
  --bs-info-bg-subtle: #D6E0EA !important;
  --bs-info-border-subtle: #D6E0EA !important;
  --color-amarillo: #F7DB05 !important;

}
.btn-primary {
  --bs-btn-color: #fff!important;
  --bs-btn-bg: #253646!important;
  --bs-btn-border-color: #253646!important;
  --bs-btn-hover-color: #fff!important;
  --bs-btn-hover-bg: #3c5368!important;
  --bs-btn-hover-border-color: #3c5368!important;
  --bs-btn-focus-shadow-rgb: 49, 132, 253!important;
  --bs-btn-active-color: #fff!important;
  --bs-btn-active-bg: #253646!important;
  --bs-btn-active-border-color: #253646!important;
  --bs-btn-disabled-bg: #3c5368!important;
  --bs-btn-disabled-border-color: #3c5368!important;
}
.btn-outline-primary {
    --bs-btn-color: #253646;
    --bs-btn-border-color: #253646;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #253646;
    --bs-btn-hover-border-color: #253646;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #253646;
    --bs-btn-active-border-color: #253646;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #253646;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #253646;
    --bs-gradient: none;
}
.btn-outline-info {
    --bs-btn-color: #3c5368;
    --bs-btn-border-color: #3c5368;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #3c5368;
    --bs-btn-hover-border-color: #3c5368;
    --bs-btn-focus-shadow-rgb: 13, 202, 240;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #3c5368;
    --bs-btn-active-border-color: #3c5368;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #3c5368;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #3c5368;
    --bs-gradient: none;
}
.alert-success {
    --bs-alert-color: #253646;
    --bs-alert-bg: #D6E0EA;
    --bs-alert-border-color: #bfcddb;
    --bs-alert-link-color: #253646;
}

hr {
	border-top: 2px solid #253646!important;
	opacity: 1!important;
}
.navbar {
  border-bottom: 3px solid var(--color-amarillo);
}

.color-amarillo {
  color: var(--color-amarillo);
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: #253646;
  box-shadow: 0 0 0 0.25rem rgba(131, 167, 201, 0.25);
}

.na-form-labels .form-label,
.na-form-labels .form-check-label {
    font-weight: 700;
    color: #253646;
}

.form-check-input:checked {
    background-color: #253646;
	border-color: #253646;
}

html, body {
    min-height: 100%;
}

body {
    font-size: 0.95rem;
}

.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contenido-principal {
    flex: 1;
    min-height: calc(100vh - 64px);
}

.na-app-footer {
    background: #253646;
    color: #fff;
}

.na-app-footer a {
    color: #fff;
}

.na-app-footer a:hover {
    text-decoration: underline;
}

.na-card-header-accent {
    background: #253646 !important;
    color: #F7DB05 !important;
}

.na-card-header-accent strong,
.na-card-header-accent .h6,
.na-card-header-accent .h5,
.na-card-header-accent .h4,
.na-card-header-accent .h3,
.na-card-header-accent .h2,
.na-card-header-accent .h1 {
    color: #F7DB05 !important;
}

.na-link-privacidad {
    color: inherit;
    text-decoration: underline;
}

.na-link-privacidad:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.tarjeta-kpi {
    border-radius: 1rem;
}

.texto-etiqueta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.texto-valor {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.card {
    border-radius: 1rem;
}

/* Estado del negocio (destacado en formulario y ficha) */
.na-estado-destacado {
    border: 2px solid #253646;
    border-radius: 0.75rem;
    padding: 1rem;
    background: #f5f7f9;
}

.na-estado-resumen {
    border: 2px solid rgba(37, 54, 70, 0.35);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.06);
}

.na-estado-resumen-label {
    font-size: 0.8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6c757d;
}

.na-estado-resumen-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #253646;
}

.na-estado-resumen-amigo {
    border-color: rgba(25, 135, 84, 0.55);
    background: rgba(25, 135, 84, 0.06);
}

@media (max-width: 575.98px) {
    .texto-valor {
        font-size: 1.7rem;
    }
}

.w-35 {
    width: 35%;
}

.texto-pre-wrap {
    white-space: pre-wrap;
}

.fila-observacion td {
    border-top: 0;
}


.page-link { border-radius: .5rem; }
.fila-observacion td { white-space: normal; }
.card-header h2, .card-header .h5 { font-weight: 600; }
.table td, .table th { vertical-align: middle; }

.js-autocompletar-formulario {
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Timeline (visitas) en ficha de negocio
   - Móvil: línea a la izquierda + tarjetas a la derecha
   - Escritorio (lg+): línea centrada + tarjetas alternas izquierda/derecha
   -------------------------------------------------------------------------- */

.na-timeline {
    position: relative;
    padding: 0.25rem 0;
}

.na-timeline::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 1.25rem;
    width: 2px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    z-index: 0;
}

.na-timeline-item {
    position: relative;
    padding-left: 3.25rem;
    margin-bottom: 1.25rem;
    z-index: 1;
}

.na-timeline-item:last-child {
    margin-bottom: 0;
}

.na-timeline-point {
    position: absolute;
    left: 1.25rem;
    top: 1.1rem;
    width: 14px;
    height: 14px;
    transform: translateX(-50%);
    background: rgba(var(--bs-primary-rgb), 1);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.15);
    z-index: 2;
}

.na-timeline-card {
    border-radius: 1rem;
}

.na-timeline-card .badge {
    white-space: nowrap;
}

@media (min-width: 992px) {
    .na-timeline {
        padding: 0.5rem 0;
    }

    .na-timeline::before {
        left: 50%;
    }

    .na-timeline-item {
        width: 50%;
        padding-left: 0;
    }

    .na-timeline-item.na-left {
        padding-right: 3rem;
    }

    .na-timeline-item.na-right {
        margin-left: 50%;
        padding-left: 3rem;
    }

    .na-timeline-item.na-left .na-timeline-point {
        left: auto;
        right: -7px;
        transform: none;
    }

    .na-timeline-item.na-right .na-timeline-point {
        left: -7px;
        transform: none;
    }

    .na-timeline-item .na-timeline-card {
        max-width: 560px;
    }

    .na-timeline-item.na-left .na-timeline-card {
        margin-left: auto;
    }

    .na-timeline-item.na-right .na-timeline-card {
        margin-right: auto;
    }
}

/* --------------------------------------------------------------------------
   Ficha de negocio - bloques superiores (datos negocio / datos comerciales)
   Objetivo:
   - Sustituir tablas por una presentación tipo "fichas" (key/value) más moderna
   - 100% responsive
   - Estilo coherente con el timeline
   -------------------------------------------------------------------------- */

.na-detail-block {
    display: block;
}

.na-section-title {
    font-weight: 600;
    color: #253646;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.na-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .na-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.na-info-item {
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.9);
}

.na-info-item.na-full {
    grid-column: 1 / -1;
}

.na-info-label {
    font-size: 0.8rem;
    color: #000000;
    margin-bottom: 0.15rem;
}

.na-info-value {
    font-weight: 600;
    color: #212529;
    line-height: 1.25;
    word-break: break-word;
}

.na-info-value .badge {
    font-weight: 600;
}

.na-empty {
    color: #adb5bd;
    font-weight: 600;
}

.na-link {
    color: inherit;
    text-decoration: none;
}

.na-link:hover {
    text-decoration: underline;
}

.btn-na-mail {
    background-color: #253646;
    border-color: #253646;
    color: #ffffff;
    font-weight: 600;
}

.btn-na-mail:hover,
.btn-na-mail:focus,
.btn-na-mail:active {
    background-color: #1b2a34 !important;
    border-color: #1b2a34 !important;
    color: #ffffff !important;
}


.js-row-link[data-href] {
    cursor: pointer;
}

.table-hover tbody tr.js-row-link[data-href]:hover > * {
    background-color: rgba(37, 54, 70, 0.04);
}

.js-row-link[data-href]:focus {
    outline: 2px solid rgba(37, 54, 70, 0.25);
    outline-offset: -2px;
}

.na-mobile-list {
    display: grid;
    gap: 0.75rem;
}

.na-mobile-card {
    border: 1px solid rgba(37, 54, 70, 0.16);
    border-radius: 0.9rem;
    background: #fff;
    padding: 0.75rem 0.85rem;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.05);
}

.na-mobile-card:hover {
    background-color: rgba(37, 54, 70, 0.02);
}

.na-mobile-card:focus {
    outline: 2px solid rgba(37, 54, 70, 0.25);
    outline-offset: 1px;
}

.na-mobile-card-title {
    font-weight: 700;
    color: #253646;
    line-height: 1.25;
    word-break: break-word;
}

.na-mobile-card-body {
    margin-top: 0.45rem;
}

.na-mobile-card-line {
    font-size: 0.875rem;
    line-height: 1.3;
    margin-top: 0.2rem;
    word-break: break-word;
}

.na-mobile-card-label {
    font-weight: 600;
    color: #253646;
}

.na-mobile-edit-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .na-mobile-list {
        display: none;
    }
}
.leaflet-container a {
    color: #ffffff!important;
}
.na-visit-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.na-visit-flow-step {
    border: 1px solid rgba(37, 54, 70, 0.16);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #253646;
    background: #ffffff;
}

.na-visit-flow-step.is-active,
.js-perfil-visita.active {
    background: #253646;
    color: #ffffff;
    border-color: #253646;
}

.na-visit-intro {
    background: linear-gradient(135deg, rgba(37, 54, 70, 0.08), rgba(255, 211, 61, 0.12));
    color: #253646;
}

.na-form-section {
    border-radius: 1rem;
}

.na-form-section-header {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.na-form-section-step {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    flex: 0 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #253646;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 0.2rem 0.6rem rgba(37, 54, 70, 0.15);
}

.na-argumentario-box {
    border: 1px solid rgba(37, 54, 70, 0.14);
    border-radius: 0.9rem;
    background: rgba(37, 54, 70, 0.03);
    padding: 0.85rem 0.95rem;
}

.na-argumentario-box-title {
    font-weight: 700;
    color: #253646;
    margin-bottom: 0.3rem;
}

.na-profile-helper {
    border: 1px dashed rgba(37, 54, 70, 0.18);
    border-radius: 0.9rem;
    padding: 0.9rem;
    background: rgba(255, 248, 220, 0.38);
}


.na-help-hero-card {
    border: 2px solid rgba(var(--bs-primary-rgb), 0.08);
    background: linear-gradient(135deg, rgba(37, 54, 70, 0.05) 0%, rgba(247, 219, 5, 0.12) 100%);
}

.na-help-kicker {
    display: inline-block;
    margin-bottom: .5rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: #253646;
}

.na-help-summary {
    height: 100%;
    min-height: 120px;
    border-radius: 1rem;
    padding: 1.25rem;
    border: 2px solid rgba(var(--bs-primary-rgb), 0.1);
    background: rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.na-help-summary-label {
    font-size: .9rem;
    color: #6c757d;
    margin-bottom: .25rem;
}

.na-help-summary-value {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: #253646;
}

.na-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.na-help-card {
    border-radius: 1rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    border: 2px solid transparent;
}

.na-help-card:hover,
.na-help-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 1rem 2.5rem rgba(37, 54, 70, 0.10) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.18);
}

.na-help-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #253646;
    background: rgba(37, 54, 70, 0.08);
    flex: 0 0 auto;
}

.na-help-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.na-help-badge {
    color: #253646;
}

.na-help-category {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6c757d;
}

.na-help-arrow {
    font-size: 1.2rem;
    line-height: 1;
    color: #253646;
}

.na-help-card-placeholder {
    background: repeating-linear-gradient(135deg, rgba(37, 54, 70, 0.035) 0, rgba(37, 54, 70, 0.035) 10px, rgba(37, 54, 70, 0.015) 10px, rgba(37, 54, 70, 0.015) 20px);
}

@media (max-width: 575.98px) {
    .na-help-grid {
        grid-template-columns: 1fr;
    }

    .na-help-summary-value {
        font-size: 2rem;
    }
}
