/*!
Theme Name: TerrasiJD
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: terrasijd
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

TerrasiJD is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

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

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
/* Sin regla a:visited: así los links visitados conservan el color
   normal de su contexto (navbar, footer, botones) en vez del morado
   por defecto de Underscores. */
a {
	color: var(--tjd-gold-text, #8A6624);
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

/* Acotado a <article>: WordPress también pone .page/.single en el <body>,
   y el margen inferior en el body dejaba una franja blanca bajo el footer. */
article.post,
article.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

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

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

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

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# TerrasiJD — layout del sitio y animaciones
# (complementa terrasijd-ui.css; solo layout, sin redefinir el kit)
--------------------------------------------------------------*/

/* ----- Escala editorial ----- */
.tjd-kicker {
	color: var(--tjd-gold-text);
	font-weight: 700;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .14em;
	margin: 0 0 10px;
}

.tjd-heading-xl {
	font-size: clamp(28px, 4vw, 44px);
	margin: 0 0 28px;
	max-width: 720px;
}

.tjd-section {
	padding: 88px 0;
}

/* ----- Hero ----- */
.tjd-hero {
	position: relative;
	overflow: hidden;
}

.tjd-hero--home {
	padding: 120px 24px 128px;
}

.tjd-hero--home h1 {
	font-size: clamp(40px, 6.5vw, 74px);
	max-width: 15ch;
	line-height: 1.05;
}

.tjd-hero--page {
	padding: 84px 24px;
}

.tjd-hero__inner {
	position: relative;
	z-index: 1;
}

.tjd-hero__watermark {
	position: absolute;
	right: 6%;
	top: -40px;
	height: 130%;
	width: auto;
	opacity: .06;
	pointer-events: none;
	z-index: 0;
	will-change: transform;
}

.tjd a.tjd-btn--hero-outline,
.tjd-btn--hero-outline {
	border: 1.5px solid rgba(255, 255, 255, .45);
	color: #fff;
	background: transparent;
}

.tjd a.tjd-btn--hero-outline:hover,
.tjd-btn--hero-outline:hover {
	border-color: var(--tjd-gold);
	color: var(--tjd-gold);
}

/* ----- Navbar sticky ----- */
.tjd-navbar {
	position: sticky;
	top: 0;
	z-index: 60;
	transition: transform .3s ease;
	will-change: transform;
}

.tjd-navbar.is-compact {
	min-height: 56px;
	box-shadow: 0 8px 30px rgba(0, 27, 65, .35);
}

.tjd-navbar.is-compact .tjd-navbar__brand img {
	height: 56px;
}

/* Patrón asfcanada: al bajar solo se desvanece el menú;
   logo y CTAs permanecen siempre visibles */
@media (min-width: 861px) {
	.tjd-navbar__links {
		transition: opacity .28s ease, transform .28s ease, visibility .28s;
	}

	.tjd-navbar.is-menu-hidden .tjd-navbar__links {
		opacity: 0;
		transform: translateY(-10px);
		visibility: hidden;
		pointer-events: none;
	}
}

.tjd-navbar__brand img {
	height: 64px;
	transition: height .25s ease, opacity .25s ease;
}

/* Los dos logos ocupan la misma celda: se alternan con opacidad */
.tjd-navbar__brand {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.tjd-navbar__logo--color {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: left center;
	opacity: 0;
}

/* Estado "bajando" (is-menu-hidden): sin fondo, logo a color.
   Doble clase para ganar a .is-compact (que pinta el fondo azul) */
.tjd-navbar.is-menu-hidden,
.tjd-navbar.is-compact.is-menu-hidden {
	background: transparent !important;
	box-shadow: none !important;
}

.tjd-navbar.is-menu-hidden .tjd-navbar__logo--blanco {
	opacity: 0;
}

.tjd-navbar.is-menu-hidden .tjd-navbar__logo--color {
	opacity: 1;
}

/* La cápsula necesita sombra propia cuando el header pierde el fondo */
.tjd-navbar.is-menu-hidden .tjd-pill__btn {
	box-shadow: 0 6px 24px rgba(0, 27, 65, .18);
}

/* Subrayado dorado animado en los links */
.tjd-navbar__links a {
	position: relative;
}

.tjd-navbar__links a::after {
	content: "";
	position: absolute;
	left: 15px;
	right: 15px;
	bottom: 5px;
	height: 2px;
	background: var(--tjd-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}

.tjd-navbar__links a:hover::after,
.tjd-navbar__links a.is-active::after {
	transform: scaleX(1);
}

/* ----- Secciones auxiliares ----- */
.tjd-why {
	color: var(--tjd-navy);
}

.tjd-why h3 {
	margin: 14px 0 8px;
	font-size: 19px;
}

.tjd-why p {
	margin: 0;
	color: var(--tjd-muted-fg);
}

.tjd-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	text-align: center;
}

@media (max-width: 860px) {
	.tjd-stats {
		grid-template-columns: repeat(2, 1fr);
	}
}

.tjd-stat__num {
	display: block;
	font-size: clamp(40px, 5vw, 64px);
	font-weight: 800;
	color: var(--tjd-navy);
	letter-spacing: -.02em;
	line-height: 1;
}

.tjd-stat__label {
	display: block;
	margin-top: 8px;
	color: var(--tjd-muted-fg);
	font-size: 14px;
}

.tjd-cta-band {
	background: linear-gradient(135deg, var(--tjd-navy) 0%, var(--tjd-navy-dark) 100%);
	border-top: 4px solid var(--tjd-gold);
	color: #fff;
	padding: 56px 0;
}

.tjd-cta-band h2 {
	color: #fff;
	margin: 0 0 8px;
	font-size: clamp(24px, 3vw, 34px);
}

.tjd-cta-band p {
	color: #C7D2E6;
	margin: 0;
}

.tjd-cta-band__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.tjd-split {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 48px;
	align-items: start;
}

.tjd-split--contact {
	grid-template-columns: 7fr 5fr;
}

@media (max-width: 860px) {
	.tjd-split,
	.tjd-split--contact {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

.tjd-service-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.tjd-service-list li {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.tjd-service-list .tjd-icon {
	color: var(--tjd-gold-text);
}

.tjd-card__photo {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--tjd-radius) var(--tjd-radius) 0 0;
	margin: -1px -1px 14px;
}

.tjd-map {
	width: 100%;
	height: auto;
	border-radius: var(--tjd-radius-lg);
	border: 1px solid var(--tjd-border);
	display: block;
}

.tjd-contact-data {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: grid;
	gap: 12px;
	font-size: 15.5px;
}

.tjd-contact-data .tjd-icon {
	color: var(--tjd-gold-text);
	margin-right: 6px;
}

.tjd-case-meta {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 18px 0 26px;
}

.tjd-filter {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 20px;
}

.tjd-filter .tjd-badge {
	text-decoration: none;
}

.tjd-prose > * + * {
	margin-top: 1em;
}

.tjd-prose h2 {
	margin-top: 1.6em;
	font-size: 24px;
}

.tjd-footer__logo {
	height: 56px;
	width: auto;
}

/* ----- Banda de cifras (azul marino) ----- */
.tjd-stats-band {
	background: linear-gradient(135deg, var(--tjd-navy) 0%, var(--tjd-navy-dark) 100%);
	padding: 72px 0;
}

.tjd-stats-band .tjd-stat__num {
	color: #fff;
}

.tjd-stats-band .tjd-stat__label {
	color: #C7D2E6;
}

/* ----- "Por qué TerrasiJD": lista apilada del split ----- */
.tjd-why-intro {
	color: var(--tjd-muted-fg);
	font-size: 16px;
	max-width: 44ch;
	margin: 0;
}

.tjd-why-list {
	display: grid;
	gap: 16px;
}

.tjd-why-list .tjd-why {
	background: #fff;
	border: 1px solid var(--tjd-border);
	border-radius: var(--tjd-radius-lg);
	padding: 20px 24px;
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 16px;
}

.tjd-why-list .tjd-why .tjd-icon {
	grid-row: 1 / span 2;
	color: var(--tjd-gold-text);
	margin-top: 3px;
}

.tjd-why-list .tjd-why h3 {
	margin: 0 0 6px;
}

/* ----- Micro-interacciones ----- */
.tjd-btn--link .tjd-icon {
	transition: transform .2s ease;
}

.tjd-card:hover .tjd-btn--link .tjd-icon {
	transform: translateX(3px);
}

.tjd-card {
	transition: transform .2s ease, box-shadow .2s ease;
}

.tjd-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 40px rgba(0, 27, 65, .14);
}

details.tjd-accordion__item .tjd-accordion__body {
	transform: translateY(-4px);
	opacity: 0;
	transition: transform .3s ease, opacity .3s ease;
}

details.tjd-accordion__item[open] .tjd-accordion__body {
	transform: none;
	opacity: 1;
}

/* ----- Scroll-reveal y hero (estados manejados por animations.js) ----- */
.tjd-reveal-item {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .35s ease-out, transform .35s ease-out;
}

.tjd-reveal-item.is-revealed {
	opacity: 1;
	transform: none;
}

.tjd-hero-seq {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .4s ease-out, transform .4s ease-out;
}

.tjd-hero-seq.is-in {
	opacity: 1;
	transform: none;
}

/* ----- Reduced motion: sin movimiento ----- */
@media (prefers-reduced-motion: reduce) {

	.tjd-reveal-item,
	.tjd-hero-seq {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.tjd-card,
	.tjd-navbar,
	.tjd-navbar__brand img,
	.tjd-navbar__links a::after,
	details.tjd-accordion__item .tjd-accordion__body {
		transition: none;
	}

	.tjd-card:hover {
		transform: none;
	}

	.tjd-hero__watermark {
		transform: none !important;
	}
}

/*--------------------------------------------------------------
# TerrasiJD — rediseño editorial (fotografía, filas numeradas)
--------------------------------------------------------------*/

/* ----- Tratamiento fotográfico de marca ----- */
.tjd-photo {
	position: relative;
	overflow: hidden;
	border-radius: var(--tjd-radius-lg);
}

.tjd-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.85);
}

.tjd-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 44, 104, .28);
	pointer-events: none;
}

.tjd-photo--dark::after {
	background: rgba(0, 27, 65, .42);
}

/* ----- Kicker numerado ----- */
.tjd-kicker__num {
	font-weight: 800;
	letter-spacing: .04em;
}

.tjd-hero__kicker .tjd-kicker__num,
.tjd-cta-band .tjd-kicker__num,
.tjd-stats-band .tjd-kicker__num {
	color: var(--tjd-gold);
}

/* ----- Hero con imagen a sangre ----- */
.tjd-hero--home {
	min-height: 90vh;
	display: flex;
	align-items: center;
}

.tjd-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.tjd-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.85);
}

