/* ==========================================================================
   TB Eventos – estilos del tema (sitio y editor)
   ========================================================================== */

:root {
	--tb-bg: #141414;
	--tb-surface: #1b1b1b;
	--tb-card: #1f1f1f;
	--tb-line: #2e2e2e;
	--tb-line-strong: #3d3d3d;
	--tb-accent: #f47b34;
	--tb-text: #f2efea;
	--tb-muted: #b3ada3;
	--tb-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--tb-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tb-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tb-gutter: clamp(20px, 4vw, 32px);
	--tb-header-h: 66px;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	background: var(--tb-bg);
	color: var(--tb-text);
	font-family: var(--tb-sans);
	-webkit-font-smoothing: antialiased;
}

/* Anclas: dejan lugar para el encabezado fijo */
.tb-section {
	scroll-margin-top: var(--tb-header-h);
}

/* ---------- Estructura base ---------- */

.wp-site-blocks > header {
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar .wp-site-blocks > header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header {
		top: 46px;
	}
}

.tb-container {
	width: 100%;
	max-width: 1264px;
	margin-inline: auto;
	padding-inline: var(--tb-gutter);
	box-sizing: border-box;
}

.tb-section {
	position: relative;
	padding-block: clamp(64px, 9vw, 104px);
	border-top: 1px solid var(--tb-line);
	background: var(--tb-bg);
}

.tb-section--alt {
	background: var(--tb-surface);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

/* ---------- Textos ---------- */

.tb-eyebrow {
	margin: 0 0 14px;
	font-family: var(--tb-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--tb-accent);
}

.tb-h2 {
	margin: 0;
	font-family: var(--tb-serif);
	font-size: clamp(32px, 4.2vw, 46px);
	font-weight: 500;
	line-height: 1.15;
	color: var(--tb-text);
}

.tb-h2--xl {
	font-size: clamp(40px, 5.4vw, 62px);
}

.tb-lead {
	margin: 18px 0 0;
	max-width: 56ch;
	font-size: 15px;
	line-height: 1.75;
	color: var(--tb-muted);
}

.tb-link {
	font-family: var(--tb-ui);
	font-size: 14px;
	font-weight: 600;
	color: var(--tb-accent);
	text-decoration: none;
}

.tb-link:hover,
.tb-link:focus-visible {
	color: var(--tb-text);
}

.tb-link--small {
	font-size: 13px;
}

.tb-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

/* ---------- Botones ---------- */

.tb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}

.tb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 20px;
	border: 1px solid transparent;
	font-family: var(--tb-ui);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tb-btn:focus-visible,
.tb-link:focus-visible,
.tb-nav a:focus-visible {
	outline: 2px solid var(--tb-accent);
	outline-offset: 3px;
}

.tb-btn--primary {
	background: var(--tb-accent);
	color: #141414;
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.tb-btn--primary:hover {
	background: var(--tb-text);
	color: #141414;
}

.tb-btn--outline {
	border-color: var(--tb-line-strong);
	background: transparent;
	color: var(--tb-text);
}

.tb-btn--outline:hover {
	border-color: var(--tb-accent);
	color: var(--tb-accent);
}

.tb-btn--small {
	padding: 10px 16px;
	font-size: 13px;
}

.tb-hero .tb-actions {
	flex-direction: column;
	align-items: flex-start;
}

.tb-icon {
	flex: none;
}

/* ---------- Marco con esquina naranja ---------- */

.tb-frame {
	position: relative;
}

.tb-frame::before {
	content: "";
	position: absolute;
	top: -14px;
	left: -14px;
	z-index: 2;
	width: 56px;
	height: 56px;
	border-top: 2px solid var(--tb-accent);
	border-left: 2px solid var(--tb-accent);
	pointer-events: none;
}

/* ---------- Encabezado ---------- */

.tb-header {
	background: var(--tb-bg);
	border-bottom: 1px solid var(--tb-line);
}

.tb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: var(--tb-header-h);
}

.tb-nav {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-left: auto;
}

.tb-nav a {
	font-family: var(--tb-ui);
	font-size: 13px;
	color: var(--tb-text);
	text-decoration: none;
}

.tb-nav a:hover {
	color: var(--tb-accent);
}

.tb-header__cta {
	border-color: var(--tb-accent);
	color: var(--tb-accent);
}

.tb-header__cta:hover {
	background: var(--tb-accent);
	color: #141414;
}

