/* Formulario de contacto, su confirmación y las preguntas frecuentes. Se carga después de lablink-landing.css y usa
   sus tokens y su escala: mismos colores, campos y botones que la entrada. El rojo de la marca no se usa aquí: los
   botones van en tinta y los errores en rojo oscuro. */

/* Franja oscura como el hero de la entrada: la tarjeta se monta sobre ella. */
.tl-req-band {
    height: calc(150px * var(--tl-scale));
    background: var(--tl-hero);
}

.tl-req-card {
    position: relative;
    /* Mismo ancho que la tarjeta de la entrada: los márgenes laterales son el --tl-gutter de lablink-landing.css. */
    margin: calc(-110px * var(--tl-scale)) var(--tl-gutter) 0;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #E4E6EB;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(27, 34, 48, 0.04), 0 16px 40px rgba(27, 34, 48, 0.08);
    padding: calc(44px * var(--tl-scale)) calc(52px * var(--tl-scale)) calc(48px * var(--tl-scale));
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
        "intro aside"
        "form  aside";
    column-gap: calc(56px * var(--tl-scale));
    row-gap: calc(24px * var(--tl-scale));
    align-items: start;
}

.tl-req-intro { grid-area: intro; }
.tl-req-aside { grid-area: aside; }
.tl-req-form { grid-area: form; }

.tl-req-card .tl-req-title {
    margin: 0 0 calc(10px * var(--tl-scale));
    font-size: max(20px, calc(30px * var(--tl-type-scale)));
    font-weight: 400;
    line-height: 1.2;
    color: var(--tl-ink);
}

.tl-req-lead {
    margin: 0;
    font-size: max(13px, calc(16px * var(--tl-type-scale)));
    line-height: 1.55;
    color: var(--tl-muted);
}

.tl-req-lead b {
    font-weight: 500;
    color: var(--tl-ink);
}

/* ---------- Formulario ---------- */

.tl-req-form {
    display: flex;
    flex-direction: column;
    gap: calc(20px * var(--tl-scale));
    margin: 0;
}

.tl-req-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(18px * var(--tl-scale));
}

.tl-req-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.tl-req-label {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tl-soft);
}

/* .tl-req-form delante: una hoja global del sitio le quita el borde a todo
   input[type="text"|"email"|"tel"...] y, por especificidad, le ganaba a la clase sola. */
.tl-req-form .tl-req-input {
    width: 100%;
    height: calc(56px * var(--tl-scale));
    min-height: 42px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid var(--tl-field-border);
    border-radius: 10px;
    background: #ffffff;
    font-family: inherit;
    font-size: max(14px, calc(16px * var(--tl-type-scale)));
    color: var(--tl-ink);
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tl-req-form .tl-req-input::placeholder {
    color: var(--tl-muted);
}

.tl-req-form .tl-req-input:focus {
    outline: 2px solid var(--tl-focus);
    outline-offset: 2px;
    border-color: var(--tl-ink);
}

.tl-req-form .tl-req-textarea {
    height: calc(170px * var(--tl-scale));
    min-height: 130px;
    padding: 12px 14px;
    line-height: 1.5;
    resize: vertical;
}

.tl-req-field.has-error .tl-req-label,
.tl-req-error {
    color: var(--tl-red-dark);
}

.tl-req-form .tl-req-field.has-error .tl-req-input {
    border-color: var(--tl-red-dark);
    border-width: 1.5px;
}

.tl-req-error {
    font-size: 13px;
    line-height: 1.4;
}

.tl-req-alert {
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--tl-red-soft);
    color: var(--tl-red-dark);
    font-size: 14px;
}

.tl-req-help {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--tl-soft);
}

.tl-req-counter {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.tl-req-counter.is-near-limit {
    color: var(--tl-red-dark);
}

/* Casilla "Búsqueda confidencial". La etiqueta completa es clickeable. */
.tl-req-check-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tl-req-form .tl-req-checkbox {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--tl-ink);
    cursor: pointer;
}

