/*
Theme Name: Tu Marca Es Aquí
Theme URI: https://tumarcaesaqui.com/
Author: Tu Marca Es Aquí
Description: Tema propio, liviano y optimizado para SEO del laboratorio de maquila y marca blanca Tu Marca Es Aquí. Sin constructores visuales: los textos se editan en Personalizar, las páginas con el editor de bloques y las preguntas frecuentes desde su propio menú.
Version: 2.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: tumarca
*/

/* ==========================================================================
   Fuentes (alojadas en el propio sitio: más rápido y sin rastreo de terceros)
   ========================================================================== */
@font-face {
	font-family: "Saira Condensed";
	src: url("assets/fonts/saira-condensed-latin-300-normal.woff2") format("woff2");
	font-weight: 300;
	font-display: swap;
}
@font-face {
	font-family: "Saira Condensed";
	src: url("assets/fonts/saira-condensed-latin-500-normal.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: "Saira Condensed";
	src: url("assets/fonts/saira-condensed-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 900;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Albert Sans";
	src: url("assets/fonts/albert-sans-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: "Albert Sans";
	src: url("assets/fonts/albert-sans-latin-wght-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--white: #ffffff;
	--ink: #1c2b2b;
	--ink-soft: #4a5a5a;
	--deep: #003838;
	--deep-2: #0b4646;
	--teal: #38b9b8;
	--teal-text: #00706f;
	--mist: #eaf6f6;
	--steel: #eef2f2;
	--steel-2: #dfe6e6;
	--blush: #fbe4e1;
	--red: #c0392b;
	--cta: #f5b700;
	--cta-hover: #e0a300;
	--cta-ink: #1c2b2b;
	--focus: #9a6b00;
	--line: #d5e3e3;
	--bg: #ffffff;
	--surface: #ffffff;
	--heading: #003838;
	--logo: #4d4d4d;
	--header-bg: rgba(255, 255, 255, .94);
	--zebra: var(--zebra);
	--shadow: rgba(0, 56, 56, .12);

	--display: "Saira Condensed", "Arial Narrow", sans-serif;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 6px;
	--radius-sm: 4px;
	--radius-lg: 8px;
	--section: clamp(64px, 9vw, 120px);
	--header-h: 76px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--heading); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--heading); line-height: 1.08; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 300; letter-spacing: -.01em; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.4rem); line-height: .98; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.45rem, 2vw, 1.75rem); letter-spacing: .005em; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { font-weight: 650; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--deep); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + var(--gutter) * 2); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .7em 1.35em;
	border: 2px solid transparent; border-radius: 999px;
	font: 650 1rem/1.1 var(--body); text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: .55em 1.1em; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: .8em 1.6em; font-size: 1.06rem; }
