/* Porsche Training Play — capa de identidad visual.
   No altera estructura ni comportamiento del sistema UNE base. */
@font-face {
    font-family: "Porsche Next";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://cdn.ui.porsche.com/porsche-design-system/fonts/porsche-next-latin-regular.b8f1c20.woff2") format("woff2");
}
@font-face {
    font-family: "Porsche Next";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("https://cdn.ui.porsche.com/porsche-design-system/fonts/porsche-next-latin-semi-bold.b5f6fca.woff2") format("woff2");
}
@font-face {
    font-family: "Porsche Next";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("https://cdn.ui.porsche.com/porsche-design-system/fonts/porsche-next-latin-bold.0fbdc6d.woff2") format("woff2");
}

:root {
    --ptp-black: #0e0e12;
    --ptp-white: #ffffff;
    --ptp-canvas: #f2f2f2;
    --ptp-surface: #f7f7f7;
    --ptp-red: #d5001c;
    --ptp-blue-detail: #0088ff;
    --ptp-border: #d8d8db;
    --ptp-muted: #6b6d70;
}

html,
body,
button,
input,
select,
textarea,
.navbar,
.dropdown-menu,
.card,
.table {
    font-family: "Porsche Next", "Arial Narrow", Arial, "Heiti SC", SimHei, sans-serif !important;
}

body {
    color: var(--ptp-black);
    background-color: var(--ptp-canvas);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.card-title,
.content-header-title {
    color: var(--ptp-black);
    font-family: "Porsche Next", "Arial Narrow", Arial, sans-serif !important;
    font-weight: 600;
    letter-spacing: -0.018em;
}

.text-muted,
.grey,
.text-secondary {
    color: var(--ptp-muted) !important;
}

.card,
.dropdown-menu,
.modal-content,
.login-card,
.video-card,
.metric-card {
    border: 1px solid var(--ptp-border) !important;
    border-radius: 4px !important;
    box-shadow: 0 8px 24px rgba(14, 14, 18, .06) !important;
}

.card-header,
.card-footer,
.modal-header,
.modal-footer {
    background: var(--ptp-white);
    border-color: var(--ptp-border) !important;
}

.form-control,
.custom-select,
.input-group-text,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-color: #b8b8bd !important;
    border-radius: 2px !important;
    color: var(--ptp-black) !important;
    background-color: var(--ptp-white) !important;
}

.form-control:focus,
.custom-select:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--ptp-black) !important;
    box-shadow: 0 0 0 1px var(--ptp-black) !important;
}

.btn,
button {
    border-radius: 2px !important;
    font-weight: 600;
    letter-spacing: .01em;
}

.btn-wl-primary,
.btn-primary {
    background-color: var(--ptp-black) !important;
    border-color: var(--ptp-black) !important;
    color: #fff !important;
}

.btn-wl-primary:hover,
.btn-wl-primary:focus,
.btn-primary:hover,
.btn-primary:focus {
    background-color: #2b2b30 !important;
    border-color: #2b2b30 !important;
}

.btn-outline-primary,
.btn-outline-wl-primary {
    color: var(--ptp-black) !important;
    border-color: var(--ptp-black) !important;
    background: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-wl-primary:hover {
    color: #fff !important;
    background: var(--ptp-black) !important;
}

.badge-primary,
.bg-primary,
.progress-bar,
.pagination .page-item.active .page-link {
    background-color: var(--ptp-red) !important;
    border-color: var(--ptp-red) !important;
}

.text-primary,
a.text-primary,
.nav-tabs .nav-link.active,
.nav-pills .nav-link.active {
    color: var(--ptp-red) !important;
}

.header-navbar,
.header-navbar.navbar,
.navbar-horizontal {
    background: var(--ptp-white) !important;
    border-color: var(--ptp-border) !important;
    box-shadow: none !important;
}

.wl-navbar-brand {
    position: relative;
}

.wl-navbar-brand::after {
    content: "";
    position: absolute;
    right: -14px;
    top: 50%;
    width: 18px;
    height: 1px;
    background: var(--ptp-blue-detail);
    opacity: .8;
}

.wl-navbar-brand img,
.brand-logo-mobile {
    max-height: 34px !important;
    object-fit: contain;
}

#main-menu-navigation .nav-link {
    color: var(--ptp-black) !important;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

#main-menu-navigation .nav-link:hover,
#main-menu-navigation .nav-link.active {
    color: var(--ptp-black) !important;
    border-bottom-color: var(--ptp-red);
    background: transparent !important;
}

#main-menu-navigation .nav-link.active::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 7px;
    vertical-align: middle;
    background: var(--ptp-blue-detail);
    border-radius: 50%;
}

.table thead th,
table.dataTable thead th {
    color: var(--ptp-black);
    background: #ececee !important;
    border-color: var(--ptp-border) !important;
    font-weight: 600;
}

.table td,
.table th {
    border-color: #e3e3e5 !important;
}

.table-hover tbody tr:hover {
    background-color: #f7f7f8 !important;
}

body.bg-full-screen-image {
    color: var(--ptp-black);
}

.login-card {
    background: rgba(255, 255, 255, .97) !important;
}

.login-card .card-header,
.login-card .card-body {
    background: transparent !important;
}

.login-logo {
    max-width: 100%;
    max-height: 108px;
    object-fit: contain;
}

.login-card .line-on-side span {
    background: var(--ptp-white) !important;
}

.video-card,
.video-card .card-img-top,
.video-thumbnail,
.banner-dashboard img,
.dashboard-banner img {
    border-radius: 3px !important;
}

.progress {
    height: 5px;
    border-radius: 0;
    background: #dedee1;
}

.progress-bar {
    border-radius: 0;
}

.chat-message,
.chat-bubble,
.chat-composer,
.alert {
    border-radius: 3px !important;
}

.alert-info {
    color: #1b1b20;
    background: #eef6ff;
    border-color: rgba(0, 136, 255, .22);
}

.ptp-detail-line {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--ptp-blue-detail);
}

@media (max-width: 767.98px) {
    .wl-navbar-brand::after { display: none; }
    .card, .dropdown-menu, .modal-content { box-shadow: 0 4px 16px rgba(14,14,18,.05) !important; }
}


/* PTP integration audit 2026-09 */
.wl-hero {
    border-radius: 4px !important;
    background-color: #2b2b30;
    overflow: hidden;
}
.wl-hero h1,
.wl-hero p,
.wl-hero__eyebrow {
    color: #ffffff !important;
}
.wl-hero__eyebrow {
    letter-spacing: .045em;
}
.metric-card__icon--primary {
    background: rgba(14,14,18,.08) !important;
    color: var(--ptp-black) !important;
}
.metric-card__icon--accent {
    background: rgba(0,136,255,.10) !important;
    color: var(--ptp-blue-detail) !important;
}
.metric-card__icon--secondary {
    background: rgba(213,0,28,.10) !important;
    color: var(--ptp-red) !important;
}
.metric-card__icon--slate {
    background: rgba(107,109,112,.10) !important;
    color: var(--ptp-muted) !important;
}
.wl-navbar-brand img {
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    max-width: 230px !important;
}
.brand-logo-mobile {
    height: 34px !important;
    width: auto !important;
    max-height: 34px !important;
    max-width: 180px !important;
}
.login-logo {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 104px !important;
    margin-left: auto;
    margin-right: auto;
}
.video-card__thumb {
    border-radius: 3px 3px 0 0 !important;
    background-position: center center !important;
}
.video-table-thumb,
.video-preview-thumb img,
.user-list-avatar,
.profile-photo-preview img,
.header-navbar .avatar img {
    object-position: center center;
}
