/* =========================================================
   Tres Luces — main.css
   Paleta y tipografía a ajustar en :root según tu marca.
   ========================================================= */

:root {
	--color-bg: #ffffff;
	--color-text: #2b2622;
	--color-cream: #f7f2ea;
	--color-gold: #c9a35b;
	--color-gold-dark: #a9843f;
	--color-border: #e6ddcd;

	--font-heading: "Cormorant Garamond", Georgia, serif;
	--font-body: "Poppins", -apple-system, sans-serif;

	--container-width: 1200px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
	font-size: 16px;
	line-height: 1.65;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* -------------------- Compatibilidad de grid con WPBakery -------------------- */
/*
   El tema Novo traía su propio Bootstrap, que es lo que le daba a WPBakery
   el ancho real de cada columna (25% para 4 columnas, 33.3% para 3, etc.).
   Nuestro tema no incluye Bootstrap completo, así que aquí replicamos solo
   las clases de grid que WPBakery necesita (equivalente a las columnas
   "vc_col-sm-1" a "vc_col-sm-12" de Bootstrap 3). Sin esto, las columnas se
   ajustan al ancho de su contenido en vez de repartirse el espacio, y la
   última puede terminar "cayendo" a una fila nueva si ya no cabe.
*/
.vc_row,
.wpb_row {
	margin-left: -15px;
	margin-right: -15px;
}

.vc_row::before,
.vc_row::after,
.wpb_row::before,
.wpb_row::after {
	content: "";
	display: table;
}

.vc_row::after,
.wpb_row::after {
	clear: both;
}

.wpb_column,
.vc_column_container {
	position: relative;
	float: left;
	width: 100%; /* Por defecto ocupan todo el ancho (se apilan en móvil). */
	min-height: 1px;
	padding-left: 15px;
	padding-right: 15px;
}

.wpb_column > .wpb_wrapper,
.vc_column_container > .vc_column-inner {
	padding-top: 0;
}

/* A partir de 768px, cada columna toma el ancho que le corresponde según
   cuántas columnas tenga la fila (clases que genera WPBakery: vc_col-sm-1
   hasta vc_col-sm-12, sobre una base de 12). */
@media (min-width: 768px) {
	.vc_col-sm-1  { width: 8.3333%; }
	.vc_col-sm-2  { width: 16.6667%; }
	.vc_col-sm-3  { width: 25%; }
	.vc_col-sm-4  { width: 33.3333%; }
	.vc_col-sm-5  { width: 41.6667%; }
	.vc_col-sm-6  { width: 50%; }
	.vc_col-sm-7  { width: 58.3333%; }
	.vc_col-sm-8  { width: 66.6667%; }
	.vc_col-sm-9  { width: 75%; }
	.vc_col-sm-10 { width: 83.3333%; }
	.vc_col-sm-11 { width: 91.6667%; }
	.vc_col-sm-12 { width: 100%; }

	/* Si WPBakery usa las clases md/lg en vez de sm (según versión/ajustes),
	   se comportan igual — el tema no maneja layouts distintos por tamaño. */
	.vc_col-md-1,  .vc_col-lg-1  { width: 8.3333%; }
	.vc_col-md-2,  .vc_col-lg-2  { width: 16.6667%; }
	.vc_col-md-3,  .vc_col-lg-3  { width: 25%; }
	.vc_col-md-4,  .vc_col-lg-4  { width: 33.3333%; }
	.vc_col-md-5,  .vc_col-lg-5  { width: 41.6667%; }
	.vc_col-md-6,  .vc_col-lg-6  { width: 50%; }
	.vc_col-md-7,  .vc_col-lg-7  { width: 58.3333%; }
	.vc_col-md-8,  .vc_col-lg-8  { width: 66.6667%; }
	.vc_col-md-9,  .vc_col-lg-9  { width: 75%; }
	.vc_col-md-10, .vc_col-lg-10 { width: 83.3333%; }
	.vc_col-md-11, .vc_col-lg-11 { width: 91.6667%; }
	.vc_col-md-12, .vc_col-lg-12 { width: 100%; }
}


a {
	color: var(--color-gold-dark);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--color-gold);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 500;
	letter-spacing: 0.03em;
	margin: 0 0 0.6em;
	line-height: 1.2;
}

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* -------------------- Header -------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	padding-bottom: 14px;
}

.site-branding img {
	max-height: 60px;
	width: auto;
}

.site-title-link {
	font-family: var(--font-heading);
	font-size: 1.6rem;
	color: var(--color-text);
}

.main-navigation ul {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: 8px 0;
	color: var(--color-text);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--color-gold-dark);
}

/* Submenús desplegables */
.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	flex-direction: column;
	gap: 0;
	min-width: 220px;
	background: #fff;
	border: 1px solid var(--color-border);
	padding: 8px 0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.main-navigation li:hover > ul {
	display: flex;
}

