/*
Theme Name: Seminario SCZ
Theme URI: https://scalatam.com
Author: Grupo SCZ
Description: Tema de bloques (Gutenberg) de una sola página para seminarios de ganadería sostenible, con estética minimalista en verdes y blancos: portada con cuenta regresiva, cifras, temario, agenda en línea de tiempo, expositores, inscripción (enlace externo), patrocinadores, preguntas frecuentes y contacto.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 2.13.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seminario-scz
*/

/* ---------- Base ---------- */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 72px;
}
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
::selection {
	background: rgba(21, 128, 61, 0.2);
}

/* Barra de progreso de lectura */
.barra-progreso {
	position: fixed;
	inset: 0 0 auto 0;
	height: 3px;
	z-index: 100;
	transform-origin: 0 50%;
	transform: scaleX(0);
	background: linear-gradient(90deg, #16a34a, #4ade80, #a3e635);
	pointer-events: none;
}

/* ---------- Cabecera de vidrio ---------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}
/* En la portada la cabecera flota sobre el fondo oscuro */
.home .wp-site-blocks > header.wp-block-template-part {
	margin-bottom: -54px;
}
.wp-site-blocks .cabecera-vidrio {
	box-sizing: border-box;
	min-height: 54px;
	background: rgba(6, 40, 29, 0.72) !important;
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cabecera-vidrio .wp-block-navigation-item__content {
	opacity: 0.8;
	transition: opacity 0.2s ease;
}
.cabecera-vidrio .wp-block-navigation-item__content:hover {
	opacity: 1;
	text-decoration: none;
}
.cabecera-vidrio .wp-block-button__link {
	padding: 0.4rem 1rem;
	font-size: 0.8125rem;
}
.cabecera-vidrio .wp-block-site-title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.cabecera-vidrio .wp-block-site-title::before {
	content: "";
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff url(assets/images/logo-mbcs-circulo.png) center / 112% no-repeat;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}
@media (max-width: 600px) {
	.cabecera-vidrio .boton-cabecera {
		display: none;
	}
}

/* ---------- Utilidades ---------- */
.etiqueta {
	font-weight: 600;
	letter-spacing: 0.02em;
}
.texto-degradado {
	background: linear-gradient(120deg, #0f766e 0%, #16a34a 50%, #65a30d 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.portada .texto-degradado,
.tarjeta-inscripcion .texto-degradado {
	background-image: linear-gradient(120deg, #6ee7b7 0%, #4ade80 45%, #d9f99d 100%);
}
.texto-degradado-claro {
	background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.55) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.subtitulo {
	max-width: 46rem;
	margin-inline: auto;
}

/* Botón contorno: hereda el color del texto de la sección */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: inherit;
	border: 1px solid currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: rgba(127, 127, 127, 0.12);
}
.wp-block-button__link {
	transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.wp-block-button__link:hover {
	transform: scale(1.03);
	text-decoration: none;
}

/* ---------- Animaciones al hacer scroll ---------- */
.js .reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
	transition-delay: var(--retraso, 0s);
}
.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- Portada ---------- */
.portada {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.portada::before,
.portada::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: 60vmax;
	height: 60vmax;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.45;
	animation: flotar 18s ease-in-out infinite alternate;
	pointer-events: none;
}
.portada::before {
	background: radial-gradient(circle, #22c55e 0%, transparent 65%);
	top: -25vmax;
	left: -15vmax;
}
.portada::after {
	background: radial-gradient(circle, #a3e635 0%, transparent 65%);
	top: 15%;
	right: -32vmax;
	animation-delay: -9s;
}
@keyframes flotar {
	from { transform: translate(0, 0) scale(1); }
	to { transform: translate(8vmax, 6vmax) scale(1.15); }
}
.portada .pildora {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.06);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

/* Cuenta regresiva */
.seminario-countdown {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-block: 2.5rem 1rem;
}
.seminario-countdown > div {
	min-width: 6rem;
	padding: 1rem 0.5rem 0.8rem;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.06);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
.seminario-countdown span {
	display: block;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}
.seminario-countdown small {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.6;
}
@media (max-width: 480px) {
	.seminario-countdown {
		gap: 0.5rem;
	}
	.seminario-countdown > div {
		min-width: 0;
		flex: 1 1 0;
		padding-inline: 0.25rem;
		border-radius: 16px;
	}
	.seminario-countdown small {
		font-size: 0.6rem;
		letter-spacing: 0.04em;
	}
}
.seminario-countdown.terminado {
	font-size: 1.4rem;
	font-weight: 600;
}

/* ---------- Spot destacado ---------- */
.portada {
	padding-bottom: 5rem !important;
}
.seccion-spot {
	position: relative;
}
.video-destacado {
	margin-top: 2.5rem;
}
.video-destacado video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 28px;
	background: #000;
	box-shadow: 0 40px 100px -30px rgba(74, 222, 128, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ---------- Mensaje del presidente (reel vertical) ---------- */
.video-vertical {
	margin: 0 auto;
	max-width: 360px;
}
.video-vertical video {
	display: block;
	width: 100%;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border-radius: 32px;
	background: #000;
	box-shadow: 0 40px 80px -30px rgba(6, 40, 29, 0.45), 0 0 0 8px var(--wp--preset--color--menta);
}
.firma-mensaje .dato-titulo {
	color: var(--wp--preset--color--salvia);
}

/* ---------- Videos con reproducción automática ---------- */
.video-auto {
	position: relative;
}
.boton-sonido {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.8rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(6, 40, 29, 0.55);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	color: #fff;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}
.video-auto:hover .boton-sonido,
.video-auto:focus-within .boton-sonido,
.video-auto.con-sonido .boton-sonido {
	opacity: 1;
	transform: none;
}
@media (hover: none) {
	.boton-sonido {
		opacity: 1;
		transform: none;
	}
}
.boton-sonido:hover {
	background: rgba(21, 128, 61, 0.85);
}
.boton-sonido:focus-visible {
	outline: 2px solid #4ade80;
	outline-offset: 2px;
	opacity: 1;
}
.boton-sonido .tachado,
.video-auto.con-sonido .boton-sonido .ondas {
	display: inline;
}
.boton-sonido .ondas,
.video-auto.con-sonido .boton-sonido .tachado {
	display: none;
}
.spot-pendiente ~ .boton-sonido {
	display: none;
}
.pieza .boton-sonido {
	top: 1.6rem;
	right: 1.6rem;
	padding: 0.35rem 0.65rem;
	font-size: 0.72rem;
}

/* ---------- Titular animado de la portada ---------- */
.titulo-animado {
	font-size: clamp(2.8rem, 7vw, 6rem);
	line-height: 1.02;
}
.titulo-animado .texto-degradado {
	background-image: linear-gradient(110deg, #6ee7b7 0%, #4ade80 30%, #d9f99d 45%, #ffffff 50%, #d9f99d 55%, #4ade80 70%, #6ee7b7 100%) !important;
	background-size: 250% 100%;
	animation: brillo-titulo 6s ease-in-out infinite;
}
@keyframes brillo-titulo {
	0%, 100% { background-position: 100% 0; }
	50% { background-position: 0% 0; }
}
.titulo-animado.animando .palabra {
	display: inline-block;
	opacity: 0;
	filter: blur(12px);
	transform: translateY(0.45em);
	animation: palabra-entra 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	animation-delay: calc(0.15s + var(--i) * 0.12s);
}
@keyframes palabra-entra {
	to {
		opacity: 1;
		filter: blur(0);
		transform: none;
	}
}

/* ---------- Portada: afiche + arte de inscripción ---------- */
.artes-portada {
	max-width: 980px;
	margin-inline: auto !important;
}
.arte-portada {
	margin: 0;
}
.arte-portada img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 24px;
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.arte-portada:hover img {
	transform: translateY(-6px) scale(1.01);
}
/* Artes de la portada: inclinación 3D y reflejo que siguen al cursor.
   El afiche no tiene clic; el arte de inscripción es un enlace. */
.columna-afiche,
.columna-registro {
	perspective: 1100px;
}
.arte-afiche {
	cursor: default;
}
.arte-afiche,
.arte-registro {
	position: relative;
	transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transform-style: preserve-3d;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform;
}
.arte-afiche.inclinando,
.arte-registro.inclinando {
	transition: transform 0.08s linear;
}
.arte-afiche::before,
.arte-registro::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 24px;
	background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 45%);
	mix-blend-mode: soft-light;
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
	z-index: 1;
}
.arte-afiche.inclinando::before,
.arte-registro.inclinando::before {
	opacity: 1;
}
.arte-afiche:hover img {
	transform: none;
	box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.arte-registro {
	position: relative;
}
.arte-registro a {
	display: block;
	border-radius: 24px;
}
.arte-registro img {
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(74, 222, 128, 0.55);
	animation: latido-registro 2.8s ease-in-out infinite;
}
.arte-registro:hover img {
	transform: none;
	animation: none;
	box-shadow: 0 40px 90px -30px rgba(74, 222, 128, 0.55), 0 0 0 3px #4ade80;
}
.arte-registro::after {
	content: "Clic para inscribirte →";
	position: absolute;
	left: 50%;
	bottom: -0.9rem;
	transform: translateX(-50%);
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	background: #16a34a;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.5);
	pointer-events: none;
	z-index: 2;
}
.arte-registro.inclinando::after {
	transform: translateX(-50%) translateZ(40px);
}
.arte-registro a:focus-visible {
	outline: 3px solid #4ade80;
	outline-offset: 4px;
}
@keyframes latido-registro {
	0%, 100% { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(74, 222, 128, 0.55); }
	50% { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 9px rgba(74, 222, 128, 0.18); }
}
@media (max-width: 781px) {
	.artes-portada .columna-registro {
		order: -1;
	}
	.artes-portada .wp-block-column {
		max-width: 420px;
		margin-inline: auto;
	}
}

/* ---------- Banner de invitación (sección inscripción) ---------- */
.banner-invitacion {
	margin: 0;
}
.banner-invitacion a {
	display: block;
	border-radius: 24px;
	overflow: hidden;
}
.banner-invitacion img {
	display: block;
	width: 100%;
	border-radius: 24px;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.banner-invitacion a:hover img {
	transform: scale(1.03);
}

/* ---------- Cifras ---------- */
.cifra .numero {
	font-variant-numeric: tabular-nums;
}

/* ---------- Tarjetas (bento) ---------- */
.tarjeta {
	height: 100%;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.tarjeta:hover {
	transform: translateY(-6px);
	box-shadow: 0 30px 60px -20px rgba(6, 40, 29, 0.16);
}
.tarjeta .icono {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	color: var(--wp--preset--color--verde);
	background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(132, 204, 22, 0.12));
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tarjeta:hover .icono {
	transform: scale(1.08) rotate(-4deg);
}
.tarjeta-oscura:hover {
	box-shadow: 0 30px 60px -20px rgba(22, 163, 74, 0.35);
}

/* ---------- Agenda: línea de tiempo ---------- */
.linea-tiempo {
	position: relative;
	padding-left: 2rem;
}
.linea-tiempo::before {
	content: "";
	position: absolute;
	left: 0.4rem;
	top: 0.6rem;
	bottom: 0.6rem;
	width: 2px;
	background: linear-gradient(180deg, #16a34a, #84cc16);
	border-radius: 2px;
	opacity: 0.35;
}
.agenda-item {
	position: relative;
	margin-block-start: 0 !important;
	padding-block: 1rem;
}
.agenda-item::before {
	content: "";
	position: absolute;
	left: -1.95rem;
	top: 1.45rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid #15803d;
	box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.12);
}
.agenda-hora {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.dia-agenda {
	height: 100%;
}

/* ---------- Expositores ---------- */
.tarjeta-expositor {
	height: 100%;
	overflow: hidden;
}
.tarjeta-expositor .wp-block-image {
	overflow: hidden;
	border-radius: 18px;
}
.tarjeta-expositor .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.tarjeta-expositor:hover .wp-block-image img {
	transform: scale(1.06);
}

/* ---------- Inscripción ---------- */
.tarjeta-inscripcion {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.tarjeta-inscripcion::before {
	content: "";
	position: absolute;
	inset: -40%;
	z-index: -1;
	background: conic-gradient(from 0deg, #16a34a, #a3e635, #14b8a6, #16a34a);
	filter: blur(80px);
	opacity: 0.35;
	animation: girar 20s linear infinite;
}
@keyframes girar {
	to { transform: rotate(1turn); }
}

/* ---------- Patrocinadores: carrusel infinito ---------- */
.carrusel-logos {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.carrusel-logos > .pista {
	display: flex;
	flex-wrap: nowrap;
	gap: 3.5rem;
	width: max-content;
	margin: 0;
}
.js .carrusel-logos > .pista.animada {
	animation: desplazar 30s linear infinite;
}
.carrusel-logos:hover > .pista.animada {
	animation-play-state: paused;
}
@keyframes desplazar {
	to { transform: translateX(calc(-50% - 1.75rem)); }
}
.carrusel-logos .pista > * {
	margin-block: 0 !important;
}
.carrusel-logos .wp-block-image {
	margin: 0;
	flex: 0 0 auto;
}
.carrusel-logos img {
	height: 64px;
	width: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.6;
	transition: filter 0.3s ease, opacity 0.3s ease;
}
.carrusel-logos img:hover {
	filter: none;
	opacity: 1;
}

/* Miembros de la MBCS: cada logo en su ficha blanca (se ve igual en modo claro y oscuro) */
.carrusel-logos.carrusel-miembros > .pista {
	gap: 1rem;
	padding-block: 0.75rem;
}
.js .carrusel-logos.carrusel-miembros > .pista.animada {
	animation-name: desplazar-miembros;
	animation-duration: 60s;
}
@keyframes desplazar-miembros {
	to { transform: translateX(calc(-50% - 0.5rem)); }
}
.carrusel-logos.carrusel-miembros .ficha-miembro {
	display: grid;
	place-items: center;
	height: 104px;
	min-width: 132px;
	padding: 0.9rem 1.4rem;
	box-sizing: border-box;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(6, 40, 29, 0.06), 0 8px 24px -12px rgba(6, 40, 29, 0.18);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.carrusel-logos.carrusel-miembros .ficha-miembro:hover {
	transform: translateY(-4px) scale(1.04);
	box-shadow: 0 2px 4px rgba(6, 40, 29, 0.08), 0 18px 34px -14px rgba(6, 40, 29, 0.35);
}
.carrusel-logos.carrusel-miembros img,
[data-tema="oscuro"] .carrusel-logos.carrusel-miembros img,
[data-tema="oscuro"] .carrusel-logos.carrusel-miembros img:hover {
	width: auto;
	height: auto;
	max-height: 72px;
	max-width: 170px;
	filter: none;
	opacity: 1;
}
[data-tema="oscuro"] .carrusel-logos.carrusel-miembros .ficha-miembro {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 30px -14px rgba(0, 0, 0, 0.8);
}
@media (max-width: 600px) {
	.carrusel-logos.carrusel-miembros .ficha-miembro {
		height: 84px;
		min-width: 108px;
		padding: 0.7rem 1rem;
	}
	.carrusel-logos.carrusel-miembros img,
	[data-tema="oscuro"] .carrusel-logos.carrusel-miembros img {
		max-height: 56px;
		max-width: 130px;
	}
}

/* ---------- Preguntas frecuentes ---------- */
.preguntas .wp-block-details summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: -0.015em;
}
.preguntas .wp-block-details summary::-webkit-details-marker {
	display: none;
}
.preguntas .wp-block-details summary::after {
	content: "+";
	flex: 0 0 auto;
	font-size: 1.6rem;
	font-weight: 300;
	line-height: 1;
	color: #15803d;
	transition: transform 0.3s ease;
}
.preguntas .wp-block-details[open] summary::after {
	transform: rotate(45deg);
}
.preguntas .wp-block-details > :not(summary) {
	color: #5a6b61;
	margin-top: 0.8rem;
}

/* ---------- Material de difusión ---------- */
.filtros-difusion {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
}
.filtros-difusion button {
	padding: 0.55rem 1.2rem;
	border: 1px solid rgba(15, 36, 25, 0.12);
	border-radius: 999px;
	background: var(--wp--preset--color--blanco);
	color: var(--wp--preset--color--texto);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.filtros-difusion button:hover {
	transform: translateY(-1px);
	border-color: var(--wp--preset--color--verde);
}
.filtros-difusion button[aria-pressed="true"] {
	background: var(--wp--preset--color--verde);
	border-color: var(--wp--preset--color--verde);
	color: #fff;
}
.filtros-difusion button:focus-visible {
	outline: 2px solid var(--wp--preset--color--verde);
	outline-offset: 2px;
}
.pieza .marco-pieza {
	margin: 0;
	position: relative;
	display: grid;
	grid-template: 100% / 100%;
	place-items: center;
	aspect-ratio: 4 / 3;
	padding: 1.25rem;
	box-sizing: border-box;
	border-radius: 20px;
	background: var(--wp--preset--color--menta);
	overflow: hidden;
}
.pieza .marco-pieza img {
	grid-area: 1 / 1;
	max-width: 100%;
	max-height: 100%;
	min-height: 0;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 12px 30px -12px rgba(6, 40, 29, 0.35);
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.pieza .marco-pieza video {
	grid-area: 1 / 1;
	max-width: 100%;
	max-height: 100%;
	min-height: 0;
	border-radius: 6px;
	background: #000;
	box-shadow: 0 12px 30px -12px rgba(6, 40, 29, 0.35);
}
.pieza:hover .marco-pieza img {
	transform: scale(1.04);
}
.pieza.oculta {
	display: none;
}
.pieza.entrando {
	animation: aparecer-pieza 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes aparecer-pieza {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
	to { opacity: 1; transform: none; }
}
.boton-descarga .wp-block-button__link {
	padding: 0.5rem 1.1rem;
	font-size: 0.875rem;
}
.boton-descarga .sin-archivo {
	opacity: 0.5;
	cursor: default;
	pointer-events: none;
}

/* ---------- Hotel oficial ---------- */
.tarjeta-hotel .foto-hotel {
	margin: 0;
}
.tarjeta-hotel .foto-hotel img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 26px;
}
.datos-hotel p {
	margin: 0;
	line-height: 1.45;
}
.datos-hotel .dato-titulo {
	color: var(--wp--preset--color--salvia);
}
.codigo-hotel {
	width: fit-content;
	padding: 0.6rem 1rem;
	border: 1px dashed var(--wp--preset--color--verde);
	border-radius: 12px;
	background: var(--wp--preset--color--blanco);
}
.codigo-hotel strong {
	color: var(--wp--preset--color--verde);
	letter-spacing: 0.06em;
}

/* ---------- Ubicación ---------- */
.mapa-sede iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	border: 0;
	border-radius: 20px;
}
.tarjeta-contacto .dato-titulo {
	color: var(--wp--preset--color--salvia);
}
[data-tema="oscuro"] .mapa-sede iframe {
	filter: invert(0.9) hue-rotate(180deg) saturate(0.8);
}

/* ---------- Contacto ---------- */
.mapa-contacto iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 420px;
	border: 0;
	border-radius: 28px;
}

/* ---------- Pie ---------- */
.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0;
}

/* ---------- Botón de modo claro / oscuro ---------- */
.boton-tema {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.boton-tema:hover {
	background: rgba(255, 255, 255, 0.18);
	transform: rotate(-15deg);
}
.boton-tema:focus-visible {
	outline: 2px solid #4ade80;
	outline-offset: 2px;
}
.boton-tema .icono-sol,
[data-tema="oscuro"] .boton-tema .icono-luna {
	display: none;
}
[data-tema="oscuro"] .boton-tema .icono-sol {
	display: block;
}

/* ---------- Modo oscuro ---------- */
[data-tema="oscuro"] {
	color-scheme: dark;
	--wp--preset--color--texto: #e6f2ea;
	--wp--preset--color--salvia: #9db5a6;
	--wp--preset--color--menta: #0c1a12;
}
[data-tema="oscuro"] body {
	background-color: #06100b;
	color: var(--wp--preset--color--texto);
}
.cambiando-tema body,
.cambiando-tema body .wp-block-group,
.cambiando-tema body .wp-block-group * {
	transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease !important;
}
/* Tarjetas y superficies blancas (los botones blancos se mantienen) */
[data-tema="oscuro"] .has-blanco-background-color:not(.wp-block-button__link) {
	background-color: #10221a !important;
}
[data-tema="oscuro"] .has-verde-color {
	color: #4ade80 !important;
}
[data-tema="oscuro"] main a:not(.wp-element-button) {
	color: #4ade80;
}
[data-tema="oscuro"] .texto-degradado {
	background-image: linear-gradient(120deg, #6ee7b7 0%, #4ade80 45%, #d9f99d 100%);
}
[data-tema="oscuro"] .tarjeta .icono {
	color: #4ade80;
	background: linear-gradient(135deg, rgba(74, 222, 128, 0.14), rgba(163, 230, 53, 0.1));
}
[data-tema="oscuro"] .tarjeta:hover {
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
[data-tema="oscuro"] .agenda-item::before {
	background: #06100b;
	border-color: #4ade80;
	box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
}
[data-tema="oscuro"] .wp-block-details {
	border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}
[data-tema="oscuro"] .preguntas .wp-block-details summary::after {
	color: #4ade80;
}
[data-tema="oscuro"] main span[style*="#5a6b61"] {
	color: #9db5a6 !important;
}
[data-tema="oscuro"] .wp-social-link {
	color: #e6f2ea !important;
}
[data-tema="oscuro"] footer .wp-block-group.alignwide {
	border-top-color: rgba(255, 255, 255, 0.1) !important;
}
[data-tema="oscuro"] .tarjeta-inscripcion {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
[data-tema="oscuro"] .carrusel-logos img {
	filter: brightness(0) invert(1);
}
[data-tema="oscuro"] .carrusel-logos img:hover {
	filter: none;
}
[data-tema="oscuro"] .filtros-difusion button:not([aria-pressed="true"]) {
	background: #10221a;
	border-color: rgba(255, 255, 255, 0.1);
}
[data-tema="oscuro"] .pieza .marco-pieza {
	background: #0a1711;
}
[data-tema="oscuro"] .codigo-hotel {
	background: #10221a;
	border-color: #4ade80;
}
[data-tema="oscuro"] .codigo-hotel strong {
	color: #4ade80;
}
[data-tema="oscuro"] .wp-lightbox-overlay .scrim {
	background-color: #06100b !important;
}
[data-tema="oscuro"] .wp-lightbox-overlay .close-button {
	color: #e6f2ea;
}
[data-tema="oscuro"] .mapa-contacto iframe {
	filter: invert(0.9) hue-rotate(180deg) saturate(0.8);
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
	.titulo-animado .texto-degradado {
		animation: none;
	}
	.arte-registro img {
		animation: none;
	}
	html {
		scroll-behavior: auto;
	}
	.js .reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.portada::before,
	.portada::after,
	.tarjeta-inscripcion::before,
	.js .carrusel-logos > .pista.animada {
		animation: none;
	}
}