.tjd-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 27, 65, .68);
}

.tjd-hero .tjd-hero__watermark {
	z-index: 1;
}

.tjd-hero .tjd-hero__inner {
	z-index: 2;
}

.tjd-hero--page .tjd-hero__media::after {
	background: rgba(0, 27, 65, .74);
}

/* ----- Filas editoriales de áreas (home) ----- */
.tjd-rows {
	border-top: 1px solid var(--tjd-border);
	display: block;
}

a.tjd-row {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	align-items: center;
	gap: 8px 28px;
	padding: 30px 4px;
	border-bottom: 1px solid var(--tjd-border);
	text-decoration: none;
	transition: transform .25s ease;
}

a.tjd-row:hover,
a.tjd-row:focus-visible {
	transform: translateX(6px);
}

.tjd-row__num {
	grid-row: span 2;
	font-size: 13px;
	font-weight: 700;
	color: var(--tjd-gold-text);
	letter-spacing: .1em;
}

.tjd-row__name {
	margin: 0;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--tjd-navy);
	transition: color .2s ease;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

a.tjd-row:hover .tjd-row__name {
	color: var(--tjd-gold-text);
}

.tjd-row__desc {
	grid-column: 2;
	margin: 0;
	color: var(--tjd-muted-fg);
	font-size: 15px;
}

