/* ============================================================
   /contacto — port de mock-up-FD/contact.html
   Prefijo ct-, todo scoped a .ct-root. Las clases genéricas del mockup
   (.card .field .hint .upload .submit .icon .note + los selectores sueltos
   label/input/select/textarea) chocan con Bootstrap/MudBlazor y con el reset
   de account/css/index.css, que se carga DESPUÉS y resetea [type="text"];
   por eso los inputs van como .ct-root .ct-input (0,2,0).
   ============================================================ */

.ct-root {
    --ct-blue: #2F5BFF;
    --ct-blue-dark: #1E46DA;
    --ct-blue-soft: #EEF3FF;
    --ct-bg: #F6F8FC;
    --ct-text: #172033;
    --ct-muted: #6B7280;
    --ct-border: #E3E8F0;
    --ct-success: #0F9F6E;
    --ct-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ct-body: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    min-height: 100vh;
    background: radial-gradient(circle at 10% 0%, rgba(47,91,255,.08), transparent 28%), var(--ct-bg);
    color: var(--ct-text);
    font-family: var(--ct-body);
}

.ct-root *, .ct-root *::before, .ct-root *::after { box-sizing: border-box; }

/* ── Topbar (no está en el mockup: con LandingLayout no hay chrome y el
      visitante quedaría sin salida) ── */
.ct-topbar {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ct-root .ct-logo { height: 34px; width: auto; display: block; }
.ct-root .ct-back {
    color: var(--ct-blue);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}
.ct-root .ct-back:hover { text-decoration: underline; }

.ct-page {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 90px;
}

.ct-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ct-blue);
    background: var(--ct-blue-soft);
    padding: 8px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.ct-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ct-blue); }

.ct-hero { max-width: 760px; margin-bottom: 38px; }
.ct-root .ct-title {
    font-family: var(--ct-head);
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -1.8px;
    margin: 0 0 18px;
    font-weight: 600;
}
.ct-root .ct-title span { color: var(--ct-blue); }
.ct-root .ct-lede {
    margin: 0;
    color: var(--ct-muted);
    font-size: 17px;
    line-height: 1.7;
    max-width: 690px;
}

.ct-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; max-width: 820px; }

.ct-card {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--ct-border);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(18,35,72,.07);
    padding: 34px;
}

.ct-root .ct-section-title { font-family: var(--ct-head); font-size: 24px; margin: 0 0 6px; font-weight: 600; }
.ct-root .ct-section-sub { margin: 0 0 28px; color: var(--ct-muted); font-size: 14px; line-height: 1.6; }

