:root {
    --bg: #eef2ff;
    --panel: #ffffff;
    --ink: #1d2940;
    --muted: #5d6e8a;
    --accent-purple: #6d49aa;
    --accent-blue: #5aa9df;
    --line: #d8e2f3;
    --line-strong: #c3d2ea;
    --success: #0f8a58;
    --error: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0 118px, #edf2ff 118px 100%);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

.admin-shell-body {
    background:
    radial-gradient(circle at 2% 0%, rgba(154, 209, 242, 0.22), transparent 36%),
    radial-gradient(circle at 94% 8%, rgba(109, 73, 170, 0.07), transparent 30%),
    #f3f7fc;
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px 1fr;
}

.admin-sidebar {
    background: #ffffff;
    border-right: 1px solid #e4ebf2;
    padding: 18px 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 8px 12px;
}

.admin-logo img {
    width: 100%;
    max-width: 176px;
    object-fit: contain;
}

.admin-menu {
    display: grid;
    gap: 7px;
    justify-items: center;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #6f3e90 #ffffff;
}

.admin-menu::-webkit-scrollbar {
    width: 7px;
}

.admin-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #6f3e90;
}

.admin-menu a {
    text-decoration: none;
    color: #70b8d8;
    font-weight: 700;
    display: flex;
    align-items: center;
    height: 42px;
    width: 230px;
    max-width: 100%;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #ffffff;
    box-shadow: 0 4px 11px rgba(43, 76, 105, 0.1);
    font-size: 0.92rem;
    transition: background 0.18s ease, transform 0.12s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-menu a:hover {
    background: #f3fbff;
    border-color: #d9eff8;
    transform: translateX(1px);
    box-shadow: 0 6px 15px rgba(24, 71, 112, 0.14);
}

.admin-menu a.active {
    color: #ffffff;
    background: #6f3e90;
    border-color: #6f3e90;
    box-shadow: 0 7px 16px rgba(111, 62, 144, 0.28);
}

.admin-menu-icon {
    display: inline-grid;
    width: 20px;
    margin-right: 8px;
    place-items: center;
    color: #8fcde5;
    font-size: 1.05rem;
    line-height: 1;
}

.admin-menu a.active .admin-menu-icon {
    color: #ffffff;
}

.admin-logout-wrap {
    margin-top: auto;
}

.admin-logout {
    display: block;
    width: 230px;
    max-width: 100%;
    margin-inline: auto;
    border: 1px solid #dcecf4;
    background: #ffffff;
    color: #70b8d8;
    border-radius: 999px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 700;
}

.admin-logout:hover {
    background: #f3fbff;
}

.admin-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-shell-body .replica-site-footer {
    display: none;
}

.admin-topbar {
    background: rgba(255, 255, 255, 0.84);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #dbe6f5;
    padding: 18px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 1.24rem;
    letter-spacing: 0.01em;
    color: #3b5678;
}

.admin-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user-badge small {
    display: block;
    color: #7386a0;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: #6d49aa;
    font-weight: 800;
}

.admin-content {
    padding: 20px 24px 30px;
    width: 100%;
    flex: 1;
}

.admin-kpi-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-bottom: 14px;
}

.admin-kpi-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 16px;
    border: 1px solid #dbe6f5;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(23, 57, 93, 0.08);
}

.admin-kpi-card h3 {
    margin: 0;
    color: #6d7f98;
    font-size: 0.93rem;
}

.admin-kpi-card p {
    margin: 8px 0 0;
    font-size: 2rem;
    color: #2f8fcb;
    font-weight: 800;
}

.admin-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.admin-page-head h2 {
    margin: 0;
}

.admin-page-head p {
    margin: 4px 0 0;
    color: var(--muted);
}

.admin-table-card h3 {
    margin-top: 0;
}

.admin-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.admin-table-toolbar form label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #6f85a5;
    font-size: 0.82rem;
}

.admin-table-toolbar select {
    min-width: 130px;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 0.82rem;
}

.source-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 800;
}

.source-replica {
    color: #6f3e90;
    background: #f3eafa;
}

.source-autodesk {
    color: #247da7;
    background: #e4f5fc;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 11px 10px;
    border-bottom: 1px solid #edf2fb;
    font-size: 0.94rem;
    vertical-align: middle;
}

.admin-table th {
    color: #68809b;
    background: #f8fbff;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.container {
    width: min(1160px, 92vw);
    margin: 0 auto;
}

.topbar {
    border-bottom: 2px solid #ffffff;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    line-height: 0;
}

.brand img {
    width: min(340px, 54vw);
    max-height: 84px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logout-form {
    margin: 0;
}

.link-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.link-button:hover {
    color: var(--ink);
}

.main-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.04rem;
}

.main-nav a:hover {
    color: var(--ink);
}

.access-pill {
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    background: #6f3e90;
}

.access-pill img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.main-content {
    flex: 1;
    padding: 26px 0 42px;
}

.main-content.has-site-footer {
    flex: 1 1 auto;
    padding-bottom: 0;
}

.main-content.no-footer-gap {
    flex: 0 0 auto;
}

.main-content.no-footer-gap + .replica-site-footer {
    margin-top: 0;
}

