/*
Theme Name:   Sparkling Toluca
Theme URI:    https://www.mariachistoluca.com/
Description:  Tema hijo de Sparkling para Mariachi Toluca: estilo actualizado, plantillas de portada y de ciudad con campos ACF, galería, vídeos diferidos y datos estructurados.
Author:       Codevent
Author URI:   https://codevent.com/
Template:     sparkling
Version:      1.0.0
Requires PHP: 7.4
Text Domain:  sparkling-toluca
*/

/* ==========================================================================
   Fuentes (autoalojadas)
   ========================================================================== */
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--tl-ink: #1b1916;
	--tl-text: #3b3833;
	--tl-muted: #6e685f;
	--tl-bg: #faf7f2;
	--tl-surface: #ffffff;
	--tl-alt: #f2ece2;
	--tl-line: #e6dfd3;
	--tl-dark: #141414;
	--tl-dark-2: #1f1d1b;
	--tl-red: #b3122e;
	--tl-red-dark: #8e0d23;
	--tl-green: #0b6b3a;
	--tl-wa: #128c4b;
	--tl-wa-dark: #0d6e3a;
	--tl-gold: #c9a24a;
	--tl-radius: 14px;
	--tl-radius-sm: 8px;
	--tl-shadow: 0 1px 2px rgba(27, 25, 22, .06), 0 8px 24px rgba(27, 25, 22, .08);
	--tl-shadow-lg: 0 20px 50px rgba(27, 25, 22, .18);
	--tl-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
	--tl-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--tl-max: 1200px;
	--tl-gutter: clamp(16px, 4vw, 32px);
	--tl-header-h: 76px;
}

/* ==========================================================================
   Base (sobrescribe Sparkling / Bootstrap 3)
   ========================================================================== */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tl-header-h) + 16px); }
