:root {
    --convocaria-primary: #2563eb;
    --convocaria-primary-dark: #1d4ed8;
    --convocaria-bg: #f8fafc;
    --convocaria-sidebar: #0f172a;
}

html, body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--convocaria-bg);
    overflow-x: clip;
    max-width: 100%;
}

/* FocusOnNavigate / skip-link: sin borde al enfocar el landmark principal */
:focus:not(:focus-visible),
#main-content:focus {
    outline: none;
    box-shadow: none;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-color: #fff;
    --bs-btn-bg: var(--convocaria-primary);
    --bs-btn-border-color: var(--convocaria-primary);
    --bs-btn-hover-bg: var(--convocaria-primary-dark);
    --bs-btn-hover-border-color: var(--convocaria-primary-dark);
}

/* Logotipo: nunca estirar, siempre proporcional */
img.cv-logo,
.hero-logo,
.login-logo,
.landing-logo,
.brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.cv-logo--nav { max-height: 2.25rem; }
.cv-logo--mark { max-height: 2.25rem; }
.cv-logo--footer { max-height: 5rem; }
.cv-logo--full { max-height: 5rem; }
.cv-logo--xs { max-height: 2.5rem; }

/* logo-white.png: texto blanco, icono azul, fondo transparente */
.cv-logo--on-dark { max-width: 200px; }

.login-logo {
    max-width: 300px;
    max-height: 9rem;
    margin-inline: auto;
}

.landing-logo {
    max-width: 280px;
    max-height: 7rem;
}

.landing-brand-logo {
    max-width: 220px;
    max-height: 5rem;
}

.landing-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.landing-back-row {
    padding-top: .75rem;
}

.landing-back-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: #64748b;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

.landing-back-link:hover {
    color: var(--landing-primary, var(--convocaria-primary));
}

.landing-header-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding-top: .5rem;
}

.landing-header-side--left {
    justify-self: start;
}

.landing-header-center {
    justify-self: center;
    text-align: center;
}

.landing-header-side--right {
    justify-self: end;
}

.landing-brand-link {
    display: inline-block;
    line-height: 0;
}

