/*
 * Bloque de documentos y botón de ficha técnica — mockup 03b (docs/38-mockup-03b-especificacion.md).
 * Cada texto fija font-family, font-size, font-weight, line-height, letter-spacing y
 * text-transform con selectores acotados, para que Woodmart y Elementor no los pisen.
 */
.sed-documentos {
	--sed-red: #dd2323;
	--sed-text: #242424;
	--sed-muted: #595959;
	--sed-border: #e0e0e0;
	--sed-button-border: #cfcfcf;
	--sed-gray: #54595f;
	--sed-surface: #ffffff;

	color: var(--sed-text);
	font-family: 'Montserrat', sans-serif;
	margin-block: 32px;
}

.sed-documentos .sed-documentos__title {
	color: var(--sed-text);
	font-family: 'Montserrat', sans-serif;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 30px;
	margin: 0 0 20px;
	text-transform: none;
}

.sed-documentos .sed-documentos__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sed-documentos .sed-documento {
	margin: 0;
	padding: 0;
}

.sed-documentos .sed-documento__row {
	align-items: center;
	background: var(--sed-surface);
	border: 1px solid var(--sed-border);
	border-radius: 4px;
	box-sizing: border-box;
	display: flex;
	gap: 16px;
	min-height: 72px;
	padding: 10px 16px 10px 20px;
}

.sed-documentos .sed-documento.is-open .sed-documento__row {
	border-color: var(--sed-text);
}

.sed-documentos .sed-documento__icon {
	align-items: center;
	background: var(--sed-red);
	border-radius: 3px;
	box-sizing: border-box;
	color: #ffffff;
	display: inline-flex;
	flex: 0 0 30px;
	font-family: 'Montserrat', sans-serif;
	font-size: 10px;
	font-weight: 700;
	height: 36px;
	justify-content: center;
	letter-spacing: 0;
	line-height: 12px;
	text-transform: none;
	width: 30px;
}

.sed-documentos .sed-documento__content {
	flex: 1 1 auto;
	min-width: 0;
}

.sed-documentos .sed-documento__head {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
	margin: 0 0 2px;
}

.sed-documentos .sed-documento__type {
	color: var(--sed-red);
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.6px;
	line-height: 16px;
	margin: 0;
	text-transform: uppercase;
}

.sed-documentos .sed-documento__meta {
	color: var(--sed-muted);
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 16px;
	margin: 0;
	text-transform: none;
}

.sed-documentos .sed-documento__name {
	color: var(--sed-text);
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 20px;
	margin: 0;
	overflow-wrap: anywhere;
	text-transform: none;
}

.sed-documentos .sed-documento__actions {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 12px;
	justify-content: flex-end;
}

.sed-documentos .sed-button,
.sed-technical-sheet {
	align-items: center;
	border-radius: 4px;
	box-shadow: none;
	box-sizing: border-box;
	cursor: pointer;
	display: inline-flex;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	justify-content: center;
	letter-spacing: 0;
	line-height: 18px;
	margin: 0;
	text-decoration: none;
	text-transform: none;
	transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

.sed-documentos .sed-button,
.sed-documentos button.sed-button {
	box-sizing: border-box;
	height: 36px;
	min-height: 36px;
	padding: 0 12px;
}

.sed-documentos .sed-button--view {
	background: var(--sed-surface);
	border: 1px solid var(--sed-button-border);
	color: var(--sed-text);
	width: 84px;
}

.sed-documentos .sed-button--download {
	background: var(--sed-gray);
	border: 1px solid var(--sed-gray);
	color: #ffffff;
	width: 100px;
}

.sed-documentos .sed-button--view:hover,
.sed-documentos button.sed-button--view:hover {
	background: #f4f4f4;
	border-color: var(--sed-text);
	color: var(--sed-text);
}

.sed-documentos .sed-button--download:hover {
	background: var(--sed-text);
	border-color: var(--sed-text);
	color: #ffffff;
}

.sed-documentos .sed-button:focus-visible,
.sed-documentos button.sed-button:focus-visible,
.sed-technical-sheet:focus-visible {
	box-shadow: none;
	outline: 3px solid var(--sed-red);
	outline-offset: 3px;
}

/* En foco (sin hover) conservan fondo, borde y color de su estado base. */
.sed-documentos button.sed-button--view:focus-visible {
	background: var(--sed-surface);
	border-color: var(--sed-button-border);
	color: var(--sed-text);
}

.sed-documentos .sed-button--download:focus-visible {
	background: var(--sed-gray);
	border-color: var(--sed-gray);
	color: #ffffff;
}

.sed-documentos .sed-view-mobile {
	display: none;
}

.sed-documentos .sed-documento__viewer {
	background: #525659;
	border-radius: 4px;
	margin: 0;
	overflow: hidden;
	padding: 0;
}

.sed-documentos .sed-documento__viewer[hidden] {
	display: none;
}

/* Entre la tarjeta abierta y su visor: 10 px. */
.sed-documentos .sed-documento__viewer:not([hidden]) {
	margin-top: 10px;
}

.sed-documentos .sed-pdf-toolbar {
	align-items: center;
	background: #323639;
	box-sizing: border-box;
	color: #f1f1f1;
	display: flex;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 500;
	height: 34px;
	justify-content: space-between;
	letter-spacing: 0;
	line-height: 16px;
	min-height: 34px;
	padding: 0 10px 0 12px;
	text-transform: none;
}

.sed-documentos .sed-pdf-toolbar__filename {
	color: #f1f1f1;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 16px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: none;
	white-space: nowrap;
}

.sed-documentos .sed-pdf-toolbar__controls {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 12px;
	margin-left: 16px;
}

.sed-documentos .sed-pdf-toolbar__counter {
	color: #f1f1f1;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 16px;
	text-transform: none;
	white-space: nowrap;
}

.sed-documentos .sed-pdf-toolbar__zoom,
.sed-documentos select.sed-pdf-toolbar__zoom {
	appearance: auto;
	background-color: #323639;
	border: 0;
	border-radius: 2px;
	box-shadow: none;
	color: #f1f1f1;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 500;
	height: 26px;
	letter-spacing: 0;
	line-height: 16px;
	margin: 0;
	max-width: 150px;
	min-height: 26px;
	padding: 0 2px;
	text-transform: none;
}

.sed-documentos .sed-pdf-toolbar__zoom:focus-visible,
.sed-documentos .sed-pdf-toolbar__download:focus-visible,
.sed-documentos .sed-pdf-scroll:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: -2px;
}

