: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);
}

.btn-primary {
    --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.5rem; }
.cv-logo--footer { max-height: 3rem; }
.cv-logo--xs { max-height: 2rem; }

.hero-logo {
    max-height: 6rem;
}

.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;
}

.login-logo {
    max-width: 200px;
    max-height: 5rem;
}

.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;
}

.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-logo {
    max-width: 180px;
    max-height: 5rem;
}

.landing-page .btn-primary {
    background: var(--landing-primary, var(--convocaria-primary));
    border-color: var(--landing-primary, var(--convocaria-primary));
}

.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: .35rem;
}

.session-calendar-weekday {
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    color: #64748b;
    padding-bottom: .25rem;
}

.session-calendar-day {
    min-height: 4.5rem;
    border-radius: .5rem;
    padding: .25rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    background: #f8fafc;
}

.session-calendar-day.other-month {
    opacity: .45;
}

.session-calendar-day.has-sessions {
    background: color-mix(in srgb, var(--landing-primary, var(--convocaria-primary)) 12%, #fff);
}

.session-calendar-day-number {
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    color: #334155;
}

.session-calendar-slot {
    border: 0;
    border-radius: .35rem;
    padding: .15rem .2rem;
    font-size: .72rem;
    font-weight: 600;
    background: var(--landing-primary, var(--convocaria-primary));
    color: #fff;
    cursor: pointer;
}

.session-calendar-slot.selected {
    outline: 2px solid #0f172a;
    outline-offset: 1px;
}

.session-calendar-slot.unavailable {
    background: #94a3b8;
    cursor: not-allowed;
    opacity: .75;
}

#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);
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: .5rem 1rem;
    background: var(--cv-primary);
    color: #fff;
}

.skip-link:focus {
    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 {
    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: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;
}

.cv-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cv-text);
    border-radius: 2px;
}

.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;
}

.btn-cv-primary {
    background: var(--cv-primary);
    color: #fff;
}

.btn-cv-primary:hover {
    background: var(--cv-primary-dark);
    color: #fff;
}

.btn-cv-outline {
    background: transparent;
    color: var(--cv-primary);
    border: 1.5px solid var(--cv-primary);
}

.btn-cv-outline:hover {
    background: var(--cv-primary-light);
    color: var(--cv-primary-dark);
}

.btn-cv-lg {
    padding: .85rem 1.75rem;
    font-size: 1rem;
}

.btn-cv-white {
    background: #fff;
    color: var(--cv-primary);
}

.btn-cv-white:hover {
    background: var(--cv-primary-light);
    color: var(--cv-primary-dark);
}

/* 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(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(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-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.cv-price-card {
    background: var(--cv-white);
    border: 1px solid var(--cv-border);
    border-radius: var(--cv-radius);
    padding: 2rem 1.5rem;
    position: relative;
}

.cv-price-card.featured {
    border-color: var(--cv-primary);
    box-shadow: 0 8px 32px rgba(37, 99, 235, .15);
}

.cv-price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cv-primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.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-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: 48px;
    height: 48px;
    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 {
    color: #94a3b8;
    text-decoration: none;
    font-size: .9rem;
}

.cv-footer a: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 {
    color: var(--cv-primary);
}

/* Cookie banner */
.cv-cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    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;
        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;
    }
}
