/**
 * Lomito Inversionista - Fichas de activos.
 *
 * Usa los mismos tokens que el resto del sitio, asi que el modo oscuro le
 * entra solo: aqui no hay un solo color escrito a mano fuera de las variables.
 */

/* =========================================================================
 * 1. Indice de fichas.
 * ====================================================================== */
.lmt-fichas-cuerpo {
	padding: clamp(28px, 5vw, 48px) 0 clamp(40px, 7vw, 72px);
}

.lmt-fichas-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
	gap: 16px;
	margin-bottom: clamp(32px, 6vw, 56px);
}

.lmt-fcard {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border: 1px solid var(--lmt-border);
	border-radius: var(--lmt-radius);
	background: var(--lmt-surface);
	color: inherit;
	text-decoration: none;
	transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.lmt-fcard:hover,
.lmt-fcard:focus-visible {
	border-color: var(--lmt-accent);
	transform: translateY(-2px);
	box-shadow: var(--lmt-shadow);
}

.lmt-fcard__tema {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--lmt-accent);
}

.lmt-fcard__clave {
	font-family: var(--lmt-font-display);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--lmt-text);
}

.lmt-fcard__nombre {
	font-size: 14px;
	color: var(--lmt-text-muted);
	margin-bottom: 8px;
}

.lmt-fcard__datos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 12px;
	padding-top: 12px;
	border-top: 1px solid var(--lmt-border);
}

.lmt-fcard__datos > span {
	display: flex;
	flex-direction: column;
	gap: 1px;
	font-size: 15px;
	font-weight: 700;
	color: var(--lmt-text);
	font-variant-numeric: tabular-nums;
}

.lmt-fcard__datos em {
	font-style: normal;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--lmt-text-faint);
}

.lmt-fcard__datos b { font-weight: 700; }
.lmt-fcard__datos b.is-sube,
.lmt-fcard .is-sube { color: var(--lmt-up); }
.lmt-fcard__datos b.is-baja,
.lmt-fcard .is-baja { color: var(--lmt-down); }

.lmt-fcard__cta {
	margin-top: 14px;
	font-size: 13px;
	font-weight: 700;
	color: var(--lmt-accent);
}

/* =========================================================================
 * 2. Tabla comparativa.
 * ====================================================================== */
.lmt-tabla-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--lmt-border);
	border-radius: var(--lmt-radius);
	background: var(--lmt-surface);
}

.lmt-tabla-comp,
.lmt-tabla-rend,
.lmt-tabla-datos {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.lmt-tabla-comp th,
.lmt-tabla-comp td,
.lmt-tabla-rend th,
.lmt-tabla-rend td,
.lmt-tabla-datos th,
.lmt-tabla-datos td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid var(--lmt-border);
	white-space: nowrap;
}

.lmt-tabla-comp thead th,
.lmt-tabla-rend thead th {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--lmt-text-faint);
	background: var(--lmt-surface-2);
}

.lmt-tabla-comp tbody th a {
	font-weight: 800;
	color: var(--lmt-text);
	text-decoration: none;
}

.lmt-tabla-comp tbody th a:hover { color: var(--lmt-accent); }

.lmt-tabla-comp__med th,
.lmt-tabla-comp__med td {
	background: var(--lmt-surface-2);
	color: var(--lmt-text-muted);
	font-weight: 700;
	border-bottom: 0;
}

.lmt-num {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.lmt-num.is-sube { color: var(--lmt-up); }
.lmt-num.is-baja { color: var(--lmt-down); }

.lmt-tabla-rend,
.lmt-tabla-datos {
	border: 1px solid var(--lmt-border);
	border-radius: var(--lmt-radius);
	overflow: hidden;
	background: var(--lmt-surface);
}

.lmt-tabla-datos th { color: var(--lmt-text-muted); font-weight: 600; width: 45%; }
.lmt-tabla-datos td { font-weight: 700; white-space: normal; }
.lmt-tabla-datos tr:last-child th,
.lmt-tabla-datos tr:last-child td,
.lmt-tabla-rend tr:last-child th,
.lmt-tabla-rend tr:last-child td { border-bottom: 0; }

/* =========================================================================
 * 3. Cabecera de una ficha.
 * ====================================================================== */
.lmt-volver {
	display: inline-block;
	padding: 18px 0 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--lmt-text-faint);
	text-decoration: none;
}

.lmt-volver:hover { color: var(--lmt-accent); }

.lmt-ficha-hero {
	padding: 12px 0 clamp(24px, 4vw, 36px);
	border-bottom: 1px solid var(--lmt-border);
}

