/* =========================================================
   Informe de ficha de producto — Tinklo (estilo Taller)
   Todo va bajo .tft-informe para no chocar con el tema.
   Mismos nombres de clase que antes: solo cambia el aspecto.
   ========================================================= */
.tft-informe {
	/* Colores del sistema Tinklo */
	--tft-fondo: #F3F7F5;        /* Fondo */
	--tft-sup: #FFFFFF;          /* Superficie */
	--tft-borde: #DCE6E3;        /* Borde */
	--tft-borde-fuerte: #BCCBC7; /* Borde fuerte */
	--tft-tinta: #112A2D;        /* Principal: títulos */
	--tft-texto: #263D40;        /* Texto */
	--tft-gris: #52666A;         /* Texto secundario */
	--tft-acento: #145A61;       /* Énfasis: petróleo */
	--tft-acento-oscuro: #0E4248;/* Petróleo oscuro */
	--tft-tinte: #DDEDEA;        /* Tinte */
	--tft-lima: #CFE57A;         /* Lima */
	--tft-lima-suave: #EEF6CF;   /* Lima suave */
	--tft-sobre-lima: #1E2A08;   /* Sobre lima */
	--tft-exito: #2E7D4A;        /* Éxito sólido */
	--tft-sobre-tinta: #F3F7F5;
	--tft-sobre-tinta-2: #A9BDBA;
	background: var(--tft-fondo);
	color: var(--tft-texto);
	font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 18px;
	line-height: 1.65;
	max-width: 820px;
	margin: 0 auto;
	padding: 64px 24px 96px;
	box-sizing: border-box;
}
.tft-informe *, .tft-informe *::before, .tft-informe *::after { box-sizing: border-box; }
.tft-informe p { margin: 0 0 20px; }
.tft-informe a {
	color: var(--tft-acento);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}
.tft-informe a:hover { color: var(--tft-tinta); text-decoration: none; }
.tft-informe strong { color: var(--tft-tinta); font-weight: 600; }

/* ---------- Títulos (escala del sistema) ---------- */
.tft-informe .tft-h1,
.tft-informe .tft-h2,
.tft-informe .tft-h3 { font-family: "Nohemi", "DM Sans", system-ui, sans-serif; color: var(--tft-tinta); margin: 0; }
/* H1: 44 / 38 / 32 */
.tft-informe .tft-h1 { font-size: 44px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 16px; }
/* H2: 34 / 30 / 26 */
.tft-informe .tft-h2 { font-size: 34px; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 12px; }
/* H4 (títulos de ficha): 22 / 21 / 19 */
.tft-informe .tft-h3 { font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -.005em; }
/* H6 (antetítulo): 14 / 14 / 13 */
.tft-informe .tft-h4 {
	font-family: "Nohemi", "DM Sans", sans-serif;
	font-size: 14px; font-weight: 500; line-height: 1.4;
	text-transform: uppercase; letter-spacing: .1em;
	color: var(--tft-gris); margin: 24px 0 8px;
}

/* Antetítulo en petróleo (Etiqueta) */
.tft-informe .tft-eyebrow,
.tft-informe .tft-etiqueta {
	font-family: "Nohemi", "DM Sans", sans-serif;
	font-size: 14px; font-weight: 500; line-height: 1.4;
	text-transform: uppercase; letter-spacing: .1em;
	color: var(--tft-acento);
	margin-bottom: 10px !important;
}
/* Leyenda / Texto pequeño */
.tft-informe .tft-meta { color: var(--tft-gris); font-size: 15px; line-height: 1.55; }
/* Entradilla */
.tft-informe .tft-intro { color: var(--tft-gris); font-size: 21px; line-height: 1.55; }

/* ---------- Nota: la ficha principal (única pieza girada) ---------- */
.tft-informe .tft-nota {
	position: relative;
	display: flex; gap: 32px; align-items: center;
	background: var(--tft-sup);
	border: 1px solid var(--tft-borde-fuerte);
	border-radius: 14px;
	box-shadow: 0 1px 0 var(--tft-borde-fuerte), 0 22px 36px -24px rgba(17, 42, 45, .38);
	padding: 36px 32px 32px;
	margin: 44px 0 24px;
	transform: rotate(1deg);
}
/* Cinta lima */
.tft-informe .tft-nota::before {
	content: "";
	position: absolute; top: -11px; left: 50%;
	width: 84px; height: 22px; margin-left: -42px;
	background: var(--tft-lima); opacity: .88;
	transform: rotate(-2deg); border-radius: 2px;
}
.tft-informe .tft-nota-cifra {
	flex: 0 0 auto; line-height: 1;
	padding-right: 32px;
	border-right: 1px dashed var(--tft-borde-fuerte);
}
.tft-informe .tft-nota-num {
	font-family: "Nohemi", "DM Sans", sans-serif;
	font-size: 96px; font-weight: 700; letter-spacing: -.03em;
	color: var(--tft-acento);
	font-variant-numeric: tabular-nums;
}
.tft-informe .tft-nota-max { font-family: "Nohemi", "DM Sans", sans-serif; font-size: 24px; font-weight: 500; color: var(--tft-gris); margin-left: 4px; }
.tft-informe .tft-nota-texto p { color: var(--tft-texto); margin: 0; }