.tl-req-check-label {
    margin: 0;
    font-size: max(14px, calc(16px * var(--tl-type-scale)));
    font-weight: 500;
    color: var(--tl-ink);
    cursor: pointer;
}

.tl-req-check-help {
    margin-top: 2px;
    font-size: 13px;
    color: var(--tl-muted);
}

/* Fuera de la vista y del orden de tabulación, pero no display:none: algunos
   bots se saltan los campos ocultos así. */
.tl-req-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tl-req-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.tl-req-submit,
.tl-req-secondary {
    height: calc(56px * var(--tl-scale));
    min-height: 44px;
    box-sizing: border-box;
    padding: 0 calc(34px * var(--tl-scale));
    border-radius: 10px;
    font-family: inherit;
    font-size: max(14px, calc(17px * var(--tl-type-scale)));
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.tl-req-submit {
    border: 0;
    background: var(--tl-ink);
    color: #ffffff;
}

.tl-req-submit:hover,
.tl-req-submit:focus {
    background: var(--tl-ink-dark);
    color: #ffffff;
    text-decoration: none;
}

.tl-req-submit:disabled {
    opacity: 0.7;
    cursor: progress;
}

.tl-req-submit:focus:not(:focus-visible) {
    outline: none;
}

.tl-req-submit:focus-visible,
.tl-req-secondary:focus-visible {
    outline: 2px solid var(--tl-focus);
    outline-offset: 2px;
}

.tl-req-secondary {
    border: 1.5px solid var(--tl-field-border);
    background: #ffffff;
    color: var(--tl-text);
}

.tl-req-secondary:hover,
.tl-req-secondary:focus {
    border-color: var(--tl-ink);
    color: var(--tl-ink);
    text-decoration: none;
}

.tl-req-private {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--tl-muted);
}

/* ---------- Columna derecha ---------- */

.tl-req-aside {
    display: flex;
    flex-direction: column;
    gap: calc(28px * var(--tl-scale));
}

.tl-req-sla {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: calc(20px * var(--tl-scale)) calc(22px * var(--tl-scale));
    border-radius: 14px;
    background: var(--tl-info-bg);
}

.tl-req-sla-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-req-sla-title {
    font-size: max(15px, calc(18px * var(--tl-type-scale)));
    font-weight: 500;
    line-height: 1.3;
    color: var(--tl-ink);
}

.tl-req-sla-text {
    margin-top: 4px;
    font-size: max(13px, calc(14px * var(--tl-type-scale)));
    line-height: 1.5;
    color: var(--tl-muted);
}

.tl-req-sla-text b {
    font-weight: 500;
    color: var(--tl-ink);
    word-break: break-word;
}

.tl-req-aside .tl-req-how-title {
    margin: 0 0 calc(18px * var(--tl-scale));
    font-size: max(16px, calc(20px * var(--tl-type-scale)));
    font-weight: 400;
    color: var(--tl-ink);
}

/* Pasos con el mismo lenguaje que los del hero de la landing. */
.tl-req-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tl-req-step {
    display: flex;
    gap: 16px;
}

.tl-req-step-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tl-req-step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tl-ink);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-req-step-line {
    flex-grow: 1;
    width: 2px;
    min-height: 16px;
    margin: 4px 0;
    background: var(--tl-field-border);
}

/* El título arranca a la altura del borde superior del círculo, no de su número. */
.tl-req-step-body {
    padding: 0 0 20px;
}

.tl-req-step:last-child .tl-req-step-body {
    padding-bottom: 0;
}

.tl-req-step-title {
    line-height: 1.25;
    font-size: max(14px, calc(17px * var(--tl-type-scale)));
    font-weight: 500;
    color: var(--tl-ink);
}