.main-navigation ul ul a {
	padding: 8px 18px;
	text-transform: none;
	font-size: 0.9rem;
}

.menu-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
	position: relative;
	z-index: 1001;
}

.menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-text);
	margin: 5px 0;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 999;
}

/* -------------------- WhatsApp flotante -------------------- */

.whatsapp-float {
	position: fixed;
	bottom: 22px;
	right: 22px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
	z-index: 998;
}

.whatsapp-float svg {
	width: 30px;
	height: 30px;
	fill: #fff;
}

/* -------------------- Contenido general -------------------- */

.site-main {
	min-height: 40vh;
}

.page-header {
	text-align: center;
	padding: 50px 0 30px;
}

.page-title {
	font-size: 2rem;
}

.post-grid,
.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	padding: 30px 0 60px;
}

.post-card__title,
.portfolio-card__title {
	font-size: 1.2rem;
	margin-top: 12px;
}

.post-card__thumb img,
.portfolio-card__thumb img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

/* -------------------- Portafolio single -------------------- */

.portfolio-single__header {
	text-align: center;
	padding: 50px 0 20px;
}

.portfolio-single__image img {
	margin: 0 auto 30px;
}

.portfolio-single__gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 40px;
}

.portfolio-single__content {
	max-width: 760px;
	margin: 0 auto 60px;
}

/* -------------------- Shortcode: Nuestras Sesiones (tarjetas) -------------------- */

.tresluces-sessions {
	padding: 40px 0;
}

.tresluces-sessions__title {
	text-align: center;
	color: var(--color-gold-dark);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 1.8rem;
	margin-bottom: 40px;
}

.tresluces-sessions__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

.session-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.session-card__name {
	font-size: 1.3rem;
	margin: 0;
}

.session-card__button {
	border: 1px solid var(--color-gold);
	padding: 6px 16px;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

.session-card__button:hover {
	background: var(--color-gold);
	color: #fff;
}

.session-card__image {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--color-cream);
}

.session-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.session-card__image:hover img {
	transform: scale(1.04);
}

@media (max-width: 900px) {
	.tresluces-sessions__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.tresluces-sessions__grid {
		grid-template-columns: 1fr;
	}
}

/* -------------------- Elemento WPBakery: Categories (contenedor + tarjetas) -------------------- */

.tl-categories--style-big .tl-category-card__title,
.tl-categories--style-big .tl-category-overlay__title {
	font-size: 1.8rem;
}

.tl-categories--style-big .tl-category-card__image,
.tl-categories--style-big .tl-category-overlay {
	height: 765px;
}

.tl-categories--style-normal .tl-category-card__title,
.tl-categories--style-normal .tl-category-overlay__title {
	font-size: 1.2rem;
}

.tl-categories--style-normal .tl-category-overlay {
	height: 400px;
}

@media (max-width: 900px) {
	.tl-categories--style-big .tl-category-card__image,
	.tl-categories--style-big .tl-category-overlay {
		height: 500px;
	}
}

@media (max-width: 600px) {
	.tl-categories--style-big .tl-category-card__image,
	.tl-categories--style-big .tl-category-overlay {
		height: 420px;
	}
}

.tl-categories--grid {
	display: grid;
	gap: 0;
}

.tl-categories--desktop-1.tl-categories--grid { grid-template-columns: repeat(1, 1fr); }
.tl-categories--desktop-2.tl-categories--grid { grid-template-columns: repeat(2, 1fr); }
.tl-categories--desktop-3.tl-categories--grid { grid-template-columns: repeat(3, 1fr); }
.tl-categories--desktop-4.tl-categories--grid { grid-template-columns: repeat(4, 1fr); }

.tl-categories--carousel {
	position: relative;
}

.tl-categories--carousel .tl-categories__track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 10px;
}

.tl-categories--carousel .tl-categories__item {
	flex: 0 0 calc(100% / var(--tl-cats-desktop, 3) - 18px);
	scroll-snap-align: start;
}

.tl-categories__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.9);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: var(--color-gold-dark);
	z-index: 3;
}

.tl-categories__arrow--prev { left: -10px; }
.tl-categories__arrow--next { right: -10px; }

.tl-categories--carousel.tl-categories--desktop-1 { --tl-cats-desktop: 1; }
.tl-categories--carousel.tl-categories--desktop-2 { --tl-cats-desktop: 2; }
.tl-categories--carousel.tl-categories--desktop-3 { --tl-cats-desktop: 3; }
.tl-categories--carousel.tl-categories--desktop-4 { --tl-cats-desktop: 4; }