.btn-cta { background: var(--cta); color: var(--cta-ink); box-shadow: 0 10px 24px -14px rgba(160, 110, 0, .7); }
.btn-cta:hover { background: var(--cta-hover); color: var(--cta-ink); }
.btn-dark { background: var(--deep); color: #fff; }
.btn-dark:hover { background: var(--deep-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--heading); border-color: currentColor; }
.btn-ghost:hover { background: var(--deep); color: #fff; border-color: var(--heading); }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: #e3f3f3; color: var(--deep); }
.text-link { font-weight: 650; color: var(--heading); }

/* ==========================================================================
   Encabezado
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--header-bg);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.site-logo { display: block; color: var(--logo); flex: none; }
.site-logo .logo-svg { height: 40px; width: auto; }
.custom-logo-link img { max-height: 48px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav .menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem; border-radius: var(--radius-sm); }
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--teal-text); }
.site-nav .menu-item-has-children { position: relative; }
.site-nav .sub-menu { position: absolute; left: 0; top: 100%; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(0, 56, 56, .12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.site-nav .menu-item-has-children:hover > .sub-menu, .site-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: var(--mist); color: var(--heading); border-radius: 50%; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 1260px) {
	.site-nav { gap: 14px; }
	.site-nav .menu a { padding: 10px 8px; font-size: .95rem; }
	.header-inner { gap: 16px; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
}
@media (max-width: 1100px) {
	.header-inner { min-height: 68px; }
	.site-logo .logo-svg { height: 32px; }
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: 68px 0 auto 0; z-index: 49;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px var(--gutter) 28px; background: var(--surface);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px rgba(0, 56, 56, .12);
		max-height: calc(100vh - 68px); overflow-y: auto;
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
	}
	.site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav .sub-menu,
	.site-nav .menu-item-has-children:hover > .sub-menu,
	.site-nav .menu-item-has-children:focus-within > .sub-menu { position: static; opacity: 1; visibility: inherit; transform: none; border: 0; box-shadow: none; padding: 0 0 0 16px; }
	/* Con el menú cerrado no queda ningún enlace invisible que se pueda tocar. */
	.site-nav:not(.is-open) { pointer-events: none; }
	.site-nav:not(.is-open) .sub-menu { visibility: hidden; }
}

/* ==========================================================================
   Entrada a la planta (portada)
   ========================================================================== */
.has-entry .site-header { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; transition: background-color .3s, border-color .3s; }
.has-entry.admin-bar .site-header { top: 32px; }
.has-entry .site-header:not(.is-scrolled) .site-logo { color: #fff; }
.has-entry .site-header:not(.is-scrolled) .site-nav .menu > li > a { color: #fff; }
.has-entry .site-header:not(.is-scrolled) .nav-toggle { background: rgba(255, 255, 255, .16); color: #fff; }
.has-entry .site-header.is-scrolled { background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); }
@media (max-width: 1100px) {
	.has-entry .site-header:not(.is-scrolled) .site-nav .menu > li > a { color: var(--ink); }
}
.entry { position: relative; height: 230vh; background: #0e2a2a; }
.entry-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.entry-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.entry-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; transform-origin: 50% 46%; will-change: transform, filter; }
.entry-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 40, 40, .5) 0%, rgba(0, 40, 40, 0) 26%), linear-gradient(20deg, rgba(0, 34, 34, .86) 6%, rgba(0, 56, 56, .4) 42%, rgba(0, 56, 56, 0) 72%); will-change: opacity; }
.entry-inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(48px, 9vh, 110px); will-change: transform, opacity; }
.entry-where { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: rgba(255, 255, 255, .88); margin-bottom: 18px; }
.entry-where .icon { color: var(--teal); }
.entry-title { color: #fff; max-width: 13ch; font-size: clamp(2.8rem, 7vw, 6.2rem); margin-bottom: .3em; }
.entry-lead { font-size: clamp(1.06rem, 1.5vw, 1.25rem); max-width: 52ch; color: rgba(255, 255, 255, .9); }
.entry-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.entry-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; font-size: .8rem; letter-spacing: .04em; color: rgba(255, 255, 255, .8); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.entry-hint span { width: 1px; height: 36px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 760px) {
	.entry-actions .btn { flex: 1 1 100%; }
	.entry-hint { display: none; }
}

/* ==========================================================================
   Recorrido de planta: toma continua controlada por el scroll
   ========================================================================== */
.tour { position: relative; background: #0e2a2a; color: #fff; }
.tour-track { height: calc(var(--stations) * 150vh - 100svh); }
.tour-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; z-index: 1; }
.tour-sticky + .tour-track { position: relative; z-index: 0; }
.tour-media { position: absolute; inset: 0; }
.tour-still, .tour-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-still { opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.4s cubic-bezier(.2, .6, .2, 1); }
.tour-still.is-on { opacity: 1; transform: none; }
.tour-still.is-out { opacity: 0; transform: scale(1.18); }
.tour-canvas { display: none; }
.tour.has-seq .tour-canvas { display: block; }
.tour.has-seq .tour-still { display: none; }
.tour-shade { position: absolute; inset: 0; pointer-events: none; transition: opacity .2s; background: linear-gradient(90deg, rgba(0, 28, 28, .86) 0%, rgba(0, 28, 28, .55) 34%, rgba(0, 28, 28, 0) 64%), linear-gradient(0deg, rgba(0, 28, 28, .7) 0%, rgba(0, 28, 28, 0) 34%), linear-gradient(180deg, rgba(0, 28, 28, .45) 0%, rgba(0, 28, 28, 0) 18%); }
.tcopy { text-shadow: 0 2px 18px rgba(0, 20, 20, .45); }
.tour-hero { position: absolute; left: 0; right: 0; bottom: clamp(48px, 10vh, 120px); z-index: 2; will-change: opacity, transform; }
.tour-hero .entry-title { text-shadow: 0 2px 30px rgba(0, 20, 20, .35); }
.tour .entry-hint { z-index: 2; }
.tour-still-hero { transform: none; }
.tour.has-seq .tour-still-hero { display: block; transition: opacity .3s; }
.tour.seq-ready .tour-still-hero { opacity: 0; }
.tour-copy { position: absolute; left: 0; right: 0; bottom: clamp(96px, 16vh, 170px); }
.tcopy { position: absolute; left: var(--gutter); bottom: 0; max-width: 560px; opacity: 0; transform: translateY(28px); transition: opacity .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.tcopy.is-on { opacity: 1; transform: none; pointer-events: auto; }
.tcopy-num { font: 500 1.05rem/1.2 var(--display); color: var(--teal); margin-bottom: 6px; letter-spacing: .02em; }
.tcopy-title { color: #fff; font-size: clamp(3rem, 8vw, 7rem); line-height: .92; margin-bottom: .2em; }
.tcopy-lead { font-size: clamp(1rem, 1.3vw, 1.15rem); color: rgba(255, 255, 255, .9); max-width: 50ch; }
.tcopy-yours { font-size: .98rem; color: #fff; background: rgba(0, 56, 56, .55); backdrop-filter: blur(6px); border-left: 3px solid var(--teal); padding: 10px 14px; border-radius: 0 10px 10px 0; display: inline-block; margin: 0; }
.tcopy-yours strong { color: var(--teal); }
.tour .rail { transition: opacity .4s; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; gap: 0; margin: 0 auto; padding: 0; list-style: none; max-width: var(--wrap); }
.tour .rail li:not(.rail-bar) { flex: 1; display: flex; align-items: center; gap: 8px; padding-bottom: 12px; color: rgba(255, 255, 255, .5); font: 500 .98rem/1.1 var(--display); transition: color .3s; }
.tour .rail-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; border: 2px solid currentColor; transition: .3s; }
.tour .rail li.is-done { color: rgba(255, 255, 255, .78); }
.tour .rail li.is-done .rail-dot { background: var(--teal); border-color: var(--teal); }
.tour .rail li.is-on { color: #fff; }
.tour .rail li.is-on .rail-dot { background: var(--teal); border-color: #fff; transform: scale(1.35); }
.tour .rail-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .18); }
.tour .rail-bar span { display: block; height: 100%; width: 0; background: var(--teal); }
@media (max-width: 899px) {
	.tour-track { height: calc(var(--stations) * 120vh - 100svh); }
	.tour-shade { background: linear-gradient(0deg, rgba(0, 30, 30, .9) 0%, rgba(0, 30, 30, .5) 45%, rgba(0, 30, 30, 0) 70%); }
	.tour-copy { bottom: 74px; }
	.tcopy { right: var(--gutter); }
	.tcopy-lead { font-size: .98rem; }
	.tour .rail li:not(.rail-bar) .rail-label { display: none; }
	.tour .rail li.is-on .rail-label { display: inline; }
	.tour .rail li.is-on { flex: 3; }
}
/* Sin movimiento: estaciones como bloques normales */
.tour.is-static .tour-track { display: none; }
.tour.is-static .tour-sticky { position: relative; height: auto; margin: 0; }
.tour.is-static .tour-media, .tour.is-static .tour-shade, .tour.is-static .rail { display: none; }
.tour.is-static .tour-copy { position: static; padding-block: var(--section); }
.tour.is-static .tcopy { position: static; opacity: 1; transform: none; margin-bottom: 48px; max-width: 760px; }

/* ==========================================================================
   Secciones
   ========================================================================== */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { font-size: 1.12rem; color: var(--ink-soft); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* Testimonios */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote { margin: 0; padding: 28px; background: var(--blush); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; }
.quote blockquote { margin: 0 0 20px; font-size: 1.12rem; }
.quote figcaption { display: flex; gap: 12px; align-items: center; font-size: .95rem; }
.quote-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }

/* Preguntas frecuentes */
.faq-section { background: var(--blush); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 110px; }
@media (max-width: 900px) {
	.faq-grid { grid-template-columns: 1fr; }
	.faq-grid .section-head { position: static; }
}
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; font-weight: 650; font-size: 1.1rem; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq-sign { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .25s; }
.faq[open] .faq-sign { transform: rotate(45deg); }
.faq-a { padding: 0 40px 20px 0; color: var(--ink); }
.faq-a p:last-child { margin-bottom: 0; }
.prose .faq-list { margin-block: 1em 2em; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card-link { text-decoration: none; color: inherit; }
.post-card-media { overflow: hidden; border-radius: var(--radius); margin-bottom: 16px; }
.post-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.post-card-link:hover img { transform: scale(1.03); }
.post-card-link:hover h3 { color: var(--teal-text); }
.post-card p { color: var(--ink-soft); }
.post-meta { font-size: .9rem; color: var(--ink-soft); }
.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.page-numbers { padding: 8px 14px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); }
.page-numbers.current { background: var(--deep); color: #fff; border-color: var(--heading); }
.empty { max-width: 560px; }

/* ==========================================================================
   Cotizador
   ========================================================================== */
.quote-section { background: linear-gradient(var(--bg) 0 50%, var(--mist) 50% 100%); }
.cotizador { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 52px); box-shadow: 0 30px 60px -30px rgba(0, 56, 56, .28); max-width: 900px; margin-inline: auto; }
.cot-title { margin-bottom: .25em; }
.cot-sub { color: var(--ink-soft); max-width: 60ch; }
.cot-progress { height: 6px; background: var(--mist); border-radius: 99px; overflow: hidden; margin-top: 20px; }
.cot-progress span { display: block; height: 100%; width: 16%; background: var(--teal); border-radius: 99px; transition: width .35s ease; }
.cot-count { font-size: .9rem; color: var(--ink-soft); margin: 8px 0 18px; }
.cot-step { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.js .cot-step { display: none; margin: 0; }
.js .cot-step.is-active { display: block; animation: cot-in .3s ease; }
@keyframes cot-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.cot-step legend { font: 500 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--display); color: var(--heading); margin-bottom: 16px; padding: 0; }
.cot-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cot-opt { position: relative; cursor: pointer; }
.cot-opt input { position: absolute; opacity: 0; inset: 0; }
.cot-opt span { display: flex; align-items: center; min-height: 64px; height: 100%; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: var(--radius); font-weight: 600; transition: .15s; }
.cot-opt:hover span { border-color: var(--teal); }
.cot-opt input:checked + span { border-color: var(--heading); background: var(--deep); color: #fff; }
.cot-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.cot-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--heading); }
.field input, .field textarea { width: 100%; padding: 13px 15px; font: inherit; color: var(--ink); background: var(--mist); border: 1.5px solid transparent; border-radius: var(--radius-sm); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--surface); }
.field-wide { grid-column: 1 / -1; }
.cot-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: .92rem; color: var(--ink-soft); }
.cot-consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--heading); }
.cot-error { color: var(--red); font-weight: 600; margin: 14px 0 0; }
.cot-nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 26px; flex-wrap: wrap; }
.cot-nav [data-cot-prev] { margin-right: auto; }
@media (max-width: 600px) {
	.cot-fields { grid-template-columns: 1fr; }
	.cot-nav .btn { flex: 1; }
}

/* ==========================================================================
   Llamado final
   ========================================================================== */