@media (max-width: 576px) {
    .landing-header-bar {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .landing-header-side--right {
        display: none;
    }

    .landing-header-center {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

.hero-logo {
    max-height: 7rem;
}

.hero-public {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-lead {
    max-width: 640px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
}

.admin-beta-badge {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(147, 197, 253, 0.35);
    border-radius: 0.375rem;
    padding: 0.2rem 0.55rem;
}

.signup-card {
    max-width: 480px;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
}

.admin-sidebar {
    background: var(--convocaria-sidebar);
    color: #e2e8f0;
    padding: 1.25rem;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: .5rem;
}

.brand-logo {
    max-width: 140px;
    max-height: 4rem;
}

.admin-sidebar .nav-link {
    color: #cbd5e1;
    border-radius: .5rem;
    padding: .65rem .85rem;
    margin-bottom: .25rem;
}

.admin-sidebar .nav-link.active {
    background: rgba(37, 99, 235, .25);
    color: #fff;
}

.platform-sidebar {
    background: #1e1b4b;
}

.platform-sidebar-label {
    margin-top: .5rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #a5b4fc;
}

.platform-nav-link {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: .75rem;
    padding-top: .85rem !important;
}

.admin-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.admin-content {
    padding: 1.5rem;
}

.landing-page .btn-primary {
    background: var(--landing-primary, var(--convocaria-primary));
    border-color: var(--landing-primary, var(--convocaria-primary));
    color: #fff;
}

.session-calendar {
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    padding: 1rem;
    background: #fff;
}

.session-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
    text-transform: capitalize;
}

.session-calendar-weekdays,
.session-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .25rem;
}

.session-calendar-weekday {
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    color: #64748b;
    padding-bottom: .25rem;
}

.session-calendar-day {
    border: 0;
    border-radius: .35rem;
    padding: .35rem 0;
    min-height: 2rem;
    font-size: .85rem;
    font-weight: 600;
    color: #475569;
    background: transparent;
    cursor: default;
}

.session-calendar-day.other-month {
    opacity: .35;
}

.session-calendar-day.has-sessions {
    background: color-mix(in srgb, var(--landing-primary, var(--convocaria-primary)) 12%, #fff);
    color: var(--landing-primary, var(--convocaria-primary));
    cursor: pointer;
}

.session-calendar-day.has-sessions:hover:not(.has-selected) {
    background: color-mix(in srgb, var(--landing-primary, var(--convocaria-primary)) 20%, #fff);
}

.session-calendar-day.past-only {
    background: #f1f5f9;
    color: #94a3b8;
}

.session-calendar-day.past-only:hover:not(.has-selected) {
    background: #e2e8f0;
}

.session-calendar-day.has-selected {
    background: var(--landing-primary, var(--convocaria-primary));
    color: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--landing-primary, var(--convocaria-primary)) 30%, #fff);
}

.session-calendar-day:disabled {
    cursor: default;
}

.session-calendar-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    margin: 1rem 0 .5rem;
}

.session-calendar-sessions {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.session-calendar-session {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    padding: .65rem .85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: .5rem;
    background: #fff;
    font-size: .875rem;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.session-calendar-session-info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .75rem;
    min-width: 0;
}

.session-calendar-session:hover:not(:disabled):not(.selected) {
    border-color: color-mix(in srgb, var(--landing-primary, var(--convocaria-primary)) 40%, #e2e8f0);
}

.session-calendar-session.selected {
    border-color: var(--landing-primary, var(--convocaria-primary));
    background: color-mix(in srgb, var(--landing-primary, var(--convocaria-primary)) 8%, #fff);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--landing-primary, var(--convocaria-primary)) 15%, transparent);
}

.session-calendar-session.unavailable {
    opacity: .65;
    cursor: not-allowed;
}

.session-calendar-session-date {
    font-weight: 600;
    color: #0f172a;
}

.session-calendar-session-time {
    color: #64748b;
    font-weight: 500;
}

.session-calendar-session-reason {
    flex-basis: 100%;
    font-size: .78rem;
    color: #64748b;
    font-weight: 500;
}

.session-calendar-session-check {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
}

.session-calendar-session.selected .session-calendar-session-check {
    background: var(--landing-primary, var(--convocaria-primary));
    color: #fff;
}

.landing-session-summary {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    border-radius: .5rem;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
}

.landing-session-summary-icon {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: .1rem;
}

.landing-session-summary-icon--pending {
    border: 2px dashed #fdba74;
    background: #fff;
}

.landing-session-summary-icon--ok {
    background: var(--landing-primary, var(--convocaria-primary));
    position: relative;
}

.landing-session-summary-icon--ok::after {
    content: "";
    position: absolute;
    left: .42rem;
    top: .22rem;
    width: .35rem;
    height: .6rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.landing-session-summary--empty {
    background: #fff7ed;
    border: 1px dashed #fdba74;
    color: #9a3412;
}

.landing-session-summary--selected {
    background: color-mix(in srgb, var(--landing-primary, var(--convocaria-primary)) 12%, #fff);
    border: 2px solid var(--landing-primary, var(--convocaria-primary));
    color: #0f172a;
}

.landing-session-summary--unavailable {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.landing-session-summary-icon--unavailable {
    background: #94a3b8;
    position: relative;
}

.landing-session-summary-icon--unavailable::before,
.landing-session-summary-icon--unavailable::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: .65rem;
    height: 2px;
    background: #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.landing-session-summary-icon--unavailable::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.landing-footer {
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: .95rem;
}

.landing-footer-davinchi {
    font-weight: 600;
    color: #334155;
}

.landing-footer-davinchi a {
    color: var(--convocaria-primary);
    text-decoration: none;
}

.landing-footer-davinchi a:hover {
    text-decoration: underline;
}

.landing-footer-cta a {
    color: var(--convocaria-primary);
    font-weight: 600;
    text-decoration: none;
}

.landing-footer-cta a:hover {
    text-decoration: underline;
}

.landing-footer-home {
    color: #64748b;
    font-size: .85rem;
    text-decoration: none;
}

.landing-footer-home:hover {
    color: var(--convocaria-primary);
}

#components-reconnect-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, .45);
    padding: 1.5rem;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: grid;
    place-items: center;
}

.components-reconnect-panel {
    width: min(100%, 20rem);
    background: #fff;
    border-radius: .75rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
    text-align: center;
}

.reconnect-message {
    display: none;
    margin: 0;
}

#components-reconnect-modal.components-reconnect-show .reconnect-message-show,
#components-reconnect-modal.components-reconnect-failed .reconnect-message-failed,
#components-reconnect-modal.components-reconnect-rejected .reconnect-message-rejected {
    display: block;
}

@media (max-width: 768px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }
}

/* --- Landing comercial (wwwroot/css/landing.css) --- */

/* Convocaria — landing comercial */

:root {
    --cv-primary: #2563eb;
    --cv-primary-dark: #1d4ed8;
    --cv-primary-light: #eff6ff;
    --cv-text: #0f172a;
    --cv-muted: #64748b;
    --cv-border: #e2e8f0;
    --cv-bg: #f8fafc;
    --cv-white: #fff;
    --cv-dark: #0f172a;
    --cv-radius: .75rem;
    --cv-shadow: 0 4px 24px rgba(15, 23, 42, .08);
}

.marketing-shell {
    color: var(--cv-text);
    background: var(--cv-white);
    overflow-x: clip;
    max-width: 100%;
}

.marketing-shell .container {
    overflow-x: clip;
}

.skip-link {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    z-index: 9999;
    background: var(--cv-primary);
    color: #fff;
}

.skip-link:focus {
    width: auto;
    height: auto;
    padding: .5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    left: 1rem;
    top: 1rem;
}

/* Nav */
.cv-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--cv-border);
}

.cv-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 0;
    gap: 1rem;
}

.cv-nav-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--cv-text);
}