.ct-field { margin-bottom: 20px; }
.ct-root .ct-label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.ct-root .ct-label-soft { font-weight: 400; color: #8B93A3; }

.ct-root .ct-input,
.ct-root .ct-select,
.ct-root .ct-textarea {
    width: 100%;
    border: 1px solid var(--ct-border);
    border-radius: 13px;
    background: #fff;
    color: var(--ct-text);
    font-family: var(--ct-body);
    font-size: 14px;
    line-height: normal;
    outline: none;
    transition: .2s ease;
}
.ct-root .ct-input, .ct-root .ct-select { height: 52px; padding: 0 15px; }
.ct-root .ct-textarea { min-height: 155px; resize: vertical; padding: 15px; }

.ct-root .ct-input:focus,
.ct-root .ct-select:focus,
.ct-root .ct-textarea:focus {
    border-color: var(--ct-blue);
    box-shadow: 0 0 0 4px rgba(47,91,255,.10);
}
.ct-root .ct-invalid, .ct-root .ct-invalid:focus { border-color: #DC2626; box-shadow: 0 0 0 4px rgba(220,38,38,.10); }

.ct-root .ct-hint { font-size: 12px; color: #8B93A3; margin-top: 7px; line-height: 1.5; }
.ct-root .ct-error { font-size: 12px; color: #DC2626; margin-top: 7px; line-height: 1.5; font-weight: 600; }

/* Honeypot: fuera de pantalla, no display:none (algunos bots lo detectan). */
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.ct-upload {
    border: 1px dashed #B9C5DA;
    border-radius: 14px;
    padding: 16px;
    background: #FBFCFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.ct-root .ct-upload strong { display: block; font-size: 13px; margin-bottom: 3px; }
.ct-root .ct-upload-sub { font-size: 12px; color: var(--ct-muted); }

/* El InputFile va transparente encima del botón para conservar el look del mockup. */
.ct-file-btn {
    position: relative;
    overflow: hidden;
    display: inline-block;
    border: 0;
    background: var(--ct-blue-soft);
    color: var(--ct-blue);
    border-radius: 10px;
    padding: 10px 13px;
    font-family: var(--ct-body);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.ct-file-btn input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.ct-root .ct-file-clear {
    border: 0;
    background: none;
    color: #DC2626;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.ct-root .ct-submit {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--ct-blue), #4773FF);
    font-family: var(--ct-body);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(47,91,255,.24);
    transition: .2s ease;
}
.ct-root .ct-submit:hover:not(:disabled) { transform: translateY(-1px); background: var(--ct-blue-dark); }
.ct-root .ct-submit:disabled { opacity: .65; cursor: default; box-shadow: none; }

.ct-root .ct-privacy {
    margin: 13px 4px 0;
    font-size: 11px;
    line-height: 1.55;
    color: #8A92A2;
    text-align: center;
}

/* ── Estado de éxito (el mockup solo escribía en un div de status) ── */
.ct-done { text-align: center; padding: 18px 0 6px; }
.ct-done-icon {
    width: 62px; height: 62px;
    border-radius: 50%;
    background: rgba(15,159,110,.12);
    color: var(--ct-success);
    display: grid; place-items: center;
    margin: 0 auto 18px;
    font-size: 28px;
}
.ct-root .ct-done h2 { font-family: var(--ct-head); font-size: 24px; margin: 0 0 8px; font-weight: 600; }
.ct-root .ct-done p { color: var(--ct-muted); font-size: 14px; line-height: 1.65; margin: 0 auto 22px; max-width: 460px; }
.ct-root .ct-done-link {
    display: inline-block;
    border: 1px solid var(--ct-border);
    border-radius: 12px;
    padding: 12px 20px;
    color: var(--ct-blue);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: #fff;
    cursor: pointer;
}
.ct-root .ct-done-link:hover { border-color: var(--ct-blue); }

@media (max-width: 850px) {
    .ct-page { padding-top: 32px; width: min(100% - 26px, 720px); }
    .ct-topbar { width: min(100% - 26px, 720px); }
    .ct-layout { grid-template-columns: 1fr; }
    .ct-card { padding: 24px; }
    .ct-root .ct-title { letter-spacing: -1px; }
}

/* ── ContactModal (dialog flotante desde el footer) ──
   El host conserva la clase ct-root SOLO para que resuelvan las vars --ct-*;
   se neutraliza el layout de página (mismo precedente que .xs-footer.reg-root
   en shell.css). Overlay a z-index 1300: por encima del chrome del shell
   (sidebar 1100, topbar 1050) y por debajo de MudDialog (1400) para que los
   confirms de ShowMessageBox queden encima — nunca subirlo a 1400. */
.ct-root.ct-modal-host { min-height: 0; background: none; }

.ct-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    backdrop-filter: blur(4px);
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.ct-modal {
    width: 640px;
    max-width: 95vw;
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--ct-border);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(18,35,72,.28);
    padding: 26px 30px 30px;
    animation: ctModalIn .28s cubic-bezier(.32,.72,0,1);
}

@keyframes ctModalIn {
    from { transform: translateY(18px) scale(.97); opacity: .6; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.ct-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.ct-modal-head .ct-eyebrow { margin-bottom: 0; }

.ct-root .ct-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--ct-border);
    background: #f8fafc;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: var(--ct-muted);
    transition: .15s ease;
    flex: 0 0 auto;
    padding: 0;
}
.ct-root .ct-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fecaca;
}

@media (max-width: 850px) {
    .ct-modal { padding: 20px 18px 22px; }
}
