/* The Aftertale — brand layer on top of Blocksy. */

@font-face { font-family: "Unbounded"; src: url(../fonts/Unbounded-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url(../fonts/Unbounded-ExtraBold.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Caprasimo"; src: url(../fonts/Caprasimo-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/InstrumentSans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/InstrumentSans-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/InstrumentSans-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root:root {
	--at-ciruela: #34184A;
	--at-tomate: #EB4A2E;
	--at-tomate-txt: #C2341C;
	--at-mantequilla: #FFD46B;
	--at-cielo: #A9D3EE;
	--at-hueso: #FFF7EA;

	--at-display: "Unbounded", system-ui, sans-serif;
	--at-script: "Caprasimo", Georgia, serif;
	--at-body: "Instrument Sans", system-ui, sans-serif;

	--at-radius: 28px;
	--at-ease-out: cubic-bezier(.22, 1, .36, 1);
	--at-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
	--at-gutter: clamp(16px, 4vw, 48px);

	/* Hand brand fonts and colors to Blocksy. */
	--theme-font-family: var(--at-body);
	--theme-text-color: var(--at-ciruela);
	--theme-headings-color: var(--at-ciruela);
	--theme-link-initial-color: var(--at-tomate-txt);
	--theme-link-hover-color: var(--at-ciruela);
}

body { background: var(--at-hueso); color: var(--at-ciruela); font-family: var(--at-body); }

h1, h2, h3, h4, .at-display {
	font-family: var(--at-display);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.02;
	text-wrap: balance;
}

.at-script { font-family: var(--at-script); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--at-tomate); }

/* ---------- Page shell ---------- */

.at-home { overflow-x: clip; }
.at-home > .wp-block-group { margin-block: 0; }
.at-section { padding: clamp(72px, 10vw, 140px) var(--at-gutter); position: relative; }
.at-section > * { max-width: 1240px; margin-inline: auto; }
.at-section h2 { font-size: clamp(2rem, 5vw, 3.6rem); text-transform: uppercase; margin-block: 0 .4em; }
.at-eyebrow {
	font-family: var(--at-display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
	display: flex; align-items: center; gap: .6em; margin-block: 0 1.2em;
}
.at-eyebrow::before { content: "••✦"; color: var(--at-tomate); letter-spacing: .1em; }
.at-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; max-width: 38ch; }

.at-bg-hueso { background: var(--at-hueso); }
.at-bg-mantequilla { background: var(--at-mantequilla); }
.at-bg-cielo { background: var(--at-cielo); }
.at-bg-ciruela { background: var(--at-ciruela); color: var(--at-hueso); }
.at-bg-ciruela h2, .at-bg-ciruela h3 { color: var(--at-hueso); }
.at-bg-tomate { background: var(--at-tomate); color: var(--at-hueso); }

/* ---------- Buttons ---------- */

.at-home .wp-block-button__link,
.at-btn {
	--btn-bg: var(--at-tomate);
	--btn-fg: var(--at-hueso);
	position: relative;
	display: inline-flex; align-items: center; gap: .6em;
	padding: 1em 1.8em;
	border-radius: 999px;
	background: var(--btn-bg); color: var(--btn-fg);
	font-family: var(--at-display); font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
	border: 2px solid var(--btn-bg);
	transition: transform .35s var(--at-ease-spring), background-color .25s, color .25s, box-shadow .35s var(--at-ease-out);
	box-shadow: 0 0 0 0 transparent;
}
.at-home .wp-block-button__link::after {
	content: "✦";
	display: inline-block;
	transition: transform .5s var(--at-ease-spring);
}
.at-home .wp-block-button__link:hover {
	transform: translateY(-3px) rotate(-1.5deg);
	box-shadow: 6px 6px 0 var(--at-ciruela);
	color: var(--btn-fg);
}
.at-home .wp-block-button__link:hover::after { transform: rotate(180deg) scale(1.3); }
.at-home .wp-block-button__link:active { transform: translateY(0) scale(.96); box-shadow: 2px 2px 0 var(--at-ciruela); }
.at-home .wp-block-button__link:focus-visible { outline: 3px solid var(--at-mantequilla); outline-offset: 3px; }

.at-home .is-style-outline .wp-block-button__link { --btn-bg: transparent; --btn-fg: var(--at-ciruela); border-color: var(--at-ciruela); }
.at-home .is-style-outline .wp-block-button__link:hover { --btn-bg: var(--at-ciruela); --btn-fg: var(--at-hueso); box-shadow: 6px 6px 0 var(--at-tomate); }
.at-bg-ciruela .wp-block-button__link:hover, .at-bg-tomate .wp-block-button__link:hover { box-shadow: 6px 6px 0 var(--at-mantequilla); }
.at-bg-tomate .wp-block-button__link { --btn-bg: var(--at-ciruela); }

/* ---------- Hero ---------- */

.at-hero { padding-top: clamp(48px, 7vw, 96px); min-height: min(92vh, 900px); display: grid; align-items: center; }
.at-hero .wp-block-columns { align-items: center; gap: clamp(32px, 5vw, 80px); }
.at-hero h1 {
	font-size: clamp(2.4rem, 6.2vw, 6.2rem);
	hyphens: manual; overflow-wrap: normal;
	text-transform: uppercase;
	margin: 0 0 .3em;
}
.at-hero h1 .at-script { font-size: 1.08em; display: inline-block; transform: rotate(-4deg); text-transform: lowercase; }
.at-hero .at-lead { margin-bottom: 2em; }

.at-collage { position: relative; aspect-ratio: 4 / 5; max-width: 520px; margin-inline: auto; width: 100%; }
.at-collage .wp-block-image:not(.at-sticker) { position: absolute; margin: 0; width: 62%; border-radius: var(--at-radius); overflow: hidden; box-shadow: 0 24px 60px -24px rgb(52 24 74 / .45); border: 6px solid #fff; }
.at-collage .wp-block-image:not(.at-sticker) img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.at-collage .at-photo-1 { left: 0; top: 8%; rotate: -7deg; z-index: 1; }
.at-collage .at-photo-2 { right: 0; top: 0; rotate: 6deg; z-index: 2; }
.at-collage .at-photo-3 { left: 20%; bottom: 0; rotate: -2deg; z-index: 3; width: 58%; }
.at-collage .at-sticker { position: absolute; z-index: 4; left: -8%; bottom: 14%; width: 72%; margin: 0; rotate: -6deg; filter: drop-shadow(0 10px 18px rgb(52 24 74 / .25)); }
.at-collage .at-sparkle { position: absolute; z-index: 5; right: -2%; bottom: 6%; width: 64px; height: 64px; color: var(--at-tomate); }

.at-sparkle svg, svg.at-sparkle { display: block; width: 100%; height: 100%; fill: currentColor; }

/* ---------- Marquee ---------- */

.at-marquee {
	--at-marquee-speed: 38s;
	overflow: hidden;
	background: var(--at-tomate);
	color: var(--at-hueso);
	padding: 22px 0;
	rotate: -1.5deg;
	margin: -12px -2% 0 !important;
	width: 104% !important;
	max-width: none !important;
	position: relative; z-index: 2;
}
.at-marquee__track { display: flex; width: max-content; animation: at-marquee var(--at-marquee-speed) linear infinite; }
.at-marquee:hover .at-marquee__track, .at-marquee:focus-within .at-marquee__track { animation-play-state: paused; }
.at-marquee__item {
	font-family: var(--at-display); font-weight: 800; font-size: clamp(1.2rem, 2.6vw, 2rem); text-transform: uppercase;
	white-space: nowrap; padding-inline: .9em; display: inline-flex; align-items: center; gap: .9em;
}
.at-marquee__item::after { content: "••✦"; color: var(--at-mantequilla); font-size: .8em; }
@keyframes at-marquee { to { transform: translateX(-50%); } }

/* ---------- Destinos (query loop) ---------- */

.at-destinos .wp-block-post-template { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); list-style: none; padding: 0; }
.at-destinos .wp-block-post { position: relative; border-radius: var(--at-radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--at-ciruela); transform-style: preserve-3d; will-change: transform; }
.at-destinos .wp-block-post-featured-image { position: absolute; inset: 0; margin: 0; height: 100%; }
.at-destinos .wp-block-post-featured-image a, .at-destinos .wp-block-post-featured-image img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.at-destinos .wp-block-post-featured-image img { transition: transform 1.1s var(--at-ease-out), filter .6s; }
.at-destinos .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.08); filter: saturate(1.15); }
.at-destinos .wp-block-post::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(52 24 74 / .85)); pointer-events: none; }
.at-destinos .wp-block-post-title {
	position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; margin: 0;
	font-size: clamp(1.1rem, 1.8vw, 1.5rem); text-transform: uppercase; color: var(--at-hueso);
	display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
}
.at-destinos .wp-block-post-title a { color: inherit; text-decoration: none; }
.at-destinos .wp-block-post-title a::before { content: ""; position: absolute; inset: -100vh -100vw; } /* whole card clickable */
.at-destinos .wp-block-post-title::after {
	content: "↗"; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	background: var(--at-mantequilla); color: var(--at-ciruela); font-size: 1.1rem;
	transition: transform .45s var(--at-ease-spring), background-color .3s;
}
.at-destinos .wp-block-post:hover .wp-block-post-title::after { transform: rotate(45deg) scale(1.12); background: var(--at-tomate); color: var(--at-hueso); }
.at-destinos .wp-block-post:focus-within { outline: 3px solid var(--at-tomate); outline-offset: 4px; }

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