.cta-band { background: var(--teal); color: var(--deep); padding-block: clamp(56px, 8vw, 96px); }
.cta-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px 64px; align-items: center; }
.cta-band h2 { color: var(--deep); margin-bottom: .3em; max-width: 18ch; }
.cta-band p { font-size: 1.15rem; max-width: 48ch; margin: 0; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-link { color: var(--deep); font-weight: 650; }
@media (max-width: 800px) {
	.cta-inner { grid-template-columns: 1fr; }
	.cta-actions .btn { width: 100%; }
}

/* ==========================================================================
   Páginas internas
   ========================================================================== */
.page-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 72px); }
.page-hero.has-photo { background: var(--mist); border-bottom: 0; }
.page-hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px 56px; align-items: center; }
.has-photo .page-hero-grid { grid-template-columns: 1.1fr .9fr; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.3rem); max-width: 16ch; }
.page-lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 56ch; }
.page-hero .btn { margin-top: 8px; }
.page-hero-media { margin: 0; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 860px) {
	.has-photo .page-hero-grid { grid-template-columns: 1fr; }
	.page-hero-media img { aspect-ratio: 16 / 10; }
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .88rem; color: var(--ink-soft); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { color: var(--ink-soft); }
.single-media img { border-radius: var(--radius); width: 100%; margin-bottom: 40px; }

/* Contenido del editor de bloques */
.prose { padding-bottom: var(--section); }
.prose > * { max-width: 760px; }
.prose > .alignwide, .prose > .wp-block-columns, .prose > .wp-block-table, .prose > .faq-list, .prose > .photo-row, .prose > .cotizador, .prose > .wp-block-group.is-wide, .prose > .quotes, .prose > .contact-cards { max-width: none; }
.prose > .alignfull, .prose > .cta-band { max-width: none; margin-inline: calc(var(--gutter) * -1); }
@media (min-width: 1280px) { .prose > .alignfull, .prose > .cta-band { margin-inline: calc((100vw - var(--wrap)) / -2); } }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--teal-text); }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--teal); font-size: 1.15rem; }
.prose .wp-block-image img { border-radius: var(--radius); }
.prose .wp-block-table { margin: 2em 0; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose .wp-block-table th, .prose .wp-block-table td, .prose th, .prose td { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose .wp-block-table thead { border-bottom: 0; }
.prose .wp-block-table table { border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.prose .wp-block-table tbody tr:last-child td { border-bottom: 0; }
.prose thead th { background: var(--deep); color: #fff; font-weight: 650; }
.prose tbody tr:nth-child(even) { background: var(--zebra); }
.prose .wp-block-columns { gap: clamp(20px, 3vw, 40px); margin-block: 2em; }
.prose .is-style-panel, .prose .panel { background: var(--mist); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.prose .panel h3:first-child, .prose .panel h2:first-child { margin-top: 0; }
.prose .panel > :last-child { margin-bottom: 0; }
.prose .panel-blush { background: var(--blush); }
.prose .panel-deep { background: var(--deep); color: #dfeeee; }
.prose .panel-deep h2, .prose .panel-deep h3 { color: #fff; }
.prose .wp-block-group.is-wide { margin-block: 2.4em; }
.prose .check-list { list-style: none; padding-left: 0; }
.prose .check-list li { position: relative; padding-left: 32px; }
.prose .check-list li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.prose .step-ol { counter-reset: s; list-style: none; padding-left: 0; }
.prose .step-ol li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 1.1em; }
.prose .step-ol li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--deep); color: #fff; font: 700 1.1rem/1 var(--display); }
.prose-legal { font-size: 1rem; }
.prose-legal h2 { font-family: var(--body); font-weight: 700; font-size: 1.3rem; }

/* Fotos */
.photo-row { display: grid; gap: 14px; margin-block: 2.2em; }
.photo-row-2 { grid-template-columns: 1fr 1fr; }
.photo-row-3 { grid-template-columns: repeat(3, 1fr); }
.photo-row-4 { grid-template-columns: repeat(4, 1fr); }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo figcaption { font-size: .86rem; color: var(--ink-soft); margin-top: 8px; }
@media (max-width: 700px) { .photo-row-3, .photo-row-4 { grid-template-columns: 1fr 1fr; } .photo-row-3 .photo:last-child { display: none; } }

/* Contacto */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.contact-list .icon { margin-top: 3px; color: var(--teal); }
.contact-list a { color: inherit; }
.prose .contact-list { font-size: 1.1rem; }
.prose .contact-list li::marker { content: none; }
.links-404 { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Pie
   ========================================================================== */
.site-footer { background: var(--deep); color: #c9dede; padding-top: clamp(56px, 7vw, 88px); font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 40px; }
.footer-brand p { max-width: 40ch; margin-top: 18px; }
.site-footer .site-logo { color: #fff; }
.site-footer .site-logo .logo-svg { height: 38px; }
.footer-title { font: 650 1rem/1.3 var(--body); color: #fff; margin-bottom: 14px; }
.site-footer .menu { list-style: none; margin: 0; padding: 0; }
.site-footer .menu li { margin-bottom: 8px; }
.site-footer a { color: #e7f3f3; text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.socials { display: flex; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-block: 22px 28px; background: linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, .14)) var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px no-repeat; font-size: .88rem; }
.footer-legal p { margin: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* Botón flotante de WhatsApp */
.wa-float {
	position: fixed; right: 18px; bottom: 18px; z-index: 40;
	width: 60px; height: 60px; border-radius: 50%;
	display: grid; place-items: center;
	background: #25d366; color: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
	transition: transform .2s, opacity .2s;
}
.wa-float .icon { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* Alineaciones de WordPress */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--ink-soft); }

/* ==========================================================================
   Modo oscuro (botón en el encabezado + hora local del visitante)
   ========================================================================== */
[data-theme="dark"] {
	--bg: #0b1616;
	--surface: #112121;
	--mist: #132929;
	--steel: #0f1e1e;
	--steel-2: #1a3030;
	--line: #21403f;
	--ink: #d3e2e1;
	--ink-soft: #9bb3b2;
	--heading: #eef7f6;
	--teal-text: #5fd4d3;
	--blush: #1d2424;
	--logo: #e6efef;
	--header-bg: rgba(11, 22, 22, .9);
	--zebra: #0f1d1d;
	--shadow: rgba(0, 0, 0, .45);
	--focus: #f5b700;
	--red: #ff6b5b;
}
[data-theme="dark"] a:hover { color: #fff; }
[data-theme="dark"] .site-footer { background: #071010; }
[data-theme="dark"] .compare thead th, [data-theme="dark"] .compare thead td { background: #0d3333; }
[data-theme="dark"] img { filter: brightness(.94) contrast(1.02); }
[data-theme="dark"] .tour img, [data-theme="dark"] .site-logo img { filter: none; }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease !important; }

.theme-toggle {
	order: 3; flex: none; width: 44px; height: 44px; display: inline-grid; place-items: center;
	border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--heading);
	cursor: pointer; transition: transform .3s ease, background-color .2s, color .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--mist); transform: rotate(-18deg); }
.theme-toggle .icon { width: 20px; height: 20px; grid-area: 1 / 1; transition: opacity .3s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
.site-nav { order: 2; }
.nav-toggle { order: 4; }
.has-entry .site-header:not(.is-scrolled) .theme-toggle { color: #fff; border-color: rgba(255, 255, 255, .35); }
.has-entry .site-header:not(.is-scrolled) .theme-toggle:hover { background: rgba(255, 255, 255, .14); }
@media (max-width: 1100px) {
	.theme-toggle { margin-left: auto; width: 48px; height: 48px; }
	.nav-toggle { margin-left: 0; }
}

/* ==========================================================================
   Aparición al entrar en pantalla
   ========================================================================== */
.can-reveal [data-reveal] {
	opacity: 0; transform: translateY(36px);
	transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
	transition-delay: calc(var(--d, 0) * 110ms);
}
.can-reveal [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.can-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}
.eyebrow { font: 600 .82rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-text); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--teal); }

/* ==========================================================================
   Experiencia
   ========================================================================== */
.exp { background: var(--steel); position: relative; overflow: hidden; }
.exp::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(70% 60% at 80% 0%, #000, transparent 75%);
	-webkit-mask-image: radial-gradient(70% 60% at 80% 0%, #000, transparent 75%);
}
.exp .wrap { position: relative; }
.exp-head { max-width: 780px; }
.exp-head h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 300; line-height: 1; }
.exp-num { font-weight: 700; color: var(--teal-text); font-variant-numeric: tabular-nums; }
.exp-head > p:last-child { font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; }

.exp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: clamp(36px, 5vw, 60px) 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.exp-stats > div { background: var(--surface); padding: 24px 24px 22px; position: relative; }
.exp-stats > div::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 1s .3s cubic-bezier(.2, .7, .2, 1); }
.exp-stats > div.is-in::after { transform: scaleX(1); }
.exp-stats dt { font-size: .84rem; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 8px; }
.exp-stats dd { margin: 0; color: var(--ink); }
.exp-stats strong { display: block; font: 700 clamp(2.4rem, 4vw, 3.2rem)/1 var(--display); color: var(--heading); margin-bottom: 6px; font-variant-numeric: tabular-nums; }

.exp-lines { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 32px); }
.exp-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s, opacity .8s; }
.exp-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px var(--shadow); }
.exp-media { overflow: hidden; aspect-ratio: 16 / 9; }
.exp-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.exp-card:hover .exp-media img { transform: scale(1.06); }
.exp-body { padding: clamp(22px, 3vw, 34px); }
.exp-kicker { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-text); font-weight: 650; margin: 0 0 8px; }
.exp-body h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 500; margin-bottom: 16px; }
.exp-chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.exp-chips li { padding: 7px 14px; border-radius: 999px; background: var(--mist); color: var(--heading); font-size: .92rem; font-weight: 550; transition: background-color .2s, color .2s; }
.exp-card:hover .exp-chips li { background: var(--deep); color: #fff; }
.exp-card:hover .exp-chips li:nth-child(2) { transition-delay: .03s; }
.exp-packs { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.exp-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 44px); }
.exp-foot p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 860px) {
	.exp-stats { grid-template-columns: 1fr 1fr; }
	.exp-lines { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Tres formas de lanzar tu línea
   ========================================================================== */
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); perspective: 1200px; }
.path {
	--mx: 50%; --my: 0%; --rx: 0deg; --ry: 0deg;
	position: relative; isolation: isolate; overflow: hidden; cursor: pointer;
	display: flex; flex-direction: column;
	border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
	transform: rotateX(var(--rx)) rotateY(var(--ry));
	transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s, border-color .4s, opacity .8s;
}
.can-reveal .path[data-reveal] { transform: translateY(60px) rotateX(8deg); }
.can-reveal .path[data-reveal].is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.path::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(56, 185, 184, .22), transparent 60%); }
.path:hover { border-color: var(--teal); box-shadow: 0 40px 70px -36px var(--shadow); }
.path:hover::after { opacity: 1; }
.path-bg { position: absolute; inset: 0 0 auto; height: 210px; z-index: -2; overflow: hidden; }
.path-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.path-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 40, 40, .25), rgba(0, 46, 46, .92) 92%); transition: background-color .4s; }
.path:hover .path-bg img { transform: scale(1.18); }
.path-top { min-height: 210px; padding: 22px 26px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.path-n { position: absolute; top: 18px; right: 22px; font: 700 3.4rem/1 var(--display); color: rgba(255, 255, 255, .22); transition: color .4s, transform .5s; }
.path:hover .path-n { color: var(--teal); transform: translateY(-4px); }
.path h3 { margin: 0; }
.path h3 a { color: #fff; text-decoration: none; font: 500 clamp(1.8rem, 2.6vw, 2.3rem)/1.05 var(--display); }
.path h3 a:focus-visible { outline-offset: 6px; }
.path-tag { margin: 6px 0 0; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.path-rows { margin: 0; padding: 8px 26px 6px; flex: 1; }
.path-rows > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.path-rows > div:last-child { border-bottom: 0; }
.path-rows dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; color: var(--teal-text); margin-bottom: 4px; }
.path-rows dd { margin: 0; color: var(--ink); line-height: 1.45; }
.path-rows > div { opacity: .9; transition: transform .35s, opacity .35s; }
.path:hover .path-rows > div { opacity: 1; transform: translateX(4px); }
.path:hover .path-rows > div:nth-child(2) { transition-delay: .04s; }
.path:hover .path-rows > div:nth-child(3) { transition-delay: .08s; }
.path:hover .path-rows > div:nth-child(4) { transition-delay: .12s; }
.path-go { display: flex; align-items: center; gap: 8px; margin: 0 26px 24px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 650; color: var(--heading); }
.path-go .icon { width: 20px; height: 20px; transition: transform .35s; }
.path:hover .path-go { color: var(--teal-text); }
.path:hover .path-go .icon { transform: translateX(6px); }
.path-min { margin: clamp(24px, 3vw, 36px) 0 0; text-align: center; color: var(--ink-soft); }
.path-min strong { color: var(--heading); }
@media (max-width: 900px) {
	.path-grid { grid-template-columns: 1fr; }
	.path-top, .path-bg { min-height: 180px; height: 180px; }
}
.can-reveal .exp-card[data-reveal], .can-reveal .path[data-reveal] { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .5s, border-color .4s; transition-delay: calc(var(--d, 0) * 110ms); }
.can-reveal [data-reveal].rv-done { transition-delay: 0s; }
[data-theme="dark"] .cta-band { background: linear-gradient(120deg, #0d3a3a, #0b2a2a); color: var(--ink); }
[data-theme="dark"] .cta-band h2 { color: #fff; }
[data-theme="dark"] .cta-link { color: var(--teal-text); }

/* ==========================================================================
   Artículos: formato de revista de investigación
   ========================================================================== */
.rj-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.rj-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--teal), var(--cta)); }
.rj-head { padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); background:
	linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 32px; background-color: var(--bg); position: relative; }
.rj-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 50%, var(--bg) 100%); pointer-events: none; }
.rj-head .wrap { position: relative; z-index: 1; }
.rj-masthead { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 22px; font: 600 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-text); }
.rj-masthead span + span::before { content: ""; display: inline-block; width: 22px; height: 1px; margin: 0 12px; vertical-align: middle; background: currentColor; opacity: .6; }
.rj-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 4.1rem); line-height: 1.06; letter-spacing: -.015em; max-width: 22ch; margin-bottom: .35em; }
.rj-dek { font: italic 400 clamp(1.15rem, 1.8vw, 1.42rem)/1.5 var(--serif); color: var(--ink-soft); max-width: 60ch; margin: 0 0 28px; }
.rj-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; padding-top: 20px; border-top: 2px solid var(--heading); }
.rj-meta dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.rj-meta dd { margin: 0; font-weight: 600; color: var(--heading); }
.rj-meta a { color: inherit; }
.rj-cover { margin-top: clamp(24px, 4vw, 44px); margin-bottom: 0; }
.rj-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 4px; }
.rj figcaption, .rj .wp-element-caption { font: 400 .9rem/1.5 var(--body); color: var(--ink-soft); margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--teal); text-align: left; }
.rj figcaption strong { color: var(--heading); font-weight: 700; }