.cv-nav-brand-main {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: var(--cv-text);
    font-weight: 600;
}

.cv-nav-brand-name {
    font-weight: 600;
}

.cv-footer-davinchi {
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .5rem !important;
}

.cv-footer-davinchi a {
    color: #93c5fd;
}

.cv-footer-davinchi a:hover {
    color: #fff;
}

.cv-nav-menu {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cv-nav-menu a:not(.btn-cv) {
    color: var(--cv-muted);
    text-decoration: none;
    padding: .5rem .85rem;
    border-radius: .5rem;
    font-size: .925rem;
    font-weight: 500;
    transition: color .15s, background .15s;
}

.cv-nav-menu a:not(.btn-cv):hover {
    color: var(--cv-primary);
    background: var(--cv-primary-light);
}

.cv-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: .5rem;
    cursor: pointer;
    z-index: 1001;
}

.cv-nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.cv-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.cv-nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.cv-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cv-text);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

.btn-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .65rem 1.25rem;
    border-radius: .5rem;
    font-weight: 600;
    font-size: .925rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .15s, transform .1s;
}

a.btn-cv-primary,
a.btn-cv-primary:link,
a.btn-cv-primary:visited,
button.btn-cv-primary,
.btn-cv-primary {
    background: var(--cv-primary);
    color: #fff;
}

a.btn-cv-primary:hover,
a.btn-cv-primary:focus,
a.btn-cv-primary:active,
button.btn-cv-primary:hover,
.btn-cv-primary:hover {
    background: var(--cv-primary-dark);
    color: #fff;
}

.cv-nav-menu a.btn-cv.btn-cv-primary,
.cv-nav-menu a.btn-cv.btn-cv-primary:hover,
.cv-nav-menu a.btn-cv.btn-cv-primary:focus {
    color: #fff;
    background: var(--cv-primary);
}

.cv-nav-menu a.btn-cv.btn-cv-primary:hover {
    background: var(--cv-primary-dark);
}

a.btn-cv-outline,
a.btn-cv-outline:link,
a.btn-cv-outline:visited,
button.btn-cv-outline,
.btn-cv-outline {
    background: transparent;
    color: var(--cv-primary);
    border: 1.5px solid var(--cv-primary);
}

a.btn-cv-outline:hover,
button.btn-cv-outline:hover,
.btn-cv-outline:hover {
    background: var(--cv-primary-light);
    color: var(--cv-primary-dark);
}

a.btn-cv-white,
a.btn-cv-white:link,
a.btn-cv-white:visited,
button.btn-cv-white,
.btn-cv-white {
    background: #fff;
    color: var(--cv-primary);
}

a.btn-cv-white:hover,
button.btn-cv-white:hover,
.btn-cv-white:hover {
    background: var(--cv-primary-light);
    color: var(--cv-primary-dark);
}

.btn-cv-lg {
    padding: .85rem 1.75rem;
    font-size: 1rem;
}

/* Hero */
.cv-hero {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, var(--cv-primary-light) 0%, var(--cv-white) 100%);
}

.cv-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #fff;
    border: 1px solid var(--cv-border);
    border-radius: 999px;
    padding: .35rem .85rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--cv-primary);
    margin-bottom: 1.25rem;
}

.cv-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -.02em;
}

.cv-hero-lead {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: var(--cv-muted);
    max-width: 640px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 2.5rem;
}

.cv-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cv-border);
}

.cv-stat-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cv-primary);
}