.sed-documentos .sed-pdf-toolbar__zoom:disabled {
	cursor: wait;
	opacity: 0.65;
}

.sed-documentos .sed-pdf-toolbar__zoom option {
	background: #ffffff;
	color: #242424;
}

.sed-documentos .sed-pdf-toolbar__download {
	align-items: center;
	color: #f1f1f1;
	display: inline-flex;
	height: 26px;
	justify-content: center;
	width: 26px;
}

.sed-documentos .sed-pdf-toolbar__download:hover {
	color: #ffffff;
}

.sed-documentos .sed-pdf-toolbar__download svg {
	fill: none;
	height: 18px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 18px;
}

.sed-documentos .sed-pdf-scroll {
	background: #525659;
	box-sizing: border-box;
	display: block;
	max-height: min(80vh, 1000px);
	min-height: 320px;
	overflow: auto;
	overscroll-behavior: contain;
	padding: 16px;
	scrollbar-gutter: stable;
	width: 100%;
}

.sed-documentos .sed-pdf-status {
	align-items: center;
	box-sizing: border-box;
	color: #f1f1f1;
	display: flex;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 500;
	justify-content: center;
	letter-spacing: 0;
	line-height: 22px;
	min-height: 288px;
	padding: 24px;
	text-align: center;
	text-transform: none;
}

.sed-documentos .sed-pdf-status[hidden] {
	display: none;
}

.sed-documentos .sed-pdf-status a {
	color: #ffffff;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 22px;
	margin-left: 4px;
	text-decoration: underline;
	text-transform: none;
}

.sed-documentos .sed-pdf-pages {
	align-items: stretch;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 100%;
}

.sed-documentos .sed-pdf-page {
	align-items: center;
	background: #ffffff;
	box-shadow: 0 2px 8px rgb(0 0 0 / 22%);
	box-sizing: content-box;
	display: flex;
	flex: 0 0 auto;
	justify-content: center;
	margin-inline: auto;
	max-width: none;
	overflow: hidden;
}

.sed-documentos .sed-pdf-page__status {
	color: #595959;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 16px;
	text-transform: none;
}

.sed-documentos .sed-pdf-page__error {
	color: #8a1c1c;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 20px;
	padding: 24px;
	text-align: center;
	text-transform: none;
}

.sed-documentos .sed-pdf-page__canvas {
	background: #ffffff;
	display: block;
	max-width: none;
}

.sed-documentos .sed-visually-hidden {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.sed-technical-sheet {
	background: #ffffff;
	border: 1px solid #242424;
	color: #242424;
	gap: 9px;
	height: 50px;
	padding: 0 20px;
	width: 268px;
}

.sed-technical-sheet:hover {
	background: #242424;
	color: #ffffff;
}

.sed-technical-sheet .sed-technical-sheet__icon {
	font-size: 14px;
	font-weight: 600;
	line-height: 18px;
}

.sed-technical-sheet span {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 18px;
	text-transform: none;
}

@media (max-width: 767px) {
	.sed-documentos {
		margin-block: 24px;
	}

	.sed-documentos .sed-documentos__title {
		margin-bottom: 16px;
	}

	.sed-documentos .sed-documento__row {
		align-items: flex-start;
		flex-wrap: wrap;
		padding: 14px 16px;
	}

	.sed-documentos .sed-documento__content {
		flex: 1 1 calc(100% - 48px);
	}

	/* Los botones bajan debajo del texto, alineados con él (30 px de ícono + 16 px de separación). */
	.sed-documentos .sed-documento__actions {
		flex: 1 1 100%;
		flex-wrap: wrap;
		justify-content: flex-start;
		padding-left: 46px;
	}

	.sed-documentos .sed-view-desktop {
		display: none;
	}

	.sed-documentos .sed-view-mobile {
		display: inline-flex;
	}

	.sed-documentos .sed-documento__viewer {
		display: none;
	}

	.sed-technical-sheet {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sed-documentos .sed-button,
	.sed-technical-sheet {
		transition: none;
	}
}