.rj-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-top: clamp(36px, 5vw, 64px); }
.rj-aside { position: relative; }
.rj-toc { position: sticky; top: calc(var(--header-h) + 28px); font-size: .9rem; }
.rj-toc-title { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; }
.rj-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); counter-reset: toc; }
.rj-toc li { counter-increment: toc; }
.rj-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.35; transition: color .2s, border-color .2s; }
.rj-toc a::before { content: counter(toc, decimal-leading-zero) " "; font: 700 .8rem var(--display); color: var(--teal-text); margin-right: 4px; }
.rj-toc a:hover, .rj-toc a.is-on { color: var(--heading); border-left-color: var(--teal); }
@media (max-width: 1000px) {
	.rj-layout { grid-template-columns: 1fr; }
	.rj-aside { display: none; }
}

.rj-body { font-family: var(--serif); font-size: 1.16rem; line-height: 1.72; color: var(--ink); }
.rj-body > * { max-width: 720px; }
.rj-body h2 { font: 600 clamp(1.7rem, 2.8vw, 2.25rem)/1.15 var(--serif); letter-spacing: -.01em; margin-top: 2em; padding-top: .9em; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.rj-body h2 .rj-sec { display: block; font: 700 .85rem/1 var(--display); letter-spacing: .12em; color: var(--teal-text); margin-bottom: 10px; }
.rj-body h3 { font: 600 1.35rem/1.25 var(--serif); }
.rj-body > p:first-of-type::first-letter, .rj-body .rj-lead::first-letter { float: left; font: 600 4.6em/.82 var(--serif); margin: .06em .1em 0 0; color: var(--teal-text); }
.rj-body strong { color: var(--heading); }
.rj-body .rj-cite { font: 700 .66em/0 var(--body); vertical-align: super; margin-left: 1px; }
.rj-body .rj-cite a { text-decoration: none; color: var(--teal-text); padding: 0 2px; border-radius: 3px; background: color-mix(in srgb, var(--teal) 14%, transparent); }
.rj-body .rj-cite a:hover { background: var(--teal); color: #fff; }
.rj-tip { position: absolute; z-index: 70; max-width: 340px; padding: 12px 14px; border-radius: 10px; background: var(--deep); color: #e6f2f2; font: 400 .86rem/1.45 var(--body); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.rj-tip.is-on { opacity: 1; transform: none; }

/* Resumen */
.rj-body .rj-abstract { max-width: none; font-family: var(--body); font-size: 1.02rem; line-height: 1.65; background: var(--mist); border-radius: 4px; padding: clamp(22px, 3vw, 34px); border-top: 4px solid var(--teal); margin-bottom: 2.2em; }
.rj-body .rj-abstract h2 { font: 700 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-text); border: 0; padding: 0; margin: 0 0 14px; }
.rj-body .rj-abstract p::first-letter { float: none; font: inherit; margin: 0; color: inherit; }
.rj-body .rj-abstract > :last-child { margin-bottom: 0; }
.rj-body .rj-keywords { font-size: .92rem; color: var(--ink-soft); margin-top: 14px; }
.rj-body .rj-keywords strong { color: var(--heading); }

/* Cifras destacadas */
.rj-body .rj-stats { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 2.2em 0; font-family: var(--body); }
.rj-body .rj-stat { background: var(--surface); padding: 22px 22px 18px; margin: 0; }
.rj-body .rj-stat > * { margin: 0; }
.rj-body .rj-stat-num { font: 700 clamp(2.4rem, 4vw, 3.3rem)/1 var(--display); color: var(--heading); margin-bottom: 8px !important; }
.rj-body .rj-stat-num em { font-style: normal; color: var(--teal-text); }
.rj-body .rj-stat-txt { font-size: .98rem; line-height: 1.45; color: var(--ink); }
.rj-body .rj-stat-src { font-size: .78rem; letter-spacing: .02em; color: var(--ink-soft); margin-top: 10px !important; }

/* Figuras */
.rj-body .wp-block-image { max-width: none; margin: 2.4em 0; }
.rj-body .wp-block-image img { border-radius: 4px; width: 100%; height: auto; }

/* Definición */
.rj-body .rj-def { position: relative; font-family: var(--body); font-size: 1.04rem; line-height: 1.6; padding: 22px 24px 22px 26px; margin: 1.6em 0; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--deep); border-radius: 0 6px 6px 0; }
[data-theme="dark"] .rj-body .rj-def { border-left-color: var(--teal); }
.rj-body .rj-def > * { margin: 0; }
.rj-body .rj-def-term { font: 700 .76rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-text); margin-bottom: 10px !important; }