@media (max-width: 900px) {
	.tl-categories--tablet-1.tl-categories--grid { grid-template-columns: repeat(1, 1fr); }
	.tl-categories--tablet-2.tl-categories--grid { grid-template-columns: repeat(2, 1fr); }
	.tl-categories--tablet-3.tl-categories--grid { grid-template-columns: repeat(3, 1fr); }

	.tl-categories--carousel.tl-categories--tablet-1 .tl-categories__item { flex-basis: calc(100% - 18px); }
	.tl-categories--carousel.tl-categories--tablet-2 .tl-categories__item { flex-basis: calc(50% - 18px); }
	.tl-categories--carousel.tl-categories--tablet-3 .tl-categories__item { flex-basis: calc(33.33% - 18px); }
}

@media (max-width: 600px) {
	.tl-categories--mobile-1.tl-categories--grid { grid-template-columns: repeat(1, 1fr); }
	.tl-categories--mobile-2.tl-categories--grid { grid-template-columns: repeat(2, 1fr); }

	.tl-categories--carousel.tl-categories--mobile-1 .tl-categories__item { flex-basis: calc(100% - 18px); }
	.tl-categories--carousel.tl-categories--mobile-2 .tl-categories__item { flex-basis: calc(50% - 18px); }
}



.tl-category-card {
	width: 100%;
	margin-bottom: 40px;
}

@media (max-width: 700px) {
	.tl-category-card {
		margin-bottom: 28px;
	}
}

.tl-category-card--align-left .tl-category-card__image { margin-right: auto; }
.tl-category-card--align-center .tl-category-card__image { margin-left: auto; margin-right: auto; }
.tl-category-card--align-right .tl-category-card__image { margin-left: auto; }

.tl-category-card--align-left .tl-category-card__head,
.tl-category-card--align-left .tl-category-card__title { text-align: left; }
.tl-category-card--align-center .tl-category-card__head,
.tl-category-card--align-center .tl-category-card__title { text-align: center; justify-content: center; }
.tl-category-card--align-right .tl-category-card__head,
.tl-category-card--align-right .tl-category-card__title { text-align: right; justify-content: flex-end; }

@media (max-width: 600px) {
	/*
	   Confirmado con el HTML real: cada tarjeta vive en su PROPIA columna
	   de WPBakery (no comparten un mismo contenedor). El problema real es
	   que la columna misma se estira a 100% de ancho en móvil — así
	   funciona WPBakery por defecto — sin importar lo que le pongamos a
	   la tarjeta de adentro. Por eso apuntamos directo a la columna
	   (probamos las 2 clases más comunes que usa WPBakery para esto) y la
	   forzamos a 50% cuando detecta una tarjeta en modo "Mitad" adentro.
	   Cubrimos tanto el sistema viejo (float) como el nuevo (flex) de
	   columnas de WPBakery, por si acaso.
	*/
	.wpb_column:has(.tl-category-card--mobile-half),
	.vc_column_container:has(.tl-category-card--mobile-half) {
		width: 50% !important;
		flex: 0 0 50% !important;
		max-width: 50% !important;
		float: left !important;
		padding-left: 6px !important;
		padding-right: 6px !important;
	}

	.tl-category-card--mobile-half {
		width: 100%;
	}
}

.tl-category-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 14px;
}

.tl-category-card__subtitle {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-gold-dark);
	margin-bottom: 4px;
}

.tl-category-card__title {
	font-size: 1.6rem;
	letter-spacing: 0.06em;
	margin: 0;
	white-space: nowrap;
}

.tl-category-card__button {
	display: inline-block;
	border: 1px solid var(--color-gold);
	padding: 10px 22px;
	font-family: var(--font-body);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	white-space: nowrap;
	color: var(--color-text);
}

.tl-category-card__button:hover {
	background: var(--color-gold);
	color: #fff;
}

.tl-category-card__image {
	overflow: hidden;
}

.tl-category-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 500px) {
	.tl-category-card__head {
		flex-wrap: wrap;
	}

	.tl-category-card__title {
		font-size: 1.3rem;
	}
}

/* Estilo "overlay": texto sobre la imagen de fondo, como en /pt-portfolio/ */
.tl-category-overlay {
	position: relative;
	min-height: 320px;
	background-size: cover;
	background-position: center;
	background-color: var(--color-cream);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow: hidden;
}

.tl-category-overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0) 45%);
}

.tl-cat-item--text-black::before {
	background: linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0) 45%);
}

.tl-category-overlay__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.tl-category-overlay__content {
	position: relative;
	z-index: 2;
	padding: 24px;
	width: 100%;
	text-align: center;
}

.tl-cat-item--text-white .tl-category-overlay__content {
	color: #fff;
}

.tl-cat-item--text-black .tl-category-overlay__content {
	color: var(--color-text);
}

.tl-category-overlay__subtitle {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 4px;
	opacity: 0.9;
}

.tl-category-overlay__title {
	margin: 0 0 12px;
}