html.tl-noscroll { overflow: hidden; }
body,
body.custom-background {
	background: var(--tl-bg) !important;
	color: var(--tl-text);
	font-family: var(--tl-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body, .entry-content { color: var(--tl-text) !important; font-family: var(--tl-sans) !important; font-size: 17px !important; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .entry-title, .entry-title a {
	font-family: var(--tl-serif);
	font-weight: 400;
	color: var(--tl-ink);
	letter-spacing: -.01em;
	line-height: 1.15;
}
h4, h5, h6 { font-family: var(--tl-sans); font-weight: 700; letter-spacing: 0; }
a { color: var(--tl-red); transition: color .15s ease; }
a:hover, a:focus { color: var(--tl-red-dark); }
img { max-width: 100%; height: auto; }
::selection { background: var(--tl-red); color: #fff; }
:focus-visible { outline: 3px solid var(--tl-gold); outline-offset: 2px; }

.tl-container { width: 100%; max-width: var(--tl-max); margin: 0 auto; padding-left: var(--tl-gutter); padding-right: var(--tl-gutter); }
.tl-container--narrow { max-width: 860px; }

/* ==========================================================================
   Cabecera
   ========================================================================== */
.tl-header { position: sticky; top: 0; z-index: 1000; }
.admin-bar .tl-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tl-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .tl-header { top: 0; } }

.navbar.navbar-default.tl-navbar {
	background: rgba(20, 20, 20, .97) !important;
	border: 0;
	border-radius: 0;
	margin: 0;
	min-height: var(--tl-header-h);
	box-shadow: none;
	transition: box-shadow .2s ease;
}
.tl-header.is-scrolled .tl-navbar { box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.tl-navbar__inner { display: flex; align-items: center; gap: 24px; min-height: var(--tl-header-h); }
.tl-navbar .navbar-header { float: none; display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; }
.tl-navbar #logo { float: none; margin: 0; padding: 0; }
.tl-navbar #logo img { display: block; height: 52px; width: auto; max-width: 220px; }
.tl-navbar .navbar-collapse { flex: 1 1 auto; padding: 0; border: 0; box-shadow: none; }
.tl-navbar .navbar-collapse.collapse { display: flex !important; justify-content: flex-end; }
.tl-navbar .navbar-nav { float: none; display: flex; gap: 4px; margin: 0; }
.tl-navbar .navbar-nav > li { float: none; }
.navbar-default.tl-navbar .navbar-nav > li > a {
	color: #ecE6dc !important;
	font-family: var(--tl-sans);
	font-size: 15px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	padding: 10px 14px;
	line-height: 1.2;
	border-radius: 999px;
	background: transparent;
}
.navbar-default.tl-navbar .navbar-nav > li > a:hover,
.navbar-default.tl-navbar .navbar-nav > li > a:focus,
.navbar-default.tl-navbar .navbar-nav > .active > a,
.navbar-default.tl-navbar .navbar-nav > .current-menu-item > a,
.navbar-default.tl-navbar .navbar-nav > .current-menu-parent > a,
.navbar-default.tl-navbar .navbar-nav > .current-menu-ancestor > a {
	color: #fff !important;
	background: rgba(255, 255, 255, .1) !important;
}
.navbar-default.tl-navbar .navbar-nav > li:hover { background: transparent; }
.tl-navbar .dropdown-menu {
	background: var(--tl-dark-2);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: var(--tl-radius-sm);
	box-shadow: var(--tl-shadow-lg);
	padding: 8px;
	min-width: 230px;
}
.tl-navbar .dropdown-menu > li > a { color: #ddd6ca !important; padding: 8px 12px; border-radius: 6px; font-size: 14.5px; }
.tl-navbar .dropdown-menu > li > a:hover,
.tl-navbar .dropdown-menu > li > a:focus { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }
.tl-navbar .navbar-nav .caret { display: none; }
.tl-navbar__cta { flex: 0 0 auto; }
.tl-navbar .navbar-toggle { display: none; }

/* Franja tricolor */
.tl-stripe { display: flex; height: 4px; }
.tl-stripe span { flex: 1; }
.tl-stripe span:nth-child(1) { background: var(--tl-green); }
.tl-stripe span:nth-child(2) { background: #f4efe6; }
.tl-stripe span:nth-child(3) { background: var(--tl-red); }

@media (max-width: 991px) {
	:root { --tl-header-h: 64px; }
	.tl-navbar__inner { flex-wrap: wrap; gap: 0; }
	.tl-navbar .navbar-header { width: 100%; min-height: var(--tl-header-h); }
	.tl-navbar #logo img { height: 42px; }
	.tl-navbar .navbar-toggle {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
		margin: 0; padding: 12px 10px; border: 0; background: transparent !important;
	}
	.tl-navbar .navbar-toggle .icon-bar { display: block; width: 24px; height: 2px; margin: 0 !important; background: #fff; border-radius: 2px; }
	.tl-navbar .navbar-collapse.collapse { display: none !important; width: 100%; }
	.tl-navbar .navbar-collapse.collapse.in,
	.tl-navbar .navbar-collapse.collapsing { display: block !important; }
	.tl-navbar .navbar-nav { flex-direction: column; padding: 8px 0 16px; }
	.navbar-default.tl-navbar .navbar-nav > li > a { padding: 12px 8px; border-radius: 8px; font-size: 16px; }
	.tl-navbar .dropdown-menu { position: static; float: none; display: block; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px; }
	.tl-navbar .tl-navbar__cta { display: none; }
}

/* ==========================================================================
   Botones
   ========================================================================== */
.tl-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.tl-buttons--stack { flex-direction: column; }
.tl-buttons--stack .tl-btn { width: 100%; justify-content: center; }
.tl-btn,
.entry-content .tl-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 14px 22px;
	border-radius: 999px;
	font-family: var(--tl-sans);
	font-size: 16px; font-weight: 600; line-height: 1.1;
	text-decoration: none !important;
	border: 2px solid transparent;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
	cursor: pointer;
}
.tl-btn:hover { transform: translateY(-1px); }
.tl-btn .tl-ico { width: 18px; height: 18px; flex: 0 0 auto; }
.tl-btn--sm { padding: 10px 18px; font-size: 14.5px; }
.tl-btn--primary { background: var(--tl-red); color: #fff !important; }
.tl-btn--primary:hover, .tl-btn--primary:focus { background: var(--tl-red-dark); color: #fff !important; }
.tl-btn--whatsapp { background: var(--tl-wa); color: #fff !important; }
.tl-btn--whatsapp:hover, .tl-btn--whatsapp:focus { background: var(--tl-wa-dark); color: #fff !important; }
.tl-btn--ghost { background: rgba(255, 255, 255, .08); color: #fff !important; border-color: rgba(255, 255, 255, .55); }
.tl-btn--ghost:hover, .tl-btn--ghost:focus { background: #fff; color: var(--tl-ink) !important; border-color: #fff; }
.tl-card .tl-btn--ghost, .tl-section .tl-btn--ghost { color: var(--tl-ink) !important; border-color: var(--tl-line); background: var(--tl-surface); }
.tl-card .tl-btn--ghost:hover, .tl-section .tl-btn--ghost:hover { border-color: var(--tl-ink); }

/* ==========================================================================
   Hero
   ========================================================================== */
.tl-landing, .tl-landing__inner { width: 100%; }
.tl-hero {
	position: relative;
	isolation: isolate;
	display: flex; align-items: flex-end;
	min-height: min(78vh, 720px);
	padding: 120px 0 64px;
	color: #fff;
	background: var(--tl-dark);
	overflow: hidden;
}
.tl-hero--city { min-height: min(62vh, 560px); padding-bottom: 52px; }
.tl-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; z-index: -2; }
.tl-hero__overlay {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(12, 11, 10, .88) 0%, rgba(12, 11, 10, .62) 45%, rgba(12, 11, 10, .15) 100%),
		linear-gradient(0deg, rgba(12, 11, 10, .55) 0%, rgba(12, 11, 10, 0) 45%);
}
.tl-hero__inner { position: relative; }
.tl-hero__title {
	color: #fff !important;
	font-size: clamp(38px, 6vw, 68px);
	max-width: 15ch;
	margin: 0 0 16px;
	text-wrap: balance;
}
.tl-hero--city .tl-hero__title { font-size: clamp(36px, 5.4vw, 60px); max-width: 18ch; }
.tl-hero__subtitle { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 56ch; margin: 0 0 28px; color: rgba(255, 255, 255, .88); }
.tl-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 15px; color: rgba(255, 255, 255, .9); }
.tl-hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.tl-hero__facts .tl-ico { color: var(--tl-gold); }

.tl-eyebrow {
	display: inline-block;
	font-family: var(--tl-sans);
	font-size: 13px; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase;
	color: var(--tl-red);
	margin: 0 0 12px;
}
.tl-hero .tl-eyebrow, .tl-eyebrow--light { color: var(--tl-gold); }
.tl-breadcrumb { font-size: 14px; margin-bottom: 18px; color: rgba(255, 255, 255, .75); display: flex; flex-wrap: wrap; gap: 8px; }
.tl-breadcrumb a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.tl-breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   Secciones y contenido de las landing
   ========================================================================== */
.tl-main { display: block; }
.tl-section { padding: clamp(56px, 8vw, 96px) 0; }
.tl-section--tight { padding: clamp(40px, 6vw, 64px) 0; }
.tl-section--alt { background: var(--tl-alt); }
.tl-section__title { font-size: clamp(30px, 3.6vw, 44px); margin: 0 0 28px; text-wrap: balance; }
.tl-section__title--sm { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 20px; }

/* Contenido del editor en la portada: bloques "grupo" como secciones */
.tl-article .entry-content > * { max-width: var(--tl-max); margin-left: auto; margin-right: auto; padding-left: var(--tl-gutter); padding-right: var(--tl-gutter); }
.tl-article .entry-content > .tl-block,
.tl-article .entry-content > .wp-block-group.tl-block { max-width: none; padding: clamp(56px, 8vw, 96px) 0; margin: 0; }
.tl-article .entry-content > .tl-block--alt { background: var(--tl-alt); }
.tl-article .entry-content > .tl-block--dark { background: var(--tl-dark); color: #e9e3d8; }
.tl-article .entry-content > .tl-block--dark h2,
.tl-article .entry-content > .tl-block--dark h3 { color: #fff; }
/* Los temas clásicos envuelven los hijos del bloque Grupo en .wp-block-group__inner-container */
.tl-article .wp-block-group.tl-split > .wp-block-group__inner-container,
.tl-article .wp-block-group.tl-cards > .wp-block-group__inner-container,
.tl-article .wp-block-group.tl-card > .wp-block-group__inner-container,
.tl-article .wp-block-group.tl-split__text > .wp-block-group__inner-container { display: contents; }
.tl-block > :not(.wp-block-group__inner-container),
.tl-block > .wp-block-group__inner-container > * { max-width: var(--tl-max); margin-left: auto !important; margin-right: auto !important; padding-left: var(--tl-gutter); padding-right: var(--tl-gutter); box-sizing: border-box; }
.tl-block h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 0; margin-bottom: 20px; }
.tl-block .tl-eyebrow { display: block; margin-bottom: 10px; }
.tl-block .tl-eyebrow + h2 { margin-top: 0 !important; }
.tl-split__text > p:last-child, .tl-split__text > .wp-block-group__inner-container > p:last-child { margin-bottom: 0; }
.tl-flow p { margin: 0 0 1.1em; }
.tl-flow h2 { font-size: clamp(28px, 3vw, 38px); margin: 1.6em 0 .6em; }
.tl-flow h3 { font-size: clamp(22px, 2.2vw, 27px); margin: 1.4em 0 .5em; }
.tl-flow ul, .tl-flow ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.tl-flow li { margin-bottom: .4em; }
.tl-flow > :first-child { margin-top: 0; }
.tl-lead { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.55; color: var(--tl-ink); }

/* Tarjetas de servicios */
.tl-cards {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 28px !important;
}
.tl-cards > .tl-card, .tl-card {
	background: var(--tl-surface);
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius);
	padding: 26px 24px;
	box-shadow: var(--tl-shadow);
}
.tl-cards > .tl-card { margin: 0 !important; }
.tl-cards .tl-card h3 { font-size: 24px; margin: 0 0 8px; }
.tl-cards .tl-card h3::before {
	content: ""; display: block; width: 36px; height: 3px; margin-bottom: 16px;
	background: linear-gradient(90deg, var(--tl-green) 0 33%, #e9e2d6 33% 66%, var(--tl-red) 66% 100%);
	border-radius: 2px;
}
.tl-cards .tl-card p { margin: 0; font-size: 16px; color: var(--tl-muted); }

@media (max-width: 900px) { .tl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tl-cards { grid-template-columns: 1fr; } }

/* Dos columnas: texto + imagen */
.tl-split { display: grid !important; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.tl-split img { border-radius: var(--tl-radius); box-shadow: var(--tl-shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tl-split .wp-block-image { margin: 0; }
@media (max-width: 860px) { .tl-split { grid-template-columns: 1fr; } }

/* Lista con checks */
.tl-checks { list-style: none; padding: 0 !important; }
.tl-checks li { position: relative; padding-left: 30px; }
.tl-checks li::before {
	content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
	background: var(--tl-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ==========================================================================
   Ciudad
   ========================================================================== */
.tl-city { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.tl-city__main .entry-content { font-size: 17.5px; }
.tl-city__main .entry-content > p:first-child { font-size: clamp(19px, 1.8vw, 21px); color: var(--tl-ink); line-height: 1.55; }
.tl-city__aside { align-self: stretch; }
.tl-card--sticky { position: sticky; top: calc(var(--tl-header-h) + 24px); }
.admin-bar .tl-card--sticky { top: calc(var(--tl-header-h) + 56px); }
.tl-card__title { font-size: 24px; margin: 0 0 16px; }
.tl-card__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tl-muted); margin: 20px 0 10px; }
.tl-facts { list-style: none; margin: 0; padding: 0; }
.tl-facts li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--tl-line); font-size: 15.5px; line-height: 1.45; }
.tl-facts li:last-child { border-bottom: 0; }
.tl-facts .tl-ico { color: var(--tl-red); flex: 0 0 auto; margin-top: 1px; }
.tl-facts strong { color: var(--tl-ink); }
.tl-tags { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tags li { font-size: 13.5px; padding: 5px 11px; border-radius: 999px; background: var(--tl-alt); color: var(--tl-text); }
.tl-card .tl-buttons { margin-top: 20px; }
@media (max-width: 960px) {
	.tl-city { grid-template-columns: 1fr; }
	.tl-card--sticky { position: static; }
}

/* Etiquetas de otras zonas */
.tl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tl-chips a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 9px 16px; border-radius: 999px;
	background: var(--tl-surface); border: 1px solid var(--tl-line);
	color: var(--tl-ink); font-size: 15px; font-weight: 500; text-decoration: none;
	transition: border-color .15s ease, color .15s ease;
}
.tl-chips a:hover { border-color: var(--tl-red); color: var(--tl-red); }
.tl-chips .tl-ico { width: 16px; height: 16px; color: var(--tl-red); }

/* Listado de zonas agrupado */
.tl-zones { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 8px !important; }
.tl-zone { background: var(--tl-surface); border: 1px solid var(--tl-line); border-radius: var(--tl-radius); padding: 22px 22px 14px; }
.tl-zone__title { display: flex; align-items: center; gap: 8px; font-size: 22px; margin: 0 0 10px; }
.tl-zone__title .tl-ico { color: var(--tl-red); }
.tl-zone ul { list-style: none; margin: 0; padding: 0; }
.tl-zone li { border-top: 1px solid var(--tl-line); margin: 0; }
.tl-zone li a { display: block; padding: 9px 0; color: var(--tl-text); text-decoration: none; font-weight: 500; }
.tl-zone li a:hover { color: var(--tl-red); }

/* ==========================================================================
   Galería y vídeos
   ========================================================================== */
.tl-gallery { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin: 0 0 32px; }
.tl-gallery--2 { grid-template-columns: repeat(2, 1fr); }
.tl-gallery--4 { grid-template-columns: repeat(4, 1fr); }
.tl-gallery__item { display: block; position: relative; overflow: hidden; border-radius: var(--tl-radius-sm); background: var(--tl-alt); aspect-ratio: 4 / 3; }
.tl-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tl-gallery__item:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .tl-gallery, .tl-gallery--4 { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.tl-videos { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 0 0 12px; }
.tl-video { margin: 0; }
.tl-video__btn, .tl-video__iframe {
	display: block; position: relative; width: 100%; aspect-ratio: 16 / 9;
	border: 0; padding: 0; border-radius: var(--tl-radius-sm) !important; overflow: hidden; background: #000; cursor: pointer;
}
.tl-video__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .2s ease; }
.tl-video__btn:hover img { opacity: 1; }
.tl-video__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 68px; height: 68px; border-radius: 50%;
	background: var(--tl-red); color: #fff;
	display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
	transition: transform .2s ease;
}
.tl-video__btn:hover .tl-video__play { transform: translate(-50%, -50%) scale(1.08); }
.tl-video__play .tl-ico { width: 30px; height: 30px; margin-left: 3px; }
.tl-video figcaption { font-size: 14.5px; color: var(--tl-muted); margin-top: 10px; }

/* Lightbox */
.tl-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(10, 10, 10, .94); display: none; align-items: center; justify-content: center; padding: 24px; }
.tl-lightbox.is-open { display: flex; }
.tl-lightbox img { max-width: min(1400px, 100%); max-height: 88vh; border-radius: 6px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.tl-lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 50%; width: 52px; height: 52px; font-size: 32px; line-height: 1; cursor: pointer; }
.tl-lightbox button:hover { background: rgba(255, 255, 255, .22); }
.tl-lightbox__close { top: 18px; right: 18px; }
.tl-lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.tl-lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Preguntas frecuentes
   ========================================================================== */
.tl-faq__item { background: var(--tl-surface); border: 1px solid var(--tl-line); border-radius: var(--tl-radius-sm); margin-bottom: 12px; transition: box-shadow .2s ease; }
.tl-faq__item[open] { box-shadow: var(--tl-shadow); }
.tl-faq__item summary {
	list-style: none; cursor: pointer; position: relative;
	padding: 20px 56px 20px 22px;
	font-family: var(--tl-sans); font-weight: 600; font-size: 17px; color: var(--tl-ink);
}
.tl-faq__item summary::-webkit-details-marker { display: none; }
.tl-faq__item summary::after {
	content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
	border-right: 2px solid var(--tl-red); border-bottom: 2px solid var(--tl-red);
	transform: rotate(45deg); transition: transform .2s ease;
}
.tl-faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.tl-faq__answer { padding: 0 22px 18px; color: var(--tl-text); }
.tl-faq__answer p { margin: 0 0 .8em; }

/* ==========================================================================
   CTA + formulario
   ========================================================================== */
.tl-cta { background: var(--tl-dark); color: #e3ddd2; position: relative; }
.tl-cta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--tl-green) 0 33.3%, #f4efe6 33.3% 66.6%, var(--tl-red) 66.6% 100%); }
.tl-cta__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.tl-cta .tl-section__title { color: #fff; }
.tl-cta__text > p { font-size: 18px; color: #cfc8bc; }
.tl-contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.tl-contact-list li { margin-bottom: 12px; }
.tl-contact-list a { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 18px; font-weight: 500; text-decoration: none; }
.tl-contact-list a:hover { color: var(--tl-gold); }
.tl-contact-list .tl-ico { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--tl-gold); }
.tl-cta__form { background: var(--tl-surface); color: var(--tl-text); border-radius: var(--tl-radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--tl-shadow-lg); }
.tl-legal-note { font-size: 12.5px; line-height: 1.5; color: var(--tl-muted); margin: 14px 0 0; }
@media (max-width: 900px) { .tl-cta__grid { grid-template-columns: 1fr; } }

/* Contact Form 7 */
.wpcf7 p { margin: 0 0 14px; }
.wpcf7 label { display: block; font-size: 14px; font-weight: 600; color: var(--tl-ink); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select {
	width: 100%; margin-top: 6px;
	padding: 12px 14px; font-size: 16px; font-family: var(--tl-sans);
	border: 1px solid var(--tl-line); border-radius: var(--tl-radius-sm); background: #fdfbf8; color: var(--tl-ink);
	box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.wpcf7 textarea { min-height: 120px; height: 140px; }
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--tl-red); box-shadow: 0 0 0 3px rgba(179, 18, 46, .15); outline: 0; }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; font-size: 14px; display: inline; }
.wpcf7 input[type="submit"], .wpcf7 .wpcf7-submit {
	background: var(--tl-red); color: #fff; border: 0; border-radius: 999px;
	padding: 14px 30px; font-size: 16px; font-weight: 600; font-family: var(--tl-sans); cursor: pointer;
	transition: background-color .15s ease;
}
.wpcf7 input[type="submit"]:hover { background: var(--tl-red-dark); }
.wpcf7 form .wpcf7-response-output { border-radius: var(--tl-radius-sm); margin: 14px 0 0; }

/* ==========================================================================
   Páginas normales, entradas y barra lateral (plantillas del tema padre)
   ========================================================================== */
.main-content-area { margin-top: clamp(32px, 5vw, 56px); margin-bottom: clamp(40px, 6vw, 72px); }
.post-inner-content,
.page .post-inner-content,
.single .post-inner-content {
	background: var(--tl-surface);
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius);
	box-shadow: var(--tl-shadow);
	padding: clamp(24px, 4vw, 48px);
}
.entry-title, .page-title { font-size: clamp(32px, 4vw, 46px); margin: 0 0 20px; }
.entry-content h2 { font-size: clamp(26px, 2.8vw, 34px); margin: 1.5em 0 .6em; }
.entry-content h3 { font-size: clamp(21px, 2.1vw, 25px); margin: 1.3em 0 .5em; }
.entry-content img { border-radius: var(--tl-radius-sm); }
.entry-meta, .entry-meta a { color: var(--tl-muted); font-size: 14px; }
#secondary .well { background: var(--tl-surface); border: 1px solid var(--tl-line); border-radius: var(--tl-radius); box-shadow: var(--tl-shadow); padding: 28px; }
#secondary .widget-title { font-family: var(--tl-sans); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tl-ink); }
#secondary .widget a { color: var(--tl-text); }
#secondary .widget a:hover { color: var(--tl-red); }
.btn-default, .btn.btn-default.read-more, .more-link {
	border-radius: 999px !important;
}
.btn-default, .btn.btn-default.read-more { background: var(--tl-red) !important; border-color: var(--tl-red) !important; color: #fff !important; }
.btn-default:hover, .btn.btn-default.read-more:hover { background: var(--tl-red-dark) !important; border-color: var(--tl-red-dark) !important; }
/* Galería de bloques de WordPress en páginas normales */
.entry-content .wp-block-gallery { gap: 10px; }
.entry-content .wp-block-gallery .wp-block-image img { border-radius: var(--tl-radius-sm); }
/* Vídeos incrustados en páginas normales */
.entry-content .wp-block-embed iframe { border-radius: var(--tl-radius-sm); }
.tl-edit { text-align: center; font-size: 13px; margin: 24px 0; }
.tl-edit a { color: var(--tl-muted); }

/* ==========================================================================
   Pie
   ========================================================================== */
#footer-area { display: none; }
.tl-footer { background: var(--tl-dark); color: #b9b2a6; font-size: 15px; }
.tl-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.tl-footer__brand img { width: 200px; height: auto; margin-bottom: 18px; }
.tl-footer__brand p { max-width: 36ch; line-height: 1.6; }
.tl-footer__title { font-family: var(--tl-sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 6px 0 16px; }
.tl-footer-list { list-style: none; margin: 0; padding: 0; }
.tl-footer-list li { margin: 0 0 9px; }
.tl-footer a { color: #ddd6ca; text-decoration: none; }
.tl-footer a:hover { color: #fff; text-decoration: underline; }
.tl-footer-list--icons li { display: flex; align-items: center; gap: 10px; }
.tl-footer-list--icons a { display: inline-flex; align-items: center; gap: 10px; }
.tl-footer-list--icons .tl-ico { width: 18px; height: 18px; color: var(--tl-gold); flex: 0 0 auto; }
.tl-footer__more { font-size: 14px; color: var(--tl-gold) !important; }
.tl-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; font-size: 13.5px; color: #8d877d; }
@media (max-width: 900px) { .tl-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tl-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; } }

/* Barra fija de contacto en móvil */
.tl-mobilebar { display: none; }
@media (max-width: 767px) {
	body { padding-bottom: 68px; }
	.tl-mobilebar {
		display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
		background: rgba(20, 20, 20, .97); box-shadow: 0 -6px 20px rgba(0, 0, 0, .2);
	}
	.tl-mobilebar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none; color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
	.tl-mobilebar .tl-ico { width: 18px; height: 18px; }
	.tl-mobilebar .tl-mobilebar__primary { background: var(--tl-red); border-color: var(--tl-red); }
	.joinchat { --bottom: 84px !important; }
	.scroll-to-top { display: none !important; }
	.tl-hero { min-height: auto; padding: 72px 0 40px; }
	.tl-hero__buttons .tl-btn { flex: 1 1 100%; justify-content: center; }
	.tl-hero__facts { gap: 8px 18px; font-size: 14px; }
}

/* Botón "volver arriba" del tema padre */
.scroll-to-top { background: var(--tl-dark-2); border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