/* Cita destacada */
.rj-body .rj-pull { max-width: none; margin: 2.2em 0; padding: 0; border: 0; text-align: left; }
.rj-body .rj-pull p { font: italic 500 clamp(1.5rem, 2.6vw, 2.1rem)/1.3 var(--serif); color: var(--heading); margin: 0; padding-left: clamp(18px, 3vw, 40px); border-left: 3px solid var(--cta); }

/* Tabla comparativa */
.rj-body .wp-block-table { max-width: none; font-family: var(--body); font-size: .96rem; line-height: 1.5; }
.rj-body .wp-block-table figcaption { margin-top: 12px; }

/* Conclusiones */
.rj-body .rj-key { font-family: var(--body); font-size: 1.04rem; background: var(--deep); color: #dcecec; border-radius: 6px; padding: clamp(22px, 3vw, 34px); margin: 2.2em 0; max-width: none; }
.rj-body .rj-key h3 { color: #fff; font: 700 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; }
.rj-body .rj-key ul { margin: 0; padding-left: 1.2em; }
.rj-body .rj-key li { margin-bottom: .6em; }
.rj-body .rj-key li::marker { color: var(--teal); }
.rj-body .rj-key strong { color: #fff; }

/* Referencias */
.rj-body .rj-refs-title { font: 700 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-text); }
.rj-body .rj-refs { font: 400 .92rem/1.55 var(--body); color: var(--ink-soft); padding-left: 1.6em; }
.rj-body .rj-refs li { padding: 6px 0; scroll-margin-top: calc(var(--header-h) + 20px); transition: background-color .4s; }
.rj-body .rj-refs li:target { background: color-mix(in srgb, var(--teal) 16%, transparent); }
.rj-body .rj-refs li::marker { color: var(--heading); font-weight: 700; }
.rj-body .rj-refs a { word-break: break-word; }
.rj-body .rj-note { font: 400 .86rem/1.55 var(--body); color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 14px; }
.rj-body .wp-block-group__inner-container { display: contents; }
.admin-bar .rj-toc { top: calc(var(--header-h) + 60px); }

/* ==========================================================================
   Marca blanca: recorrido panorámico de 4 pasos con mano-cursor
   ========================================================================== */
.wl { --wl-ink: var(--deep); --wl-soft: #2f5b5a; position: relative; background: var(--bg); }
[data-theme="dark"] .wl { --wl-ink: #f2fbfa; --wl-soft: #b9d3d1; }
.wl-track { height: calc(var(--wl-steps) * 120vh - 100svh); }
.wl-sticky { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); overflow: hidden; z-index: 1; color: var(--wl-ink); }
.admin-bar .wl-sticky { top: calc(var(--header-h) + 32px); height: calc(100svh - var(--header-h) - 32px); }
.wl-stage { position: absolute; inset: 0; overflow: hidden; user-select: none; }
.wl-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wl-bg-dark { opacity: 0; transition: opacity .5s; }
[data-theme="dark"] .wl-bg-dark { opacity: 1; }
.wl-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 88%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 30%, transparent 55%); }

/* Portada del recorrido */
.wl-hero { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 3; will-change: opacity, transform; }
.wl-hero > * { max-width: 540px; }
.wl-hero h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: .98; color: var(--wl-ink); margin-bottom: .3em; }
.wl-lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--wl-soft); margin: 0 0 18px; }
.wl-hint { position: static; transform: none; align-items: flex-start; color: var(--wl-soft); }
.wl-hint span { background: linear-gradient(transparent, currentColor); }
.wl .breadcrumbs ol, .wl .breadcrumbs a { color: var(--wl-soft); }

/* Textos de cada paso */
.wl-copy { position: absolute; left: 0; right: 0; bottom: clamp(84px, 13vh, 130px); z-index: 3; pointer-events: none; }
.wl-step { position: absolute; left: var(--gutter); bottom: 0; max-width: 500px; opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.wl-step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wl-step .tcopy-num { color: var(--teal-text); }
.wl-step-title { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .95; font-weight: 300; color: var(--wl-ink); margin-bottom: .3em; }
.wl-step-text { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--wl-soft); max-width: 46ch; margin-bottom: 18px; }

/* Riel de pasos */
.wl-rail { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px; z-index: 3; display: flex; margin: 0 auto; padding: 0; list-style: none; max-width: var(--wrap); opacity: 0; transition: opacity .4s; }
.wl.is-going .wl-rail { opacity: 1; }
.wl-rail li:not(.rail-bar) { flex: 1; display: flex; align-items: center; gap: 8px; padding-bottom: 12px; color: color-mix(in srgb, var(--wl-ink) 45%, transparent); font: 500 .98rem/1.1 var(--display); transition: color .3s; cursor: pointer; }
.wl-rail .rail-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; border: 2px solid currentColor; transition: .3s; }
.wl-rail li.is-done { color: color-mix(in srgb, var(--wl-ink) 75%, transparent); }
.wl-rail li.is-done .rail-dot { background: var(--teal); border-color: var(--teal); }
.wl-rail li.is-on { color: var(--wl-ink); }
.wl-rail li.is-on .rail-dot { background: var(--teal); border-color: var(--wl-ink); transform: scale(1.35); }
.wl-rail .rail-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: color-mix(in srgb, var(--wl-ink) 15%, transparent); }
.wl-rail .rail-bar span { display: block; height: 100%; width: 0; background: var(--teal); }