.tl-category-overlay__button {
	display: inline-block;
	padding: 10px 22px;
	border: 1px solid currentColor;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	position: relative;
	z-index: 2;
	background: transparent;
}

.tl-cat-item--text-white .tl-category-overlay__button:hover {
	background: #fff;
	color: var(--color-text);
}

.tl-cat-item--text-black .tl-category-overlay__button:hover {
	background: var(--color-text);
	color: #fff;
}

.tl-category-overlay__link-cover {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* -------------------- Elementos WPBakery: paquete general -------------------- */

/* Encabezado */
.tl-heading {
	margin-bottom: 30px;
}

.tl-heading--center {
	text-align: center;
}

.tl-heading--left {
	text-align: left;
}

.tl-heading--right {
	text-align: right;
}

.tl-heading--decor-line .tl-heading__title {
	padding-bottom: 12px;
	position: relative;
	display: inline-block;
}

.tl-heading--decor-line .tl-heading__title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 2px;
	background: var(--color-gold);
}

.tl-heading--center.tl-heading--decor-line .tl-heading__title::after {
	left: 50%;
	transform: translateX(-50%);
}

.tl-heading--right.tl-heading--decor-line .tl-heading__title::after {
	left: auto;
	right: 0;
}

.tl-heading__title {
	font-size: 2rem;
	margin-bottom: 8px;
}

.tl-heading__title span,
.tl-category-overlay__title span {
	color: var(--color-gold);
}

.tl-heading__subtitle {
	color: var(--color-gold-dark);
	font-size: 1rem;
	max-width: 620px;
	margin: 0 auto 8px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.85rem;
}

.tl-heading--left .tl-heading__subtitle {
	margin: 0;
}

/* Botón */
.tl-button-container {
	display: block;
}

.tl-button-container.left { text-align: left; }
.tl-button-container.center { text-align: center; }
.tl-button-container.right { text-align: right; }

.tl-btn {
	display: inline-block;
	padding: 12px 28px;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* Style: "Button" — con borde, como el original */
.tl-btn--style1 {
	border: 1px solid var(--color-gold);
	color: var(--color-text);
}

.tl-btn--style1:hover {
	background: var(--color-gold);
	color: #fff;
}

.tl-btn--style1.tl-btn--fill {
	background: var(--color-gold);
	color: #fff;
}

.tl-btn--style1.tl-btn--fill:hover {
	background: var(--color-gold-dark);
}

.tl-btn--round-small { border-radius: 4px; }
.tl-btn--round-medium { border-radius: 10px; }
.tl-btn--round-big { border-radius: 999px; }

/* Style: "Link" — solo texto subrayado, sin caja */
.tl-btn--style2 {
	border: none;
	padding: 0;
	text-decoration: underline;
	color: var(--color-gold-dark);
}

.tl-btn--style2:hover {
	color: var(--color-text);
}

/* Caja de icono */
.tl-icon-box-container {
	display: grid;
	gap: 24px;
}

.tl-icon-box-container--cols-1 { grid-template-columns: repeat(1, 1fr); }
.tl-icon-box-container--cols-2 { grid-template-columns: repeat(2, 1fr); }
.tl-icon-box-container--cols-3 { grid-template-columns: repeat(3, 1fr); }
.tl-icon-box-container--cols-4 { grid-template-columns: repeat(4, 1fr); }

.tl-icon-box {
	position: relative;
	text-align: center;
	padding: 20px;
}

.tl-icon-box__icon {
	font-size: 2.2rem;
	color: var(--color-gold);
	display: inline-block;
	margin-bottom: 12px;
}

.tl-icon-box__title {
	margin-bottom: 8px;
}

.tl-icon-box__text {
	color: var(--color-text);
	opacity: 0.8;
	font-size: 0.95rem;
}

.tl-icon-box__link-cover {
	position: absolute;
	inset: 0;
}

/* Galería */
.tl-gallery--grid {
	display: grid;
	gap: 16px;
}

.tl-gallery--grid.tl-gallery--cols-1 { grid-template-columns: repeat(1, 1fr); }
.tl-gallery--grid.tl-gallery--cols-2 { grid-template-columns: repeat(2, 1fr); }
.tl-gallery--grid.tl-gallery--cols-3 { grid-template-columns: repeat(3, 1fr); }
.tl-gallery--grid.tl-gallery--cols-4 { grid-template-columns: repeat(4, 1fr); }

.tl-gallery--grid .tl-gallery__item img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
}

/* Masonry: usa columnas CSS nativas, cada imagen conserva su proporción */
.tl-gallery--masonry {
	column-gap: 16px;
}

.tl-gallery--masonry.tl-gallery--cols-1 { column-count: 1; }
.tl-gallery--masonry.tl-gallery--cols-2 { column-count: 2; }
.tl-gallery--masonry.tl-gallery--cols-3 { column-count: 3; }
.tl-gallery--masonry.tl-gallery--cols-4 { column-count: 4; }

