/* Contact — wizard + formulaires. Chrome land, thème clair. */

html[data-page="contact"] .land__chrome {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--page-0) 88%, #fff);
    border-bottom: 1px solid var(--line);
}
html[data-page="contact"] .land__chrome::before { display: none; }
html[data-page="contact"] .land__chrome.is-menu {
    background: var(--surface);
    border-bottom-color: transparent;
}

.main--contact {
    max-width: 28rem;
    padding-top: 4.5rem;
    padding-bottom: 5rem;
}

.cw__kicker {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin: 0 0 1.1rem;
}

.cw__back {
    display: inline-flex;
    align-items: center;
    margin: 0 0 1.1rem;
    padding: .35rem 0;
    border: 0;
    background: none;
    color: var(--ink-mute);
    font: inherit;
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: .01em;
}
.cw__back:hover { color: var(--ink); }
.cw__back:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.cw__title {
    max-width: 22ch;
    font-size: clamp(1.85rem, 4.2vw, 2.55rem);
    letter-spacing: var(--tracking-tight, -.02em);
    line-height: 1.12;
    margin: 0 0 .55rem;
}

.cw__lead {
    margin: 0 0 1.6rem;
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--ink-soft);
}
.cw__lead[hidden],
[data-cw-form][hidden],
.cw__back[hidden] {
    display: none !important;
}

.cw__choices,
[data-cw-choices] {
    display: grid;
    gap: .7rem;
}

.cw__choice,
.ag-cw__choice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .28rem;
    width: 100%;
    text-align: left;
    padding: 1.05rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    transition: border-color .2s var(--ease, ease), background .2s var(--ease, ease), transform .2s var(--ease, ease);
}
.cw__choice:hover,
.ag-cw__choice:hover {
    border-color: var(--ink);
    background: color-mix(in srgb, var(--surface) 80%, #fff);
    transform: translateY(-1px);
}
.cw__choice:focus-visible,
.ag-cw__choice:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.cw__choice-label,
.ag-cw__choice-label {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
}

.cw__choice-desc,
.ag-cw__choice-desc {
    font-size: .88rem;
    line-height: 1.4;
    color: var(--ink-mute);
}

.cw__meta {
    margin-top: 2.6rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--line);
    font-size: .86rem;
    line-height: 1.55;
    color: var(--ink-mute);
}
.cw__meta strong { color: var(--ink); font-weight: 600; }
.cw__meta a { color: var(--ink); border-bottom: 1px solid var(--line); }
.cw__meta a:hover { border-bottom-color: var(--ink); }