.lmt-ficha-tema {
	display: inline-block;
	margin-bottom: 10px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--lmt-accent-soft);
	color: var(--lmt-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.lmt-ficha-titulo {
	margin: 0 0 6px;
	font-family: var(--lmt-font-display);
	font-size: clamp(30px, 5.2vw, 46px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.02em;
	color: var(--lmt-text);
}

.lmt-ficha-clave {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--lmt-text-faint);
}

.lmt-ficha-resumen {
	max-width: 62ch;
	margin: 0 0 26px;
	font-size: clamp(16px, 2.2vw, 19px);
	line-height: 1.6;
	color: var(--lmt-text-muted);
}

.lmt-ficha-cifras {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}

.lmt-ficha-cifra {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	border: 1px solid var(--lmt-border);
	border-radius: var(--lmt-radius);
	background: var(--lmt-surface);
}

.lmt-ficha-cifra__k {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--lmt-text-faint);
}

.lmt-ficha-cifra__v {
	font-family: var(--lmt-font-display);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
	color: var(--lmt-text);
}

.lmt-ficha-cifra__v.is-sube { color: var(--lmt-up); }
.lmt-ficha-cifra__v.is-baja { color: var(--lmt-down); }

.lmt-ficha-cifra__n {
	font-size: 12px;
	color: var(--lmt-text-faint);
}

/* =========================================================================
 * 4. Cuerpo de la ficha.
 * ====================================================================== */
.lmt-ficha-cuerpo {
	padding: clamp(28px, 5vw, 44px) 0 clamp(40px, 7vw, 72px);
}

.lmt-ficha-bloque { margin-bottom: clamp(32px, 5vw, 52px); }

.lmt-ficha-h2 {
	margin: 0 0 4px;
	font-family: var(--lmt-font-display);
	font-size: clamp(19px, 2.8vw, 24px);
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--lmt-text);
}

.lmt-ficha-sub {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--lmt-text-muted);
}

.lmt-ficha-h2 + .lmt-esencial,
.lmt-ficha-h2 + .lmt-cmps,
.lmt-ficha-h2 + table,
.lmt-ficha-h2 + .lmt-chips,
.lmt-ficha-h2 + .lmt-tabla-scroll,
.lmt-ficha-h2 + svg,
.lmt-ficha-h2 + .lmt-lectura { margin-top: 18px; }

.lmt-ficha-nota {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--lmt-text-faint);
}

.lmt-ficha-nota a { color: var(--lmt-accent); }

.lmt-ficha-legal {
	margin: 0;
	padding: 16px 18px;
	border-radius: var(--lmt-radius);
	background: var(--lmt-surface-2);
	font-size: 13px;
	line-height: 1.65;
	color: var(--lmt-text-muted);
}

/* Lo esencial. */
.lmt-esencial {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 14px;
}

.lmt-esencial__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	border: 1px solid var(--lmt-border);
	border-left: 3px solid var(--lmt-accent);
	border-radius: var(--lmt-radius);
	background: var(--lmt-surface);
}

.lmt-esencial__k {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--lmt-text-faint);
}

.lmt-esencial__v {
	font-size: 19px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--lmt-text);
}

.lmt-esencial__n {
	font-size: 13px;
	line-height: 1.55;
	color: var(--lmt-text-muted);
}

/* =========================================================================
 * 5. Comparacion contra el grupo.
 * ====================================================================== */
.lmt-cmps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 18px 28px;
}

.lmt-cmp__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.lmt-cmp__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--lmt-text-muted);
}

.lmt-cmp__valor {
	font-size: 18px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--lmt-text);
}

.lmt-cmp__valor.is-sube { color: var(--lmt-up); }
.lmt-cmp__valor.is-baja { color: var(--lmt-down); }

.lmt-cmp__pista {
	position: relative;
	height: 8px;
	border-radius: 999px;
	background: var(--lmt-surface-2);
	border: 1px solid var(--lmt-border);
}

.lmt-cmp__mediana {
	position: absolute;
	top: -3px;
	width: 2px;
	height: 12px;
	margin-left: -1px;
	border-radius: 2px;
	background: var(--lmt-text-faint);
	opacity: .55;
}

.lmt-cmp__punto {
	position: absolute;
	top: 50%;
	width: 13px;
	height: 13px;
	margin: -7px 0 0 -6.5px;
	border-radius: 50%;
	background: var(--lmt-accent);
	box-shadow: 0 0 0 3px var(--lmt-accent-soft);
}

.lmt-cmp__pie {
	margin: 8px 0 0;
	font-size: 12.5px;
	color: var(--lmt-text-faint);
}