.at-servicios-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-block: 2.4em 2.8em !important; }
.at-servicio {
	background: var(--at-hueso); border-radius: 22px; padding: 26px 26px 30px !important; margin: 0 !important;
	border: 2px solid var(--at-ciruela);
	transition: transform .4s var(--at-ease-spring), box-shadow .4s var(--at-ease-out);
}
.at-servicio:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 8px 8px 0 var(--at-ciruela); }
.at-servicio .at-num { font-family: var(--at-script); color: var(--at-tomate); font-size: 2.2rem; line-height: 1; margin: 0 0 .5em; }
.at-servicio h3 { font-size: 1.05rem; text-transform: uppercase; margin: 0; line-height: 1.25; }

/* ---------- About ---------- */

.at-about .wp-block-columns { align-items: center; gap: clamp(32px, 6vw, 96px); }
.at-about h2 { font-size: clamp(1.8rem, 4.2vw, 3.2rem); }
.at-about p { font-size: 1.1rem; line-height: 1.65; opacity: .92; }
.at-about-photo { position: relative; }
.at-about-photo .wp-block-image:not(.at-sticker) { margin: 0; border-radius: var(--at-radius); overflow: hidden; rotate: 3deg; border: 6px solid var(--at-hueso); }
.at-about-photo .wp-block-image:not(.at-sticker) img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; }
.at-about-photo .at-sticker { position: absolute; left: -10%; bottom: -6%; width: 62%; margin: 0; z-index: 2; }