.tjd-row__caret {
	grid-row: span 2;
	color: var(--tjd-gold-text);
	transition: transform .25s ease;
}

a.tjd-row:hover .tjd-row__caret {
	transform: translateX(6px);
}

@media (max-width: 700px) {
	a.tjd-row {
		grid-template-columns: 1fr auto;
		padding: 22px 2px;
	}

	.tjd-row__num {
		grid-row: auto;
		grid-column: 1 / -1;
	}

	.tjd-row__desc {
		grid-column: 1;
	}
}

/* ----- Filas de servicios (página Servicios) ----- */
.tjd-srow {
	display: grid;
	grid-template-columns: 64px 5fr 6fr;
	gap: 16px 32px;
	padding: 44px 0;
	border-bottom: 1px solid var(--tjd-border);
}

.tjd-srow:first-of-type {
	border-top: 1px solid var(--tjd-border);
}

.tjd-srow__num {
	font-size: 13px;
	font-weight: 700;
	color: var(--tjd-gold-text);
	letter-spacing: .1em;
	padding-top: 6px;
}

.tjd-srow h2 {
	margin: 0 0 10px;
	font-size: clamp(24px, 3vw, 34px);
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.tjd-srow__intro {
	margin: 0;
	color: var(--tjd-muted-fg);
}

.tjd-srow__cta {
	margin-top: 18px;
}

@media (max-width: 860px) {
	.tjd-srow {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 30px 0;
	}
}

/* ----- Split con foto ----- */
.tjd-split--media {
	grid-template-columns: 5fr 7fr;
	align-items: center;
}

.tjd-split--media-right {
	grid-template-columns: 7fr 5fr;
	align-items: center;
}

.tjd-split .tjd-photo {
	min-height: 380px;
}

@media (max-width: 860px) {

	.tjd-split--media,
	.tjd-split--media-right {
		grid-template-columns: 1fr;
	}

	.tjd-split .tjd-photo {
		min-height: 260px;
	}
}

/* ----- Banda de cifras con textura fotográfica ----- */
.tjd-stats-band {
	position: relative;
	overflow: hidden;
	background: var(--tjd-navy);
	padding: 88px 0;
}

.tjd-stats-band__media {
	position: absolute;
	inset: 0;
}

.tjd-stats-band__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.85);
}