.lmt-cmp__pos { font-weight: 700; color: var(--lmt-text-muted); }
.lmt-cmp__sep { opacity: .5; padding: 0 4px; }

/* =========================================================================
 * 6. Grafica de precio.
 * ====================================================================== */
.lmt-spark {
	display: block;
	width: 100%;
	height: 120px;
	border: 1px solid var(--lmt-border);
	border-radius: var(--lmt-radius);
	background: var(--lmt-surface);
	padding: 0;
}

.lmt-spark__line {
	fill: none;
	stroke: var(--lmt-up);
	stroke-width: 2;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.lmt-spark__area {
	fill: var(--lmt-up);
	opacity: .10;
	stroke: none;
}

.lmt-spark.is-baja .lmt-spark__line { stroke: var(--lmt-down); }
.lmt-spark.is-baja .lmt-spark__area { fill: var(--lmt-down); }

.lmt-spark__pies {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--lmt-text-faint);
}

/* =========================================================================
 * 7. Plataformas y lectura.
 * ====================================================================== */
.lmt-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.lmt-chip {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border: 1px solid var(--lmt-border);
	border-radius: 999px;
	background: var(--lmt-surface);
	font-size: 14px;
	font-weight: 700;
	color: var(--lmt-text);
	text-decoration: none;
	transition: border-color .18s ease, color .18s ease;
}

.lmt-chip:hover,
.lmt-chip:focus-visible {
	border-color: var(--lmt-accent);
	color: var(--lmt-accent);
}

.lmt-lectura {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 20px 22px;
	border: 1px solid var(--lmt-border);
	border-radius: var(--lmt-radius);
	background: var(--lmt-surface);
	text-decoration: none;
	transition: border-color .18s ease;
}

.lmt-lectura:hover { border-color: var(--lmt-accent); }

.lmt-lectura__k {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--lmt-text-faint);
}

.lmt-lectura__t {
	font-family: var(--lmt-font-display);
	font-size: clamp(17px, 2.4vw, 21px);
	font-weight: 800;
	line-height: 1.3;
	color: var(--lmt-text);
}

.lmt-lectura__c {
	margin-top: 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--lmt-accent);
}

/* =========================================================================
 * 8. Bloque corto dentro de un articulo.
 * ====================================================================== */
.lmt-ficha-mini {
	margin: 32px 0;
	padding: 22px 24px;
	border: 1px solid var(--lmt-border);
	border-left: 3px solid var(--lmt-accent);
	border-radius: var(--lmt-radius);
	background: var(--lmt-surface-2);
}

.lmt-ficha-mini__eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--lmt-accent);
}

.lmt-ficha-mini__titulo {
	margin: 6px 0 16px;
	font-family: var(--lmt-font-display);
	font-size: clamp(17px, 2.4vw, 21px);
	font-weight: 800;
	line-height: 1.3;
	color: var(--lmt-text);
}

.lmt-ficha-mini__cifras {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
	gap: 12px 16px;
}

.lmt-ficha-mini__cifras > span {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.lmt-ficha-mini__cifras em {
	font-style: normal;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--lmt-text-faint);
}

.lmt-ficha-mini__cifras b {
	font-size: 17px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--lmt-text);
}

.lmt-ficha-mini__cifras b.is-sube { color: var(--lmt-up); }
.lmt-ficha-mini__cifras b.is-baja { color: var(--lmt-down); }

.lmt-ficha-mini__nota {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--lmt-text-muted);
}

.lmt-ficha-mini__cta {
	display: inline-block;
	margin-top: 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--lmt-accent);
	text-decoration: none;
}

.lmt-ficha-mini__cta:hover { text-decoration: underline; }

.lmt-ficha-mini__sello {
	display: block;
	margin-top: 10px;
	font-size: 12px;
	color: var(--lmt-text-faint);
}

/* =========================================================================
 * 9. Movil.
 * ====================================================================== */
@media (max-width: 640px) {
	.lmt-fichas-grid { grid-template-columns: 1fr; }

	.lmt-ficha-cifras { grid-template-columns: 1fr 1fr; }

	.lmt-ficha-cifra__v { font-size: 22px; }

	.lmt-cmps { grid-template-columns: 1fr; gap: 16px; }

	.lmt-esencial { grid-template-columns: 1fr; }

	.lmt-tabla-comp th,
	.lmt-tabla-comp td { padding: 10px 12px; font-size: 14px; }

	.lmt-ficha-mini { padding: 18px 18px; }

	.lmt-ficha-mini__cifras { grid-template-columns: 1fr 1fr; }
}