.tb-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--tb-text);
	text-decoration: none;
}

.tb-logo__img {
	display: block;
	width: auto;
	max-height: 40px;
}

.tb-logo__mark {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--tb-text);
	font-family: var(--tb-sans);
	font-size: 17px;
	font-weight: 600;
}

.tb-logo__mark::after {
	content: "";
	position: absolute;
	top: -5px;
	right: -5px;
	width: 9px;
	height: 9px;
	background: var(--tb-accent);
}

.tb-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.tb-logo__text strong {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.tb-logo__text em {
	font-size: 10px;
	font-style: normal;
	color: var(--tb-muted);
}

/* ---------- Portada ---------- */

.tb-hero {
	border-top: 0;
	padding-block: clamp(56px, 8vw, 96px) clamp(72px, 10vw, 120px);
}

.tb-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: center;
	gap: clamp(40px, 6vw, 80px);
}

.tb-hero__title {
	margin: 0;
	font-family: var(--tb-serif);
	font-size: clamp(40px, 5.2vw, 62px);
	font-weight: 500;
	line-height: 1.08;
	color: var(--tb-text);
}

.tb-hero__text {
	margin: 22px 0 0;
	max-width: 34ch;
	font-size: 17px;
	line-height: 1.6;
	color: var(--tb-muted);
}

.tb-hero__media {
	position: relative;
	padding-bottom: 28px;
}

.tb-hero__media .tb-frame {
	aspect-ratio: 16 / 9;
	background: var(--tb-accent);
}

.tb-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tb-hero__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--tb-accent);
	font-family: var(--tb-serif);
	font-size: clamp(60px, 9vw, 120px);
	font-weight: 600;
	color: #141414;
}

.tb-badge {
	position: absolute;
	bottom: 0;
	left: 24px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px 10px 14px;
	background: var(--tb-bg);
	border: 1px solid var(--tb-line);
}

.tb-badge__num {
	font-family: var(--tb-serif);
	font-size: 34px;
	font-weight: 500;
	line-height: 1;
	color: var(--tb-accent);
}

.tb-badge__text {
	font-family: var(--tb-ui);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tb-muted);
}

.tb-badge__extra {
	display: none;
}

/* ---------- Trayectoria ---------- */

.tb-trayectoria__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
	align-items: center;
	gap: clamp(32px, 6vw, 80px);
}

.tb-trayectoria__number {
	font-family: var(--tb-serif);
	font-size: clamp(96px, 14vw, 190px);
	font-weight: 500;
	line-height: 0.9;
	color: var(--tb-accent);
}

.tb-pillars {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--tb-ui);
	font-size: 12px;
	color: var(--tb-muted);
}

.tb-pillars li::before {
	content: "— ";
	color: var(--tb-muted);
}

/* ---------- Trabajos ---------- */

.tb-works {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.tb-work {
	margin: 0;
}

.tb-work__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	background: var(--tb-surface);
	border: 1px solid var(--tb-line);
}

.tb-work__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tb-work__placeholder {
	padding: 16px;
	text-align: center;
	font-size: 12px;
	color: #6b6760;
}

.tb-work__caption {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 14px;
	padding-left: 12px;
	border-left: 2px solid var(--tb-accent);
}

.tb-work__cat {
	font-family: var(--tb-ui);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tb-accent);
}

.tb-work__title {
	font-family: var(--tb-serif);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--tb-text);
}

.tb-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 32px;
	padding: 24px 32px;
	background: var(--tb-surface);
	border: 1px solid var(--tb-line);
}

.tb-banner__text {
	margin: 0;
	max-width: 52ch;
	font-family: var(--tb-serif);
	font-size: clamp(20px, 2.2vw, 25px);
	line-height: 1.35;
	color: var(--tb-text);
}

/* ---------- Servicios ---------- */

.tb-services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.tb-service {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 32px 28px;
	background: var(--tb-surface);
	border: 1px solid var(--tb-line);
}

.tb-service::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -1px;
	width: 28px;
	height: 2px;
	background: var(--tb-accent);
}

.tb-service--wide {
	grid-column: 1 / -1;
}

.tb-service__title {
	margin: 0;
	font-family: var(--tb-serif);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.15;
	color: var(--tb-text);
}

.tb-service__text {
	margin: 0;
	max-width: 70ch;
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--tb-muted);
}

/* ---------- Nosotros ---------- */

.tb-nosotros__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(40px, 6vw, 88px);
	align-items: start;
}

