/* =====================================================
   DOCUSOLUCIONES SGI - Sistema de Encuestas v2
   Estilos públicos
   ===================================================== */

/* ------- TESTIMONIOS (mismo diseño original) ------- */
.docu-sicep-testimonios {
    background: #F4F6F9;
    padding: 90px 8%;
    font-family: 'DM Sans', sans-serif;
    color: #1E293B;
}
.docu-sicep-testimonios-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}
.docu-sicep-testimonios-head h2 {
    font-family: 'Lora', serif;
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    color: #0B1F3A;
    margin: 0 0 .8rem;
    line-height: 1.25;
}
.docu-sicep-testimonios-head p {
    color: #6B7280;
    font-size: .95rem;
    line-height: 1.7;
    margin: 0;
}
.docu-sicep-que-tag {
    display: inline-block;
    background: rgba(201, 151, 58, .12);
    color: #C8973A;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.docu-sicep-test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
}
.docu-sicep-test-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
}
.docu-sicep-test-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .09);
}
.docu-sicep-test-header {
    background: linear-gradient(135deg, #0B1F3A, #132F55);
    padding: 1.4rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.docu-sicep-test-badge {
    display: flex;
    align-items: center;
    gap: .8rem;
}
.docu-sicep-test-letra-wrap {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(201, 168, 76, .15);
    border: 2px solid #C8973A;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.docu-sicep-test-letra {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #C8973A;
    line-height: 1;
}
.docu-sicep-test-empresa {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}
.docu-sicep-test-anio {
    font-size: .8rem;
    color: rgba(255, 255, 255, .8);
    margin-top: .15rem;
}
.docu-sicep-test-pct-pill {
    background: rgba(201, 168, 76, .15);
    border: 1px solid rgba(201, 168, 76, .4);
    border-radius: 50px;
    padding: .3rem .9rem;
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #C8973A;
    white-space: nowrap;
}

.docu-sicep-test-stars {
    padding: 1rem 1.8rem .4rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.docu-sicep-test-star {
    width: 16px;
    height: 16px;
    fill: #C8973A;
}
.docu-sicep-test-star.empty { fill: #E2E8F0; }
.docu-sicep-test-star-label {
    font-size: .78rem;
    color: #C8973A;
    font-weight: 700;
    margin-left: .3rem;
}

.docu-sicep-test-quote {
    padding: .6rem 1.8rem 1rem;
    font-size: .88rem;
    color: #374151;
    line-height: 1.72;
    flex: 1;
    position: relative;
}
.docu-sicep-test-quote::before {
    content: '"';
    font-family: 'Lora', serif;
    font-size: 3rem;
    color: #E2E8F0;
    line-height: .6;
    position: absolute;
    top: .8rem;
    left: 1.2rem;
    pointer-events: none;
}
.docu-sicep-test-quote p {
    margin: 0;
    padding-left: .8rem;
}

.docu-sicep-test-contacto {
    padding: .8rem 1.8rem 1.4rem;
    border-top: 1px solid #F4F6F9;
    font-size: .78rem;
    color: #6B7280;
    line-height: 1.5;
}
.docu-sicep-test-contacto-lbl {
    font-weight: 700;
    color: #0B1F3A;
    margin-right: .35rem;
}

/* === CATEGORÍA SICEP (A / B / C / D) === */
.docu-sicep-test-cat-wrap {
    display: flex;
    align-items: center;
    gap: .55rem;
    background: rgba(201, 168, 76, .12);
    border: 1px solid rgba(201, 168, 76, .35);
    border-radius: 50px;
    padding: .25rem .75rem .25rem .3rem;
    white-space: nowrap;
}
.docu-sicep-test-cat-letra {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #16A34A;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.docu-sicep-test-cat-pct {
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #C8973A;
}

.docu-sicep-test-cat-banner {
    background: linear-gradient(90deg, rgba(11, 31, 58, .04), rgba(201, 151, 58, .08));
    border-bottom: 1px solid rgba(201, 151, 58, .15);
    padding: .8rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.docu-sicep-test-cat-banner-lbl {
    font-size: .68rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
}
.docu-sicep-test-cat-banner-val {
    font-size: .85rem;
    color: #0B1F3A;
    font-weight: 500;
}
.docu-sicep-test-cat-banner-val strong {
    color: #C8973A;
    font-family: 'Lora', serif;
    font-size: 1.05rem;
}

/* === FIRMA DEL CLIENTE === */
.docu-sicep-test-firma {
    margin-top: auto;
    padding: 1rem 1.8rem 1.4rem;
    border-top: 1px solid #F4F6F9;
    background: #FAFBFC;
}
.docu-sicep-test-firma-nombre {
    font-size: .9rem;
    font-weight: 700;
    color: #0B1F3A;
    line-height: 1.3;
    margin-bottom: .2rem;
}
.docu-sicep-test-firma-cargo {
    font-size: .76rem;
    color: #6B7280;
    line-height: 1.4;
}

.docu-sicep-test-cta {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    padding: 1.6rem 2.4rem;
}
.docu-sicep-test-cta p {
    font-size: .82rem;
    color: #6B7280;
    line-height: 1.7;
    margin: 0;
}

.docu-sicep-test-empty {
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
    background: #fff;
    border: 1px dashed #C8973A;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    color: #475569;
    font-size: .95rem;
    line-height: 1.7;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}
.docu-sicep-test-empty::before {
    content: '✦';
    display: block;
    font-size: 2rem;
    color: #C8973A;
    margin-bottom: 1rem;
    line-height: 1;
}
.docu-sicep-test-empty p { margin: 0; }

/* ------- PÁGINA DE ENCUESTA (con token) ------- */
.dse-encuesta-pagina {
    max-width: 880px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    font-family: 'DM Sans', sans-serif;
    color: #1E293B;
}

.dse-enc-cabecera {
    background: linear-gradient(135deg, #0B1F3A, #132F55);
    color: #fff;
    padding: 2.5rem 2.5rem 2rem;
    border-radius: 20px 20px 0 0;
    margin: 2rem auto 0;
}
.dse-enc-cabecera-inner { max-width: 800px; margin: 0 auto; }
.dse-enc-marca {
    font-size: .75rem;
    color: #C8973A;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: .8rem;
}
.dse-enc-titulo-pagina {
    font-family: 'Lora', serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: #fff;
    margin: 0 0 1.2rem;
    line-height: 1.25;
}
.dse-enc-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
}
.dse-enc-meta-item {
    display: flex;
    flex-direction: column;
}
.dse-enc-meta-lbl {
    font-size: .7rem;
    color: rgba(255, 255, 255, .55);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    margin-bottom: .2rem;
}
.dse-enc-meta-val {
    font-size: .95rem;
    color: #fff;
    font-weight: 600;
}

.dse-enc-cuerpo {
    background: #F4F6F9;
    padding: 2.5rem;
    border-radius: 0 0 20px 20px;
    border: 1px solid #E2E8F0;
    border-top: none;
}
.dse-enc-descripcion {
    background: #fff;
    padding: 1rem 1.2rem;
    border-left: 4px solid #C8973A;
    margin: 0 0 1.5rem;
    font-size: .9rem;
    color: #475569;
    line-height: 1.6;
}
.dse-enc-aviso-legal {
    background: rgba(201, 151, 58, .08);
    padding: .8rem 1rem;
    border-radius: 8px;
    font-size: .8rem;
    color: #6B7280;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.dse-enc-formulario {
    position: relative;
}
.dse-enc-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

.dse-enc-seccion {
    background: #fff;
    border-radius: 14px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid #E2E8F0;
}
.dse-enc-sec-titulo {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    color: #0B1F3A;
    margin: 0 0 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.dse-enc-sec-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #C8973A;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.dse-enc-sec-desc {
    font-size: .85rem;
    color: #6B7280;
    margin: 0 0 1.2rem;
}

.dse-enc-pregunta {
    padding: 1rem 0;
    border-bottom: 1px solid #F4F6F9;
}
.dse-enc-pregunta:last-child { border-bottom: none; }
.dse-enc-pregunta-texto {
    font-size: .92rem;
    color: #1E293B;
    margin-bottom: .8rem;
    font-weight: 500;
    line-height: 1.5;
}
.dse-enc-escala {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .5rem;
}
.dse-enc-radio {
    position: relative;
    cursor: pointer;
}
.dse-enc-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.dse-enc-radio span {
    display: block;
    text-align: center;
    padding: .55rem .3rem;
    border-radius: 8px;
    border: 1.5px solid #E2E8F0;
    background: #fff;
    font-size: .72rem;
    font-weight: 600;
    color: #6B7280;
    transition: all .2s;
}
.dse-enc-radio:hover span {
    border-color: #C8973A;
    color: #C8973A;
}
.dse-enc-radio input:checked + span {
    background: #0B1F3A;
    border-color: #0B1F3A;
    color: #fff;
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(11, 31, 58, .2);
}

.dse-enc-campo {
    display: flex;
    flex-direction: column;
}
.dse-enc-campo label {
    font-size: .82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: .35rem;
}
.dse-enc-campo input,
.dse-enc-campo textarea {
    font-family: 'DM Sans', sans-serif;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    padding: .65rem .85rem;
    font-size: .9rem;
    background: #fff;
    color: #1E293B;
    transition: border-color .2s, box-shadow .2s;
}
.dse-enc-campo input:focus,
.dse-enc-campo textarea:focus {
    outline: none;
    border-color: #C8973A;
    box-shadow: 0 0 0 3px rgba(201, 151, 58, .15);
}
.dse-enc-campo textarea {
    resize: vertical;
    min-height: 100px;
}

.dse-enc-check {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: 1rem;
    background: rgba(201, 151, 58, .06);
    border-radius: 10px;
    border: 1px solid rgba(201, 151, 58, .2);
    margin-top: 1rem;
}
.dse-enc-check input {
    margin-top: .25rem;
    flex-shrink: 0;
    accent-color: #C8973A;
    width: 18px;
    height: 18px;
}
.dse-enc-check label {
    font-size: .82rem;
    color: #475569;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
}
.dse-enc-check-secundario {
    background: rgba(11, 31, 58, .04);
    border-color: rgba(11, 31, 58, .15);
}

.dse-enc-boton {
    width: 100%;
    background: #0B1F3A;
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .03em;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background .25s, transform .2s, box-shadow .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
}
.dse-enc-boton:hover:not(:disabled) {
    background: #132F55;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(11, 31, 58, .15);
}
.dse-enc-boton:disabled {
    background: #94A3B8;
    cursor: not-allowed;
    transform: none;
}

.dse-enc-mensaje {
    display: none;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin-top: 1.2rem;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.5;
}
.dse-enc-mensaje.ok {
    display: block;
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}
.dse-enc-mensaje.error {
    display: block;
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ------- PÁGINA ERROR (token inválido / ya respondida) ------- */
.dse-enc-error {
    max-width: 540px;
    margin: 5rem auto;
    background: #fff;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: center;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
}
.dse-enc-error-icono {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.dse-enc-error-titulo {
    font-family: 'Lora', serif;
    color: #0B1F3A;
    font-size: 1.6rem;
    margin: 0 0 1rem;
}
.dse-enc-error-mensaje {
    color: #475569;
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.dse-enc-error-contacto {
    color: #6B7280;
    font-size: .85rem;
    margin-bottom: 2rem;
}
.dse-enc-error-volver {
    display: inline-block;
    color: #0B1F3A;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    border-bottom: 2px solid #C8973A;
    padding-bottom: 2px;
}
.dse-enc-error-volver:hover { color: #C8973A; }
.dse-enc-success .dse-enc-error-icono { color: #16A34A; }

@media (max-width: 680px) {
    .dse-encuesta-pagina { padding: 1rem .5rem 3rem; }
    .dse-enc-cabecera { padding: 2rem 1.5rem 1.5rem; border-radius: 16px 16px 0 0; }
    .dse-enc-cuerpo { padding: 1.5rem; border-radius: 0 0 16px 16px; }
    .dse-enc-seccion { padding: 1.3rem; }
    .dse-enc-escala { gap: .25rem; }
    .dse-enc-radio span { font-size: .62rem; padding: .5rem .15rem; }
}

@media (max-width: 900px) { .docu-sicep-testimonios { padding: 70px 6%; } }
@media (max-width: 680px) { .docu-sicep-testimonios { padding: 55px 5%; } }