.tl-gallery--masonry .tl-gallery__item {
	display: block;
	margin-bottom: 16px;
}

.tl-gallery--masonry .tl-gallery__item img {
	width: 100%;
}

/* Sin espacio entre imágenes (Gap: Off) */
.tl-gallery--no-gap.tl-gallery--grid { gap: 0; }
.tl-gallery--no-gap.tl-gallery--masonry { column-gap: 0; }
.tl-gallery--no-gap .tl-gallery--masonry .tl-gallery__item { margin-bottom: 0; }

/* Columnas por dispositivo (tablet/móvil) */
@media (max-width: 900px) {
	.tl-gallery--grid.tl-gallery--tablet-1 { grid-template-columns: repeat(1, 1fr); }
	.tl-gallery--grid.tl-gallery--tablet-2 { grid-template-columns: repeat(2, 1fr); }
	.tl-gallery--grid.tl-gallery--tablet-3 { grid-template-columns: repeat(3, 1fr); }
	.tl-gallery--masonry.tl-gallery--tablet-1 { column-count: 1; }
	.tl-gallery--masonry.tl-gallery--tablet-2 { column-count: 2; }
	.tl-gallery--masonry.tl-gallery--tablet-3 { column-count: 3; }
}

@media (max-width: 600px) {
	.tl-gallery--grid.tl-gallery--mobile-1 { grid-template-columns: repeat(1, 1fr); }
	.tl-gallery--grid.tl-gallery--mobile-2 { grid-template-columns: repeat(2, 1fr); }
	.tl-gallery--masonry.tl-gallery--mobile-1 { column-count: 1; }
	.tl-gallery--masonry.tl-gallery--mobile-2 { column-count: 2; }
}

/* Hover "Type 1": oscurece la imagen al pasar el mouse */
.tl-gallery--hover-type_1 .tl-gallery__item {
	position: relative;
	overflow: hidden;
	display: block;
}

.tl-gallery--hover-type_1 .tl-gallery__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.tl-gallery--hover-type_1 .tl-gallery__item:hover::after {
	opacity: 1;
}

/* Título/descripción bajo cada miniatura (Show Heading / Show Description) */
.tl-gallery__item-caption {
	display: block;
	padding: 8px 0;
	font-size: 0.85rem;
	color: var(--color-text);
}

.tl-gallery__item-caption strong {
	display: block;
}

.tl-gallery__item-caption span {
	display: block;
	opacity: 0.7;
	font-size: 0.8rem;
}

/* Botón "Load More" */
.tl-gallery__load-more-wrap {
	text-align: center;
	margin-top: 24px;
}

.tl-gallery__load-more {
	display: inline-block;
	padding: 12px 32px;
	border: 1px solid var(--color-gold);
	background: none;
	color: var(--color-text);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	cursor: pointer;
}

.tl-gallery__load-more:hover {
	background: var(--color-gold);
	color: #fff;
}

/* Tipo "Slider": una imagen a la vez, con flechas */
.tl-gallery-slider {
	position: relative;
	overflow: hidden;
}

.tl-gallery-slider__track {
	position: relative;
	aspect-ratio: 16 / 10;
}

.tl-gallery-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease;
}

.tl-gallery-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.tl-gallery-slider__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tl-gallery-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.85);
	color: var(--color-gold-dark);
	font-size: 1.4rem;
	cursor: pointer;
	z-index: 2;
}

.tl-gallery-slider__arrow--prev { left: 14px; }
.tl-gallery-slider__arrow--next { right: 14px; }

/* Equipo */
.tl-team-container--grid {
	display: grid;
	gap: 24px;
}

.tl-team-container--grid.tl-team-container--desktop-1 { grid-template-columns: repeat(1, 1fr); }
.tl-team-container--grid.tl-team-container--desktop-2 { grid-template-columns: repeat(2, 1fr); }
.tl-team-container--grid.tl-team-container--desktop-3 { grid-template-columns: repeat(3, 1fr); }
.tl-team-container--grid.tl-team-container--desktop-4 { grid-template-columns: repeat(4, 1fr); }

.tl-team-container--carousel {
	position: relative;
}

.tl-team-container--carousel .tl-team-container__track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 10px;
}

.tl-team-container--carousel .tl-team-container__item {
	flex: 0 0 260px;
	scroll-snap-align: start;
}

.tl-team {
	text-align: center;
}

.tl-team__social {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 8px;
	font-size: 0.8rem;
}