.tjd-stats-band__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 27, 65, .82);
}

.tjd-stats-band .tjd-container {
	position: relative;
	z-index: 1;
}

.tjd-stats-band .tjd-stat__num {
	color: #fff;
}

.tjd-stats-band .tjd-stat__label {
	color: #C7D2E6;
}

/* ----- CTA final grande con foto ----- */
.tjd-cta-band {
	position: relative;
	overflow: hidden;
	padding: 96px 0;
}

.tjd-cta-band__media {
	position: absolute;
	inset: 0;
}

.tjd-cta-band__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.85);
}

.tjd-cta-band__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 27, 65, .78);
}

.tjd-cta-band .tjd-container {
	position: relative;
	z-index: 1;
}

.tjd-cta-band h2 {
	font-size: clamp(28px, 4vw, 40px);
}

/* ----- Wordmark editorial del footer ----- */
.tjd-footer__wordmark {
	font-size: clamp(40px, 8vw, 72px);
	font-weight: 800;
	letter-spacing: -.03em;
	color: rgba(255, 255, 255, .1);
	line-height: 1;
	margin-bottom: 34px;
	user-select: none;
}

/* ----- Retratos del equipo ----- */
.tjd-card .tjd-photo {
	border-radius: var(--tjd-radius) var(--tjd-radius) 0 0;
	margin: -1px -1px 14px;
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {

	a.tjd-row,
	.tjd-row__caret,
	.tjd-row__name {
		transition: none;
	}

	a.tjd-row:hover {
		transform: none;
	}
}

/*--------------------------------------------------------------
# TerrasiJD — header flotante estilo asfcanada + cursor custom
--------------------------------------------------------------*/

/* ----- Header fijo: transparente sobre el hero, sólido al scrollear ----- */
.tjd-navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 60;
	padding-top: 18px;
	padding-bottom: 18px;
	background: transparent;
	transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease, padding .25s ease;
}

.tjd-navbar.is-compact {
	background: var(--tjd-navy);
	padding-top: 10px;
	padding-bottom: 10px;
}

/* con el menú móvil abierto el fondo es sólido al instante */
.tjd-navbar.tjd-navbar--open {
	background: var(--tjd-navy);
	transition: transform .3s ease;
}

body.admin-bar .tjd-navbar {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .tjd-navbar {
		top: 46px;
	}
}

/* El hero llega hasta arriba; compensar la altura del header fijo */
.tjd-hero--home {
	padding-top: 150px;
}

.tjd-hero--page {
	padding-top: 160px;
}