.cv-stat-label {
    font-size: .8rem;
    color: var(--cv-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Hero — mock calendario animado */
.cv-hero-visual {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.cv-hero-visual-float {
    animation: cv-hero-float 5s ease-in-out infinite;
    width: min(100%, 22rem);
}

@keyframes cv-hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cv-hero-mock {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .12), 0 0 0 1px rgba(15, 23, 42, .06);
    overflow: hidden;
}

.cv-hero-mock-chrome {
    display: flex;
    gap: .35rem;
    padding: .65rem .85rem;
    background: #f1f5f9;
    border-bottom: 1px solid var(--cv-border);
}

.cv-hero-mock-chrome span {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: #cbd5e1;
}

.cv-hero-mock-chrome span:first-child { background: #f87171; }
.cv-hero-mock-chrome span:nth-child(2) { background: #fbbf24; }
.cv-hero-mock-chrome span:nth-child(3) { background: #4ade80; }

.cv-hero-mock-body {
    padding: 1.1rem 1.15rem 1.25rem;
}

.cv-hero-mock-event {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
}

.cv-hero-mock-event strong {
    display: block;
    font-size: .95rem;
    color: var(--cv-text);
}

.cv-hero-mock-event span {
    font-size: .75rem;
    color: var(--cv-muted);
}

.cv-hero-mock-calendar {
    background: var(--cv-bg);
    border: 1px solid var(--cv-border);
    border-radius: .65rem;
    padding: .65rem;
    margin-bottom: 1rem;
}

.cv-hero-mock-cal-head {
    text-align: center;
    font-size: .8rem;
    font-weight: 700;
    color: var(--cv-text);
    margin-bottom: .5rem;
}

.cv-hero-mock-cal-weekdays,
.cv-hero-mock-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .2rem;
    text-align: center;
}

.cv-hero-mock-cal-weekdays span {
    font-size: .6rem;
    font-weight: 600;
    color: var(--cv-muted);
    padding: .15rem 0;
}

.cv-hero-mock-cal-day {
    font-size: .65rem;
    padding: .25rem 0;
    border-radius: .35rem;
    color: #475569;
    min-height: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-hero-mock-cal-day.muted {
    visibility: hidden;
}

.cv-hero-mock-cal-day.event {
    background: rgba(37, 99, 235, .12);
    color: var(--cv-primary);
    font-weight: 700;
}

@keyframes cv-cal-pulse {
    0%, 24%, 100% {
        background: rgba(37, 99, 235, .12);
        transform: scale(1);
        box-shadow: none;
    }
    8%, 16% {
        background: var(--cv-primary);
        color: #fff;
        transform: scale(1.12);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
    }
}

.cv-hero-mock-cal-pulse-1 { animation: cv-cal-pulse 9s ease infinite; }
.cv-hero-mock-cal-pulse-2 { animation: cv-cal-pulse 9s ease infinite 3s; }
.cv-hero-mock-cal-pulse-3 { animation: cv-cal-pulse 9s ease infinite 6s; }

.cv-hero-mock-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--cv-muted);
    margin: 0 0 .45rem;
}

.cv-hero-mock-sessions {
    list-style: none;
    padding: 0;
    margin: 0 0 .85rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.cv-hero-mock-session {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: .5rem;
    padding: .5rem .65rem;
    border: 1.5px solid var(--cv-border);
    border-radius: .5rem;
    background: #fff;
    font-size: .78rem;
}

.cv-hero-mock-session-date {
    font-weight: 600;
    color: var(--cv-text);
}

.cv-hero-mock-session-time {
    color: var(--cv-muted);
    font-weight: 500;
}

.cv-hero-mock-session-check {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--cv-border);
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}

.cv-hero-mock-session-check .cv-icon svg {
    width: .75rem;
    height: .75rem;
}

@keyframes cv-session-select {
    0%, 26%, 100% {
        border-color: var(--cv-border);
        background: #fff;
        box-shadow: none;
    }
    6%, 20% {
        border-color: var(--cv-primary);
        background: var(--cv-primary-light);
        box-shadow: 0 4px 14px rgba(37, 99, 235, .15);
    }
}

@keyframes cv-session-check {
    0%, 26%, 100% {
        background: var(--cv-border);
        color: transparent;
    }
    6%, 20% {
        background: var(--cv-primary);
        color: #fff;
    }
}

.cv-hero-mock-session--1 {
    animation: cv-session-select 9s ease infinite;
}

.cv-hero-mock-session--1 .cv-hero-mock-session-check {
    animation: cv-session-check 9s ease infinite;
}

.cv-hero-mock-session--2 {
    animation: cv-session-select 9s ease infinite 3s;
}

.cv-hero-mock-session--2 .cv-hero-mock-session-check {
    animation: cv-session-check 9s ease infinite 3s;
}

.cv-hero-mock-session--3 {
    animation: cv-session-select 9s ease infinite 6s;
}

.cv-hero-mock-session--3 .cv-hero-mock-session-check {
    animation: cv-session-check 9s ease infinite 6s;
}

.cv-hero-mock-btn {
    text-align: center;
    background: var(--cv-primary);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    padding: .55rem;
    border-radius: .5rem;
    animation: cv-btn-pulse 9s ease infinite 1.5s;
}

@keyframes cv-btn-pulse {
    0%, 90%, 100% { transform: scale(1); opacity: 1; }
    93%, 97% { transform: scale(1.03); opacity: .95; box-shadow: 0 4px 16px rgba(37, 99, 235, .35); }
}

@media (prefers-reduced-motion: reduce) {
    .cv-hero-visual-float,
    .cv-hero-mock-cal-pulse-1,
    .cv-hero-mock-cal-pulse-2,
    .cv-hero-mock-cal-pulse-3,
    .cv-hero-mock-session--1,
    .cv-hero-mock-session--2,
    .cv-hero-mock-session--3,
    .cv-hero-mock-session-check,
    .cv-hero-mock-btn {
        animation: none !important;
    }
}

/* Sections */
.cv-section {
    padding: 5rem 0;
}

.cv-section-alt {
    background: var(--cv-bg);
}

.cv-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.cv-section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: .75rem;
}

.cv-section-header p {
    color: var(--cv-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* Problem cards */
.cv-problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
}

.cv-card {
    background: var(--cv-white);
    border: 1px solid var(--cv-border);
    border-radius: var(--cv-radius);
    padding: 1.75rem;
    box-shadow: var(--cv-shadow);
}

.cv-section-alt .cv-card {
    background: var(--cv-white);
}

.cv-card-icon {
    width: 48px;
    height: 48px;
    background: var(--cv-primary-light);
    color: var(--cv-primary);
    border-radius: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.cv-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    line-height: 0;
}

.cv-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.cv-icon--inline svg {
    width: 1rem;
    height: 1rem;
}

.cv-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.cv-card p {
    color: var(--cv-muted);
    margin: 0;
    font-size: .95rem;
    line-height: 1.55;
}

/* Features */
.cv-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.25rem;
}

.cv-feature {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--cv-radius);
    border: 1px solid var(--cv-border);
    background: var(--cv-white);
}

.cv-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--cv-primary-light);
    color: var(--cv-primary);
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-feature-icon .cv-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.cv-feature h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.cv-feature p {
    color: var(--cv-muted);
    font-size: .9rem;
    margin: 0;
    line-height: 1.5;
}