.ag-cw__form-card { margin-top: .15rem; }
.ag-cw__form-title {
    margin: 0 0 .4rem;
    font-size: 1.15rem;
    font-weight: 600;
}
.ag-cw__form-lead {
    margin: 0 0 1.1rem;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

body.is-ag-lead-open { overflow: hidden; }

.ag-lead {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.ag-lead.is-on {
    opacity: 1;
    visibility: visible;
}

.ag-lead__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: rgba(12, 16, 24, .52);
    backdrop-filter: blur(4px);
}

.ag-lead__panel {
    position: relative;
    z-index: 1;
    width: min(32rem, 100%);
    max-height: min(88dvh, 42rem);
    overflow: auto;
    padding: 1.5rem 1.4rem 1.5rem;
    border-radius: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(12, 16, 24, .22);
    transform: translateY(10px) scale(.98);
    transition: transform .35s ease;
}
.ag-lead.is-on .ag-lead__panel { transform: none; }

.ag-lead__x {
    position: absolute;
    top: .4rem;
    right: .5rem;
    border: 0;
    background: transparent;
    color: var(--ink-mute);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: .35rem .5rem;
}
.ag-lead__x:hover { color: var(--ink); }

.ag-lead__title {
    margin: 0 1.75rem .5rem 0;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 600;
}

.ag-lead__lead {
    margin: 0 0 1.1rem;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.ag-lead__form {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.ag-lead__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.ag-lead__field {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.ag-lead__lbl {
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-weight: 600;
}

.ag-lead__opt {
    font-style: normal;
    letter-spacing: .04em;
    text-transform: none;
    font-weight: 400;
    color: var(--ink-mute);
}

.ag-lead__field input,
.ag-lead__field textarea {
    appearance: none;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: .62rem .75rem;
    font: inherit;
    font-size: .92rem;
    line-height: 1.35;
    color: var(--ink);
    background: var(--surface);
    transition: border-color .2s ease;
    resize: vertical;
}

.ag-lead__field input:focus,
.ag-lead__field textarea:focus {
    outline: none;
    border-color: var(--ink);
}

.ag-lead__seg-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.ag-lead__seg-btn {
    appearance: none;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--surface);
    color: var(--ink-mute);
    font: inherit;
    font-size: .82rem;
    line-height: 1.3;
    padding: .48rem .7rem;
    cursor: pointer;
}
.ag-lead__seg-btn:hover { color: var(--ink); }
.ag-lead__seg-btn.is-on {
    border-color: var(--ink);
    color: var(--ink);
    font-weight: 600;
}

.ag-lead__submit,
.ag-lead__done {
    align-self: flex-start;
    margin-top: .2rem;
    appearance: none;
    border: 1px solid var(--ink);
    border-radius: 3px;
    padding: .62rem 1.15rem;
    font: inherit;
    font-size: .86rem;
    font-weight: 600;
    color: var(--page-0, #e4e5e8);
    background: var(--ink);
    cursor: pointer;
}
.ag-lead__submit:hover,
.ag-lead__done:hover { opacity: .88; }
.ag-lead__submit:disabled { opacity: .5; cursor: wait; }

.ag-lead__error {
    color: #b42318;
    font-size: .86rem;
    margin: .35rem 0 0;
}

.ag-lead__view--ok {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}
.ag-lead__view--ok[hidden] { display: none; }
.ag-lead__ok {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.45;
}

.ag-lead__submit:focus-visible,
.ag-lead__done:focus-visible,
.ag-lead__x:focus-visible,
.ag-lead__seg-btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .cw__choice,
    .ag-cw__choice,
    .ag-lead,
    .ag-lead__panel {
        transition: none;
    }
    .cw__choice:hover,
    .ag-cw__choice:hover {
        transform: none;
    }
    .ag-lead.is-on .ag-lead__panel { transform: none; }
}

@media (max-width: 640px) {
    .ag-lead__row { grid-template-columns: 1fr; }
    .cw__title { max-width: none; }
}

/* Ficha flotante / página Contact — mismo gesto que las cards de producto */
body.is-cw-open { overflow: hidden; }

.cw-sheet--page .cw-sheet__panel {
    position: relative;
}

.cw-sheet--float {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.cw-sheet--float.is-on {
    opacity: 1;
    visibility: visible;
}

.cw-sheet__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: rgba(12, 16, 24, .52);
    backdrop-filter: blur(6px);
}
html[data-theme="light"] .cw-sheet__backdrop,
.cw-sheet[data-theme="light"] .cw-sheet__backdrop {
    background: rgba(18, 20, 26, .28);
}

.cw-sheet__panel {
    --cw-bg: var(--surface);
    --prod-bg: var(--cw-bg);
    position: relative;
    z-index: 1;
    width: min(28rem, 100%);
    max-height: min(88dvh, 44rem);
    display: flex;
    flex-direction: column;
    padding: 6.4rem 0 0;
    background:
        radial-gradient(110% 64% at 50% -8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 62%),
        var(--cw-bg);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
    border-radius: 6px;
    color: var(--ink);
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent),
        0 22px 48px rgba(12, 16, 24, .18);
    overflow: visible;
}
html[data-theme="dark"] .cw-sheet__panel,
.cw-sheet[data-theme="dark"] .cw-sheet__panel {
    --cw-bg: #16181e;
    --prod-bg: #16181e;
    background:
        radial-gradient(110% 64% at 50% -8%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%),
        linear-gradient(180deg, #1c1f28 0%, var(--cw-bg) 46%);
    border-color: color-mix(in srgb, var(--accent) 22%, #2a2e36);
    color: #ececef;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .07),
        0 22px 48px rgba(0, 0, 0, .45);
}

.cw-sheet__orb {
    pointer-events: none;
    transform: translate(-50%, -58%);
}

.cw-sheet__x {
    position: absolute;
    top: .45rem;
    right: .5rem;
    z-index: 3;
    border: 0;
    background: transparent;
    color: var(--ink-mute);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: .35rem .5rem;
}
.cw-sheet__x:hover { color: var(--ink); }
.cw-sheet__x:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.cw-sheet__body {
    overflow: auto;
    padding: 0 1.4rem 1.45rem;
    min-height: 0;
}

.cw-sheet__kicker {
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 .7rem;
}
.cw-sheet__kicker::after {
    content: "";
    display: block;
    width: 1.55rem;
    height: 1px;
    margin-top: .45rem;
    background: color-mix(in srgb, var(--accent) 70%, transparent);
}

.cw-sheet .cw__title {
    max-width: 16ch;
    font-size: clamp(1.35rem, 3.2vw, 1.75rem);
}
.cw-sheet .cw__lead {
    font-size: .95rem;
    margin-bottom: 1.2rem;
}
.cw-sheet .cw__back { margin-bottom: .85rem; }

html[data-theme="dark"] .cw-sheet .ag-cw__choice,
html[data-theme="dark"] .cw-sheet .cw__choice,
.cw-sheet[data-theme="dark"] .ag-cw__choice,
.cw-sheet[data-theme="dark"] .cw__choice {
    background: color-mix(in srgb, var(--surface) 55%, #1c1f28);
    border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
}
html[data-theme="dark"] .cw-sheet .ag-cw__choice:hover,
html[data-theme="dark"] .cw-sheet .cw__choice:hover,
.cw-sheet[data-theme="dark"] .ag-cw__choice:hover,
.cw-sheet[data-theme="dark"] .cw__choice:hover {
    background: color-mix(in srgb, var(--accent) 14%, #1c1f28);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}
html[data-theme="dark"] .cw-sheet .ag-cw__choice-label,
html[data-theme="dark"] .cw-sheet .cw__choice-label,
.cw-sheet[data-theme="dark"] .ag-cw__choice-label,
.cw-sheet[data-theme="dark"] .cw__choice-label {
    color: #ececef;
}

.cw-sheet[data-accent="silver"] { --accent: #8b919c; --accent-700: #6a7080; }
.cw-sheet[data-accent="beige"] { --accent: #cbb89a; --accent-700: #a8926e; }
.cw-sheet[data-accent="azure"] { --accent: #3b82f6; --accent-700: #2563eb; }
.cw-sheet[data-accent="teal"] { --accent: #2fd47a; --accent-700: #22a35e; }
.cw-sheet {
    transition: --accent .7s var(--ease, ease), --accent-700 .7s var(--ease, ease);
}

.cw-sheet .cw__choices,
.cw-sheet [data-cw-form] {
    animation: cw-in .22s ease;
}
@keyframes cw-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cw-sheet .cw__choices,
    .cw-sheet [data-cw-form] { animation: none; }
}

@media (max-width: 640px) {
    .cw-sheet--float { padding: .75rem; align-items: flex-end; }
    .cw-sheet__panel { width: 100%; max-height: min(92dvh, 48rem); }
}