/* ----- Cápsula de acciones ----- */
.tjd-navbar__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tjd-navbar__pill {
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.tjd-navbar .tjd-pill__btn {
	font-family: var(--tjd-font);
	font-size: 13.5px;
	font-weight: 700;
	padding: 12px 20px;
	border: 0;
	border-radius: var(--tjd-radius-sm);
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease;
}

.tjd-navbar .tjd-pill__btn--gold {
	background: var(--tjd-gold);
	color: var(--tjd-navy-dark);
}

.tjd-navbar .tjd-pill__btn--gold:hover {
	background: var(--tjd-gold-hover);
	color: var(--tjd-navy-dark);
}

.tjd-navbar .tjd-pill__btn--white {
	background: #fff;
	color: var(--tjd-navy);
}

.tjd-navbar .tjd-pill__btn--white:hover {
	background: var(--tjd-gold-soft);
	color: var(--tjd-navy);
}

/* Hamburguesa en círculo blanco (kit la muestra bajo 860px) */
.tjd-navbar .tjd-navbar__toggle {
	background: #fff;
	color: var(--tjd-navy);
	border: 0;
	border-radius: 50%;
}

@media (max-width: 860px) {

	/* cápsula reducida: solo "Agendar" */
	.tjd-navbar .tjd-pill__btn--white {
		display: none;
	}

	.tjd-navbar .tjd-pill__btn {
		font-size: 12.5px;
		padding: 10px 16px;
	}
}

/* ----- Cursor personalizado ----- */
html.tjd-cursor-on body,
html.tjd-cursor-on a,
html.tjd-cursor-on button,
html.tjd-cursor-on summary,
html.tjd-cursor-on select,
html.tjd-cursor-on label,
html.tjd-cursor-on [data-tjd-open] {
	cursor: none;
}

.tjd-cursor {
	position: fixed;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: 10000;
	opacity: 0;
	transition: opacity .25s ease;
}

.tjd-cursor.is-visible {
	opacity: 1;
}

.tjd-cursor__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

/* Punto: 8px dorado, 1:1 con el mouse */
.tjd-cursor--dot {
	width: 8px;
	height: 8px;
}

.tjd-cursor--dot .tjd-cursor__inner {
	width: 8px;
	height: 8px;
	background: var(--tjd-gold);
}

.tjd-cursor--dot.is-small .tjd-cursor__inner {
	transform: scale(.5);
}

.tjd-cursor--dot.is-hidden .tjd-cursor__inner {
	transform: scale(0);
}

/* Aro: base 36px (72px a escala .5), persigue con lerp */
.tjd-cursor--ring {
	width: 72px;
	height: 72px;
}

.tjd-cursor--ring .tjd-cursor__inner {
	width: 72px;
	height: 72px;
	border: 3px solid rgba(200, 155, 80, .6);
	background: transparent;
	transform: scale(.5);
}

/* Clickeable: crece a 52px con fondo dorado al 12% */
.tjd-cursor--ring.is-link .tjd-cursor__inner {
	transform: scale(.7222);
	background: rgba(200, 155, 80, .12);
}

/* Con texto: círculo 72px azul marino con etiqueta */
.tjd-cursor--ring.has-text .tjd-cursor__inner {
	transform: scale(1);
	background: rgba(0, 27, 65, .9);
	border-color: transparent;
}

.tjd-cursor__label {
	font-family: "Montserrat", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
	opacity: 0;
	transition: opacity .2s ease;
}

.tjd-cursor--ring.has-text .tjd-cursor__label {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {

	.tjd-cursor {
		display: none;
	}
}

/*--------------------------------------------------------------
# TerrasiJD — blog
--------------------------------------------------------------*/

/* Badges clickeables (categorías, tags, filtros): nunca subrayados */
a.tjd-badge,
a.tjd-badge:hover,
a.tjd-badge:focus,
a.tjd-badge:visited {
	text-decoration: none;
}

/* ----- Cards de post ----- */
.tjd-card--post {
	display: flex;
	flex-direction: column;
}

.tjd-card--post .tjd-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: var(--tjd-radius) var(--tjd-radius) 0 0;
	margin: -1px -1px 14px;
}

.tjd-card--post .tjd-card__media img {
	transition: transform .3s ease;
}

.tjd-card--post:hover .tjd-card__media img {
	transform: scale(1.04);
}

.tjd-card--post__title a {
	text-decoration: none;
	color: inherit;
}

.tjd-card--post__title {
	margin-top: 10px;
}

.tjd-card--post .tjd-card__content {
	flex: 1;
}

.tjd-post-meta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--tjd-muted-fg);
}

.tjd-post-meta__sep {
	color: var(--tjd-gold-text);
}

/* ----- Destacado (card horizontal 7/5) ----- */
.tjd-featured {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: 0;
	border: 1px solid var(--tjd-border);
	border-radius: var(--tjd-radius-lg);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--tjd-shadow);
	margin-bottom: 48px;
	transition: transform .2s ease, box-shadow .2s ease;
}