/* How it works */
.cv-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.cv-step {
    text-align: center;
    position: relative;
}

.cv-step-icon {
    width: 48px;
    height: 48px;
    background: var(--cv-primary-light);
    color: var(--cv-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.cv-step-icon .cv-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.cv-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.cv-step p {
    color: var(--cv-muted);
    font-size: .9rem;
    margin: 0;
}

/* Pricing */
.cv-pricing-free {
    max-width: 24rem;
    margin: 0 auto 2rem;
    padding-top: 1rem;
}

.cv-pricing-paid-intro {
    text-align: center;
    color: var(--cv-muted);
    font-size: .95rem;
    margin: 0 0 1.5rem;
}

.cv-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.5rem;
    align-items: start;
    padding-top: 1rem;
}

.cv-price-card {
    background: var(--cv-white);
    border: 1px solid var(--cv-border);
    border-radius: var(--cv-radius);
    padding: 2rem 1.5rem;
    position: relative;
    overflow: visible;
}

.cv-price-card.featured {
    border-color: var(--cv-primary);
    box-shadow: 0 8px 32px rgba(37, 99, 235, .15);
    padding-top: 2.75rem;
}

.cv-price-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--cv-primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .35rem .85rem;
    border-radius: 999px;
    white-space: nowrap;
    z-index: 1;
}

.cv-price-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.cv-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cv-primary);
    line-height: 1;
}

.cv-price-amount small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--cv-muted);
}

.cv-price-amount--text {
    font-size: 1.75rem;
}

.cv-price-desc {
    color: var(--cv-muted);
    font-size: .875rem;
    margin: .75rem 0 1.25rem;
    min-height: 2.5rem;
}

.cv-price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.cv-price-features li {
    padding: .35rem 0;
    font-size: .9rem;
    color: var(--cv-text);
    padding-left: 1.4rem;
    position: relative;
}

.cv-price-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55rem;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--cv-primary);
}

.cv-pricing-note {
    text-align: center;
    color: var(--cv-muted);
    font-size: .875rem;
    margin-top: 2rem;
}

/* Contact */
.cv-contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.cv-contact-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.cv-contact-info p {
    color: var(--cv-muted);
    line-height: 1.6;
}

.cv-contact-perks {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.cv-contact-perks li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .4rem 0;
    color: var(--cv-text);
    font-size: .95rem;
}

.cv-contact-perks .cv-icon {
    color: var(--cv-primary);
    margin-top: .15rem;
    flex-shrink: 0;
}

.cv-contact-form {
    background: var(--cv-white);
    border: 1px solid var(--cv-border);
    border-radius: var(--cv-radius);
    padding: 2rem;
    box-shadow: var(--cv-shadow);
}

.cv-contact-form .form-label {
    font-weight: 600;
    font-size: .875rem;
}

.cv-contact-form .form-control,
.cv-contact-form .form-select {
    border-radius: .5rem;
    border-color: var(--cv-border);
    padding: .65rem .85rem;
}

