/* =====================================================
   GCAB — Atención a cliente (/atencion-cliente)
   =====================================================
   Reusa las clases .mq-* de maquila.css y añade lo propio
   del módulo: hero, aviso QR, lote desbloqueable y zona
   de archivos. Todo con los tokens de marca del proyecto.
   ===================================================== */

/* ── Hero ──────────────────────────────────────────── */
.ac-hero {
    padding: clamp(7rem, 14vw, 10rem) 0 clamp(2.5rem, 6vw, 4rem);
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(19, 35, 229, .06), transparent 60%),
        var(--c-bg, #fff);
    text-align: center;
}
.ac-hero .eyebrow { justify-content: center; }
.ac-hero h1 {
    margin: 0 auto .75rem;
    max-width: 22ch;
    font-size: clamp(1.85rem, 3.2vw, 2.75rem);
    letter-spacing: -0.02em;
    line-height: 1.12;
}
.ac-hero .lead {
    margin: 0 auto;
    max-width: 56ch;
    text-align: center;
}

/* ── Sección + ancho del formulario ────────────────── */
.ac-section { padding-top: clamp(2.5rem, 6vw, 4rem); }
.ac-form { max-width: 620px; }

/* textarea hereda el look de .mq-field input / .mq-select */
.ac-form textarea {
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: .85rem 1rem;
    background: #fff;
    font: inherit;
    color: var(--c-text);
    resize: vertical;
    min-height: 120px;
    transition: border-color var(--t), box-shadow var(--t);
}
.ac-form textarea::placeholder { color: rgba(13, 13, 26, .4); }
.ac-form textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(19, 35, 229, .12);
}

/* ── Aviso QR ──────────────────────────────────────── */
.ac-qr-notice {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--c-pill);
    color: var(--c-primary);
    border: 1px solid rgba(19, 35, 229, .18);
    border-radius: 12px;
    padding: .85rem 1.1rem;
    font-size: .9rem;
    line-height: 1.45;
}
.ac-qr-notice .ac-qr-icon { flex-shrink: 0; display: inline-flex; }

/* ── Lote con botón de desbloqueo (estilo QR) ─────── */
.ac-qr-input { position: relative; display: flex; align-items: center; }
.ac-qr-input input {
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: .85rem 3rem .85rem 1rem;
    background: #fff;
    font: inherit;
    color: var(--c-text);
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.ac-qr-input input[readonly] {
    background: #F4F6FD;
    color: var(--c-muted);
    cursor: not-allowed;
}
.ac-qr-input input::placeholder { color: rgba(13, 13, 26, .4); }
.ac-qr-input input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(19, 35, 229, .12);
}
.ac-qr-input.unlocked input { background: #fff; color: var(--c-text); cursor: text; }
.ac-edit-btn {
    position: absolute;
    right: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem; height: 2rem;
    border: none;
    background: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--t);
}
.ac-edit-btn:hover { background: var(--c-pill); }

/* ── Zona de archivos ──────────────────────────────── */
.ac-file-zone {
    display: block;
    border: 2px dashed var(--c-border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    background: #F8FAFF;
    cursor: pointer;
    transition: border-color var(--t), background var(--t);
}
.ac-file-zone:hover { border-color: var(--c-primary); background: #F1F4FF; }
.ac-file-zone.has-files { border-style: solid; border-color: var(--c-primary); background: var(--c-pill); }
.ac-file-zone input[type="file"] { display: none; }
.ac-file-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
}
.ac-file-icon { color: var(--c-primary); display: inline-flex; }
.ac-file-text { font-size: .9rem; color: var(--c-muted); line-height: 1.5; }
.ac-file-text strong { color: var(--c-primary); }
.ac-file-text small { color: rgba(92, 97, 111, .8); }

/* ── Mensajes de estado ────────────────────────────── */
.ac-form .form-success,
.ac-form .form-error {
    border-radius: 10px;
    padding: .9rem 1rem;
    font-size: .92rem;
    line-height: 1.5;
}
.ac-form .form-success { background: rgba(19, 35, 229, .08); color: var(--c-primary); }
.ac-form .form-error   { background: rgba(220, 38, 38, .08); color: #b91c1c; }

@media (max-width: 560px) {
    .ac-form .mq-form-row { grid-template-columns: 1fr; }
    .ac-form .mq-form-submit { width: 100%; min-width: 0; }
}