.auth-wrap {
    min-height: calc(100vh - 250px);
    display: grid;
    place-items: center;
}

.main-content.auth-page .auth-wrap {
    min-height: clamp(330px, 42vh, 460px);
    padding: 18px 0;
    margin-bottom: 0;
}

.auth-card {
    width: min(460px, 100%);
    background: #ffffff;
    border: 1px solid #d8e2f4;
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(18, 47, 92, 0.14);
    padding: 18px;
}

.auth-card h1 {
    margin: 0;
    font-size: 1.55rem;
    text-align: center;
    color: #4db4e6;
}

.auth-card p {
    color: #6d7f9b;
}

.main-content.auth-page .auth-card {
    justify-self: center;
    margin-inline: auto;
    transform: none;
}

.auth-card > p:first-of-type {
    text-align: center;
}

.auth-form {
    display: grid;
    gap: 10px;
    width: min(100%, 360px);
    margin-inline: auto;
}

.auth-form .button.gradient,
.auth-form .button.gradient:hover {
    background: #6f3e90;
}

.auth-note {
    margin: 12px 0 0;
    font-size: 0.86rem;
    color: #7f8fad;
}

.courses-banner {
    width: 100dvw;
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
    margin-bottom: 16px;
    border-radius: 0;
    border-top: 1px solid #d9e4f4;
    border-bottom: 1px solid #d9e4f4;
    background:
        linear-gradient(180deg, rgba(246, 250, 255, 0.96) 0%, rgba(240, 246, 255, 0.96) 100%),
        repeating-linear-gradient(135deg, rgba(88, 136, 192, 0.06) 0 14px, rgba(88, 136, 192, 0.02) 14px 28px);
    padding: 14px 0;
    color: #1f3658;
    box-shadow: 0 8px 18px rgba(30, 57, 92, 0.08);
    position: relative;
    overflow: hidden;
}

.courses-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(177, 198, 226, 0.32);
    pointer-events: none;
}

.courses-banner-head {
    width: min(1160px, 92vw);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 2px 6px 10px;
    position: relative;
    z-index: 1;
}

.courses-banner-kicker {
    margin: 0 0 4px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: #4a6f98;
    opacity: 0.95;
}

.courses-banner-head h2 {
    margin: 0;
    font-size: 1.36rem;
    color: #1d3557;
}

.courses-banner-head p {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: #58769d;
    opacity: 1;
}

.courses-banner-chip {
    border: 1px solid #c8d8ee;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #3f5f89;
    background: rgba(255, 255, 255, 0.92);
}

.courses-carousel {
    width: min(1160px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding: 4px 4px 8px;
    position: relative;
    z-index: 1;
    scroll-snap-type: x mandatory;
}

.course-slide {
    border: 1px solid #d5e2f4;
    background: #ffffff;
    border-radius: 12px;
    min-height: 148px;
    box-shadow: 0 6px 14px rgba(30, 57, 92, 0.06);
    overflow: hidden;
    scroll-snap-align: start;
    display: grid;
    grid-template-rows: 84px 1fr;
}

.course-slide-media {
    background-color: #edf4f9;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.course-slide-content {
    padding: 10px 12px;
}

.course-slide strong {
    display: block;
    font-size: 0.96rem;
    line-height: 1.25;
    margin-bottom: 6px;
}

.course-slide small {
    display: block;
    font-size: 0.82rem;
    color: #5c799e;
    opacity: 1;
    line-height: 1.25;
}

.courses-carousel-placeholder .sample-slide:nth-child(1) .course-slide-media {
    background: url("https://imagenesassist.blob.core.windows.net/static/Banner-1-Primera-vista.jpg") center/cover no-repeat;
}

.courses-carousel-placeholder .sample-slide:nth-child(2) .course-slide-media {
    background: url("https://imagenesassist.blob.core.windows.net/static/Banner-2-Primera-vista.jpg") center/cover no-repeat;
}

.courses-carousel-placeholder .sample-slide:nth-child(3) .course-slide-media {
    background: url("https://imagenesassist.blob.core.windows.net/static/Banner-1-Primera-vista.jpg") center/cover no-repeat;
}

.courses-banner-empty {
    display: none;
}

.landing-hero {
    width: 100dvw;
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #dbe7f7;
    background:
        linear-gradient(105deg, rgba(241, 247, 255, 0.86) 0%, rgba(241, 247, 255, 0.75) 46%, rgba(241, 247, 255, 0.88) 100%),
        url("https://imagenesassist.blob.core.windows.net/static/fondo1-Primera-vista.jpg") center/cover no-repeat;
    min-height: 500px;
    box-shadow: 0 16px 34px rgba(20, 33, 61, 0.12);
}

.landing-overlay {
    min-height: 500px;
    padding: 34px 36px;
    background: linear-gradient(90deg, rgba(233, 242, 255, 0.48) 0%, rgba(233, 242, 255, 0.18) 52%, rgba(233, 242, 255, 0.38) 100%);
}

.landing-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.95fr;
    gap: 28px;
    align-items: center;
    min-height: 492px;
    width: min(1160px, 92vw);
    margin: 0 auto;
}

.landing-copy {
    transform: translateY(-79px);
}

