/* COMIND: estilos compartidos de las láminas y aplicaciones. Los valores salen de tokens.css. */
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0}
body{font-family:var(--font-sans);color:var(--tinta);background:var(--superficie);-webkit-font-smoothing:antialiased;font-size:16px;line-height:26px}
img{display:block;max-width:100%}
.num{font-variant-numeric:tabular-nums lining-nums}

/* Lámina de manual */
.c-lamina{padding:32px;display:grid;gap:32px}
.c-fila{display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start}
.c-rejilla{display:grid;gap:24px}
.c-pie{font-size:14px;line-height:20px;color:var(--tinta-suave);margin:8px 0 0}
.c-et{font-size:12px;line-height:16px;letter-spacing:1px;font-weight:600;text-transform:uppercase;color:var(--tinta-suave);margin:0}
.c-filete{border:0;border-top:1px solid var(--borde);margin:0}
.c-tit{color:var(--titular);margin:0}

/* Sí / no */
.c-veredicto{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:16px;letter-spacing:1px;font-weight:700;text-transform:uppercase}
.c-veredicto::before{content:"";width:18px;height:18px;border-radius:50%;background:var(--azul-286) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat}
.c-veredicto--si{color:var(--azul-286)}
.c-veredicto--no{color:var(--azul-noche)}
.c-veredicto--no::before{background:var(--naranja-151) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23032177' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/11px no-repeat}
[data-theme="azul-noche"] .c-veredicto--si{color:var(--blanco)}
[data-theme="azul-noche"] .c-veredicto--no{color:var(--naranja-151)}

/* Botones */
.c-btn{font-family:var(--font-sans);display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 24px;border-radius:var(--radio-pill);border:2px solid transparent;font-size:16px;line-height:20px;font-weight:700;text-decoration:none;cursor:pointer;transition:background-color .15s,color .15s,border-color .15s}
.c-btn svg{width:20px;height:20px;flex:none}
.c-btn:focus-visible{outline:2px solid var(--foco);outline-offset:2px}
.c-btn--principal{background:var(--accion);color:var(--sobre-accion)}
.c-btn--principal:hover{background:var(--azul-noche)}
[data-theme="azul-noche"] .c-btn--principal:hover{background:var(--blanco);color:var(--azul-noche)}
.c-btn--acento{background:var(--acento);color:var(--sobre-acento)}
.c-btn--acento:hover{background:var(--azul-noche);color:var(--blanco)}
[data-theme="azul-noche"] .c-btn--acento:hover{background:var(--blanco);color:var(--azul-noche)}
.c-btn--secundario{background:transparent;color:var(--titular);border-color:currentColor}
.c-btn--secundario:hover{background:var(--superficie-alt)}
.c-btn--texto{background:transparent;color:var(--acento-texto);padding-left:4px;padding-right:4px;min-height:44px}
.c-btn--texto:hover{text-decoration:underline;text-underline-offset:4px}
.c-btn--peq{min-height:36px;padding:8px 16px;font-size:12px;line-height:16px;letter-spacing:1px;text-transform:uppercase;border-radius:var(--radio-sm)}
.c-btn[disabled],.c-btn[aria-disabled="true"]{opacity:.45;cursor:not-allowed}

/* Campos */
.c-campo{display:grid;gap:8px}
.c-campo>label,.c-leyenda{font-size:14px;line-height:20px;font-weight:700;color:var(--tinta)}
.c-ayuda{font-size:14px;line-height:20px;color:var(--tinta-suave);margin:0}
.c-input{font:inherit;font-size:16px;color:var(--tinta);background:var(--superficie);min-height:48px;padding:10px 16px;border:1.5px solid var(--borde-control);border-radius:var(--radio-sm);width:100%}
.c-input:focus-visible{outline:2px solid var(--foco);outline-offset:2px}
.c-input[aria-invalid="true"]{border-width:2px}
.c-error{display:flex;gap:8px;align-items:flex-start;font-size:14px;line-height:20px;font-weight:600;color:var(--tinta)}
.c-error::before{content:"";flex:none;width:20px;height:20px;border-radius:50%;background:var(--acento) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23032177' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6.5v7M12 17.5v.01'/%3E%3C/svg%3E") center/14px no-repeat}
.c-opcion{position:relative;display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 16px;border:1.5px solid var(--borde-control);border-radius:var(--radio-md);background:var(--superficie);cursor:pointer;font-weight:600}
.c-opcion input{appearance:none;width:22px;height:22px;border:2px solid var(--borde-control);border-radius:50%;margin:0;flex:none;display:grid;place-content:center}
.c-opcion input:checked{border-color:var(--azul-286);background:radial-gradient(var(--azul-286) 45%,transparent 50%)}
.c-opcion:has(input:checked){border-color:var(--azul-286);border-width:2px;background:var(--azul-tinte-10);color:var(--azul-noche)}
.c-opcion:has(input:focus-visible){outline:2px solid var(--foco);outline-offset:2px}

/* Tarjetas */
.c-tarjeta{background:var(--superficie-alt);border-radius:var(--radio-md);padding:24px}

/* Huecos de fotografía: se sustituyen por fotos reales del cliente */
.c-foto{position:relative;background:var(--gris-200);overflow:hidden;color:var(--gris-900)}
.c-foto::after{content:attr(data-foto);position:absolute;left:16px;bottom:14px;right:16px;font-size:12px;line-height:16px;font-weight:700;letter-spacing:.5px}
.c-foto--oscura{background:var(--azul-medio);color:var(--gris-200)}
.c-foto svg.c-camara{position:absolute;left:16px;top:16px;width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:1.8}

/* Cifras y variación */
.c-cifra{font-weight:800;letter-spacing:-2px;font-variant-numeric:tabular-nums lining-nums;color:var(--titular)}
.c-var{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:var(--radio-pill);font-size:16px;line-height:24px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.c-var--sube{background:var(--azul-286);color:var(--blanco)}
.c-var--baja{background:var(--naranja-151);color:var(--azul-noche)}
[data-theme="azul-noche"] .c-var--sube,.c-sobre-azul .c-var--sube{background:var(--blanco);color:var(--azul-noche)}

/* Lienzos a tamaño real, reducidos con zoom para la vista previa */
.c-lienzo{position:relative;overflow:hidden;flex:none}
.c-post{width:1080px;height:1350px}
.c-vertical{width:1080px;height:1920px}
.c-cuadrado{width:1080px;height:1080px}
.c-slide{width:1920px;height:1080px}
.c-a4{width:794px;height:1123px}
.z50{zoom:.5}.z40{zoom:.4}.z33{zoom:.3333}.z30{zoom:.3}.z25{zoom:.25}.z20{zoom:.2}.z18{zoom:.18}

/* Fondos de marca */
.f-azul{background:var(--azul-286);color:var(--blanco)}
.f-noche{background:var(--azul-noche);color:var(--blanco)}
.f-profundo{background:var(--azul-profundo);color:var(--blanco)}
.f-degradado{background:linear-gradient(90deg,var(--azul-claro),var(--azul-medio) 55%,var(--azul-noche));color:var(--blanco)}
.f-gris{background:var(--gris-100)}
.f-blanco{background:var(--blanco)}
.f-naranja{background:var(--naranja-151);color:var(--azul-noche)}
.t-naranja{color:var(--naranja-151)}
.t-azul{color:var(--azul-286)}
.t-noche{color:var(--azul-noche)}

/* Elementos gráficos colocados */
.trazo{position:absolute;pointer-events:none;height:auto}

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
