/* =========================================================
   TECNO-AURAL — SINGLE POST v2
   "Catálogo de exposición digital": imagen/sonido al frente,
   texto discreto, metadata como ficha técnica.
   ========================================================= */

/* ---------- Reset de Astra en la entrada ---------- */
body.single {
	background: #f9ede0 !important;
}

body.single #content,
body.single .site-content,
body.single .site-main,
body.single #primary,
body.single .content-area,
body.single article,
body.single .site-content > .ast-container {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	background: #f9ede0 !important;
}

body.single footer,
body.single .site-footer {
	margin-top: 0 !important;
}

.tecnoaural-single,
.tecnoaural-single *,
.tecnoaural-single *::before,
.tecnoaural-single *::after {
	box-sizing: border-box;
}

.tecnoaural-single {
	width: 100%;
	margin: 0;
	padding: 0;
	color: #202020;
	background: #f9ede0;
}

.tecnoaural-single-article {
	width: 100%;
	margin: 0;
	padding: 0;
}

/* =========================================================
   HERO — full-bleed, imagen/video, título superpuesto
   ========================================================= */

.tecnoaural-single-hero {
	position: relative;
	width: 100%;
	height: clamp(420px, 78vh, 920px);
	overflow: hidden;
	background: #f9ede0;
}

.tecnoaural-single-hero-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.tecnoaural-hero-image,
.tecnoaural-hero-video,
.tecnoaural-hero-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	background: #202f59;
}

.tecnoaural-single-hero-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	width: 100%;
	padding: clamp(24px, 4vw, 64px);
	background: linear-gradient(to top, rgba(17, 17, 17, 0.85) 0%, rgba(17, 17, 17, 0.35) 55%, transparent 100%);
}

.tecnoaural-single-category {
	display: inline-block;
	margin-bottom: 20px;
	color: #61ea17;
	font-family: "DM Sans", sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.tecnoaural-single-category:hover {
	text-decoration: underline;
}

.tecnoaural-single-title {
	max-width: 1100px;
	margin: 0;
	color: #f9ede0;
	font-family: "Oswald", sans-serif;
	font-size: clamp(40px, 6vw, 96px);
	font-weight: 700;
	line-height: 0.98;
	text-transform: uppercase;

	hyphens: none;
	-webkit-hyphens: none;
	overflow-wrap: normal;
	word-break: normal;
}

/* =========================================================
   FICHA TÉCNICA
   ========================================================= */

.tecnoaural-single-specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	width: min(100% - 48px, 1100px);
	margin: 0 auto;
	padding: 28px 0;
	border-bottom: 1px solid rgba(32, 32, 32, 0.18);
}

.tecnoaural-spec {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px 20px 8px 0;
}

.tecnoaural-spec-label {
	color: rgba(32, 32, 32, 0.55);
	font-family: "DM Sans", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tecnoaural-spec-value {
	color: #202020;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	font-weight: 500;
}

/* =========================================================
   CONTENIDO — columna angosta, mucho aire
   ========================================================= */

.tecnoaural-single-content {
	width: min(100% - 48px, 680px);
	margin: 0 auto;
	padding: clamp(56px, 7vw, 96px) 0;
	color: rgba(32, 32, 32, 0.92);
	font-family: "DM Sans", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.85;
}

.tecnoaural-single-content > *:first-child {
	margin-top: 0;
}

.tecnoaural-single-content > *:last-child {
	margin-bottom: 0;
}

.tecnoaural-single-content p {
	margin: 0 0 1.6em;
}

.tecnoaural-single-content a {
	color: #61ea17;
}

.tecnoaural-single-content a:hover {
	color: #e64600;
}

.tecnoaural-single-content img,
.tecnoaural-single-content video,
.tecnoaural-single-content iframe {
	max-width: 100%;
}

/* =========================================================
   AUDIO — forma de onda interactiva
   ========================================================= */

.tecnoaural-single-audio {
	display: flex;
	align-items: center;
	gap: 20px;
	width: min(100% - 48px, 680px);
	margin: 0 auto clamp(56px, 7vw, 96px);
	padding: 20px 24px;
	background: rgba(32, 32, 32, 0.05);
	border: 1px solid rgba(32, 32, 32, 0.15);
}

.tecnoaural-audio-play {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid #202020;
	border-radius: 50%;
	background: transparent;
	color: #202020;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.tecnoaural-audio-play:hover {
	background: #61ea17;
	border-color: #61ea17;
	color: #212121;
}

.tecnoaural-audio-icon-pause {
	display: none;
	font-size: 12px;
	letter-spacing: 2px;
}

.tecnoaural-audio-icon-play {
	font-size: 14px;
	margin-left: 2px;
}

.tecnoaural-audio-play.is-playing .tecnoaural-audio-icon-play {
	display: none;
}

.tecnoaural-audio-play.is-playing .tecnoaural-audio-icon-pause {
	display: block;
}

.tecnoaural-audio-waveform {
	flex: 1;
	width: 100%;
	height: 56px;
	cursor: pointer;
}

/* =========================================================
   GALERÍA — mampostería, sin recorte de proporción
   ========================================================= */

.tecnoaural-single-gallery {
	column-count: 3;
	column-gap: 4px;
	width: 100%;
	margin: 0 0 clamp(56px, 7vw, 96px);
	padding: 0;
}

.tecnoaural-gallery-item {
	display: block;
	margin-bottom: 4px;
	break-inside: avoid;
}

.tecnoaural-gallery-item img {
	display: block;
	width: 100%;
	height: auto;
}

/* =========================================================
   ANTERIOR / SIGUIENTE — barra minimalista, solo texto
   ========================================================= */

.tecnoaural-post-navigation {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
	border-top: 1px solid rgba(32, 32, 32, 0.18);
}

.tecnoaural-post-navigation-item {
	--tecnoaural-title-color: #f9ede0;

	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 64px);
	overflow: hidden;
	color: var(--tecnoaural-title-color);
	text-decoration: none;
	transition: color 0.2s ease;
}