.tl-req-step-text {
    margin-top: 4px;
    font-size: max(13px, calc(14px * var(--tl-type-scale)));
    line-height: 1.5;
    color: var(--tl-muted);
}

/* ---------- Confirmación ---------- */

/* La confirmación es un mensaje corto: angosta y centrada. */
.tl-req-card.tl-req-card-sent {
    max-width: calc(720px * var(--tl-scale) / 0.85);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(22px * var(--tl-scale));
    padding: calc(52px * var(--tl-scale)) calc(64px * var(--tl-scale)) calc(48px * var(--tl-scale));
    text-align: center;
}

.tl-req-check {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--tl-red-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-req-card-sent .tl-req-sla {
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    text-align: left;
}

.tl-req-sent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-top: 6px;
}

/* ---------- Preguntas frecuentes ---------- */

/* Una sola columna, angosta para leer cómodo: título, bajada y la lista (sin recuadro lateral desde U23). */
.tl-req-card.tl-faq-card {
    max-width: 880px;
    margin-left: max(var(--tl-gutter), calc((100% - 880px) / 2));
    margin-right: max(var(--tl-gutter), calc((100% - 880px) / 2));
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "intro"
        "form";
}

.tl-faq-list {
    grid-area: form;
}

.tl-faq-item {
    border-bottom: 1px solid var(--tl-line);
}

.tl-faq-item:first-child {
    border-top: 1px solid var(--tl-line);
}

.tl-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: calc(20px * var(--tl-scale)) 0;
    list-style: none;
    cursor: pointer;
    font-size: max(15px, calc(18px * var(--tl-type-scale)));
    font-weight: 500;
    color: var(--tl-ink);
}

.tl-faq-question::-webkit-details-marker {
    display: none;
}

/* − abierta, + cerrada. */
.tl-faq-question::after {
    content: '+';
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    color: var(--tl-blue);
}

.tl-faq-item[open] > .tl-faq-question::after {
    content: '\2212';
}

.tl-faq-question:hover {
    color: var(--tl-blue);
}

.tl-faq-question:focus-visible {
    outline: 2px solid var(--tl-focus);
    outline-offset: 2px;
    border-radius: 4px;
}

.tl-faq-answer {
    margin: 0;
    padding: 0 40px calc(22px * var(--tl-scale)) 0;
    font-size: max(14px, calc(15px * var(--tl-type-scale)));
    line-height: 1.65;
    color: var(--tl-muted);
}

/* ---------- Mobile (artboard A5) ---------- */

@media (max-width: 767.98px) {
    .tl-req-band {
        height: 72px;
    }

    .tl-req-card {
        margin: -56px 16px 0;
        padding: 24px 20px 26px;
        border-radius: 16px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "intro"
            "aside"
            "form";
        row-gap: 18px;
    }

    .tl-req-card .tl-req-title {
        font-size: 24px;
    }

    .tl-req-lead {
        font-size: 14px;
    }

    /* En mobile se queda el compromiso de respuesta; los pasos, no. */
    .tl-req-how {
        display: none;
    }

    .tl-faq-answer {
        padding-right: 0;
    }

    .tl-req-sla {
        padding: 12px 14px;
        border-radius: 12px;
        align-items: center;
    }

    .tl-req-sla-icon {
        width: 36px;
        height: 36px;
    }

    .tl-req-sla-title {
        font-size: 15px;
    }

    .tl-req-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .tl-req-form {
        gap: 16px;
    }

    .tl-req-form .tl-req-input {
        height: 48px;
        font-size: 16px;
    }

    .tl-req-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tl-req-submit,
    .tl-req-secondary {
        width: 100%;
        height: 50px;
    }

    .tl-req-private {
        justify-content: center;
        font-size: 12px;
    }

    .tl-req-card.tl-req-card-sent {
        padding: 32px 20px 28px;
    }

    .tl-req-sent-actions {
        width: 100%;
        flex-direction: column;
    }
}