.tjd-featured:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 40px rgba(0, 27, 65, .14);
}

.tjd-featured__media {
	display: block;
	border-radius: 0;
	min-height: 340px;
}

.tjd-featured__media img {
	transition: transform .3s ease;
}

.tjd-featured:hover .tjd-featured__media img {
	transform: scale(1.04);
}

.tjd-featured__body {
	padding: 40px 42px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 14px;
}

.tjd-featured__title {
	margin: 0;
	font-size: clamp(24px, 2.6vw, 34px);
	line-height: 1.15;
}

.tjd-featured__title a {
	text-decoration: none;
	color: var(--tjd-navy);
}

.tjd-featured__title a:hover {
	color: var(--tjd-gold-text);
}

.tjd-featured__excerpt {
	margin: 0;
	color: var(--tjd-muted-fg);
}

@media (max-width: 860px) {
	.tjd-featured {
		grid-template-columns: 1fr;
	}

	.tjd-featured__media {
		min-height: 220px;
	}

	.tjd-featured__body {
		padding: 26px 24px;
	}
}

/* ----- Artículo (single) ----- */
.tjd-article__head {
	padding-bottom: 34px;
}

.tjd-article__meta-top {
	margin: 22px 0 14px;
}

.tjd-article__title {
	font-size: clamp(30px, 4.4vw, 48px);
	letter-spacing: -.02em;
	line-height: 1.08;
	margin: 0 0 16px;
	color: var(--tjd-navy);
}

.tjd-article__meta {
	margin: 0;
	color: var(--tjd-muted-fg);
	font-size: 14.5px;
}

.tjd-article__cover {
	aspect-ratio: 16 / 9;
}

.tjd-article__body {
	padding-top: 48px;
}

/* ----- Prosa ampliada (Gutenberg) ----- */
.tjd-prose--article {
	font-size: 17px;
	line-height: 1.7;
}

.tjd-prose--article h2 {
	font-size: 28px;
	margin: 1.6em 0 .5em;
}

.tjd-prose--article h3 {
	font-size: 22px;
	margin: 1.4em 0 .4em;
}

.tjd-prose--article h4 {
	font-size: 18px;
	margin: 1.2em 0 .4em;
}

.tjd-prose--article blockquote {
	border-left: 3px solid var(--tjd-gold);
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	color: var(--tjd-muted-fg);
	font-style: italic;
}

.tjd-prose--article blockquote p {
	margin: 0;
}

.tjd-prose--article ul,
.tjd-prose--article ol {
	padding-left: 1.3em;
}

.tjd-prose--article li {
	margin-bottom: .45em;
}

.tjd-prose--article figure,
.tjd-prose--article .wp-block-image {
	margin: 1.8em 0;
}

.tjd-prose--article img {
	max-width: 100%;
	height: auto;
	border-radius: var(--tjd-radius);
}

.tjd-prose--article figcaption {
	font-size: 13.5px;
	color: var(--tjd-muted-fg);
	margin-top: 8px;
}

.tjd-prose--article table {
	border-collapse: collapse;
	width: 100%;
	font-size: 15px;
	margin: 1.6em 0;
}

.tjd-prose--article th {
	background: var(--tjd-cream);
	color: var(--tjd-navy);
	text-align: left;
	padding: 10px 14px;
	border-bottom: 2px solid var(--tjd-gold);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.tjd-prose--article td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--tjd-border);
}

.tjd-prose--article .wp-block-button__link {
	font-family: var(--tjd-font);
	font-size: 14px;
	font-weight: 600;
	background: var(--tjd-navy);
	color: #fff;
	border-radius: var(--tjd-radius-sm);
	padding: 12px 20px;
	text-decoration: none;
}

.tjd-prose--article .wp-block-button__link:hover {
	background: var(--tjd-navy-hover);
	color: #fff;
}

.tjd-prose--article hr {
	border: 0;
	border-top: 1px solid var(--tjd-border);
	margin: 2.2em 0;
}

.tjd-prose--article code {
	background: var(--tjd-cream);
	border: 1px solid var(--tjd-border);
	border-radius: 4px;
	padding: 1px 6px;
	font-size: .88em;
}

/* ----- Tags, autor, prev/next ----- */
.tjd-article__tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 34px 0 0;
}

.tjd-article__tags .tjd-badge {
	text-decoration: none;
}

