/* ==========================================================================
   Center Lab — Custom Styles (Bootstrap 5)
   Solo lo que Bootstrap no provee de fábrica.
   ========================================================================== */

/* ── VARIABLES BOOTSTRAP ──────────────────────────────────────────────────── */

:root {
    --bs-primary:         #1e5fa8;
    --bs-primary-rgb:     30, 95, 168;
    --bs-link-color:      #1e5fa8;
    --bs-link-hover-color:#1b3a6b;
}


/* ── TOP BAR ──────────────────────────────────────────────────────────────── */

.topbar {
    background: #16202e;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.topbar-branch {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.65);
    line-height: 1;
}
.topbar-branch .branch-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(var(--bs-primary-rgb), 0.35);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.45);
    padding: 0.18rem 0.5rem;
    border-radius: 3px;
    white-space: nowrap;
}
.topbar-branch i {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-right: 0.2rem;
}
.topbar-sep {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
    margin: 0 0.4rem;
}
.topbar-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
    margin: 0 1rem;
}
.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    color: rgba(255,255,255,0.45);
    font-size: 0.75rem;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}
.topbar-social a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}


/* ── NAVBAR ───────────────────────────────────────────────────────────────── */

.main-nav {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.main-nav.is-scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border-bottom-color: transparent;
}
.main-nav .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #3d4451;
    padding: 0.5rem 0.875rem;
    position: relative;
    transition: color 0.2s ease;
}
.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.875rem;
    right: 0.875rem;
    height: 2px;
    background: var(--bs-primary);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--bs-primary);
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    transform: scaleX(1);
}
.main-nav .nav-link.dropdown-toggle::after {
    content: '';
    position: static;
    display: inline-block;
    width: auto;
    height: 0;
    background: transparent;
    transform: none;
    border-radius: 0;
    margin-left: .255em;
    vertical-align: .255em;
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}
.main-nav .dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: dropFadeIn 0.18s ease;
}
@keyframes dropFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.main-nav .dropdown-item {
    border-radius: 6px;
    font-size: 0.85rem;
    padding: 0.5rem 0.875rem;
    color: #3d4451;
    transition: background 0.15s, color 0.15s;
}
.main-nav .dropdown-item:hover {
    background: rgba(var(--bs-primary-rgb), 0.07);
    color: var(--bs-primary);
}
.main-nav .dropdown-divider {
    margin: 0.35rem 0.5rem;
    border-color: rgba(0,0,0,0.07);
}
.nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #6c757d;
    background: rgba(0,0,0,0.04);
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.2s;
}
.nav-chip:hover { background: rgba(0,0,0,0.07); }
.nav-chip i {
    color: var(--bs-primary);
    font-size: 0.72rem;
}
.main-nav .btn-agenda {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.42rem 1rem;
    border-radius: 999px;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.main-nav .btn-agenda:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.35);
}
.main-nav .navbar-toggler {
    border: none;
    box-shadow: none;
    padding: 0.4rem;
    color: #3d4451;
}
.main-nav .navbar-toggler:focus { box-shadow: none; }


/* ── PAGE HEADERS (secciones internas) ────────────────────────────────────── */

.page-header-services,
.page-header-us,
.page-header-empresa {
    background: linear-gradient(135deg, #1b3a6b 0%, #1e5fa8 100%);
    color: #fff;
    padding: 2.25rem 0;
}


/* ── SERVICE CARDS ────────────────────────────────────────────────────────── */

.service-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.13) !important;
}
.service-card__img-wrap {
    overflow: hidden;
    height: 185px;
}
.service-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s ease;
}
.service-card:hover .service-card__img { transform: scale(1.06); }
.service-card .card-footer { border-radius: 0 !important; }

.filter-item { transition: opacity 0.2s ease; }
.filter-item.is-hidden { display: none !important; }


/* ── NOSOTROS (/empresa) ──────────────────────────────────────────────────── */

.us-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.us-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.11);
}
.us-card__img     { width: 100%; height: 180px; object-fit: cover; }
.us-card__body    { padding: 1.4rem; }
.us-card__title {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bs-primary);
    margin-bottom: 0.75rem;
}
.us-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.us-stat-icon { font-size: 1.75rem; color: var(--bs-primary); }
.us-gallery-img { transition: transform 0.35s ease; }
.us-gallery-img:hover { transform: scale(1.02); }


/* ── SERVICIOS EMPRESA ────────────────────────────────────────────────────── */

.emp-feature-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.emp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}
.emp-feature-icon { font-size: 2rem; color: var(--bs-primary); }


/* ── VET ALERTS ───────────────────────────────────────────────────────────── */

.alert-vet {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.55;
}
.alert-vet-success { background: #e8f5e9; color: #2e7d32; }
.alert-vet-success i { color: #43a047; font-size: 1.1rem; }
.alert-vet-warning  { background: #fff8e1; color: #7b5800; }
.alert-vet-warning  i { color: #f9a825; font-size: 1.1rem; }


/* ── MAPA DE CONTACTO ─────────────────────────────────────────────────────── */

.contact-map-wrap { position: relative; height: 360px; }
#contactMap { height: 100%; width: 100%; z-index: 0; }
.map-legend {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 0.6rem 1.1rem;
    display: flex;
    gap: 1.5rem;
    font-size: 0.82rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 999;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}
.map-legend-item   { display: flex; align-items: center; gap: 0.45rem; }
.map-legend-dot    { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.map-pin {
    width: 32px;
    height: 32px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.28);
    border: 2px solid rgba(255,255,255,0.6);
}
.map-pin span    { transform: rotate(45deg); color: #fff; font-weight: 700; font-size: 13px; line-height: 1; }
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
    font-size: 0.83rem;
}
.leaflet-popup-content { margin: 0.85rem 1rem; line-height: 1.6; }
.popup-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
.popup-row   { display: flex; align-items: flex-start; gap: 0.4rem; color: #555; margin-bottom: 0.15rem; }
.popup-row i { margin-top: 2px; flex-shrink: 0; }


/* ── BREADCRUMB ───────────────────────────────────────────────────────────── */

.breadcrumb-wrapper {
    background: #f0f4fa;
    border-bottom: 1px solid #dce4f0;
    padding: 7px 0;
}
.breadcrumb-wrapper .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.6;
}
.breadcrumb-wrapper .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #a0aab8;
}
.breadcrumb-wrapper .breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
}
.breadcrumb-wrapper .breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-wrapper .breadcrumb-item.active { color: #888; }
@media (max-width: 767px) {
    .breadcrumb-wrapper .breadcrumb-item.bc-mid { display: none; }
}