.tb-team {
	margin-top: 36px;
}

.tb-team .tb-frame {
	aspect-ratio: 16 / 10;
	background: var(--tb-bg);
}

.tb-team__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tb-team__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border: 1px solid var(--tb-line);
	font-size: 12px;
	color: #6b6760;
}

.tb-nosotros__text {
	margin: 24px 0 0;
	max-width: 60ch;
	font-size: 14.5px;
	line-height: 1.75;
	color: var(--tb-muted);
}

.tb-nosotros__steps .tb-eyebrow {
	margin-bottom: 28px;
	color: var(--tb-accent);
}

.tb-steps {
	display: grid;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tb-step {
	display: flex;
	gap: 22px;
}

.tb-step__num {
	flex: none;
	width: 32px;
	font-family: var(--tb-serif);
	font-size: 22px;
	line-height: 1.2;
	color: var(--tb-accent);
}

.tb-step__title {
	margin: 0 0 6px;
	font-family: var(--tb-sans);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tb-text);
}

.tb-step__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--tb-muted);
}

/* ---------- Testimonios ---------- */

.tb-quotes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.tb-quote {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 32px 28px;
	background: var(--tb-surface);
	border: 1px solid var(--tb-line);
}

.tb-quote__mark {
	font-family: var(--tb-serif);
	font-size: 52px;
	line-height: 0.6;
	color: var(--tb-accent);
}

.tb-quote__text {
	margin: 0;
	font-family: var(--tb-serif);
	font-size: 21px;
	font-style: italic;
	line-height: 1.4;
	color: var(--tb-text);
}

.tb-quote__author {
	margin-top: auto;
	font-family: var(--tb-ui);
	font-size: 12px;
	font-style: normal;
	color: var(--tb-muted);
}

/* ---------- Contacto ---------- */

.tb-contacto__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(40px, 6vw, 88px);
}

.tb-contact-list {
	display: grid;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tb-contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--tb-text);
}

.tb-contact-list li > div {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tb-contact-list .tb-icon {
	margin-top: 2px;
	color: var(--tb-accent);
}

.tb-contact-list a:not(.tb-link) {
	color: var(--tb-text);
	text-decoration: none;
}

.tb-contact-list a:not(.tb-link):hover {
	color: var(--tb-accent);
}

/* ---------- Pie de página ---------- */

.tb-footer {
	background: var(--tb-bg);
	border-top: 1px solid var(--tb-line);
}

.tb-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 22px;
	font-size: 12px;
	color: var(--tb-muted);
}

.tb-footer__copy {
	margin: 0;
}

.tb-footer__social {
	display: flex;
	gap: 22px;
}

.tb-footer__social a {
	color: var(--tb-muted);
	text-decoration: none;
}

.tb-footer__social a:hover {
	color: var(--tb-accent);
}

/* ---------- Páginas comunes (no home) ---------- */

.tb-page {
	max-width: 760px;
	margin-inline: auto;
	padding: 64px var(--tb-gutter);
}

/* ==========================================================================
   Tableta
   ========================================================================== */

@media (max-width: 900px) {
	.tb-hero__grid,
	.tb-trayectoria__grid,
	.tb-nosotros__grid,
	.tb-contacto__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tb-works,
	.tb-quotes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tb-services {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tb-hero__media {
		order: -1;
	}

	.tb-trayectoria__number {
		line-height: 1;
	}
}

/* ==========================================================================
   Celular
   ========================================================================== */

@media (max-width: 640px) {
	.tb-nav {
		display: none;
	}

	.tb-header__cta {
		width: 40px;
		height: 40px;
		padding: 0;
		margin-left: auto;
	}

	.tb-header__cta-text {
		display: none;
	}

	.tb-hero__media {
		padding-bottom: 36px;
	}

	.tb-badge {
		left: 12px;
	}

	.tb-badge__extra {
		display: inline;
	}

	.tb-actions,
	.tb-hero .tb-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.tb-section__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		margin-bottom: 28px;
	}

	.tb-works {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.tb-work__title {
		font-size: 18px;
	}

	.tb-banner {
		flex-direction: column;
		align-items: stretch;
		padding: 22px 20px;
	}

	.tb-services,
	.tb-quotes {
		grid-template-columns: minmax(0, 1fr);
	}

	.tb-pillars {
		flex-direction: column;
		gap: 6px;
	}

	.tb-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