.tjd-author-box {
	display: flex;
	gap: 18px;
	align-items: center;
	background: var(--tjd-cream);
	border: 1px solid var(--tjd-border);
	border-radius: var(--tjd-radius-lg);
	padding: 22px 24px;
	margin-top: 34px;
}

.tjd-author-box__avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	flex-shrink: 0;
}

.tjd-author-box__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tjd-author-box__name {
	margin: 0 0 4px;
	font-weight: 800;
	color: var(--tjd-navy);
}

.tjd-author-box__bio {
	margin: 0;
	font-size: 14px;
	color: var(--tjd-muted-fg);
}

.tjd-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 48px;
}

.tjd-post-nav__card,
.tjd-post-nav__card:hover,
.tjd-post-nav__card:focus,
.tjd-post-nav__card:visited {
	text-decoration: none;
}

.tjd-post-nav__card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 30px;
}

.tjd-post-nav__card .tjd-kicker {
	margin: 0;
	text-decoration: none;
}

.tjd-post-nav__card--next {
	text-align: right;
	align-items: flex-end;
}

.tjd-post-nav__title {
	font-weight: 800;
	color: var(--tjd-navy);
	line-height: 1.3;
	text-decoration: none;
}

.tjd-post-nav__card:hover .tjd-post-nav__title {
	color: var(--tjd-gold-text);
}

@media (max-width: 700px) {
	.tjd-post-nav {
		grid-template-columns: 1fr;
	}

	.tjd-post-nav__card--next {
		text-align: left;
		align-items: flex-start;
	}
}

/* ----- Estado vacío y buscador ----- */
.tjd-empty {
	text-align: center;
	max-width: 480px;
	margin: 0 auto;
	padding: 40px 0;
}

.tjd-empty .tjd-icon--lg {
	color: var(--tjd-gold-text);
}

.tjd-empty h2 {
	margin: 14px 0 8px;
}

.tjd-empty p {
	color: var(--tjd-muted-fg);
	margin: 0 0 20px;
}

.tjd-searchform {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.tjd-searchform .tjd-input {
	flex: 1;
}

.tjd-empty__form .tjd-searchform {
	text-align: left;
}

/* ----- Comentarios ----- */
.tjd-comments {
	margin-top: 44px;
	border-top: 1px solid var(--tjd-border);
	padding-top: 34px;
}

.tjd-comments__list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.tjd-comments__list .comment {
	border: 1px solid var(--tjd-border);
	border-radius: var(--tjd-radius);
	padding: 18px 20px;
	margin-bottom: 14px;
	background: #fff;
}

.tjd-comments__list .avatar {
	border-radius: 50%;
	margin-right: 10px;
	vertical-align: middle;
}

.tjd-comment-form .tjd-field {
	margin-bottom: 16px;
}

@media (prefers-reduced-motion: reduce) {

	.tjd-card--post .tjd-card__media img,
	.tjd-featured,
	.tjd-featured__media img {
		transition: none;
	}

	.tjd-card--post:hover .tjd-card__media img,
	.tjd-featured:hover .tjd-featured__media img,
	.tjd-featured:hover {
		transform: none;
	}
}

/*--------------------------------------------------------------
# TerrasiJD — correcciones
--------------------------------------------------------------*/

/* Underscores da margin-bottom a <article>; el espaciado del layout
   lo manejan las secciones. Sin esto queda una franja blanca entre
   el CTA final y el footer. */
#contenido article {
	margin-bottom: 0;
}

/* Excepción: el post destacado del blog sí lleva su separación
   respecto a la grid (la regla anterior, con ID, se la quitaba). */
#contenido article.tjd-featured {
	margin-bottom: 48px;
}

/* Un <dialog> abierto vive en el top layer del navegador y se pinta
   por encima del cursor custom. Mientras haya un modal abierto,
   se restaura el cursor nativo y se oculta el custom. */
html.tjd-cursor-on:has(dialog[open]) body,
html.tjd-cursor-on:has(dialog[open]) a,
html.tjd-cursor-on:has(dialog[open]) button,
html.tjd-cursor-on:has(dialog[open]) summary,
html.tjd-cursor-on:has(dialog[open]) select,
html.tjd-cursor-on:has(dialog[open]) label,
html.tjd-cursor-on:has(dialog[open]) [data-tjd-open] {
	cursor: auto;
}

html.tjd-cursor-on:has(dialog[open]) .tjd-cursor {
	opacity: 0;
}