/* ---------- Áreas ---------- */
.tft-informe .tft-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 64px; }
.tft-informe .tft-area {
	background: var(--tft-sup);
	border: 1px solid var(--tft-borde);
	border-radius: 12px;
	padding: 18px 20px;
}
.tft-informe .tft-area-cab { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--tft-tinta); font-size: 16px; line-height: 1.4; margin-bottom: 10px; }
.tft-informe .tft-area-pct { font-family: "Nohemi", "DM Sans", sans-serif; color: var(--tft-acento); font-variant-numeric: tabular-nums; padding-top: .1em; }
.tft-informe .tft-barra { height: 6px; background: var(--tft-borde); border-radius: 3px; overflow: hidden; }
.tft-informe .tft-barra span { display: block; height: 100%; background: var(--tft-acento); border-radius: 3px; }
.tft-informe .tft-area-sub { font-size: 15px; color: var(--tft-gris); margin: 10px 0 0 !important; line-height: 1.5; }

/* ---------- Mejoras ---------- */
.tft-informe .tft-bloque { margin-bottom: 64px; }
.tft-informe .tft-mejora {
	background: var(--tft-sup);
	border: 1px solid var(--tft-borde);
	border-radius: 14px;
	padding: 28px;
	margin-top: 16px;
}
/* La mejora prioritaria: borde petróleo y sombra sólida */
.tft-informe .tft-mejora-top {
	border-color: var(--tft-acento);
	box-shadow: 0 2px 0 var(--tft-acento);
}
.tft-informe .tft-mejora-cab {
	display: flex; gap: 16px; align-items: flex-start;
	padding-bottom: 16px; margin-bottom: 16px;
	border-bottom: 1px dashed var(--tft-borde-fuerte);
}
.tft-informe .tft-mejora-num {
	flex: 0 0 38px; height: 38px;
	border-radius: 10px;
	background: var(--tft-tinte); color: var(--tft-acento);
	display: flex; align-items: center; justify-content: center;
	font-family: "Nohemi", "DM Sans", sans-serif;
	font-size: 17px; font-weight: 600; line-height: 1;
	padding-top: .12em; /* compensa el hueco inferior de Nohemi */
	font-variant-numeric: tabular-nums;
}
.tft-informe .tft-mejora-top .tft-mejora-num { background: var(--tft-acento); color: #FFFFFF; }
.tft-informe .tft-mejora-area { font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--tft-gris); }
/* Diagnóstico: nota lima suave (sin borde lateral) */
.tft-informe .tft-diag {
	font-size: 18px; font-weight: 500; line-height: 1.55;
	color: var(--tft-tinta);
	background: var(--tft-lima-suave);
	border-radius: 10px;
	padding: 14px 18px;
}
.tft-informe .tft-mejora ol { margin: 0 0 20px; padding-left: 24px; }
.tft-informe .tft-mejora li { margin-bottom: 8px; padding-left: 4px; }
.tft-informe .tft-mejora li::marker { color: var(--tft-acento); font-family: "Nohemi", "DM Sans", sans-serif; font-weight: 600; }
.tft-informe .tft-mejora p { color: var(--tft-texto); }
.tft-informe .tft-mejora > :last-child,
.tft-informe .tft-cierre > :last-child { margin-bottom: 0; }