/* Piezas de la escena (posición y escala las controla el script) */
.wl-obj, .wl-pointer, .wl-chip { position: absolute; left: 0; top: 0; will-change: transform, opacity; opacity: 0; }
.wl-obj img { display: block; width: 100%; height: auto; pointer-events: none; }
.wl-pack img, .wl-product img { filter: drop-shadow(0 28px 22px rgba(0, 40, 40, .22)) drop-shadow(0 6px 6px rgba(0, 40, 40, .12)); }
.wl-label { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); padding: 6px 14px; border-radius: 999px; background: var(--deep); color: #fff; font: 600 .82rem/1 var(--body); letter-spacing: .04em; white-space: nowrap; opacity: 0; transition: opacity .4s, transform .4s; }
.wl-obj.is-picked .wl-label { opacity: 1; transform: translate(-50%, 12px); }

/* Fórmulas: textos sobre un arco */
.wl-chip {
	display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px; border-radius: 999px;
	font: 500 clamp(1rem, 1.5vw, 1.3rem)/1 var(--display); letter-spacing: .02em; white-space: nowrap; color: var(--wl-ink);
	background: color-mix(in srgb, var(--surface) 62%, transparent); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3);
	border: 1px solid color-mix(in srgb, var(--wl-ink) 14%, transparent);
	box-shadow: 0 18px 40px -24px rgba(0, 40, 40, .45);
	transition: background-color .35s, color .35s, border-color .35s, box-shadow .35s;
}
.wl-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; transition: transform .35s; }
.wl-chip.is-hover { border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 22%, transparent), 0 18px 40px -24px rgba(0, 40, 40, .45); }
.wl-chip.is-picked { background: var(--deep); color: #fff; border-color: var(--deep); }
.wl-chip.is-picked i { transform: scale(1.4); background: var(--teal); box-shadow: 0 0 0 4px rgba(56, 185, 184, .35); }

/* Mano-cursor */
.wl-pointer { z-index: 6; pointer-events: none; }
.wl-pointer img { position: absolute; left: 0; top: 0; width: 100%; height: auto; filter: drop-shadow(0 22px 18px rgba(0, 40, 40, .28)); transition: transform .14s ease-out; transform-origin: var(--hx, 20%) var(--hy, 5%); }
.wl-pointer.is-press img { transform: scale(.92) translateY(2%); }
.wl-click { position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 2px solid var(--teal); opacity: 0; }
.wl-pointer.is-press .wl-click { animation: wl-ring .7s ease-out; }
@keyframes wl-ring { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
.wl-palm { z-index: 4; }
.wl-palm img { filter: drop-shadow(0 26px 24px rgba(0, 40, 40, .25)); }
.wl-product { z-index: 5; }
.wl-product img { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform-origin: 50% 100%; }
.wl-product img.is-on { opacity: 1; }
.wl-product.is-glitch img.is-on { animation: wl-glitch .32s steps(3, end); }
@keyframes wl-glitch {
	0% { clip-path: inset(0 0 0 0); transform: translateX(0); filter: none; }
	25% { clip-path: inset(12% 0 48% 0); transform: translateX(-3%); filter: drop-shadow(-6px 0 0 rgba(245, 183, 0, .6)) drop-shadow(6px 0 0 rgba(56, 185, 184, .65)); }
	50% { clip-path: inset(46% 0 8% 0); transform: translateX(3%); filter: drop-shadow(5px 0 0 rgba(245, 183, 0, .6)) drop-shadow(-5px 0 0 rgba(56, 185, 184, .65)); }
	75% { clip-path: inset(0 0 62% 0); transform: translateX(-1%); }
	100% { clip-path: inset(0 0 0 0); transform: translateX(0); filter: none; }
}

/* Burbuja de asesoría */
.wl-bubble {
	position: absolute; left: 0; top: 0; z-index: 7; width: min(320px, 70vw);
	padding: 18px 20px; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 3px; background: var(--surface); color: var(--ink);
	border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(0, 40, 40, .45);
	font-size: .98rem; line-height: 1.5; opacity: 0; transform-origin: 0 100%;
}
.wl-bubble p { margin: 0; }
.wl-bubble strong { display: block; font: 600 1.35rem/1.1 var(--display); color: var(--heading); margin-bottom: 6px; }
.wl-bubble::before { content: ""; position: absolute; right: 16px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 4px color-mix(in srgb, #25d366 25%, transparent); }

@media (max-width: 900px) and (orientation: portrait) {
	.wl-shade { background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 34%, transparent 58%); }
	.wl-hero { top: auto; bottom: 30px; transform: none; }
	.wl-hero .breadcrumbs { display: none; }
	.wl-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
	.wl-lead { font-size: 1rem; }
	.wl-copy { bottom: 70px; }
	.wl-step { right: var(--gutter); }
	.wl-step-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
	.wl-step-text { font-size: .98rem; margin-bottom: 12px; }
	.wl-rail li:not(.rail-bar) .rail-label { display: none; }
	.wl-rail li.is-on .rail-label { display: inline; }
	.wl-rail li.is-on { flex: 3; }
	.wl-chip { padding: 7px 12px 7px 10px; font-size: .82rem; gap: 7px; }
	.wl-bubble { width: min(260px, 64vw); font-size: .9rem; padding: 14px 16px; }
	.wl-bubble strong { font-size: 1.1rem; }
}

.wl.is-static .wl-track, .wl.is-static .wl-stage, .wl.is-static .wl-shade, .wl.is-static .wl-rail, .wl.is-static .wl-hint { display: none; }
.wl.is-static .wl-sticky { position: relative; top: 0; height: auto; padding-block: 40px; }
.wl.is-static .wl-hero, .wl.is-static .wl-copy, .wl.is-static .wl-step { position: static; transform: none; opacity: 1; }
.wl.is-static .wl-step { margin: 32px auto 0; padding-inline: var(--gutter); max-width: var(--wrap); }
.wl-after { padding-top: clamp(48px, 6vw, 80px); }


/* ==========================================================================
   Ajustes responsive (celular, tablet y pantallas bajas)
   ========================================================================== */
.header-cta { white-space: nowrap; }
@media (max-width: 1100px) {
	.site-nav .header-cta { align-self: flex-start; }
}

/* Migas de pan: la página actual se recorta en una línea */
@media (max-width: 760px) {
	.breadcrumbs ol { flex-wrap: nowrap; min-width: 0; }
	.breadcrumbs li { white-space: nowrap; }
	.breadcrumbs li:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}

/* Botón flotante más discreto en celular */
@media (max-width: 600px) {
	.wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
	.wa-float .icon { width: 28px; height: 28px; }
}

/* Recorrido de la portada en celular: más contraste sobre la imagen */
@media (max-width: 899px) {
	.tour-shade { background: linear-gradient(0deg, rgba(0, 28, 28, .94) 0%, rgba(0, 28, 28, .78) 38%, rgba(0, 28, 28, .35) 62%, rgba(0, 28, 28, 0) 82%), linear-gradient(180deg, rgba(0, 28, 28, .55) 0%, rgba(0, 28, 28, 0) 16%); }
	.tour-hero { bottom: 28px; }
	.tour-hero .entry-title { font-size: clamp(2.3rem, 10.5vw, 3.4rem); max-width: 12ch; }
	.tour-hero .entry-where { font-size: .85rem; margin-bottom: 10px; text-shadow: 0 1px 10px rgba(0, 20, 20, .6); }
	.tour-hero .entry-lead { font-size: .98rem; }
	.tour-hero .entry-actions { margin-top: 18px; }
	.tcopy-title { font-size: clamp(2.4rem, 11vw, 3.6rem); }
}

/* Pantallas bajas (celular horizontal, portátiles pequeños) */
@media (max-height: 560px) and (orientation: landscape) {
	.tour-hero { bottom: 22px; }
	.tour-hero .entry-where, .tour-hero .entry-lead { display: none; }
	.tour-hero .entry-title { font-size: clamp(1.9rem, 9vh, 2.8rem); max-width: 22ch; margin-bottom: .2em; }
	.tour-hero .entry-actions { margin-top: 10px; }
	.tour-hero .entry-actions .btn { flex: 0 0 auto; padding: 10px 18px; }
	.tour .entry-hint { display: none; }
	.tour-copy { bottom: 56px; }
	.tcopy-num { font-size: .9rem; margin-bottom: 2px; }
	.tcopy-title { font-size: clamp(1.9rem, 10vh, 2.8rem); }
	.tcopy-lead { font-size: .9rem; margin-bottom: 0; max-width: 60ch; }
	.tcopy-yours { display: none; }
	.tour .rail { bottom: 14px; }
	.tour .rail li:not(.rail-bar) { padding-bottom: 8px; font-size: .85rem; }
	.wl-hero > * { max-width: 46%; }
	.wl-hero .breadcrumbs { display: none; }
	.wl-hero h1 { font-size: clamp(1.8rem, 9vh, 2.6rem); }
	.wl-lead { font-size: .92rem; margin-bottom: 8px; }
	.wl-hint { display: none; }
	.wl-copy { bottom: 54px; }
	.wl-step { max-width: 46%; }
	.wl-step .tcopy-num { font-size: .85rem; }
	.wl-step-title { font-size: clamp(1.7rem, 8.5vh, 2.4rem); }
	.wl-step-text { font-size: .88rem; margin-bottom: 10px; }
	.wl-step .btn { padding: 9px 16px; font-size: .9rem; }
	.wl-rail { bottom: 12px; }
	.wl-rail li:not(.rail-bar) { padding-bottom: 8px; }
	.wl-rail li:not(.rail-bar) .rail-label { display: none; }
	.wl-rail li.is-on .rail-label { display: inline; }
	.wl-chip { padding: 6px 12px 6px 10px; font-size: .8rem; }
	.wl-bubble { width: 240px; font-size: .82rem; padding: 12px 14px; }
	.wl-bubble strong { font-size: 1rem; }
	.wl-shade { background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 90%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 38%, transparent 60%); }
}

/* Experiencia: dos columnas también en tablet */
@media (min-width: 600px) and (max-width: 860px) {
	.exp-lines { grid-template-columns: 1fr 1fr; }
	.exp-body { padding: 20px; }
	.exp-body h3 { font-size: 1.6rem; }
	.exp-chips li { font-size: .82rem; padding: 6px 11px; }
}
@media (max-width: 600px) {
	.exp-stats > div { padding: 18px 16px 16px; }
	.exp-stats strong { font-size: 2.2rem; }
	.exp-foot .btn { width: 100%; justify-content: center; }
}

/* Tres rutas: carrusel deslizable en celular y tablet */
@media (max-width: 900px) {
	.path-grid {
		display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
		margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px; scroll-padding-inline: var(--gutter);
		scrollbar-width: none; perspective: none;
	}
	.path-grid::-webkit-scrollbar { display: none; }
	.path { flex: 0 0 min(84%, 380px); scroll-snap-align: start; }
	.path-top, .path-bg { min-height: 170px; height: 170px; }
	.path-rows dd { font-size: .95rem; }
	.path-min { text-align: left; }
}

/* Fotos dentro de páginas: en celular, una debajo de otra o en fila deslizable */
@media (max-width: 700px) {
	.photo-row-2, .photo-row-3, .photo-row-4 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
	.photo-row .photo { flex: 0 0 78%; scroll-snap-align: start; }
	.photo-row-3 .photo:last-child { display: block; }
}

/* Encabezados de páginas internas en celular */
@media (max-width: 760px) {
	.page-hero h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); }
	.page-hero-media img { aspect-ratio: 16 / 10; }
	.section-head h2 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
	.cta-band h2 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
}