/* ---------- Equipo ---------- */

.at-team { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); margin-top: 2.4em !important; }
.at-member { margin: 0 !important; }
.at-member .wp-block-image { margin: 0 0 18px; border-radius: var(--at-radius); overflow: hidden; }
.at-member .wp-block-image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--at-ease-out); }
.at-member:hover .wp-block-image img { transform: scale(1.05) rotate(.6deg); }
.at-member h3 { font-size: 1.3rem; text-transform: uppercase; margin: 0 0 .2em; }
.at-member .at-role { font-family: var(--at-script); color: var(--at-tomate-txt); font-size: 1.15rem; margin: 0 0 .7em; }
.at-member p:last-child { line-height: 1.6; margin: 0; }

.at-join {
	margin: 0 !important; border-radius: var(--at-radius); padding: 32px !important;
	background: var(--at-tomate) url(../img/pattern.svg) center / 220px; color: var(--at-hueso);
	display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%;
	text-decoration: none; position: relative; overflow: hidden;
	transition: transform .45s var(--at-ease-spring);
}
.at-join:hover { transform: rotate(-1.5deg) scale(1.02); }
.at-join h3 { color: var(--at-hueso); font-size: clamp(1.4rem, 2.4vw, 2rem); text-transform: uppercase; margin: 0 0 .3em; }
.at-join p { margin: 0 0 1.4em; font-size: 1.05rem; }
.at-join .wp-block-buttons { margin: 0; }

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

.at-testimonios { overflow: hidden; }
.at-testimonios > .at-polaroids { max-width: none; margin-top: 2em; }
.at-polaroids { display: flex; width: max-content; gap: 28px; padding-block: 28px; animation: at-marquee 60s linear infinite; }
.at-testimonios:hover .at-polaroids, .at-testimonios:focus-within .at-polaroids { animation-play-state: paused; }
.at-polaroid {
	flex: none; width: 230px; margin: 0 !important; background: #fff; padding: 12px 12px 18px; border-radius: 6px;
	box-shadow: 0 18px 40px -20px rgb(52 24 74 / .5);
	transition: rotate .45s var(--at-ease-spring), transform .45s var(--at-ease-spring);
}
.at-polaroid:nth-child(odd) { rotate: -3deg; }
.at-polaroid:nth-child(even) { rotate: 2.5deg; transform: translateY(14px); }
.at-polaroid:hover { rotate: 0deg; transform: translateY(-6px) scale(1.05); z-index: 2; }
.at-polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.at-polaroid figcaption { font-family: var(--at-script); color: var(--at-ciruela); font-size: 1.15rem; text-align: center; margin: 12px 0 0; }

