/*
 * Identidad visual del portal, tomada de las paginas publicas del repositorio
 * (certificados/compraPublica y validarCertificado) para que la mudanza no cambie
 * de cara. Un solo archivo estatico: sin vite, sin frameworks, sin build.
 */

* { box-sizing: border-box; }

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f1f5f9;
    color: #1f2937;
    margin: 0;
    padding: 24px 12px;
}

.card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    overflow: hidden;
}

.head {
    background: #1e5b8f;
    color: #fff;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
}

.body { padding: 20px; }
.body p { font-size: 14px; line-height: 1.6; margin: 0 0 10px; }

.aviso {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.aviso-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.aviso-exito { background: #dcfce7; border: 1px solid #bbf7d0; color: #166534; }
.aviso-espera { background: #fefce8; border: 1px solid #fde68a; color: #854d0e; }
.aviso-info { background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; }

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: .5px;
}

.badge-pago { background: #dcfce7; color: #166534; }
.badge-deuda { background: #fefce8; color: #854d0e; }
.badge-anulada { background: #fee2e2; color: #991b1b; }
.badge-vencido { background: #fefce8; color: #854d0e; }

table.det { width: 100%; border-collapse: collapse; margin-top: 16px; }
table.det td { padding: 6px 4px; border-bottom: 1px solid #eef2f7; font-size: 14px; vertical-align: top; }
table.det td.k { font-weight: bold; width: 42%; color: #475569; }

.precio {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #1e5b8f;
    margin: 18px 0 4px;
}

.codigo {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #1f2937;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 14px;
    margin: 16px 0 8px;
}

button {
    margin-top: 12px;
    width: 100%;
    padding: 11px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    background: #1e5b8f;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button[disabled] { background: #94a3b8; cursor: not-allowed; }

label { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: bold; color: #475569; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
    width: 100%;
    padding: 11px;
    font-size: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #1f2937;
    background: #fff;
}

/* Campo que el repositorio rechazo: el borde acompaña al mensaje, nunca lo reemplaza. */
input.con-error,
select.con-error { border-color: #fca5a5; }

.campo-error { margin-top: 6px; font-size: 13px; color: #b91c1c; }
.campo-nota { margin-top: 6px; font-size: 12px; color: #94a3b8; line-height: 1.5; }
.opcional { font-weight: normal; font-size: 12px; color: #94a3b8; }

/* Bloques del formulario de compra: paciente y contacto son dos cosas distintas. */
.bloque { margin-top: 22px; padding-top: 14px; border-top: 1px solid #eef2f7; }
.bloque-titulo { font-size: 13px; font-weight: bold; color: #1e5b8f; letter-spacing: .5px; text-transform: uppercase; }

a.accion {
    display: block;
    margin-top: 12px;
    padding: 11px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: #1e5b8f;
    border-radius: 6px;
}

a.accion.secundaria { background: #475569; }

/* Vidriera de tipos de certificado. */
.tipos { list-style: none; margin: 18px 0 0; padding: 0; }

.tipo {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.tipo-nombre { font-size: 15px; font-weight: bold; color: #1f2937; }
.tipo-precio { font-size: 22px; font-weight: bold; color: #1e5b8f; margin-top: 6px; }
.tipo-nota { font-size: 13px; color: #475569; margin-top: 6px; line-height: 1.5; }

.nota { margin-top: 14px; font-size: 11px; color: #94a3b8; text-align: center; }
.nota-fuerte { font-size: 13px; color: #475569; }

.pasos { margin: 16px 0 0; padding-left: 20px; font-size: 14px; color: #475569; }
.pasos li { margin-bottom: 8px; }

.pie { max-width: 520px; margin: 14px auto 0; font-size: 11px; color: #94a3b8; text-align: center; }