.landing-copy {
    max-width: 560px;
}

.landing-copy h1 {
    margin: 4px 0 14px;
    line-height: 1.04;
    font-size: clamp(2.3rem, 4.5vw, 3.9rem);
    color: #1e2633;
}

.landing-copy .lead {
    font-size: 1.05rem;
    color: #3f4e63;
    max-width: 540px;
}

.landing-validator-card {
    background: #ffffff;
    border: 1px solid #d3dff2;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 14px 28px rgba(28, 53, 91, 0.16);
}

.landing-validator-card h2 {
    margin: 0 0 14px;
    text-align: center;
    font-size: 1.55rem;
    color: #1b2d4a;
}

.landing-submit {
    width: 100%;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1.02rem;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    gap: 22px;
    align-items: start;
}

.hero-copy h1 {
    margin: 2px 0 10px;
    line-height: 1.05;
    font-size: clamp(2rem, 4.1vw, 3.25rem);
}

.hero-copy h1 span {
    color: #5d3f92;
}

.eyebrow {
    margin: 0;
    color: #6aa6d9;
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.lead {
    margin: 0;
    max-width: 640px;
    color: #5c6e8a;
    line-height: 1.4;
}

.pill-row {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-row span {
    border-radius: 999px;
    border: 1px solid #d3def2;
    color: #6f7f98;
    background: #f7faff;
    font-size: 0.86rem;
    padding: 4px 10px;
}

.validator-card {
    background: #ffffff;
    border: 1px solid #d8e2f4;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(18, 47, 92, 0.12);
    padding: 18px;
}

.validator-card h2 {
    margin: 0;
    text-align: center;
    font-size: 1.32rem;
}

.validator-card > p {
    text-align: center;
    color: #7b8ba6;
    margin: 8px 0 12px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.panel-head h3 {
    margin: 0;
}

.panel-head .muted-text {
    margin: 2px 0 0;
}

.validator-form {
    display: grid;
    gap: 10px;
}

.validator-form label {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    color: #6d7f9b;
}

.result {
    margin-top: 12px;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.92rem;
}

.result.success {
    color: #105a3d;
    background: #e8fff4;
    border: 1px solid #b9ead4;
}

.result.error {
    color: #9c1b1b;
    background: #fff1f2;
    border: 1px solid #ffd2d4;
}

.result.muted {
    color: #6d7f9b;
    background: #f5f8ff;
    border: 1px solid #dee7f7;
}

.result-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.validation-stage {
    width: 100dvw;
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
    padding: 18px 0 30px;
    border-top: 1px solid #dbe7f7;
    background:
        linear-gradient(108deg, rgba(241, 247, 255, 0.92) 0%, rgba(241, 247, 255, 0.88) 50%, rgba(241, 247, 255, 0.94) 100%),
        url("https://imagenesassist.blob.core.windows.net/static/fondo1-Segunda-vista.jpg") center/cover no-repeat;
}

.validation-stage.validation-stage-tight-footer {
    margin-bottom: 0;
    padding-bottom: 0;
}

.validation-stage .validation-result-head,
.validation-stage .result-grid,
.validation-stage > .card {
    width: min(1160px, 92vw);
    margin-left: auto;
    margin-right: auto;
}

.validation-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.validation-result-head h2 {
    margin: 0;
}

.validation-layout {
    grid-template-columns: minmax(320px, 0.9fr) 1.1fr;
    align-items: stretch;
}

.validation-data-card {
    position: sticky;
    top: 96px;
}

.validation-stage-tight-footer .validation-layout > .card {
    height: 420px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.validation-stage-tight-footer .validation-data-card {
    position: static;
    top: auto;
}

.validation-stage-tight-footer .validation-kv-grid {
    flex: 1;
    align-content: start;
}

.validation-kv-grid {
    display: grid;
    gap: 10px;
}

.validation-kv-item {
    border: 1px solid #dbe7f7;
    border-radius: 12px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.validation-kv-item small {
    display: block;
    font-size: 0.8rem;
    color: #6f85a5;
    margin-bottom: 4px;
}

.validation-kv-item strong {
    font-size: 1.15rem;
    line-height: 1.25;
    color: #12284b;
}

.grid.two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(20, 33, 61, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 16px 36px rgba(20, 33, 61, 0.11);
}

.card.compact {
    border-radius: 14px;
    padding: 14px;
}

.card.compact h3 {
    margin-top: 0;
}

.card.narrow {
    width: 100%;
    margin: 0 auto;
}

.verification-card h2,
.verification-card strong {
    color: #4db4e6;
}

.verification-card p span {
    color: #6f3e90;
}

.admin-stack {
    display: grid;
    gap: 14px;
}

.form-section {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: #fbfdff;
}

.form-section h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: #4c6584;
}

.form-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-grid {
    margin-top: 4px;
}

.preview-shell {
    margin-top: 10px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    padding: 12px;
}

.preview-shell.empty {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #96a4bb;
    background: #152238;
}

.preview-shell.preview-shell-compact {
    width: min(560px, 100%);
    margin-inline: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0;
}

.validation-stage-tight-footer .preview-shell.preview-shell-compact {
    flex: 1;
}

.preview-shell.preview-shell-compact .certificate-preview-frame {
    height: 100%;
    min-height: 100%;
}

.preview-shell.preview-shell-compact iframe {
    height: 100% !important;
    min-height: 100%;
}

.disclaimer {
    margin: 12px 0 0;
    color: #8e9bb2;
    font-size: 0.88rem;
}

.page-footer {
    margin-top: 18px;
    color: #6f7f9a;
    font-size: 0.84rem;
    font-weight: 600;
}

#ayuda {
    margin-top: 14px;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.list-item small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.button {
    appearance: none;
    border: 1px solid #cfddf2;
    border-radius: 999px;
    background: #f2f6ff;
    color: #294362;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.16s ease;
}

.button:hover {
    background: #e5eefc;
    border-color: #bed0eb;
}

.button.gradient {
    color: #ffffff;
    background: #6f3e90;
    border-color: #6f3e90;
}

.button.gradient:hover {
    background: #6f3e90;
    border-color: #6f3e90;
}

.button.solid-purple,
.button.solid-purple:hover {
    color: #ffffff;
    background: #6f3e90;
    border-color: #6f3e90;
}

.button.landing-submit {
    color: #ffffff;
    background: #6f3e90;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(73, 95, 173, 0.24);
}

.button.landing-submit:hover {
    background: #6f3e90;
    border-color: transparent;
}

.replica-site-footer {
    width: 100dvw;
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
    margin-top: auto;
    border-top: 1px solid #cddcf3;
    background: #1f2937;
    color: #e5edf8;
}

.replica-site-footer-inner {
    width: min(1160px, 92vw);
    margin: 0 auto;
    padding: 18px 6px;
}

.replica-site-footer-brand {
    margin: 0 0 4px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.replica-site-footer p {
    margin: 0;
    font-size: 0.92rem;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.button.ghost {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: #3e5f83;
}

.button.ghost:hover {
    background: #f2f7ff;
}

.button.danger {
    background: #fff2f2;
    border-color: #efc7ca;
    color: #9b1c23;
}

.button.danger:hover {
    background: #ffe7e8;
}

/* Public landing page */
.topbar {
    border-bottom: 0;
    box-shadow: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 18px;
    margin-top: 7px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c4d4e2;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.carousel-dot.active {
    background: #6f3e90;
    transform: scale(1.35);
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
    background: #4db4e6;
    outline: none;
}

.topbar-content {
    width: min(900px, calc(100% - 32px));
    padding: 24px 0 21px;
}

.brand img {
    width: clamp(165px, 18vw, 220px);
    height: 78px;
}

.main-nav {
    gap: 10px;
}

.nav-pill {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 40px;
    padding: 9px 22px;
    border-radius: 999px;
    color: #ffffff !important;
    font-size: 1rem !important;
    line-height: 1.2;
    font-weight: 600 !important;
}

.nav-pill img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.nav-home {
    background: #6f3e90;
}

.nav-help {
    background: #4db4e6;
}

.main-nav .access-pill,
.main-nav .logout-form {
    display: none;
}

.main-content.has-site-footer {
    padding-top: 0;
}

.courses-banner {
    position: relative;
    min-height: clamp(110px, calc((100vw - 32px) * 0.263 + 18px), 300px);
    margin-bottom: 8px;
    padding: 10px 0;
    overflow: visible;
    border: 0;
    background: #f1f7fc;
    box-shadow: none;
}

.courses-banner::before,
.courses-banner::after {
    display: none;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 40px;
    height: 60px;
    padding: 0;
    border: 0;
    color: #6f3e90;
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.carousel-arrow-prev {
    left: max(2px, calc(50% - 490px));
}

.carousel-arrow-next {
    right: max(2px, calc(50% - 490px));
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
    color: #4db4e6;
    outline: none;
}

.courses-carousel {
    width: 100%;
    aspect-ratio: 1370 / 360;
    max-height: 360px;
    height: auto;
    grid-auto-columns: 100%;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.courses-carousel::before,
.courses-carousel::after {
    display: none;
}

.courses-carousel::before {
    content: "‹";
    left: -18px;
}

.courses-carousel::after {
    content: "›";
    right: -18px;
}

.course-slide {
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

.course-slide-media {
    width: 100%;
    height: 100%;
    min-height: inherit;
    background-color: #edf4f9;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    max-height: 360px;
}

.course-slide-empty .course-slide-media {
    background-color: #edf4f9;
}

.courses-carousel .sample-slide-1 .course-slide-media {
    background:
        url("https://imagenesassist.blob.core.windows.net/static/Banner-1-Primera-vista.jpg") center/cover no-repeat;
}

.courses-carousel .sample-slide-2 .course-slide-media {
    background:
        url("https://imagenesassist.blob.core.windows.net/static/Banner-2-Primera-vista.jpg") center/cover no-repeat;
}

.course-slide-content {
    padding: 9px 18px;
    background: #ffffff;
}

.course-slide strong {
    margin: 0 0 3px;
    color: #303b51;
    font-size: 0.84rem;
}

.course-slide small {
    color: #6e7d92;
    font-size: 0.72rem;
}

.landing-hero {
    width: 100dvw;
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
    min-height: clamp(360px, 42vw, 520px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.91) 0%, rgba(255, 255, 255, 0.82) 48%, rgba(255, 255, 255, 0.66) 100%),
        url("https://imagenesassist.blob.core.windows.net/static/fondo1-Primera-vista.jpg") center/cover no-repeat;
}

.landing-overlay {
    min-height: clamp(360px, 42vw, 520px);
    padding: 0;
    background: transparent;
}

.landing-grid {
    width: min(780px, calc(100% - 32px));
    min-height: clamp(360px, 42vw, 520px);
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.9fr);
    gap: 20px;
}

.landing-copy h1 {
    margin: 0 0 13px;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.02;
    color: #6f3e90;
    font-weight: 700;
}

.landing-copy h1 span {
    display: block;
    color: #4db4e6;
}

.landing-copy h1 .landing-title-line {
    white-space: nowrap;
}

.landing-copy h1 .landing-title-brand {
    color: #6f3e90;
}

.landing-copy .lead {
    margin: 0;
    color: #6f3e90;
    font-size: clamp(0.72rem, 1.1vw, 1rem);
    line-height: 1.35;
}

.landing-validator-card {
    width: min(380px, 100%);
    padding: 18px 18px 16px;
    border: 0;
    border-radius: 9px;
    box-shadow: 0 7px 12px rgba(30, 43, 70, 0.18);
    transform: translateY(clamp(130px, 12vw, 170px));
}

.landing-validator-card h2 {
    margin-bottom: 12px;
    color: #4db4e6;
    font-size: 1.02rem;
}

.validator-form {
    gap: 10px;
}

.validator-form label {
    color: #9ca6b2;
    font-size: 0.78rem;
}

.validator-form input {
    margin-top: 4px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 0.76rem;
}

.landing-submit {
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 0.92rem;
}

.replica-site-footer {
    margin-top: 0;
    border-top: 0;
    background: #38b3e5;
    color: #ffffff;
    width: 100%;
}

.footer-partner-logos {
    display: flex;
    justify-content: center;
    padding: 10px 24px;
    background: #ffffff;
}

.footer-partner-logos img {
    display: block;
    width: min(1370px, 100%);
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

.footer-legal {
    padding: 10px 24px;
    background: #181818;
    color: #bcc6d1;
    text-align: center;
    font-size: 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-legal p {
    margin: 0 auto 6px;
    width: min(100%, 1100px);
    text-align: center;
    font-size: 0.4rem !important;
}

.footer-legal p:last-child {
    margin-bottom: 0;
}

.main-content.has-site-footer:not(.validation-page):not(.auth-page) + .replica-site-footer {
    margin-top: 0;
}

.replica-site-footer-inner {
    width: min(100%, 1300px);
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    justify-content: center;
    justify-items: center;
    gap: 12px;
    min-height: 200px;
    padding: 16px 20px 10px;
    box-sizing: border-box;
    margin: 0 auto;
}

.footer-mark {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 180px;
    grid-column: 1;
    justify-self: center;
    transform: translateX(70px);
}

.footer-mark-r {
    display: block;
    width: 92px;
    height: auto;
    object-fit: contain;
    opacity: 0.98;
}

.footer-contact {
    width: fit-content;
    grid-column: 2 / span 3;
    justify-self: center;
}

.footer-contact strong {
    display: block;
    margin-bottom: 12px;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.replica-site-footer p,
.footer-links a {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.45;
    margin: 0;
}

.footer-contact-columns {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 1fr);
    gap: 10px 38px;
}

.footer-contact p {
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 13px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-contact a,
.footer-links a {
    color: #ffffff;
    text-decoration: none;
}

.footer-links {
    display: grid;
    align-content: center;
    gap: 8px;
    width: fit-content;
    min-height: 100px;
    padding-left: 14px;
    border-left: 3px solid rgba(255, 255, 255, 0.8);
    grid-column: 5;
    justify-self: center;
}

.footer-links a {
    display: block;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    font-size: 13px;
}


@media (max-width: 900px) {
    .replica-site-footer-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 28px 24px 26px;
        transform: none;
    }

    .footer-mark {
        width: 100%;
        grid-column: auto;
        justify-self: center;
        height: auto;
        transform: none;
    }

    .footer-mark svg {
        max-width: 90px;
    }

    .footer-contact,
    .footer-links {
        grid-column: auto;
        justify-self: center;
    }

    .footer-contact {
        width: min(100%, 520px);
    }

    .footer-contact strong {
        text-align: center;
        font-size: 24px;
    }

    .footer-links {
        padding-left: 0;
        border-left: 0;
        text-align: center;
    }

    .footer-contact-columns {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
        font-size: 13px;
    }

    .footer-links a {
        white-space: normal;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .footer-partner-logos {
        padding: 8px 12px;
    }

    .footer-legal {
        padding: 10px 14px;
    }

    .footer-legal p {
        overflow-wrap: anywhere;
    }
}

.button.small {
    padding: 7px 12px;
    font-size: 0.84rem;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.form-grid {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea,
input[type="file"] {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
    background: #fff;
    font: inherit;
    color: var(--ink);
}

/* Keep number inputs visually consistent across browsers. */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input::placeholder,
textarea::placeholder {
    color: #94a3ba;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #7fb9e4;
    box-shadow: 0 0 0 3px rgba(90, 169, 223, 0.18);
}

textarea {
    resize: vertical;
    min-height: 220px;
}

.messages {
    display: grid;
    gap: 10px;
    padding: 12px 24px 0;
    margin-bottom: 16px;
}

.flash-messages {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 100;
    width: min(360px, calc(100vw - 36px));
    padding: 0;
    margin: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.flash-messages .alert {
    pointer-events: auto;
    margin: 0;
    box-shadow: 0 10px 24px rgba(20, 33, 61, 0.16);
}

.flash-messages.is-hidden {
    opacity: 0;
    transform: translateY(-8px);
}

.alert {
    border-radius: 10px;
    padding: 9px 12px;
    border: 1px solid transparent;
    max-width: 560px;
    font-size: 0.92rem;
}

.alert-success {
    color: #0f5132;
    border-color: #8fd7b6;
    background: #daf7e8;
}

.alert-error {
    color: #6b1114;
    border-color: #e8a4a6;
    background: #fbe3e4;
}

.certificate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.certificate-canvas {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    min-height: 280px;
    padding: 14px;
    overflow: auto;
}

.certificate-preview-frame {
    width: 100%;
    height: 1px;
    border: 0;
    display: block;
    background: #ffffff;
}

.certificate-canvas .certificate-preview-frame {
    min-height: 1px;
}

.certificate-canvas .certificate-preview-frame-compact {
    max-width: min(980px, 100%);
    margin-inline: auto;
    border: 1px solid #dce7f8;
    border-radius: 10px;
}

.certificate-canvas iframe.certificate-preview-frame-compact:not(.js-auto-fit-preview) {
    height: 52vh;
    min-height: 320px;
}

.preview-shell .certificate-preview-frame {
    min-height: 1px;
}

.list.plain li {
    margin-bottom: 8px;
}

.muted-text {
    color: #8e9bb2;
    font-size: 0.9rem;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid #d2deef;
    background: #f4f8ff;
    padding: 5px 10px;
    color: #4f6687;
    font-size: 0.84rem;
    font-weight: 700;
}

.bulk-template-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 6px 0 14px;
}

.bulk-template-card {
    display: grid;
    gap: 2px;
    border: 1px solid #d8e5f7;
    border-radius: 12px;
    background: linear-gradient(180deg, #f9fbff 0%, #f1f7ff 100%);
    color: #274568;
    text-decoration: none;
    padding: 11px 12px;
    transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.bulk-template-card:hover {
    border-color: #bcd4ef;
    box-shadow: 0 10px 18px rgba(35, 71, 113, 0.12);
    transform: translateY(-1px);
}

.bulk-template-card strong {
    font-size: 0.93rem;
}

.bulk-template-card small {
    color: #5f7698;
}

.bulk-help {
    margin-top: 10px;
    border: 1px dashed #ccd9ee;
    border-radius: 12px;
    background: #f8fbff;
    padding: 10px 12px;
}

.bulk-help p {
    margin: 0 0 6px;
}

.bulk-result-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 6px 0 2px;
}

.user-autocomplete-field {
    min-width: 0;
}

.user-autocomplete-control {
    position: relative;
    width: 100%;
    min-width: 0;
}

.user-autocomplete-control > input[type="search"] {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.user-suggestions {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-auto-rows: 40px;
    max-height: 202px;
    overflow-y: auto;
    border: 1px solid #d6e5f2;
    border-radius: 0 0 8px 8px;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(30, 57, 92, 0.14);
}

.user-suggestions:empty {
    display: none;
}

.user-suggestion {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 9px 10px;
    border: 0;
    border-bottom: 1px solid #edf3f8;
    color: #294b73;
    background: #ffffff;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    font: inherit;
}

.user-suggestion:hover,
.user-suggestion:focus-visible {
    color: #ffffff;
    background: #4db4e6;
    outline: none;
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar {
        min-height: 0;
    }

    .topbar-content {
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .brand img {
        width: min(280px, 70vw);
    }

    .main-nav {
        gap: 14px;
        flex-wrap: wrap;
    }

    .hero-layout,
    .result-grid,
    .grid.two-columns,
    .form-grid.two-col {
        grid-template-columns: 1fr;
    }

    .landing-hero,
    .landing-overlay {
        min-height: 0;
    }

    .courses-banner {
        padding: 12px 0;
    }

    .courses-banner-head {
        align-items: flex-start;
    }

    .courses-banner-chip {
        margin-top: 2px;
    }

    .landing-hero {
        border-radius: 0;
    }

    .landing-overlay {
        padding: 20px 16px;
    }

    .landing-grid {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 18px;
    }

    .landing-copy h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .courses-banner-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .courses-carousel {
        grid-auto-columns: minmax(210px, 82vw);
    }

    .validation-result-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .validation-layout {
        grid-template-columns: 1fr;
    }

    .validation-data-card {
        position: static;
        top: auto;
    }

    .admin-page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .certificate-header {
        flex-direction: column;
    }

    .bulk-template-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 14px 16px 16px;
    }

    .admin-logo {
        padding: 4px 8px 10px;
    }

    .admin-logo img {
        width: min(190px, 42vw);
    }

    .admin-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        flex: 0 0 auto;
        overflow-y: visible;
        justify-items: stretch;
    }

    .admin-menu a {
        height: 42px;
        width: 100%;
        padding: 0 16px;
        font-size: 0.9rem;
    }

    .admin-logout-wrap {
        margin-top: 12px;
    }

    .admin-main {
        min-width: 0;
    }

    .admin-topbar {
        padding: 14px 18px;
    }

    .admin-content {
        padding: 16px;
    }
}

@media (max-width: 520px) {
    .admin-menu {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (min-width: 701px) {
    .topbar-content {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .brand img {
        width: clamp(140px, 15vw, 175px);
    }

    .landing-hero,
    .landing-overlay {
        min-height: clamp(360px, 42vw, 520px);
    }

    .landing-overlay {
        padding: 0;
    }

    .landing-grid {
        width: min(780px, calc(100% - 32px));
        grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.9fr);
        min-height: clamp(360px, 42vw, 520px);
        gap: 20px;
    }

    .landing-copy h1 {
        font-size: clamp(1.7rem, 3vw, 2.6rem);
    }
}

@media (max-width: 700px) {
    .carousel-arrow-prev {
        left: 20px;
    }

    .carousel-arrow-next {
        right: 20px;
    }

    .courses-carousel {
        width: calc(100% - 80px);
        grid-auto-columns: 100%;
        overflow: hidden;
    }

    .course-slide {
        width: 100%;
    }
}

/* Public validation result */
.validation-stage {
    min-height: 380px;
    padding: 16px 0 0;
    border-top: 0;
    background:
        linear-gradient(108deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72)),
        url("https://imagenesassist.blob.core.windows.net/static/fondo1-Segunda-vista.jpg") center/cover no-repeat;
}

.main-content.validation-page + .replica-site-footer {
    margin-top: 0;
}

.validation-stage .validation-result-head,
.validation-stage .result-grid,
.validation-stage > .card {
    width: min(860px, calc(100% - 32px));
}

.validation-result-head {
    min-height: 58px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 8px;
    box-shadow: 0 5px 12px rgba(30, 57, 92, 0.1);
}

.validation-result-head h2 {
    color: #4db4e6;
    font-size: 1.05rem;
}

.validation-result-head .muted-text {
    margin: 2px 0 0;
    font-size: 0.7rem;
}

.validation-result-head .button {
    padding: 6px 10px;
    font-size: 0.7rem;
    color: #ffffff;
    border-color: #6f3e90;
    background: #6f3e90;
}

.validation-result-head .button:hover {
    color: #ffffff;
    background: #6f3e90;
}

.validation-layout {
    grid-template-columns: minmax(190px, 0.85fr) minmax(0, 1.15fr);
    gap: 9px;
    margin-top: 0;
}

.validation-layout > .card {
    padding: 11px;
    border-radius: 8px;
    box-shadow: 0 5px 12px rgba(30, 57, 92, 0.1);
}

.validation-layout .panel-head {
    margin-bottom: 8px;
}

.validation-layout .panel-head h3 {
    color: #4db4e6;
    font-size: 0.82rem;
}

.validation-layout .panel-head .muted-text {
    font-size: 0.62rem;
}

.validation-kv-grid {
    gap: 5px;
}

.validation-kv-item {
    padding: 7px 8px;
    border-radius: 6px;
}

.validation-kv-item small {
    font-size: 0.58rem;
    margin-bottom: 2px;
}

.validation-kv-item strong {
    font-size: 0.7rem;
    color: #6f3e90;
}

.validation-layout .preview-shell {
    max-height: 300px;
    overflow: auto;
}

.validation-layout .preview-shell iframe {
    min-height: 250px;
    max-height: 300px;
}

@media (min-width: 1101px) {
    .validation-stage {
        min-height: 895px;
        padding-top: 14px;
        background-position: center top;
    }

    .validation-stage .validation-result-head,
    .validation-stage .result-grid,
    .validation-stage > .card {
        width: min(1040px, calc(100% - 96px));
    }

    .validation-result-head {
        min-height: 72px;
        padding: 14px 18px;
        margin-bottom: 10px;
    }

    .validation-result-head h2 {
        font-size: 1.25rem;
    }

    .validation-result-head .muted-text {
        font-size: 0.78rem;
    }

    .validation-layout {
        grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
        gap: 12px;
    }

    .validation-layout > .card {
        padding: 16px;
    }

    .validation-layout .panel-head h3 {
        font-size: 0.98rem;
    }

    .validation-layout .panel-head .muted-text {
        font-size: 0.72rem;
    }

    .validation-kv-grid {
        gap: 8px;
    }

    .validation-kv-item {
        padding: 10px 11px;
    }

    .validation-kv-item small {
        font-size: 0.68rem;
    }

    .validation-kv-item strong {
        font-size: 0.82rem;
    }

    .validation-layout .preview-shell {
        max-height: 520px;
    }

    .validation-layout .preview-shell iframe {
        min-height: 480px;
        max-height: 520px;
    }
}

.carousel-image-specs {
    display: grid;
    gap: 4px;
    margin: 10px 0 14px;
    padding: 11px 12px;
    border-left: 4px solid #4db4e6;
    background: #f2f9fd;
    color: #526d8d;
    font-size: 0.86rem;
}

.carousel-image-specs strong {
    color: #6f3e90;
}

.carousel-image-preview,
.carousel-image-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

@media (min-width: 1101px) {
    .landing-copy {
        transform: translateY(-79px);
    }

    .landing-hero,
    .landing-overlay,
    .landing-grid {
        min-height: 600px;
    }

    .landing-validator-card {
        transform: translateY(130px);
    }
}

@media (min-width: 1101px) {
    .brand img {
        width: clamp(220px, 14vw, 280px);
        height: 90px;
    }

    .courses-banner {
        min-height: 0;
        height: auto;
        padding: 0;
    }

    .courses-carousel {
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: 1370 / 360;
    }

    .course-slide,
    .course-slide-media {
        height: 100%;
        max-height: none;
    }
}

.carousel-image-preview {
    min-height: 30px;
    margin-top: -2px;
}

.carousel-image-preview img,
.carousel-image-item img {
    display: block;
    width: 100%;
    aspect-ratio: 10 / 3;
    object-fit: cover;
    border: 1px solid #cbdced;
    border-radius: 8px;
    background: #edf4f9;
}

.carousel-image-item {
    min-width: 0;
    padding: 8px;
    border: 1px solid #d8e5f3;
    border-radius: 9px;
    background: #ffffff;
}

.carousel-image-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 7px;
    color: #6f85a5;
    font-size: 0.72rem;
}

.carousel-image-actions .button {
    padding: 5px 8px;
    font-size: 0.72rem;
}

.external-certificate-list {
    display: grid;
    gap: 10px;
    max-height: 510px;
    overflow-y: auto;
    padding-right: 4px;
}

.external-certificate-specs {
    display: grid;
    gap: 4px;
    margin: 10px 0 14px;
    padding: 12px 14px;
    border-left: 4px solid #4db4e6;
    background: #f2f9fd;
    color: #526d8d;
    font-size: 0.86rem;
}

.external-certificate-specs strong {
    color: #6f3e90;
}

.external-pdf-selection {
    display: grid;
    gap: 6px;
}

.external-pdf-selection span {
    overflow: hidden;
    padding: 8px 10px;
    border: 1px solid #d8e5f3;
    border-radius: 6px;
    color: #526d8d;
    background: #fbfdff;
    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.external-certificate-registry {
    min-height: 420px;
}

.external-certificate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    border: 1px solid #d8e5f3;
    border-radius: 8px;
    background: #fbfdff;
}

.external-certificate-item strong,
.external-certificate-item small {
    display: block;
}

.external-certificate-item strong {
    color: #6f3e90;
    font-size: 0.95rem;
}

.external-certificate-item small {
    margin-top: 3px;
    color: #5f7698;
}

.external-certificate-person {
    color: #294b73 !important;
    font-weight: 700;
}

@media (max-width: 700px) {
    .external-certificate-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .validation-stage .validation-result-head,
    .validation-stage .result-grid,
    .validation-stage > .card {
        width: calc(100% - 32px);
    }

    .validation-result-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .validation-layout {
        grid-template-columns: 1fr;
    }

    .validation-layout .preview-shell iframe {
        max-height: 280px;
    }
}

.main-content.auth-page + .replica-site-footer {
    display: block;
    margin-top: 0;
    border-top: 0;
    background: #4db4e6;
    color: #ffffff;
}

.main-content.auth-page + .replica-site-footer .footer-newsletter {
    display: none;
}

.main-content.auth-page + .replica-site-footer .replica-site-footer-inner {
    width: min(900px, calc(100% - 32px));
    grid-template-columns: 90px 1fr 1fr;
    gap: 22px;
    padding: 18px 0 14px;
}

.main-content.auth-page + .replica-site-footer .footer-mark img {
    width: 62px;
}

.main-content.auth-page + .replica-site-footer .footer-contact strong,
.main-content.auth-page + .replica-site-footer .footer-newsletter strong {
    margin-bottom: 7px;
    font-size: 0.72rem;
}

.main-content.auth-page + .replica-site-footer p,
.main-content.auth-page + .replica-site-footer .footer-links a,
.main-content.auth-page + .replica-site-footer .footer-newsletter label {
    font-size: 0.64rem;
    line-height: 1.35;
}

.main-content.auth-page + .replica-site-footer .footer-newsletter input {
    margin-bottom: 6px;
    padding: 6px 8px;
    font-size: 0.64rem;
}

.main-content.auth-page + .replica-site-footer .footer-newsletter button {
    padding: 5px;
    font-size: 0.64rem;
}

@media (max-width: 700px) {
    .main-content.auth-page .auth-wrap {
        min-height: 350px;
        padding: 18px 0;
    }

    .main-content.auth-page .auth-card {
        width: min(460px, calc(100% - 24px));
    }

    .main-content.auth-page + .replica-site-footer .replica-site-footer-inner {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 0 16px;
    }

    .main-content.auth-page + .replica-site-footer .footer-mark {
        order: -1;
    }
}