.tl-team__social a {
	color: var(--color-gold-dark);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.tl-team__photo {
	width: 160px;
	height: 160px;
	margin: 0 auto 16px;
	border-radius: 50%;
	overflow: hidden;
}

.tl-team__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tl-team__name {
	margin-bottom: 2px;
}

.tl-team__role {
	color: var(--color-gold-dark);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* Testimonio */
.tl-testimonials-container {
	position: relative;
	padding-bottom: 40px;
}

.tl-testimonials-container__track {
	position: relative;
}

.tl-testimonials-container__item {
	transition: opacity var(--tl-testi-speed, 300ms) ease;
}

.tl-testimonials-container__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.tl-testimonials-container__dots button {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: var(--color-border);
	padding: 0;
	cursor: pointer;
}

.tl-testimonials-container__dots button.is-active {
	background: var(--color-gold);
}

.tl-testimonial {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
}

.tl-testimonial__quote {
	font-family: var(--font-heading);
	font-size: 1.3rem;
	font-style: italic;
	margin-bottom: 16px;
}

.tl-testimonial__author {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 0.9rem;
	text-align: left;
}

.tl-testimonial__name {
	display: block;
	font-weight: 600;
}

.tl-testimonial__post {
	display: block;
	font-size: 0.8rem;
	opacity: 0.7;
}

.tl-testimonial__author img {
	border-radius: 50%;
	width: 40px;
	height: 40px;
	object-fit: cover;
}

@media (max-width: 700px) {
	.tl-gallery--grid.tl-gallery--cols-3,
	.tl-gallery--grid.tl-gallery--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.tl-gallery--masonry.tl-gallery--cols-3,
	.tl-gallery--masonry.tl-gallery--cols-4 {
		column-count: 2;
	}
}

/* -------------------- Elementos: Video, Side Img, Photo Carousel, Before/After -------------------- */

.tl-video {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
}

.tl-video__cover {
	position: relative;
	cursor: pointer;
}

.tl-video__cover img {
	width: 100%;
	display: block;
}

.tl-video__title {
	position: absolute;
	bottom: 20px;
	left: 20px;
	color: #fff;
	margin: 0;
	text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.tl-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255,255,255,0.9);
	border: none;
	font-size: 1.2rem;
	cursor: pointer;
	color: var(--color-gold-dark);
}

.tl-video.is-playing .tl-video__cover {
	display: none;
}

.tl-video__frame iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	display: block;
}

.tl-side-img {
	overflow: hidden;
}

.tl-side-img--circle {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
}

.tl-side-img--circle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tl-side-img--square img {
	width: 100%;
}

.tl-photo-carousel {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 10px;
}

.tl-photo-carousel__item {
	flex: 0 0 140px;
	scroll-snap-align: start;
}

.tl-photo-carousel__item img {
	width: 140px;
	height: 140px;
	object-fit: cover;
}

.tl-photo-carousel__link {
	display: inline-block;
	margin-top: 12px;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-gold-dark);
}

.tl-before-after {
	position: relative;
	overflow: hidden;
	user-select: none;
}

.tl-before-after__new img,
.tl-before-after__old img {
	width: 100%;
	display: block;
}

.tl-before-after__old-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
	overflow: hidden;
}

.tl-before-after__old {
	width: 100%;
	height: 100%;
}

.tl-before-after__old img {
	height: auto;
	max-width: none;
}

.tl-before-after__range {
	position: absolute;
	bottom: 12px;
	left: 5%;
	width: 90%;
	margin: 0;
}

/* -------------------- Accordion -------------------- */

.tl-accordion__item {
	border-bottom: 1px solid var(--color-border);
}

.tl-accordion__top {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 0;
	cursor: pointer;
}

.tl-accordion__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	position: relative;
}

.tl-accordion__icon::before,
.tl-accordion__icon::after {
	content: "";
	position: absolute;
	background: var(--color-gold-dark);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.tl-accordion__icon::before {
	width: 12px;
	height: 2px;
}

.tl-accordion__icon::after {
	width: 2px;
	height: 12px;
	transition: transform 0.2s ease;
}

.tl-accordion__item.is-active .tl-accordion__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
	opacity: 0;
}

.tl-accordion__heading {
	font-family: var(--font-heading);
	font-size: 1.1rem;
}

.tl-accordion__body {
	display: none;
	padding-bottom: 18px;
}

.tl-accordion__item.is-active .tl-accordion__body {
	display: block;
}

/* -------------------- Tabs -------------------- */

.tl-tabs__head {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--color-border);
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.tl-tabs__tab-button {
	padding: 12px 20px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	color: var(--color-text);
	opacity: 0.6;
}

.tl-tabs__tab-button.is-active {
	opacity: 1;
	border-bottom-color: var(--color-gold);
	color: var(--color-gold-dark);
}

/* -------------------- Lightbox de galería -------------------- */

.tl-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: #fff;
	z-index: 9999;
	flex-direction: column;
}

.tl-lightbox.is-open {
	display: flex;
}

.tl-lightbox__close {
	position: absolute;
	top: 16px;
	right: 20px;
	background: none;
	border: none;
	color: #444;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
}