/* ---------- Lo que haces bien ---------- */
.tft-informe .tft-bien ul { list-style: none; padding: 0; margin: 0; }
.tft-informe .tft-bien li {
	position: relative;
	padding: 12px 0 12px 34px;
	border-bottom: 1px solid var(--tft-borde);
}
.tft-informe .tft-bien li:last-child { border-bottom: 0; }
.tft-informe .tft-bien li::before {
	content: "";
	position: absolute; left: 0; top: 15px;
	width: 22px; height: 22px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M4 11.5l4.5 4.5L18 6' fill='none' stroke='%232E7D4A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Aviso ---------- */
.tft-informe .tft-aviso {
	background: var(--tft-sup);
	border: 1px dashed var(--tft-borde-fuerte);
	border-radius: 12px;
	padding: 20px 24px;
	color: var(--tft-gris);
	font-size: 15px; line-height: 1.55;
}
.tft-informe .tft-aviso p { margin: 0; }
.tft-informe .tft-aviso strong { color: var(--tft-tinta); }

/* ---------- Cierre: sección en tinta ---------- */
.tft-informe .tft-cierre {
	background: var(--tft-tinta);
	color: var(--tft-sobre-tinta-2);
	border-radius: 28px;
	padding: 48px 44px;
}
.tft-informe .tft-cierre .tft-h2 { color: var(--tft-sobre-tinta); }
.tft-informe .tft-cierre p { color: var(--tft-sobre-tinta-2); }
.tft-informe .tft-cierre strong { color: var(--tft-sobre-tinta); }
/* Botón lima (el único sitio donde va un botón lima: sobre tinta) */
.tft-informe .tft-boton {
	display: inline-flex; align-items: center; gap: 10px;
	background: var(--tft-lima);
	color: var(--tft-sobre-lima) !important;
	text-decoration: none !important;
	font-family: "DM Sans", sans-serif;
	font-size: 16px; font-weight: 600; line-height: 1;
	padding: 15px 24px;
	border-radius: 12px;
	box-shadow: 0 2px 0 #A9C04F;
	margin-top: 8px;
	transition: transform .15s, filter .15s;
}
.tft-informe .tft-boton:hover { filter: brightness(.97); transform: translateY(-1px); }
.tft-informe .tft-firma { margin: 20px 0 0 !important; font-size: 15px; line-height: 1.55; color: var(--tft-sobre-tinta-2); }

/* ---------- Imprimir: botón secundario ---------- */
.tft-informe .tft-imprimir { text-align: center; margin-top: 32px; }
.tft-informe .tft-imprimir button {
	background: var(--tft-sup);
	border: 0;
	box-shadow: inset 0 0 0 1px var(--tft-borde-fuerte), 0 2px 0 var(--tft-borde-fuerte);
	color: var(--tft-tinta);
	padding: 12px 20px;
	border-radius: 12px;
	cursor: pointer;
	font-family: "DM Sans", sans-serif; font-size: 15px; font-weight: 600; line-height: 1;
	transition: color .15s, box-shadow .15s;
}
.tft-informe .tft-imprimir button:hover { color: var(--tft-acento); box-shadow: inset 0 0 0 1px var(--tft-acento), 0 2px 0 var(--tft-acento); }

.tft-informe .tft-no-encontrado { max-width: 620px; margin: 64px auto; text-align: center; }

/* ---------- Tableta ---------- */
@media (max-width: 1024px) {
	.tft-informe .tft-h1 { font-size: 38px; }
	.tft-informe .tft-h2 { font-size: 30px; }
	.tft-informe .tft-h3 { font-size: 21px; }
	.tft-informe .tft-intro { font-size: 20px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
	.tft-informe { font-size: 17px; padding: 48px 16px 64px; }
	.tft-informe .tft-h1 { font-size: 32px; }
	.tft-informe .tft-h2 { font-size: 26px; }
	.tft-informe .tft-h3 { font-size: 19px; }
	.tft-informe .tft-h4, .tft-informe .tft-eyebrow, .tft-informe .tft-etiqueta { font-size: 13px; }
	.tft-informe .tft-intro { font-size: 19px; }
	.tft-informe .tft-meta { font-size: 14px; }
	.tft-informe .tft-nota { flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 24px 24px; }
	.tft-informe .tft-nota-cifra { padding: 0 0 16px; border-right: 0; border-bottom: 1px dashed var(--tft-borde-fuerte); width: 100%; }
	.tft-informe .tft-nota-num { font-size: 72px; }
	.tft-informe .tft-areas { grid-template-columns: 1fr; }
	.tft-informe .tft-mejora { padding: 20px; }
	.tft-informe .tft-diag { font-size: 17px; }
	.tft-informe .tft-cierre { padding: 32px 24px; border-radius: 20px; }
	.tft-informe .tft-boton { width: 100%; justify-content: center; }
}

/* ---------- Impresión ---------- */
@media print {
	.tft-informe { --tft-fondo: #FFFFFF; max-width: none; padding: 0; }
	.tft-informe .tft-nota { transform: none; box-shadow: none; }
	.tft-informe .tft-nota::before { display: none; }
	.tft-informe .tft-mejora, .tft-informe .tft-mejora-top { box-shadow: none; break-inside: avoid; }
	.tft-informe .tft-area { break-inside: avoid; }
	.tft-informe .tft-imprimir, .tft-informe .tft-boton { display: none; }
	.tft-informe .tft-cierre { background: #FFFFFF; color: #263D40; border: 1px solid #BCCBC7; }
	.tft-informe .tft-cierre .tft-h2, .tft-informe .tft-cierre strong { color: #112A2D; }
	.tft-informe .tft-cierre p, .tft-informe .tft-firma { color: #263D40; }
	.tft-informe .tft-barra, .tft-informe .tft-barra span, .tft-informe .tft-diag, .tft-informe .tft-mejora-num {
		-webkit-print-color-adjust: exact; print-color-adjust: exact;
	}
}