.cv-contact-form .form-control:focus,
.cv-contact-form .form-select:focus {
    border-color: var(--cv-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.field-error {
    color: #dc2626;
    font-size: .8rem;
    margin-top: .25rem;
}

/* CTA band */
.cv-cta {
    background: linear-gradient(135deg, var(--cv-primary) 0%, var(--cv-primary-dark) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.cv-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: .75rem;
}

.cv-cta p {
    opacity: .9;
    margin-bottom: 1.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.cv-footer {
    background: var(--cv-dark);
    color: #94a3b8;
    padding: 3.5rem 0 1.5rem;
}

.cv-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.cv-footer-brand img {
    width: auto;
    height: auto;
    max-height: 5rem;
    margin-bottom: .75rem;
}

.cv-footer-brand p {
    font-size: .9rem;
    line-height: 1.55;
    max-width: 280px;
}

.cv-footer h4 {
    color: #e2e8f0;
    font-size: .875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1rem;
}

.cv-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-footer ul li {
    margin-bottom: .5rem;
}

.cv-footer a:not(.btn-cv) {
    color: #94a3b8;
    text-decoration: none;
    font-size: .9rem;
}

.cv-footer a:not(.btn-cv):hover {
    color: #fff;
}

.cv-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 1.5rem;
    font-size: .8rem;
    text-align: center;
}

.cv-footer-bottom a {
    color: #cbd5e1;
}

/* Legal pages */
.cv-legal {
    padding: 3rem 0 5rem;
    max-width: 780px;
    margin: 0 auto;
}

.cv-legal h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.cv-legal .last-updated {
    color: var(--cv-muted);
    font-size: .875rem;
    margin-bottom: 2rem;
}

.cv-legal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 .75rem;
}

.cv-legal h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.25rem 0 .5rem;
}

.cv-legal p,
.cv-legal li {
    color: #334155;
    line-height: 1.65;
    font-size: .95rem;
}

.cv-legal ul {
    padding-left: 1.25rem;
}

.cv-legal a:not(.btn-cv) {
    color: var(--cv-primary);
}

/* Cookie banner */
.cv-cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 9999;
    background: var(--cv-dark);
    color: #e2e8f0;
    padding: 1.25rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .2);
}

.cv-cookie-banner.show {
    display: block;
}

.cv-cookie-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.cv-cookie-inner p {
    margin: 0;
    font-size: .875rem;
    flex: 1;
    min-width: 240px;
}

.cv-cookie-inner a {
    color: #93c5fd;
}

.cv-cookie-actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

.btn-cv-sm {
    padding: .45rem 1rem;
    font-size: .85rem;
}

.btn-cv-ghost {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, .2);
}

.btn-cv-ghost:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .cv-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cv-contact-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cv-nav-toggle {
        display: flex;
    }

    .cv-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        flex-direction: column;
        background: #fff;
        border-bottom: 1px solid var(--cv-border);
        padding: .75rem 1rem 1rem;
        box-shadow: var(--cv-shadow);
    }

    .cv-nav-menu.open {
        display: flex;
    }

    .cv-nav {
        position: relative;
    }

    .cv-nav-inner {
        position: relative;
    }

    .cv-nav-menu .btn-cv {
        width: 100%;
        margin-top: .5rem;
    }

    .cv-hero {
        padding: 2.5rem 0 3.5rem;
    }

    .cv-hero-visual {
        margin-top: 1.5rem;
    }

    .cv-hero-visual-float {
        width: min(100%, 20rem);
    }

    .cv-section {
        padding: 3.5rem 0;
    }

    .cv-footer-grid {
        grid-template-columns: 1fr;
    }

    .cv-cookie-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cv-cookie-actions {
        justify-content: stretch;
    }

    .cv-cookie-actions .btn-cv {
        flex: 1;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Admin agenda — semana de slots */
.appt-availability {
    margin: 0;
}

.slot-cal {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: .85rem;
    overflow: hidden;
    height: calc(100dvh - 7.25rem);
    min-height: calc(100vh - 7.25rem);
    box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}

.slot-cal-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    padding: .7rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    flex-shrink: 0;
}