.tecnoaural-post-navigation-image {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.tecnoaural-post-navigation-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(17, 17, 17, 0.55);
	transition: background 0.2s ease;
}

.tecnoaural-post-navigation-item:hover .tecnoaural-post-navigation-overlay {
	background: #61ea17;
	opacity: 0.92;
}

.tecnoaural-post-navigation-label,
.tecnoaural-post-navigation-title {
	position: relative;
	z-index: 2;
}

.tecnoaural-post-navigation-prev {
	border-right: 1px solid rgba(32, 32, 32, 0.18);
	text-align: left;
}

.tecnoaural-post-navigation-next {
	text-align: right;
	align-items: flex-end;
}

.tecnoaural-post-navigation-item:hover {
	color: #212121;
}

.tecnoaural-post-navigation-label {
	font-family: "DM Sans", sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.7;
}

.tecnoaural-post-navigation-title {
	max-width: 100%;
	font-family: "Oswald", sans-serif;
	font-size: clamp(18px, 2vw, 26px);
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

/* =========================================================
   RELACIONADOS — se mantiene igual (ya funcionaba bien)
   ========================================================= */

.tecnoaural-related {
	width: 100%;
	margin: 0 auto;
	padding: clamp(64px, 7vw, 100px) 0 0;
	background: transparent;
}

.tecnoaural-related-heading {
	margin: 0 0 24px;
	padding: 0 24px;
	color: #202020;
	font-family: "Oswald", sans-serif;
	font-size: clamp(24px, 2.3vw, 36px);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.tecnoaural-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
}

.tecnoaural-related-card {
	--tecnoaural-title-color: #f9ede0;

	position: relative;
	min-width: 0;
	aspect-ratio: 1 / 1;
	margin: 0;
	overflow: hidden;
	background: #202f59;
	isolation: isolate;
}

.tecnoaural-related-link {
	display: block;
	width: 100%;
	height: 100%;
	color: #202020;
	text-decoration: none;
}

.tecnoaural-related-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.tecnoaural-related-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tecnoaural-related-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: #61ea17;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.tecnoaural-related-card:hover::after,
.tecnoaural-related-card:focus-within::after {
	opacity: 1;
}

.tecnoaural-related-title {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 100%;
	margin: 0;
	padding: 10px;
	color: var(--tecnoaural-title-color);
	font-family: "Oswald", sans-serif;
	font-size: 36px;
	font-weight: 700;
	line-height: 0.96;
	text-transform: uppercase;
	hyphens: none;
	-webkit-hyphens: none;
	word-break: normal;
	overflow-wrap: normal;
}

.tecnoaural-related-card:hover .tecnoaural-related-title {
	color: #212121;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {
	.tecnoaural-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tecnoaural-single-gallery {
		column-count: 2;
	}
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
	.tecnoaural-single-hero {
		height: clamp(360px, 68vh, 620px);
	}

	.tecnoaural-single-specs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 20px 0;
	}

	.tecnoaural-single-content {
		width: min(100% - 32px, 680px);
		font-size: 17px;
	}

	.tecnoaural-single-audio {
		width: min(100% - 32px, 680px);
		padding: 16px;
	}

	.tecnoaural-single-gallery {
		column-count: 1;
	}

	.tecnoaural-post-navigation {
		grid-template-columns: 1fr;
	}

	.tecnoaural-post-navigation-prev {
		border-right: 0;
		border-bottom: 1px solid rgba(32, 32, 32, 0.18);
	}

	.tecnoaural-post-navigation-next {
		text-align: left;
		align-items: flex-start;
	}

	.tecnoaural-related-heading {
		padding-inline: 16px;
		font-size: 26px;
	}

	.tecnoaural-related-grid {
		grid-template-columns: 1fr;
	}

	.tecnoaural-related-title {
		font-size: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tecnoaural-post-navigation-item,
	.tecnoaural-related-card::after,
	.tecnoaural-related-title,
	.tecnoaural-audio-play {
		transition: none;
	}
}