/* Marca blanca: tamaños para tablet vertical */
@media (min-width: 600px) and (max-width: 900px) and (orientation: portrait) {
	.wl-step-title { font-size: clamp(2.2rem, 6vw, 3rem); }
}
.page-hero-grid > *, .wl-hero > * { min-width: 0; }
@media (max-width: 760px) {
	.breadcrumbs { overflow: hidden; max-width: 100%; }
	.breadcrumbs li:first-child { flex: none; }
}

/* ==========================================================================
   Marca blanca: video que avanza con el scroll
   ========================================================================== */
.wl-video, [data-theme="dark"] .wl-video { --wl-ink: #0d3b3a; --wl-soft: #3c5f5e; --wl-paper: var(--wl-top, 244, 241, 235); --fx: 100%; }
.wl-video .wl-sticky { background: rgb(var(--wl-paper)); }
.wl-poster, .wl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx) 50%; }
.wl-canvas { opacity: 0; transition: opacity .4s; }
.wl-video.seq-ready .wl-canvas { opacity: 1; }
.wl-video .wl-shade { background: linear-gradient(90deg, rgba(var(--wl-paper), .94) 0%, rgba(var(--wl-paper), .7) 30%, rgba(var(--wl-paper), 0) 52%); }
.wl-video .wl-step .btn-cta { pointer-events: auto; }
.wl-video .wl-bubble { left: 62%; top: 12%; width: min(320px, 30vw); opacity: 0; transform: translateY(16px) scale(.92); transform-origin: 0 100%; transition: opacity .45s ease, transform .6s cubic-bezier(.2, 1.4, .4, 1); background: #fff; color: #1c2b2b; border-color: rgba(0, 56, 56, .12); }
.wl-video .wl-bubble strong { color: #0d3b3a; }
.wl-video .wl-bubble.is-on { opacity: 1; transform: none; }
.wl-video .breadcrumbs ol, .wl-video .breadcrumbs a { color: var(--wl-soft); }
@media (max-width: 900px) and (orientation: portrait) {
	.wl-video { --fx: 70%; --wl-paper: var(--wl-bot, 214, 224, 222); }
	.wl-video .wl-sticky { background: linear-gradient(rgb(var(--wl-top)), rgb(var(--wl-bot)) 60%); }
	.wl-video .wl-poster { inset: auto; width: 172.4%; height: auto; left: -70.7%; top: 5%; object-fit: fill; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 82%, transparent); }
	.wl-video .wl-shade { background: linear-gradient(0deg, rgba(var(--wl-paper), .96) 0%, rgba(var(--wl-paper), .8) 34%, rgba(var(--wl-paper), 0) 50%); }
	.wl-video .wl-bubble { left: 5%; right: 5%; top: 3%; width: auto; }
}
@media (max-height: 560px) and (orientation: landscape) {
	.wl-video .wl-bubble { top: 6%; left: 60%; width: 36vw; }
}

/* ==========================================================================
   Movimiento v3: botones magnéticos, entrada de textos y cajas vivas
   ========================================================================== */
/* Botones: siguen el cursor, zoom y resplandor */
.btn { position: relative; isolation: isolate; overflow: hidden; translate: var(--tx, 0) var(--ty, 0); scale: var(--bs, 1);
	transition: background-color .2s, color .2s, border-color .2s, box-shadow .35s, translate .45s cubic-bezier(.2, .7, .2, 1), scale .35s cubic-bezier(.2, .7, .2, 1); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
	background: radial-gradient(120px circle at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, .55), transparent 65%); }
.btn.is-mag { transition: background-color .2s, color .2s, border-color .2s, box-shadow .35s, translate .12s linear, scale .35s cubic-bezier(.2, .7, .2, 1); }
.btn:hover { --bs: 1.05; }
.btn:hover::before { opacity: 1; }
.btn:active { --bs: .98; transform: none; }
.btn-cta:hover { box-shadow: 0 0 0 5px rgba(245, 183, 0, .2), 0 14px 36px -8px rgba(245, 183, 0, .75); }
.btn-dark:hover, .btn-ghost:hover { box-shadow: 0 0 0 5px rgba(56, 185, 184, .2), 0 14px 36px -10px rgba(56, 185, 184, .7); }
.btn-light:hover { box-shadow: 0 0 0 5px rgba(255, 255, 255, .18), 0 14px 36px -10px rgba(255, 255, 255, .6); }
.btn-ghost::before, .btn-dark::before { background: radial-gradient(120px circle at var(--bx, 50%) var(--by, 50%), rgba(56, 185, 184, .55), transparent 65%); }
.btn .icon { transition: translate .35s cubic-bezier(.2, .7, .2, 1); }
.btn:hover .icon-arrow { translate: 4px 0; }
.btn-go { gap: .6em; }