.tl-lightbox__stage {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 40px 60px;
	min-height: 0;
}

.tl-lightbox__imgs {
	position: relative;
	flex: 1;
	height: 100%;
	overflow: hidden;
}

.tl-lightbox__img {
	position: absolute;
	inset: 0;
	margin: auto;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	opacity: 0;
	visibility: hidden;
}

.tl-lightbox__img.is-active {
	opacity: 1;
	visibility: visible;
}

.tl-lightbox__side-arrow {
	background: none;
	border: none;
	color: #999;
	font-size: 2.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 10px;
}

.tl-lightbox__side-arrow:hover {
	color: #333;
}

.tl-lightbox__bar {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 14px 0 22px;
	border-top: 1px solid #eee;
}

.tl-lightbox__bar-btn {
	background: none;
	border: none;
	color: #666;
	font-size: 1rem;
	cursor: pointer;
	padding: 8px 10px;
}

.tl-lightbox__bar-btn:hover {
	color: #000;
}

.tl-lightbox__counter {
	color: #888;
	font-size: 0.85rem;
	padding: 0 8px;
	min-width: 60px;
	text-align: center;
}

.tl-lightbox__sep {
	width: 1px;
	height: 18px;
	background: #ddd;
	margin: 0 10px;
}

/* Panel de miniaturas en cuadrícula */
.tl-lightbox__grid {
	display: none;
	flex-wrap: wrap;
	gap: 8px;
	padding: 20px 40px;
	overflow-y: auto;
	max-height: 60vh;
}

.tl-lightbox.is-grid-open .tl-lightbox__grid {
	display: flex;
}

.tl-lightbox.is-grid-open .tl-lightbox__stage {
	display: none;
}

.tl-lightbox__grid-item {
	width: 90px;
	height: 90px;
	padding: 0;
	border: 2px solid transparent;
	background: none;
	cursor: pointer;
	overflow: hidden;
}

.tl-lightbox__grid-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tl-lightbox__grid-item.is-active {
	border-color: var(--color-gold);
}

@media (max-width: 600px) {
	.tl-lightbox__stage {
		padding: 20px 10px;
	}

	.tl-lightbox__side-arrow {
		font-size: 1.8rem;
	}

	.tl-lightbox__bar-btn {
		font-size: 0.85rem;
		padding: 6px 6px;
	}
}

/* -------------------- Animaciones CSS (css_animation) -------------------- */

.tl-animate {
	opacity: 0;
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.tl-anim-fadeIn { }
.tl-anim-fadeInUp { transform: translateY(30px); }
.tl-anim-fadeInDown { transform: translateY(-30px); }
.tl-anim-fadeInLeft { transform: translateX(-30px); }
.tl-anim-fadeInRight { transform: translateX(30px); }

.tl-animate.is-visible {
	opacity: 1;
	transform: none;
}

/* -------------------- Footer -------------------- */

.footer-topbar {
	background: var(--color-border-light, #ececec);
	text-align: center;
	padding: 10px 0;
	font-size: 0.85rem;
	margin-top: 60px;
}

.footer-topbar a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
}

.footer-topbar a:hover {
	text-decoration: underline;
}

.footer-topbar__dot {
	margin: 0 14px;
	opacity: 0.6;
}

.site-footer {
	background: var(--color-cream);
	border-top: 1px solid var(--color-border);
	padding: 50px 0 24px;
	font-size: 0.9rem;
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	padding-bottom: 30px;
}

.footer-columns--3 {
	grid-template-columns: repeat(3, 1fr);
}

.footer-columns--4 {
	grid-template-columns: repeat(4, 1fr);
}

.footer-column p {
	margin: 0 0 10px;
}

.footer-column ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-column ul li {
	margin-bottom: 12px;
}

.footer-column ul a {
	color: inherit;
	text-decoration: underline;
}

.footer-widget-title {
	font-size: 1.05rem;
	margin-bottom: 14px;
}

.footer-widget-title--underline {
	position: relative;
	padding-bottom: 10px;
	margin-bottom: 16px;
}

.footer-widget-title--underline::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 28px;
	height: 2px;
	background: currentColor;
	opacity: 0.5;
}

.footer-col1-logo {
	max-width: 220px;
	height: auto;
	margin-bottom: 12px;
}

.footer-column .wp-block-embed,
.footer-column iframe {
	max-width: 100%;
}

.site-info {
	text-align: center;
	opacity: 0.7;
	padding-top: 14px;
	border-top: 1px solid var(--color-border);
}

/* -------------------- Responsive -------------------- */