/* ---------- Blog ---------- */

.at-blog .wp-block-post-template { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); list-style: none; padding: 0; }
.at-blog .wp-block-post { position: relative; }
.at-blog .wp-block-post-featured-image { margin: 0 0 16px; border-radius: 22px; overflow: hidden; }
.at-blog .wp-block-post-featured-image img { display: block; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--at-ease-out); }
.at-blog .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.06); }
.at-blog .wp-block-post-title { font-size: 1.2rem; text-transform: uppercase; line-height: 1.2; margin: 0 0 .4em; }
.at-blog .wp-block-post-title a { color: var(--at-ciruela); text-decoration: none; background: linear-gradient(var(--at-mantequilla), var(--at-mantequilla)) 0 92% / 0 .4em no-repeat; transition: background-size .5s var(--at-ease-out); }
.at-blog .wp-block-post:hover .wp-block-post-title a { background-size: 100% .4em; }
.at-blog .wp-block-post-title a::before { content: ""; position: absolute; inset: 0; }
.at-blog .wp-block-post-date { font-size: .85rem; opacity: .7; }

/* ---------- FAQ ---------- */

.at-faq .wp-block-columns { gap: clamp(32px, 6vw, 96px); }
.at-faq .wp-block-details {
	border-bottom: 2px solid var(--at-ciruela); padding: 0; margin: 0;
	interpolate-size: allow-keywords;
}
.at-faq .wp-block-details summary {
	list-style: none; cursor: pointer; padding: 24px 56px 24px 0; position: relative;
	font-family: var(--at-display); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.2rem); text-transform: uppercase; line-height: 1.3;
	transition: color .25s;
}
.at-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.at-faq .wp-block-details summary::after {
	content: "✦"; position: absolute; right: 8px; top: 50%; translate: 0 -50%;
	font-size: 1.4rem; color: var(--at-tomate);
	transition: rotate .5s var(--at-ease-spring), scale .5s var(--at-ease-spring);
}
.at-faq .wp-block-details[open] summary::after { rotate: 135deg; scale: 1.25; }
.at-faq .wp-block-details summary:hover { color: var(--at-tomate-txt); }
.at-faq .wp-block-details summary:focus-visible { outline: 3px solid var(--at-tomate); outline-offset: 4px; }
.at-faq .wp-block-details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--at-ease-out), content-visibility .45s allow-discrete; }
.at-faq .wp-block-details[open]::details-content { block-size: auto; }
.at-faq .wp-block-details > :not(summary) { margin: 0 0 1em; max-width: 68ch; line-height: 1.65; }
.at-faq .wp-block-details > :last-child { padding-bottom: 12px; }

/* ---------- Final CTA ---------- */

.at-cta { text-align: center; background-image: url(../img/pattern.svg); background-size: 260px; }
.at-cta h2 { font-size: clamp(2.4rem, 7vw, 5.6rem); color: var(--at-hueso); }
.at-cta .at-sticker { width: min(420px, 80%); margin: 0 auto 28px; }
.at-cta p { font-size: 1.15rem; margin-bottom: 2em; }
.at-cta .wp-block-buttons { justify-content: center; }

/* ---------- Stickers ---------- */

.at-sticker img { display: block; width: 100%; height: auto; }
.at-sticker { transition: rotate .5s var(--at-ease-spring); }
.at-sticker:hover { rotate: 0deg !important; }

/* ---------- Motion setup (JS reveals) ---------- */

.at-motion .at-reveal,
.at-motion .at-hero h1,
.at-motion .at-hero .at-eyebrow,
.at-motion .at-hero .at-lead,
.at-motion .at-hero .wp-block-buttons,
.at-motion .at-collage > * { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
	.at-marquee__track, .at-polaroids { animation: none; }
	.at-polaroids { flex-wrap: wrap; width: auto; justify-content: center; }
	*, *::before, *::after { transition-duration: .01ms !important; }
}

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