.slot-cal-nav {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.slot-cal-nav-btn,
.slot-cal-nav-today {
    border: 1px solid #d0d7e2;
    background: #fff;
    color: #334155;
    border-radius: .45rem;
    height: 2rem;
    min-width: 2rem;
    font-weight: 650;
}

.slot-cal-nav-today {
    padding: 0 .75rem;
    font-size: .85rem;
}

.slot-cal-nav-btn:hover,
.slot-cal-nav-today:hover {
    background: #f8fafc;
}

.slot-cal-range {
    margin: 0;
    flex: 1;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: capitalize;
    color: #0f172a;
}

.slot-cal-keys {
    display: flex;
    gap: .65rem;
    font-size: .78rem;
    color: #64748b;
}

.slot-cal-key {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.slot-cal-key::before {
    content: "";
    width: .7rem;
    height: .7rem;
    border-radius: .2rem;
}

.slot-cal-key--free::before { background: #3b82f6; }
.slot-cal-key--booked::before { background: #16a34a; }
.slot-cal-key--blocked::before {
    background: repeating-linear-gradient(-45deg, #94a3b8, #94a3b8 2px, #e2e8f0 2px, #e2e8f0 5px);
}
.slot-cal-key--event::before {
    background: rgba(124, 58, 237, .45);
}

.slot-cal-board {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: #fff;
}

.slot-cal-gutter {
    position: sticky;
    left: 0;
    z-index: 3;
    flex: 0 0 56px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
}

.slot-cal-gutter-head {
    position: sticky;
    top: 0;
    z-index: 4;
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.slot-cal-hour-label {
    box-sizing: border-box;
    padding: 0 .4rem 0 0;
    font-size: .72rem;
    color: #64748b;
    text-align: right;
    transform: translateY(-.45rem);
    line-height: 1;
}

.slot-cal-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    flex: 1;
    min-width: 840px;
}

.slot-cal-day {
    border-right: 1px solid #edf2f7;
    min-width: 0;
}

.slot-cal-day:last-child {
    border-right: 0;
}

.slot-cal-day.is-today .slot-cal-day-body {
    background: #f8fbff;
}

.slot-cal-day.is-selected .slot-cal-day-head {
    background: #eff6ff;
    box-shadow: inset 0 -3px 0 #2563eb;
}

.slot-cal-day-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    height: 64px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    padding: .35rem;
}

.slot-cal-day-head:hover {
    background: #f8fafc;
}

.slot-cal-day-head--static {
    pointer-events: none;
}

.slot-cal-day-head--static:hover {
    background: #fff;
}

.slot-cal-dow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
}

.slot-cal-dom {
    font-size: 1.25rem;
    font-weight: 750;
    color: #0f172a;
    line-height: 1;
}

.slot-cal-day.is-today .slot-cal-dom {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff;
}

.slot-cal-badge {
    font-size: .65rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 999px;
    padding: .05rem .4rem;
}

.slot-cal-badge--free {
    color: #1d4ed8;
    background: #dbeafe;
}

.slot-cal-day-body {
    position: relative;
}

.slot-cal-hour-line {
    box-sizing: border-box;
    border-bottom: 1px solid #eef2f7;
    background-image: linear-gradient(to bottom, transparent calc(50% - .5px), #f1f5f9 calc(50%), transparent calc(50% + .5px));
}

.slot-cal-event {
    position: absolute;
    left: 4px;
    right: 4px;
    z-index: 1;
    border: 0;
    border-radius: .4rem;
    padding: .25rem .4rem;
    text-align: left;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: .1rem;
    font-size: .72rem;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.slot-cal-event strong {
    font-size: .78rem;
    font-weight: 750;
}

.slot-cal-event--free {
    background: #dbeafe;
    color: #1e3a8a;
    border-left: 3px solid #2563eb;
}

.slot-cal-event--booked {
    background: #dcfce7;
    color: #14532d;
    border-left: 3px solid #16a34a;
}

.slot-cal-event--blocked {
    background: repeating-linear-gradient(-45deg, #e2e8f0, #e2e8f0 3px, #f8fafc 3px, #f8fafc 7px);
    color: #475569;
    border-left: 3px solid #94a3b8;
    cursor: default;
}

.slot-cal-event--event {
    background: rgba(124, 58, 237, .18);
    color: #5b21b6;
    border-left: 3px solid #7c3aed;
    cursor: default;
    z-index: 0;
    pointer-events: none;
    font-weight: 650;
}

.slot-cal-event.is-active {
    outline: 2px solid #1d4ed8;
    outline-offset: 1px;
    z-index: 2;
}

.slot-cal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .8rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

.slot-cal-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

@media (max-width: 992px) {
    .slot-cal {
        height: calc(100dvh - 6.5rem);
        min-height: calc(100vh - 6.5rem);
    }
}

.reg-cal {
    height: auto;
    min-height: 0;
    max-height: none;
}

.reg-cal .slot-cal-board {
    max-height: min(70vh, 640px);
    overflow: auto;
}

.reg-cal-popover {
    margin-top: .85rem;
    border: 1px solid #bbf7d0;
    border-radius: .75rem;
    background: #f0fdf4;
    box-shadow: 0 8px 24px rgba(22, 163, 74, .12);
    overflow: hidden;
}

.reg-cal-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(15, 23, 42, .45);
}

.reg-cal-modal {
    position: fixed;
    z-index: 1050;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 2rem));
    max-height: min(80vh, 560px);
    overflow: auto;
    border: 1px solid #bbf7d0;
    border-radius: .85rem;
    background: #f0fdf4;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .28);
}

.reg-cal-popover-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid #bbf7d0;
    background: #fff;
}

.reg-cal-popover-body {
    display: grid;
    gap: .65rem;
    padding: .85rem 1rem 1rem;
}

.reg-cal-card {
    background: #fff;
    border: 1px solid #dcfce7;
    border-radius: .55rem;
    padding: .7rem .85rem;
}

.reg-cal-card-name {
    font-weight: 700;
    color: #14532d;
    margin-bottom: .2rem;
}

.reg-cal-card-line {
    font-size: .9rem;
    color: #334155;
}

.reg-cal-card-line a {
    color: #166534;
    text-decoration: none;
}

.reg-cal-card-line a:hover {
    text-decoration: underline;
}

.reg-cal-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin-top: .45rem;
    font-size: .78rem;
}

/* Public appointment booking — Calendly-style */
.cal-landing {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.cal-shell {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
    overflow: hidden;
    min-height: min(720px, calc(100vh - 6rem));
}

.cal-shell-aside {
    padding: 1.75rem 1.5rem;
    border-right: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.cal-shell-logo {
    max-width: 220px;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 1.15rem;
}

.cal-shell-org {
    margin: 0 0 .35rem;
    font-size: .85rem;
    color: #64748b;
    font-weight: 600;
}

.cal-shell-title {
    margin: 0 0 1rem;
    font-size: 1.65rem;
    font-weight: 750;
    line-height: 1.2;
    color: #0f172a;
}

.cal-shell-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.cal-shell-meta li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .92rem;
    color: #334155;
}

.cal-shell-meta-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    margin-top: .1rem;
    color: #64748b;
}

.cal-shell-ref-link {
    color: var(--landing-primary, #2563eb);
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

.cal-shell-ref-link:hover {
    text-decoration: underline;
}

.cal-shell-desc {
    margin: 0 0 .75rem;
    color: #475569;
    font-size: .95rem;
    line-height: 1.5;
}

.cal-shell-content {
    font-size: .9rem;
    color: #475569;
    line-height: 1.5;
}

.cal-shell-hint {
    color: #64748b;
    font-size: .92rem;
}

.cal-shell-cta {
    padding: .85rem 1rem;
    font-weight: 650;
    border-radius: .55rem;
    background: var(--landing-primary, #2563eb);
    border-color: var(--landing-primary, #2563eb);
}

.cal-shell-main {
    padding: 1.5rem 1.75rem;
    background: #fafbfc;
    min-width: 0;
}

.cal-book-head {
    margin-bottom: 1.25rem;
}

.cal-book-heading {
    margin: 0 0 .35rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.cal-book-tz {
    margin: 0;
    font-size: .85rem;
    color: #64748b;
}

.cal-book-body {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(160px, 220px);
    gap: 1.5rem;
    align-items: start;
}

.cal-book-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .85rem;
}

.cal-book-month-label {
    text-transform: capitalize;
    font-size: 1rem;
    color: #0f172a;
}

.cal-book-nav-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 1.2rem;
    line-height: 1;
}

.cal-book-nav-btn:hover {
    background: #f8fafc;
}

.cal-book-weekdays,
.cal-book-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .35rem;
}

.cal-book-weekday {
    text-align: center;
    font-size: .68rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: .04em;
    padding-bottom: .25rem;
}

.cal-book-day {
    aspect-ratio: 1;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #94a3b8;
    font-weight: 650;
    font-size: .95rem;
}

.cal-book-day.is-outside {
    opacity: .35;
}

.cal-book-day.has-slots {
    color: var(--landing-primary, #2563eb);
    background: color-mix(in srgb, var(--landing-primary, #2563eb) 12%, white);
    cursor: pointer;
}

.cal-book-day.has-slots:hover {
    background: color-mix(in srgb, var(--landing-primary, #2563eb) 22%, white);
}

.cal-book-day.is-selected {
    background: var(--landing-primary, #2563eb) !important;
    color: #fff !important;
}

.cal-book-day.is-full {
    color: #94a3b8;
    text-decoration: line-through;
}

.cal-book-day:disabled {
    cursor: default;
}

.cal-book-times-date {
    margin: 0 0 .75rem;
    font-size: .92rem;
    font-weight: 650;
    color: #0f172a;
    text-transform: capitalize;
}

.cal-book-times-empty {
    margin: 2rem 0 0;
    color: #94a3b8;
    font-size: .9rem;
}

.cal-book-times-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-height: 420px;
    overflow: auto;
    padding-right: .15rem;
}

.cal-book-time {
    width: 100%;
    padding: .7rem .85rem;
    border-radius: .5rem;
    border: 1px solid var(--landing-primary, #2563eb);
    background: #fff;
    color: var(--landing-primary, #2563eb);
    font-weight: 650;
    font-size: .95rem;
    text-align: center;
}

.cal-book-time:hover:not(:disabled) {
    background: color-mix(in srgb, var(--landing-primary, #2563eb) 8%, white);
}

.cal-book-time.is-selected,
.cal-book-time.is-selected:hover:not(:disabled),
.cal-book-time.is-selected:focus-visible {
    background: var(--landing-primary, #2563eb) !important;
    color: #ffffff !important;
    border-color: var(--landing-primary, #2563eb) !important;
}

.cal-book-time.is-unavailable,
.cal-book-time:disabled {
    border-color: #e2e8f0;
    color: #94a3b8;
    background: #f8fafc;
}

@media (max-width: 900px) {
    .cal-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .cal-shell-aside {
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .cal-book-body {
        grid-template-columns: 1fr;
    }

    .cal-book-times-list {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}