@media (max-width: 900px) {
	.post-grid,
	.portfolio-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-columns,
	.footer-columns--3,
	.footer-columns--4 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.main-navigation {
		position: fixed;
		top: 0;
		right: -280px;
		width: 280px;
		height: 100vh;
		background: #fff;
		padding: 80px 24px 24px;
		transition: right 0.3s ease;
		overflow-y: auto;
		box-shadow: -8px 0 24px rgba(0, 0, 0, 0.1);
		z-index: 1000;
	}

	.main-navigation.is-open {
		right: 0;
	}

	.main-navigation ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.main-navigation ul ul {
		position: static;
		border: none;
		box-shadow: none;
		padding-left: 12px;
	}

	.menu-toggle {
		display: block;
	}

	.post-grid,
	.portfolio-grid,
	.portfolio-single__gallery {
		grid-template-columns: 1fr;
	}
}

/* -------------------- Num Box (Tres Luces) -------------------- */
/* Basado en el CSS real de "PT Num Box" (assets/css/pt-addons.css), con
   la línea divisoria original y alineación a la izquierda, adaptado a la
   paleta clara del tema (el original estaba pensado para fondo oscuro). */

.tl-num-box {
	overflow: hidden;
}

.tl-num-box-item {
	position: relative;
	transition: transform 0.25s ease;
}

.tl-num-box-item:hover {
	transform: translateY(-4px);
}

.tl-num-box-item::before {
	content: "";
	position: absolute;
	top: 8px;
	left: -15px;
	width: 1px;
	height: 40px;
	background: var(--color-gold);
}

.tl-num-box-num {
	display: block;
	font-family: var(--font-heading);
	font-size: 3.2rem;
	font-weight: 500;
	line-height: 1;
	color: var(--color-gold-dark);
}

.tl-num-box-suffix {
	font-style: normal;
}

.tl-num-box-title {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.5;
	margin-top: 15px;
}

/* -------------------- Before/After Slider (Tres Luces) -------------------- */
/* Basado en el CSS real de "PT Image Comparison Slider"
   (assets/css/pt-addons.css, sección "Image Comparison Slider"). En vez
   de ajustar el ancho de ".old" en píxeles por JS (como hacía el JS
   original del tema Novo, que necesitaba recalcular en cada resize de
   ventana), se usa clip-path con la misma variable --tl-ba-pos: más
   simple y no depende de un listener de resize. */

.image-comparison-slider {
	position: relative;
	overflow: hidden;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}

.image-comparison-slider img {
	-webkit-user-drag: none;
	user-drag: none;
}

.image-comparison-slider .new,
.image-comparison-slider .old {
	line-height: 0;
}

.image-comparison-slider img {
	width: 100%;
	display: block;
}

.image-comparison-slider .old {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	clip-path: inset(0 calc(100% - var(--tl-ba-pos, 50%)) 0 0);
}

.image-comparison-slider .resize {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	pointer-events: none;
}

.image-comparison-slider .line {
	position: absolute;
	left: var(--tl-ba-pos, 50%);
	top: 0;
	bottom: 0;
	width: 2px;
	margin-left: -1px;
	background: #fff;
	cursor: ew-resize;
}

.image-comparison-slider__handle {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 46px;
	height: 46px;
	margin: -23px 0 0 -23px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-gold-dark);
	color: #fff;
	border-radius: 50%;
	transition: transform 0.25s ease;
	transform: scale(0);
}

.image-comparison-slider:hover .image-comparison-slider__handle {
	transform: scale(1);
}

.image-comparison-slider.is-dragging .image-comparison-slider__handle {
	transform: scale(0.9);
}

/* -------------------- Photo Carousel (Tres Luces) -------------------- */
/* Basado en el CSS real de "PT Photo Carousel" (pt-addons.css, sección
   "Photo Carousel"). El scroll infinito original lo hacía Owl Carousel
   (jQuery); aquí es una animación CSS pura (ver @keyframes en el PHP del
   elemento), sin depender de ninguna librería de carrusel. */

.photo-carousel {
	position: relative;
}

.photo-carousel .carousel {
	overflow: hidden;
}

.photo-carousel .carousel__track {
	display: flex;
	width: max-content;
	animation: tl-photo-carousel-scroll var(--tl-pc-duration, 30s) linear infinite;
}

.photo-carousel:hover .carousel__track {
	animation-play-state: paused;
}

.photo-carousel .item {
	flex: 0 0 auto;
	width: 160px;
	padding-bottom: 160px;
	background-position: 50%;
	background-size: cover;
	background-repeat: no-repeat;
	margin: 0 1px;
	position: relative;
}

@media (max-width: 480px) {
	.photo-carousel .item {
		width: 120px;
		padding-bottom: 120px;
	}
}

.photo-carousel > a {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	padding: 14px 20px;
	line-height: 14px;
	color: #fff;
	background-color: var(--color-gold-dark);
	text-decoration: none;
	white-space: nowrap;
}

.photo-carousel > a:hover {
	filter: grayscale(40%);
}

.photo-carousel > a i,
.photo-carousel > a .dashicons {
	margin-right: 10px;
}