@media (max-width: 999px) {
	.at-destinos .wp-block-post-template, .at-blog .wp-block-post-template, .at-team { grid-template-columns: repeat(2, 1fr); }
	.at-servicios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 781px) {
	.at-hero { min-height: 0; }
	.at-collage { max-width: 420px; margin-top: 12px; }
	.at-about-photo .at-sticker { left: 0; }
}
@media (max-width: 599px) {
	.at-destinos .wp-block-post-template, .at-blog .wp-block-post-template, .at-team, .at-servicios-grid { grid-template-columns: 1fr; }
	.at-destinos .wp-block-post { aspect-ratio: 4 / 3; }
	.at-polaroid { width: 180px; }
	.at-home .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.at-home .wp-block-button__link { justify-content: center; width: 100%; }
}

/* Narrow-column headings: keep whole words on one line. */
.at-faq h2, .at-about h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.at-home h1, .at-home h2, .at-home h3 { overflow-wrap: normal; hyphens: manual; }

/* Header logo is a wide wordmark: cap its height so it never collides with the menu toggle. */
@media (max-width: 999px) { .site-branding .site-logo-container { --logo-max-height: 32px; } }
@media (max-width: 689px) { .site-branding .site-logo-container { --logo-max-height: 24px; } }

/* ---------- Header (Blocksy builder) ---------- */

#header [data-row*="middle"] { background: var(--at-hueso) !important; border-bottom: 0 !important; box-shadow: none !important; }
#header .ct-menu-link {
	font-family: var(--at-display); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
	color: var(--at-ciruela) !important;
	background: linear-gradient(var(--at-mantequilla), var(--at-mantequilla)) 50% 78% / 0 .45em no-repeat;
	transition: background-size .45s var(--at-ease-out);
}
#header .ct-menu-link:hover, #header .current-menu-item > .ct-menu-link { background-size: calc(100% - 2em) .45em; }
#header .ct-header-cta .ct-button, #offcanvas .ct-header-cta .ct-button {
	background: var(--at-tomate) !important; color: var(--at-hueso) !important; border-radius: 999px !important;
	font-family: var(--at-display); font-weight: 700; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase;
	padding-inline: 1.5em !important; min-height: 46px;
	transition: transform .35s var(--at-ease-spring), box-shadow .35s var(--at-ease-out);
}
#header .ct-header-cta .ct-button:hover { transform: translateY(-2px) rotate(-1.5deg); box-shadow: 4px 4px 0 var(--at-ciruela); }
#header .ct-header-cta .ct-button:active { transform: scale(.96); }
#header .ct-header-trigger { color: var(--at-ciruela) !important; }

/* Mobile menu: full-screen plum panel, links slide in one after another. */
#offcanvas .ct-panel-inner, #offcanvas.ct-panel { background: var(--at-ciruela) !important; }
#offcanvas .ct-toggle-close { color: var(--at-hueso) !important; }
#offcanvas .mobile-menu a {
	font-family: var(--at-display); font-weight: 800; font-size: clamp(1.6rem, 7vw, 2.4rem); text-transform: uppercase;
	color: var(--at-hueso) !important; line-height: 1.15;
}
#offcanvas .mobile-menu a:hover { color: var(--at-mantequilla) !important; }
#offcanvas .mobile-menu li { opacity: 0; translate: 0 24px; transition: opacity .5s var(--at-ease-out), translate .6s var(--at-ease-out); }
#offcanvas.active .mobile-menu li { opacity: 1; translate: 0 0; }
#offcanvas.active .mobile-menu li:nth-child(2) { transition-delay: .06s; }
#offcanvas.active .mobile-menu li:nth-child(3) { transition-delay: .12s; }
#offcanvas.active .mobile-menu li:nth-child(4) { transition-delay: .18s; }
#offcanvas.active .mobile-menu li:nth-child(5) { transition-delay: .24s; }

/* ---------- Footer (synced pattern) ---------- */

.at-has-footer #footer.ct-footer { display: none; }
.at-footer { padding: clamp(64px, 8vw, 110px) var(--at-gutter) 32px; margin: 0; }
.at-footer > * { max-width: 1240px; margin-inline: auto; }
.at-footer__top { gap: clamp(28px, 4vw, 64px); }
.at-footer__logo { margin: 0 0 18px; max-width: 280px; }
.at-footer__logo img { display: block; width: 100%; height: auto; }
.at-footer__tagline { font-family: var(--at-script); color: var(--at-mantequilla); font-size: 1.3rem; margin: 0 0 .8em; }
.at-footer p { color: var(--at-hueso); opacity: .9; line-height: 1.6; margin: 0 0 .5em; }
.at-footer h3 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--at-mantequilla); margin: 0 0 1.2em; }
.at-footer a { color: var(--at-hueso); text-decoration: none; background: linear-gradient(var(--at-tomate), var(--at-tomate)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--at-ease-out), color .2s; }
.at-footer a:hover { color: var(--at-mantequilla); background-size: 100% 2px; }
.at-footer .wp-block-button__link { background-image: none; }
.at-footer__bottom {
	display: flex !important; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	margin-top: clamp(48px, 6vw, 80px) !important; padding-top: 24px; border-top: 1px solid rgb(255 247 234 / .2);
}
.at-footer__bottom p { font-size: .85rem; opacity: .7; margin: 0; }
.at-home .wp-block-button__link { white-space: nowrap; }

