:root { --azul: #0c2038; --azul2: #1a4ad5; --fondo: #f3f5f9; --borde: #d5dbe5; --texto: #1c2430; --rojo: #b3261e; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Spline Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fondo); color: var(--texto); font-size: 16px; }
.cabecera { background: var(--azul); color: #fff; padding: 28px 20px 64px; text-align: center; }
.cabecera h1 { margin: 10px 0 6px; font-size: 1.7rem; }
.cabecera p { margin: 0 auto; max-width: 520px; opacity: .9; line-height: 1.4; }
.marcas { font-weight: 700; letter-spacing: .08em; font-size: .8rem; opacity: .85; }
.marcas .sep { margin: 0 8px; }
.tarjeta { background: #fff; max-width: 640px; margin: -40px auto 32px; padding: 24px 20px; border-radius: 14px; box-shadow: 0 6px 24px rgba(20,40,80,.12); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 700; color: var(--azul); font-size: 1.05rem; margin-bottom: 10px; }
label, .etiqueta { display: block; font-size: .92rem; font-weight: 600; margin: 0 0 12px; }
.etiqueta { margin-bottom: 6px; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 12px; font: inherit; border: 1px solid var(--borde); border-radius: 8px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--azul2); border-color: var(--azul2); }
.validado :invalid { border-color: var(--rojo); }
.dos { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .dos { grid-template-columns: 1fr; } }
.opciones { display: grid; gap: 8px; margin-bottom: 14px; }
.opcion { display: flex; align-items: center; gap: 10px; border: 1px solid var(--borde); border-radius: 8px; padding: 12px; margin: 0; font-weight: 500; cursor: pointer; }
.opcion input { width: 20px; height: 20px; margin: 0; }
.boton { display: inline-block; background: var(--azul); color: #fff; border: 0; border-radius: 8px; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.boton:hover { background: var(--azul2); }
.boton.grande { width: 100%; padding: 15px; font-size: 1.05rem; }
.boton.sec { background: #e7ecf4; color: var(--azul); }
.aviso { background: #fdecea; color: var(--rojo); padding: 10px 12px; border-radius: 8px; font-size: .92rem; }
.aviso.ok { background: #e6f4ea; color: #1e6b34; }
.oculto { display: none; }
.legal { font-size: .8rem; color: #667; text-align: center; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Panel */
.panel { max-width: 1300px; margin: 0 auto; padding: 20px; }
.panel-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-top h1 { margin: 0; font-size: 1.4rem; color: var(--azul); }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; background: #fff; padding: 12px; border-radius: 10px; margin-bottom: 14px; }
.filtros label { margin: 0; font-size: .82rem; }
.filtros input, .filtros select { padding: 8px; }
.resumen { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.cifra { background: #fff; border-radius: 10px; padding: 10px 16px; min-width: 120px; }
.cifra b { display: block; font-size: 1.5rem; color: var(--azul); }
.tabla-wrap { overflow-x: auto; background: #fff; border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { padding: 9px 10px; border-bottom: 1px solid #edf0f5; text-align: left; vertical-align: top; }
th { background: #f7f9fc; color: #445; position: sticky; top: 0; }
tr:hover td { background: #fafbfe; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.chip.Estratégico { background: #c6efce; color: #14532d; }
.chip.Activo { background: #fff2cc; color: #7a5b00; }
.chip.C { background: #f4cccc; color: #7f1d1d; }
.chip.ok { background: #e6f4ea; color: #1e6b34; }
.chip.no { background: #eef1f6; color: #556; }
.detalle dl { display: grid; grid-template-columns: 200px 1fr; gap: 6px 14px; margin: 0 0 18px; }
.detalle dt { font-weight: 600; color: #556; }
.detalle dd { margin: 0; }
@media (max-width: 600px) { .detalle dl { grid-template-columns: 1fr; } .detalle dt { margin-top: 6px; } }

/* ===== Formulario público v2 (marca Plastidrum) ===== */
.publico { background: #eef2f8; }
.hero { position: relative; color: #fff; text-align: center; padding: 36px 20px 84px;
  background: linear-gradient(rgba(12,32,56,.82), rgba(12,32,56,.9)), url("/wp-content/uploads/2025/02/2-2.webp") center/cover; }
.hero .logo { width: 200px; height: auto; display: block; margin: 0 auto 18px; }
.hero h1 { margin: 0 0 8px; font-size: 1.9rem; font-weight: 700; }
.hero p { margin: 0 auto; max-width: 520px; opacity: .9; line-height: 1.45; }
.publico .tarjeta { position: relative; z-index: 1; margin-top: -56px; padding: 26px 22px; }
.porque { background: #eef3ff; border-left: 4px solid var(--azul2); border-radius: 8px; padding: 14px 16px; margin-bottom: 22px; }
.porque strong { color: var(--azul); }
.porque p { margin: 6px 0 0; font-size: .93rem; line-height: 1.5; color: #33373d; }
legend { display: flex; align-items: center; gap: 10px; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--azul2); color: #fff; font-size: .85rem; }
.ayuda { margin: -4px 0 10px; font-size: .85rem; color: #667; }
.productos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 560px) { .productos { grid-template-columns: 1fr; } }
.producto { position: relative; margin: 0; border: 2px solid var(--borde); border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.producto img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #3b3b3b; }
.producto span { display: block; padding: 10px 12px 12px; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.producto input { position: absolute; top: 10px; left: 10px; width: 22px; height: 22px; margin: 0; accent-color: var(--azul2); z-index: 1; }
.producto:has(input:checked) { border-color: var(--azul2); box-shadow: 0 0 0 3px rgba(26,74,213,.18); }
@media (max-width: 560px) {
  .producto { display: flex; align-items: center; }
  .producto img { width: 84px; height: 84px; flex: none; }
  .producto input { position: static; margin: 0 14px 0 8px; order: 3; flex: none; }
  .producto span { flex: 1; }
}
.publico .boton { background: var(--azul2); }
.publico .boton:hover { background: #1539a8; }
.pie { text-align: center; font-size: .88rem; color: #556; padding: 0 16px 30px; }
.pie a { color: var(--azul2); text-decoration: none; }
.detalle-prod { border: 1px solid var(--borde); border-left: 4px solid var(--azul2); border-radius: 10px; padding: 14px 14px 2px; margin-bottom: 14px; background: #fbfcff; }
.detalle-prod h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1rem; color: var(--azul); }
.detalle-prod h3 img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: #3b3b3b; }
.pregunta { margin-bottom: 12px; }
.sino { display: flex; gap: 8px; margin-top: 6px; }
.sino label { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0; padding: 11px 12px; border: 1px solid var(--borde); border-radius: 8px; background: #fff; font-weight: 500; cursor: pointer; }
.sino input { width: 18px; height: 18px; margin: 0; accent-color: var(--azul2); }
.sino label:has(input:checked) { border-color: var(--azul2); background: #eef3ff; }
.validado .pregunta:has(input:invalid) .sino label { border-color: var(--rojo); }
.opciones-entrega { display: grid; gap: 8px; margin-bottom: 14px; }
.opcion:has(input:checked) { border-color: var(--azul2); background: #eef3ff; }
.opcion input[type=radio] { accent-color: var(--azul2); }
#entregaOtra { border-left: 4px solid var(--azul2); background: #fbfcff; border-radius: 10px; padding: 4px 14px 2px; margin-bottom: 10px; }
select:disabled { background: #f3f5f9; color: #889; }
.validado .opciones-entrega:has(input:invalid) .opcion { border-color: var(--rojo); }
.opciones-entrega .opcion { align-items: flex-start; line-height: 1.4; }
.opciones-entrega .opcion input { margin-top: 2px; flex: none; }
.opciones-entrega .ico { font-size: 1.15rem; line-height: 1.2; flex: none; }
.opciones-entrega b { color: var(--azul); }
.ok-cp { color: #1e6b34; font-weight: 600; }
.aviso-cp { color: var(--rojo); }
#entregaOtra > label { margin-top: 12px; }
/* ===== Formulario por pasos ===== */
.progreso { margin: 0 0 18px; scroll-margin-top: 12px; }
.progreso-txt { font-size: .88rem; color: #556; margin-bottom: 6px; }
.progreso-txt #pasoNum { font-weight: 700; color: var(--azul2); }
.barra { height: 8px; background: #e3e8f2; border-radius: 99px; overflow: hidden; }
.barra-llena { height: 100%; width: 25%; background: var(--azul2); border-radius: 99px; transition: width .3s ease; }
.navegacion { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 8px; }
.navegacion .boton { padding: 13px 20px; }
.navegacion #btnSiguiente { flex: 1; max-width: 260px; margin-left: auto; }
.navegacion #btnEnviar { flex: 1; width: auto; }
.invisible { visibility: hidden; }
fieldset.paso { animation: aparecer .25s ease; }
@keyframes aparecer { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.publico .boton.sec { background: #e7ecf4; color: var(--azul); }
.publico .boton.sec:hover { background: #d9e1ee; }
.opcional { font-weight: 400; color: #6b7280; font-size: .85em; }
.banda-llamada { background: #fff7e0; border: 1px solid #f0d58a; border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; font-size: .92rem; }
.banda-llamada a { color: var(--azul2); }
.ok-guardado { background: #e8f6ec; border: 1px solid #9fd5ad; color: #145a2a; border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; }
.modo-llamada .hero { padding-top: 18px; padding-bottom: 18px; }
.modo-llamada .hero p { display: none; }
.chip-origen { display: inline-block; font-size: .75rem; background: #eef2fb; color: #1a4ad5; border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.chip-dup { display: inline-block; font-size: .75rem; background: #fdecec; color: #a12020; border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