/* Entrada de textos */
.can-reveal [data-reveal="text"] { opacity: 0; transform: translateY(.7em) skewY(2deg); filter: blur(6px); transform-origin: 0 100%;
	transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), filter .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.can-reveal [data-reveal="text"].is-in { opacity: 1; transform: none; filter: none; }
.can-reveal [data-reveal="text"].rv-done { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .can-reveal [data-reveal="text"] { opacity: 1; transform: none; filter: none; } }

/* Cajas: se elevan, brillan y siguen el cursor */
.tm-box { --mx: 50%; --my: 0%; position: relative; isolation: isolate; translate: 0 var(--lift, 0); scale: var(--zs, 1);
	transition: translate .45s cubic-bezier(.2, .7, .2, 1), scale .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s, border-color .35s, background-color .35s, opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.tm-box::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
	background: radial-gradient(380px circle at var(--mx) var(--my), rgba(56, 185, 184, .22), transparent 62%); }
@media (hover: hover) {
	.tm-box:hover { --lift: -6px; box-shadow: 0 30px 60px -34px var(--shadow), 0 0 0 1px rgba(56, 185, 184, .45); }
	.tm-box:hover::after { opacity: 1; }
	.tm-box:hover h3 { color: var(--teal-text); }
	.photo.tm-box:hover { --zs: 1.02; }
}
.tm-box h3 { transition: color .3s; }
.prose .panel.tm-box { border: 1px solid transparent; }
.photo.tm-box { overflow: hidden; border-radius: var(--radius); }
.photo.tm-box img { transition: scale 1.2s cubic-bezier(.2, .7, .2, 1); }
.photo.tm-box:hover img { scale: 1.07; }
.photo.tm-box figcaption { padding: 0 2px 6px; }

/* Columnas con cajas del mismo alto */
.prose .wp-block-columns { align-items: stretch !important; }
.prose .wp-block-column { display: flex; flex-direction: column; }
.prose .wp-block-column > .panel:only-child { flex: 1; }
.prose .panel { display: flex; flex-direction: column; }
.prose .panel > .panel-go { margin-top: auto; padding-top: 6px; }

/* Fotos en formato 1:1 */
.photo img { aspect-ratio: 1; }

/* Cabecera: Inicio */
.site-nav .menu-item-inicio .icon { display: none; }

/* Llamado final: botón para la cotización paso a paso */
.cta-actions .btn-ghost { color: var(--deep); border-color: var(--deep); }
.cta-actions .btn-ghost:hover { background: var(--deep); color: #fff; }
[data-theme="dark"] .cta-actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }

/* Preguntas frecuentes: se abren al pasar el cursor */
.faq { transition: background-color .3s; }
.faq summary { transition: color .25s, padding-left .35s cubic-bezier(.2, .7, .2, 1); }
.faq-a { overflow: hidden; }
@media (hover: hover) {
	.faq:hover summary, .faq[open] summary { color: var(--teal-text); padding-left: 10px; }
	.faq[open] .faq-a { padding-left: 10px; }
}
.faq-a { transition: padding-left .35s cubic-bezier(.2, .7, .2, 1); }

/* ==========================================================================
   Cabecera panorámica con textura (páginas internas)
   ========================================================================== */
.page-hero.is-pano { position: relative; isolation: isolate; overflow: hidden; background: #0e2a2a; color: #fff; padding: 0; border: 0; min-height: clamp(380px, 52vh, 560px); display: flex; align-items: flex-end; }
.page-hero.is-pano .pano-bg { position: absolute; inset: -6% 0; z-index: -2; margin: 0; }
.page-hero.is-pano .pano-bg img { width: 100%; height: 100%; object-fit: cover; scale: 1.04; animation: pano-drift 24s ease-in-out infinite alternate; }
@keyframes pano-drift { to { scale: 1.12; translate: -1.5% 0; } }
.page-hero.is-pano::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 30, 30, .86) 0%, rgba(0, 40, 40, .6) 45%, rgba(0, 40, 40, .08) 85%), linear-gradient(0deg, rgba(0, 30, 30, .55), transparent 45%); }
.page-hero.is-pano .page-hero-grid { grid-template-columns: 1fr; width: 100%; padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.page-hero.is-pano h1 { color: #fff; max-width: 18ch; }
.page-hero.is-pano .page-lead { color: rgba(255, 255, 255, .9); }
.page-hero.is-pano .breadcrumbs ol, .page-hero.is-pano .breadcrumbs a { color: rgba(255, 255, 255, .8); }
.page-hero.is-pano .pano-credit { position: absolute; right: var(--gutter); bottom: 10px; margin: 0; font-size: .72rem; color: rgba(255, 255, 255, .55); }
@media (max-width: 700px) {
	.page-hero.is-pano { min-height: 0; }
	.page-hero.is-pano::after { background: linear-gradient(0deg, rgba(0, 30, 30, .9) 0%, rgba(0, 40, 40, .6) 60%, rgba(0, 40, 40, .25) 100%); }
}

/* ==========================================================================
   Ubicación: mapa y datos de contacto grandes
   ========================================================================== */
.loc { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(16px, 2.4vw, 28px); margin-block: 1.4em 2.6em; align-items: stretch; }
.prose > .loc { max-width: none; }
.loc-map { position: relative; margin: 0; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--mist); }
.loc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.loc-map .btn { position: absolute; left: 14px; bottom: 14px; z-index: 1; }
.loc-cards { display: grid; gap: 12px; }
.loc-card { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--mist); border: 1px solid transparent; color: var(--heading); text-decoration: none; }
.loc-card:hover { color: var(--heading); }
.loc-ico { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--deep); color: #fff; transition: background-color .35s, scale .45s cubic-bezier(.2, .7, .2, 1), rotate .45s; }
.loc-ico .icon { width: 26px; height: 26px; }
.loc-card:hover .loc-ico { background: var(--teal); scale: 1.1; rotate: -8deg; }
.loc-k { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; color: var(--teal-text); margin-bottom: 2px; }
.loc-v { display: block; font: 500 clamp(1.35rem, 2.2vw, 1.8rem)/1.15 var(--display); color: var(--heading); overflow-wrap: anywhere; }
.loc-card.is-wa .loc-ico { background: #25d366; }
.loc-ico.pulse { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: loc-pulse 2.4s infinite; }
@keyframes loc-pulse { 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (max-width: 860px) {
	.loc { grid-template-columns: 1fr; }
	.loc-map { min-height: 300px; }
}
[data-theme="dark"] .loc-map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }

/* ==========================================================================
   Blog: cada entrada en una caja como "Tres formas de lanzar tu línea"
   ========================================================================== */
.post-grid.path-grid { gap: clamp(16px, 2vw, 26px); }
.post-path .path-top { min-height: 230px; }
.post-path .path-bg { height: 230px; }
.post-path h3 a { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.1; display: block; }
.post-path-x { margin: 0; padding: 18px 26px 4px; color: var(--ink); flex: 1; }
.post-path .path-tag { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; color: var(--teal); }
.post-path .path-go { font-size: .92rem; font-weight: 550; color: var(--ink-soft); }
.post-path .go-r { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--heading); }
.post-path:hover .go-r { color: var(--teal-text); }
.post-path:hover .path-go .icon { transform: translateX(6px); }
@media (max-width: 900px) {
	.post-grid.path-grid { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin-inline: 0; padding: 0; }
	.post-grid .path { flex: none; }
	.post-path .path-top, .post-path .path-bg { min-height: 200px; height: 200px; }
}
@media (max-width: 640px) { .post-grid.path-grid { grid-template-columns: 1fr; } }
.ai-note { opacity: .7; }
.faq summary.by-pointer:focus, .faq summary.by-pointer:focus-visible { outline: none; }
.faq-list { overflow-anchor: none; }