/* ---------- Single destino ---------- */

.at-destino-hero {
	position: relative; min-height: min(78vh, 760px); display: grid; align-items: end;
	padding: clamp(96px, 12vw, 160px) var(--at-gutter) clamp(48px, 6vw, 88px);
	color: var(--at-hueso); overflow: hidden; isolation: isolate;
}
.at-destino-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.at-destino-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(52 24 74 / .15) 20%, rgb(52 24 74 / .88)); }
.at-destino-hero__inner { max-width: 1240px; width: 100%; margin-inline: auto; }
.at-destino-hero h1 { font-size: clamp(2.6rem, 8vw, 7rem); text-transform: uppercase; color: var(--at-hueso); margin: 0 0 .35em; max-width: 14ch; }
.at-destino-hero .at-eyebrow { color: var(--at-hueso); }
.at-destino-hero__sticker { position: absolute; right: var(--at-gutter); top: clamp(80px, 10vw, 120px); width: clamp(180px, 22vw, 320px); height: auto; rotate: 8deg; }

@media (prefers-reduced-motion: no-preference) {
	.at-destino-hero__img { animation: at-zoom-out 1.8s var(--at-ease-out) both; }
	.at-destino-hero__inner > * { animation: at-rise 1s var(--at-ease-out) both; }
	.at-destino-hero__inner > :nth-child(2) { animation-delay: .12s; }
	.at-destino-hero__inner > :nth-child(3) { animation-delay: .24s; }
	.at-destino-hero__sticker { animation: at-drop 1s var(--at-ease-spring) .5s both; }
}
@keyframes at-zoom-out { from { transform: scale(1.12); } }
@keyframes at-rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes at-drop { from { opacity: 0; transform: translateY(-80px) rotate(-20deg) scale(.7); } }

.at-park { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(48px, 7vw, 96px) !important; }
.at-park:nth-of-type(even) .at-park__media { order: 2; }
.at-park__media { border-radius: var(--at-radius); overflow: hidden; rotate: -1.5deg; box-shadow: 0 30px 60px -30px rgb(52 24 74 / .5); transition: rotate .6s var(--at-ease-spring); }
.at-park:nth-of-type(even) .at-park__media { rotate: 1.5deg; }
.at-park:hover .at-park__media { rotate: 0deg; }
.at-park__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--at-ease-out); }
.at-park:hover .at-park__img { transform: scale(1.05); }
.at-park .at-num { font-family: var(--at-script); color: var(--at-tomate); font-size: 2.6rem; line-height: 1; margin: 0 0 .3em; }
.at-park h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); text-transform: uppercase; margin: 0 0 .5em; }
.at-park p { font-size: 1.08rem; line-height: 1.7; max-width: 52ch; }
.at-servicio p:not(.at-num) { margin: .6em 0 0; line-height: 1.55; }

@media (max-width: 781px) {
	.at-park { grid-template-columns: 1fr; }
	.at-park:nth-of-type(even) .at-park__media { order: 0; }
	.at-destino-hero__sticker { display: none; }
}

/* ---------- Inner page hero ---------- */

.at-page-hero { padding-bottom: clamp(40px, 5vw, 64px); }
.at-page-hero h1 { font-size: clamp(2.6rem, 8vw, 6.4rem); text-transform: uppercase; margin-block: 0 .3em; }
.at-destinos--page { padding-top: clamp(56px, 7vw, 96px); }
.at-destinos--page .wp-block-post-title { font-size: clamp(1.2rem, 2vw, 1.6rem); }

/* Form honeypot: off-screen, not display:none (some bots skip hidden fields). */
.at-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Form pages (JetFormBuilder) ---------- */

