/* ==========================================================================
   Documentación (guías, preguntas frecuentes y vídeos) - área interna
   ========================================================================== */

/* Tarjetas de acceso del inicio (Info blocks) */
.documentacion-acceso {
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.documentacion-acceso:hover {
	transform: translateY(-2px);
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

/* Las tarjetas de acceso son botones (desplazan a su sección) */
button.documentacion-acceso {
	appearance: none;
	font: inherit;
}

button.documentacion-acceso:focus-visible {
	outline: 2px solid var(--primary, #0c83ff);
	outline-offset: 2px;
}

/* Sin contenido todavía: no se puede pulsar */
.documentacion-acceso-vacio,
.documentacion-acceso-vacio:hover {
	opacity: 0.6;
	cursor: default;
	transform: none;
	box-shadow: none;
}

/* Tarjetas de guías y vídeos */
.documentacion-tarjeta {
	overflow: hidden;
}

.documentacion-portada {
	position: relative;
	display: block;
	background-color: var(--gray-200, #e5e7eb);
}

.documentacion-portada img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
}

.documentacion-portada-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 3rem;
	background: rgba(0, 0, 0, 0.15);
	transition: background 0.15s ease;
}

.documentacion-portada:hover .documentacion-portada-play {
	background: rgba(0, 0, 0, 0.3);
}

.documentacion-portada-duracion {
	position: absolute;
	right: 0.5rem;
	bottom: 0.5rem;
}

/* Buscador con resultados desplegables */
.documentacion-buscador-resultados {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 1050;
	max-height: 26rem;
	overflow-y: auto;
}

/* Reproductor de vídeo */
.documentacion-video-contenedor {
	max-width: 960px;
}

.documentacion-video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #000;
}

/* Contenido publicado (HTML del editor) */
.documentacion-contenido {
	word-break: break-word;
	line-height: 1.6;
}

.documentacion-contenido img {
	max-width: 100%;
	height: auto;
	border-radius: var(--border-radius, 0.375rem);
	border: 1px solid var(--border-color, #e5e7eb);
}

.documentacion-contenido figure {
	margin: 1rem 0;
}

.documentacion-contenido figcaption {
	color: var(--secondary-color, #6b7280);
	font-size: 0.875rem;
	margin-top: 0.25rem;
}

.documentacion-contenido h2 {
	font-size: 1.25rem;
	margin-top: 1.5rem;
}

.documentacion-contenido h3 {
	font-size: 1.1rem;
	margin-top: 1.25rem;
}

.documentacion-contenido ol,
.documentacion-contenido ul {
	padding-left: 1.5rem;
}

.documentacion-contenido li {
	margin-bottom: 0.35rem;
}

.documentacion-contenido table {
	width: 100%;
	margin-bottom: 1rem;
	border-collapse: collapse;
}

.documentacion-contenido td,
.documentacion-contenido th {
	border: 1px solid var(--border-color, #e5e7eb);
	padding: 0.5rem;
}

.documentacion-contenido blockquote {
	border-left: 3px solid var(--primary, #0c83ff);
	padding-left: 1rem;
	color: var(--secondary-color, #6b7280);
}

/* Editor de artículos */
.documentacion-editor-editable {
	min-height: 360px;
}

/* Miniaturas de adjuntos en el editor */
.documentacion-miniatura {
	width: 48px;
	height: 48px;
	object-fit: cover;
}

/* Barra de progreso de subida (sin estilos en línea: una clase por decena) */
.documentacion-progreso-0 { width: 0%; }
.documentacion-progreso-10 { width: 10%; }
.documentacion-progreso-20 { width: 20%; }
.documentacion-progreso-30 { width: 30%; }
.documentacion-progreso-40 { width: 40%; }
.documentacion-progreso-50 { width: 50%; }
.documentacion-progreso-60 { width: 60%; }
.documentacion-progreso-70 { width: 70%; }
.documentacion-progreso-80 { width: 80%; }
.documentacion-progreso-90 { width: 90%; }
.documentacion-progreso-100 { width: 100%; }