.at-form-section { padding-top: clamp(24px, 4vw, 48px); }
.at-form-section .wp-block-columns { align-items: flex-start; gap: clamp(28px, 5vw, 72px); }
.at-form-card { background: #fff; border-radius: var(--at-radius); padding: clamp(24px, 4vw, 48px) !important; box-shadow: 0 30px 70px -40px rgb(52 24 74 / .45); border: 2px solid var(--at-ciruela); }
.at-form-aside { position: sticky; top: 120px; }
.at-form-aside .at-sticker { width: min(320px, 90%); margin: 0 0 28px; rotate: -5deg; }
.at-form-aside h3 { font-size: 1.05rem; text-transform: uppercase; margin: 1.6em 0 .8em; }
.at-steps { display: grid; gap: 14px; }
.at-step { display: grid !important; grid-template-columns: 52px 1fr; align-items: baseline; margin: 0 !important; }
.at-step .at-num { font-family: var(--at-script); color: var(--at-tomate); font-size: 1.8rem; margin: 0; }
.at-step p:last-child { margin: 0; line-height: 1.5; }

.at-home .jet-form-builder { --jfb-gap: 22px; font-family: var(--at-body); color: var(--at-ciruela); }
.at-home .jet-form-builder-row { margin-bottom: var(--jfb-gap); }
.at-home .jet-form-builder__label-text { font-family: var(--at-display); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.at-home .jet-form-builder__required { color: var(--at-tomate-txt); }
.at-home .jet-form-builder__desc { font-size: .9rem; opacity: .75; }
.at-home .jet-form-builder input.jet-form-builder__field:not([type=radio]):not([type=checkbox]),
.at-home .jet-form-builder textarea.jet-form-builder__field,
.at-home .jet-form-builder select.jet-form-builder__field {
	width: 100%; min-height: 54px; padding: 12px 18px; border-radius: 16px;
	border: 2px solid rgb(52 24 74 / .25); background: var(--at-hueso); color: var(--at-ciruela); font-size: 1rem;
	transition: border-color .2s, box-shadow .25s var(--at-ease-out), background-color .2s;
}
.at-home .jet-form-builder .jet-form-builder__field:focus { outline: none; border-color: var(--at-ciruela); background: #fff; box-shadow: 0 0 0 4px var(--at-mantequilla); }
.at-home .jet-form-builder__fields-group { display: flex; flex-wrap: wrap; gap: 10px; }
.at-home .jet-form-builder__field-label { margin: 0; }
.at-home .jet-form-builder__field-label > span {
	display: inline-flex; align-items: center; gap: .5em; padding: .65em 1.1em; border-radius: 999px; cursor: pointer;
	border: 2px solid rgb(52 24 74 / .25); background: var(--at-hueso);
	transition: background-color .2s, border-color .2s, transform .3s var(--at-ease-spring);
}
.at-home .jet-form-builder__field-label:hover > span { transform: translateY(-2px); border-color: var(--at-ciruela); }
.at-home .jet-form-builder__field-label input { accent-color: var(--at-tomate); }
.at-home .jet-form-builder__field-label input:checked + span,
.at-home .jet-form-builder__field-label:has(input:checked) > span { background: var(--at-mantequilla); border-color: var(--at-ciruela); }

.at-home .jet-form-builder__action-button, .at-home .jet-form-builder__next-page, .at-home .jet-form-builder__prev-page,
.at-home .jet-form-builder-repeater__new {
	display: inline-flex; align-items: center; gap: .6em; padding: 1em 1.8em; border-radius: 999px; border: 2px solid var(--at-tomate);
	background: var(--at-tomate); color: var(--at-hueso); cursor: pointer;
	font-family: var(--at-display); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
	transition: transform .35s var(--at-ease-spring), box-shadow .35s var(--at-ease-out);
}
.at-home .jet-form-builder__action-button:hover, .at-home .jet-form-builder__next-page:hover, .at-home .jet-form-builder__prev-page:hover, .at-home .jet-form-builder-repeater__new:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 5px 5px 0 var(--at-ciruela); }
.at-home .jet-form-builder__action-button:active { transform: scale(.96); }
.at-home .jet-form-builder__prev-page, .at-home .jet-form-builder-repeater__new { background: transparent; color: var(--at-ciruela); border-color: var(--at-ciruela); }
.at-home .jet-form-builder__next-page::after, .at-home .jet-form-builder__submit::after { content: "✦"; }
.at-home .jet-form-builder__action-button-wrapper, .at-home .jet-form-builder__next-page-wrap { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; margin-top: 8px; }
.at-home .jet-form-builder-page:not(.jet-form-builder-page--hidden) { animation: at-rise .6s var(--at-ease-out) both; }
.at-home .jet-form-builder-messages-wrap { border-radius: 16px; }

@media (max-width: 781px) {
	.at-form-aside { position: static; }
}

/* Moved from the old Customizer "Additional CSS" (form layout bits still used by the forms). */
.horizontal-radio-options .jet-form-builder__fields-group.checkradio-wrap { flex-direction: row; }
.at-home .jet-form-builder-repeater { background: var(--at-hueso); padding: 12px; border-radius: 16px; }
.at-home .jet-form-builder-repeater[data-field-name="viajero"] .jet-form-builder-repeater__row { padding: 4px 0 !important; }
.at-home .jet-form-builder-repeater[data-field-name="habitacion"] .jet-form-builder-repeater__actions { margin: 0; }
/* Form rows (replaces GreenShift grids): N fields side by side, stacked on phones. */
.at-frow > * { margin-block-start: 0; }
.at-home .jet-form-builder-row { flex-wrap: nowrap; } /* JFB's column-wrap pushes inputs beside labels inside grid cells */
.at-frow--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
@media (max-width: 575.98px) { .at-frow--3 { grid-template-columns: 1fr; } }
.at-home .jet-form-builder-repeater__remove {
	width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer;
	background: none; color: var(--at-ciruela); opacity: .5; transition: opacity .2s, transform .3s var(--at-ease-spring);
}
.at-home .jet-form-builder-repeater__remove:hover { opacity: 1; transform: rotate(90deg); }

/* ---------- Blog page ---------- */

.at-blog--page { padding-top: clamp(32px, 5vw, 64px); }
.at-blog--page .wp-block-post-template { row-gap: clamp(40px, 5vw, 64px); }
.at-blog--page .wp-block-post-title { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.at-blog-cat { margin: 0 0 .5em; font-family: var(--at-display); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.at-blog-cat a { color: var(--at-tomate-txt); text-decoration: none; position: relative; z-index: 1; }
.at-blog .wp-block-post-excerpt { margin: 0 0 .6em; }
.at-blog .wp-block-post-excerpt__excerpt { margin: 0; line-height: 1.55; opacity: .85; }
.at-blog .wp-block-query-pagination { margin-top: clamp(40px, 5vw, 64px); justify-content: center; gap: 10px; font-family: var(--at-display); font-weight: 700; }
.at-blog .wp-block-query-pagination a, .at-blog .wp-block-query-pagination .current {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px;
	border: 2px solid var(--at-ciruela); color: var(--at-ciruela); text-decoration: none; transition: background-color .2s, color .2s;
}
.at-blog .wp-block-query-pagination .current, .at-blog .wp-block-query-pagination a:hover { background: var(--at-ciruela); color: var(--at-hueso); }

/* ---------- Single blog post ---------- */

.single-post .hero-section .page-title { font-size: clamp(2.2rem, 5.4vw, 4.4rem); text-transform: uppercase; line-height: 1.02; }
.single-post .hero-section .entry-meta, .single-post .ct-breadcrumbs { font-family: var(--at-display); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.single-post .ct-featured-image, .single-post .hero-section figure { border-radius: var(--at-radius); overflow: hidden; }
.at-prose { max-width: 760px; margin-inline: auto; }
.single-post .entry-content, .at-prose { font-size: 1.1rem; line-height: 1.75; }
.single-post .entry-content h2, .at-prose h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); text-transform: uppercase; margin-top: 2em; }
.single-post .entry-content h3, .at-prose h3 { font-size: 1.25rem; text-transform: uppercase; margin-top: 1.8em; }
.single-post .entry-content li::marker, .at-prose li::marker { color: var(--at-tomate); }
.single-post .entry-content a, .at-prose a { color: var(--at-tomate-txt); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.single-post .entry-content strong, .at-prose strong { color: var(--at-ciruela); }

.at-post-cta {
	margin: clamp(48px, 7vw, 80px) 0 0; padding: clamp(28px, 5vw, 48px); border-radius: var(--at-radius);
	background: var(--at-ciruela) url(../img/pattern.svg) center / 220px; color: var(--at-hueso); text-align: center; position: relative;
}
.at-post-cta h2 { color: var(--at-hueso); font-size: clamp(1.8rem, 4vw, 2.8rem); text-transform: uppercase; margin: 0 0 .3em; }
.at-post-cta p { margin: 0 0 1.4em; }
.at-post-cta .wp-block-buttons { justify-content: center; }
.at-post-cta__sticker { display: block; width: min(320px, 80%); height: auto; margin: 0 auto 20px; rotate: -4deg; }
