/* ==========================================================================
   JD Child – estilos principales
   Tokens, base, componentes y secciones de la home
   ========================================================================== */

:root {
	--jd-bg: #fdfcfa;
	--jd-ink: #26272b;
	--jd-muted: #8b8c90;
	--jd-line: #e4e2dc;
	--jd-dark: #1f2128;
	--jd-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
	--jd-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--jd-wrap: 1020px;
	--jd-r: 22px;
}

/* ---------- Base ---------- */
.jd-home { margin: 0; background: var(--jd-bg); color: var(--jd-ink); font-family: var(--jd-sans); -webkit-font-smoothing: antialiased; }
.jd-home *, .jd-home *::before, .jd-home *::after { box-sizing: border-box; }
.jd-home h1, .jd-home h2, .jd-home h3, .jd-home p { margin: 0; }
.jd-home a { color: inherit; }
.jd-home img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jd-serif { font-family: var(--jd-serif); font-weight: 400; letter-spacing: -0.01em; }
.jd-wrap { max-width: var(--jd-wrap); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid #5b8def; outline-offset: 3px; border-radius: 6px; }

/* ---------- Placeholders de imagen ---------- */
[data-ph] { position: relative; }
[data-ph]::after {
	content: attr(data-ph);
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	max-width: min(70%, 420px); padding: 14px 18px; text-align: center;
	font: 500 12px/1.45 var(--jd-sans); color: rgba(255, 255, 255, .9);
	background: rgba(0, 0, 0, .35); border: 1px dashed rgba(255, 255, 255, .6); border-radius: 10px;
	pointer-events: none;
}
.jd-manifest__art[data-ph]::after { color: #5a5a3a; background: rgba(255, 255, 255, .6); border-color: rgba(90, 90, 58, .5); }
[style*="background-image"] { background-size: cover; background-position: center; }

/* ---------- Componentes ---------- */
.jd-arrow { display: inline-flex; width: 16px; height: 16px; flex: none; }
.jd-arrow svg { display: block; }

.jd-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 12px 10px 16px; border-radius: 10px;
	font: 500 14px/1 var(--jd-sans); text-decoration: none; cursor: pointer;
	transition: transform .18s ease, background-color .18s ease;
}
.jd-btn:hover { transform: translateY(-1px); }
.jd-btn--dark { background: var(--jd-dark); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.jd-btn--glass { background: rgba(255, 255, 255, .22); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.jd-link {
	display: inline-flex; align-items: center; gap: 8px;
	font: 500 14px/1.2 var(--jd-sans); text-decoration: underline;
	text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(128, 128, 128, .55);
}
.jd-link:hover { text-decoration-color: currentColor; }

.jd-glass {
	background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
	border: 1px solid rgba(255, 255, 255, .3);
	backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

/* Rayas separadoras */
.jd-stripes { height: 30px; background: repeating-linear-gradient(to bottom, #9fb4ae 0 3px, var(--jd-bg) 3px 8px); border-top: 1px solid #9fb4ae; }

/* ---------- Navbar flotante ---------- */
.jd-nav {
	position: fixed; z-index: 50; top: 12px; left: 50%; transform: translateX(-50%);
	display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 8px;
	background: rgba(255, 255, 255, .78); color: var(--jd-ink);
	border: 1px solid rgba(255, 255, 255, .6); border-radius: 16px;
	box-shadow: 0 6px 24px rgba(20, 20, 30, .08);
	backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
	font-family: var(--jd-sans);
}
.jd-nav.is-dark { background: rgba(28, 30, 40, .38); color: #fff; border-color: rgba(255, 255, 255, .22); }
.jd-nav__logo { display: grid; place-items: center; width: 36px; height: 36px; margin-right: 6px; border-radius: 10px; background: rgba(0, 0, 0, .06); text-decoration: none; color: inherit; font: 400 17px/1 var(--jd-serif); }
.jd-nav.is-dark .jd-nav__logo { background: rgba(255, 255, 255, .16); }
.jd-menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.jd-menu a { display: block; padding: 10px 12px; font-size: 14px; font-weight: 500; text-decoration: none; color: inherit; border-radius: 10px; }
.jd-menu a:hover { background: rgba(0, 0, 0, .06); }
.jd-nav.is-dark .jd-menu a:hover { background: rgba(255, 255, 255, .14); }
.jd-nav .jd-btn { margin-left: 6px; }

/* ---------- Hero ---------- */
.jd-hero {
	position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; color: #fff;
	background: linear-gradient(180deg, #34406b 0%, #6a5a93 34%, #46705f 68%, #1e3a30 100%);
}
.jd-hero__card { position: absolute; left: 13%; bottom: 48px; width: min(410px, calc(100% - 40px)); padding: 26px; border-radius: 20px; }
.jd-hero__card h1 { font-size: 40px; line-height: 1.02; margin-bottom: 20px; }
.jd-hero__card p { font-size: 14px; font-weight: 500; line-height: 1.55; margin-bottom: 18px; }
.jd-hero__side { position: absolute; right: 13%; bottom: 48px; max-width: 230px; text-align: right; font-size: 14px; font-weight: 500; line-height: 1.45; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.jd-hero__side small { font-size: 12px; opacity: .75; }

/* Fondo del hero: día / noche + recorte móvil */
.jd-hero__bg { position: absolute; inset: 0; display: block; }
.jd-hero .jd-hero__bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 72%; display: block; }
.jd-hero__bg--noche { display: none; }
.jd-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(10, 14, 28, .45), rgba(10, 14, 28, 0)); pointer-events: none; }
.jd-hero__card, .jd-hero__side { z-index: 1; }
html[data-tod="night"] .jd-hero__bg--dia { display: none; }
html[data-tod="night"] .jd-hero__bg--noche { display: block; }
@media (max-width: 900px) and (orientation: portrait) { .jd-hero .jd-hero__bg img { object-position: 50% 50%; } }

/* ---------- Manifiesto ---------- */
.jd-manifest { max-width: 940px; margin: 0 auto; padding: 170px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.jd-manifest__art { aspect-ratio: 1 / 1.2; border-radius: 18px; background: linear-gradient(180deg, #f6e7a8 0%, #e9c6a0 38%, #b9cf86 62%, #7d9a4e 100%); background-size: cover; }
.jd-small { font-size: 13px; line-height: 1.55; color: var(--jd-muted); max-width: 300px; margin-bottom: 18px !important; }
.jd-manifest h2 { font-size: 44px; line-height: 1.04; margin-top: 70px; }
.jd-reveal .w { opacity: .18; transition: opacity .3s ease; }
.jd-reveal .w.on { opacity: 1; }

/* ---------- Problema + 5 pasos (sticky) ---------- */
.jd-steps { position: relative; height: 480vh; }
.jd-steps__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 44px; max-width: var(--jd-wrap); margin: 0 auto; padding: 84px 24px 32px; }
.jd-steps__head h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.04; max-width: 640px; }
.jd-steps__punch { font-size: clamp(30px, 4vw, 48px); line-height: 1.04; margin-top: 22px !important; }
.jd-hl { position: relative; color: #b0b0b3; border-bottom: 1px solid #cfcfd2; cursor: help; }
.jd-pop { position: absolute; left: 0; top: calc(100% + 10px); z-index: 5; display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; min-width: 190px; background: #fff; border: 1px solid var(--jd-line); border-radius: 12px; box-shadow: 0 10px 30px rgba(20, 20, 30, .1); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .2s ease; pointer-events: none; }
.jd-pop i { font: 500 13px/1.2 var(--jd-sans); font-style: normal; color: var(--jd-ink); }
.jd-hl:hover .jd-pop, .jd-hl:focus .jd-pop { opacity: 1; visibility: visible; transform: none; }

.jd-steps__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 80px; align-items: start; }
.jd-ticks { display: flex; align-items: flex-end; gap: 4px; height: 18px; margin-bottom: 22px; }
.jd-ticks i { width: 1px; height: 8px; background: #c4c4c8; transition: height .3s ease, background-color .3s ease; }
.jd-ticks i.is-active { height: 18px; background: var(--jd-ink); }
.jd-steps__texts { display: grid; }
.jd-step { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; pointer-events: none; max-width: 250px; }
.jd-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.jd-step h3 { font: 600 13px/1.3 var(--jd-sans); color: #4a4b50; margin-bottom: 14px; }
.jd-step p { font-size: 13px; line-height: 1.5; color: var(--jd-muted); margin-bottom: 10px; }

.jd-steps__frame { padding: 12px; border-radius: 26px; background: #f6f5f1; border: 1px solid #ecebe6; }
.jd-steps__stage { position: relative; aspect-ratio: 500 / 265; border-radius: 16px; background: var(--jd-bg); overflow: hidden; }
.jd-scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(.96); transition: opacity .5s ease, transform .6s ease; fill: none; stroke: #8d8e93; stroke-width: 1.2; }
.jd-scene.is-active { opacity: 1; transform: none; }
.jd-scene .dash { stroke-dasharray: 2 4; stroke: #b9bac0; }
.jd-scene .soft { stroke: #c9cacf; }
.jd-scene .core { stroke: #2d2e33; stroke-width: 1.4; }

/* ---------- Banner principal ---------- */
.jd-banner-wrap { padding: 0 20px; }
.jd-banner {
	position: relative; overflow: hidden; max-width: 1520px; margin: 0 auto; min-height: 720px; padding: 72px clamp(24px, 5.5vw, 86px);
	border-radius: 28px; color: #fff;
	background: linear-gradient(180deg, #0a7dc4 0%, #3aa5e0 55%, #8cc9ee 78%, #4f8a3a 100%);
}
.jd-banner__copy { position: relative; z-index: 2; max-width: 600px; }
.jd-banner h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; margin-bottom: 40px; }
.jd-type { min-height: 1.5em; font-size: 14px; font-weight: 500; margin-bottom: 26px !important; }
.jd-banner__note { position: absolute; z-index: 2; left: clamp(24px, 5.5vw, 86px); bottom: 56px; max-width: 190px; font-size: 14px; font-weight: 500; line-height: 1.4; display: flex; flex-direction: column; gap: 10px; }
.jd-notif {
	position: absolute; z-index: 3; top: 48px; right: 4%; width: 280px; display: flex; gap: 10px; padding: 12px;
	background: rgba(255, 255, 255, .28); border: 1px solid rgba(255, 255, 255, .45); border-radius: 18px;
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 12px; line-height: 1.35; color: #0b2b44;
	animation: jd-pop .8s .4s both cubic-bezier(.2, .8, .2, 1);
}
.jd-notif__icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(180deg, #4aa8ff, #1b6fe0); }
.jd-notif__body { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.jd-notif__body b { font-weight: 600; }
.jd-notif__body em { font-style: normal; opacity: .6; }
.jd-notif__body span { grid-column: 1 / -1; }
@keyframes jd-pop { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Servicios ---------- */
.jd-services { padding: 150px 0 40px; }
.jd-services h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.05; margin-bottom: 44px; }
.jd-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.jd-service { padding: 28px 26px 32px; border-radius: 20px; background: #f6f5f1; border: 1px solid #ecebe6; }
.jd-service h3 { font: 400 26px/1.1 var(--jd-serif); margin-bottom: 14px; }
.jd-service p { font-size: 14px; line-height: 1.55; color: #6c6d72; }
.jd-services__line { margin-top: 34px !important; font-size: 14px; color: var(--jd-muted); }

/* ---------- Notas ---------- */
.jd-notes { padding: 130px 0 60px; }
.jd-notes h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.05; margin-bottom: 22px; }
.jd-notes__all { margin-bottom: 46px; }
.jd-notes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.jd-card { position: relative; display: block; aspect-ratio: 1.14 / 1; border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff; }
.jd-card__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s ease; }
.jd-card__bg--0 { background-color: #1d70b7; background-image: linear-gradient(180deg, #1d70b7, #2f8ed0); }
.jd-card__bg--1 { background-color: #4a8f4a; background-image: linear-gradient(180deg, #7fc0e6, #5aa04e 70%); }
.jd-card__bg--2 { background-color: #2a9ec7; background-image: linear-gradient(180deg, #2a9ec7, #86cfe6 60%, #c9a37a); }
.jd-card:hover .jd-card__bg { transform: scale(1.03); }
.jd-card__glass { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 18px 16px; text-align: center; border-radius: 14px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.jd-card__glass h3 { font: 600 15px/1.3 var(--jd-sans); margin-bottom: 12px; }
.jd-card__glass span { font-size: 12px; opacity: .8; }
.jd-card [data-ph]::after, .jd-card__bg[data-ph]::after { top: 34%; }

/* ---------- Cierre ---------- */
.jd-closing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding: 150px 24px 130px; scroll-margin-top: 20px; }
.jd-closing h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.05; max-width: 640px; }
.jd-closing p { font-size: 14px; color: #6c6d72; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; }
.jd-closing .jd-link { color: var(--jd-ink); }

/* ---------- Footer ---------- */
.jd-footer { background: var(--jd-bg); font-family: var(--jd-sans); }
.jd-footer__top { max-width: var(--jd-wrap); margin: 0 auto; padding: 34px 24px 54px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.jd-footer__links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; }
.jd-footer__links a { color: #55565b; text-decoration: none; }
.jd-footer__links a:hover { color: var(--jd-ink); }
.jd-footer__right { display: flex; align-items: center; gap: 10px; }
.jd-news { display: flex; align-items: center; height: 38px; padding: 0 8px 0 14px; border: 1px solid #e3e1dc; border-radius: 10px; background: #fff; }
.jd-news input { border: 0; background: transparent; outline: 0; width: 170px; font: 13px var(--jd-sans); color: var(--jd-ink); padding: 0; }
.jd-news button { display: grid; place-items: center; border: 0; background: transparent; padding: 0; cursor: pointer; color: var(--jd-ink); }
.jd-social { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #e3e1dc; border-radius: 10px; background: #fff; color: var(--jd-ink); }
.jd-footer__art {
	position: relative; min-height: 380px; display: flex; align-items: flex-end; color: #fff;
	background: linear-gradient(180deg, #14253f 0%, #1f4268 45%, #2d5a45 80%, #0d1a22 100%); background-size: cover; background-position: center;
}
.jd-footer__copy { width: 100%; max-width: var(--jd-wrap); margin: 0 auto; padding: 0 24px 24px; font-size: 12.5px; font-weight: 500; position: relative; z-index: 1; }

/* ---------- Aviso de cookies ---------- */
.jd-cookie { position: fixed; z-index: 60; bottom: 28px; left: 70%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 24px); padding: 12px 16px; background: rgba(255, 255, 255, .94); color: #3a3b40; border-radius: 12px; box-shadow: 0 8px 28px rgba(20, 20, 30, .14); font: 12.5px/1.3 var(--jd-sans); }
.jd-cookie[hidden] { display: none; }
.jd-cookie .jd-spark { color: #6c6d72; flex: none; width: 18px; height: 18px; }
.jd-cookie__text a { text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .3); text-underline-offset: 3px; }
.jd-cookie__actions { display: inline-flex; gap: 8px; color: #9a9ba0; }
.jd-cookie__actions button { border: 0; background: none; padding: 0; font: inherit; color: #55565b; cursor: pointer; }
.jd-cookie__actions button:hover { color: var(--jd-ink); }

/* ---------- Páginas internas (blog, páginas) ---------- */
body:not(.jd-home) .site-content { padding-top: 96px; }
body:not(.jd-home) .site-footer { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.jd-hero__card { left: 20px; right: 20px; bottom: 28px; width: auto; }
	.jd-hero__side { display: none; }
	.jd-manifest { grid-template-columns: 1fr; gap: 50px; padding: 110px 24px; }
	.jd-manifest h2 { margin-top: 40px; font-size: 36px; }

	/* En móvil los pasos se apilan en lugar de usar scroll pegajoso */
	.jd-steps { height: auto; }
	.jd-steps__sticky { position: static; height: auto; padding: 40px 24px 90px; gap: 36px; }
	.jd-steps__grid { grid-template-columns: 1fr; gap: 0; }
	.jd-ticks, .jd-steps__frame { display: none; }
	.jd-steps__texts { display: flex; flex-direction: column; gap: 28px; }
	.jd-step { opacity: 1; transform: none; pointer-events: auto; max-width: none; }

	.jd-banner { min-height: 640px; padding: 56px 24px 150px; }
	.jd-notif { display: none; }
	.jd-banner__note { bottom: 32px; }
	.jd-services__grid, .jd-notes__grid { grid-template-columns: 1fr; }
	.jd-card { aspect-ratio: 1.3 / 1; }
	.jd-footer__top { flex-direction: column; align-items: flex-start; }
	.jd-footer__right { width: 100%; }
	.jd-news { flex: 1; }
	.jd-news input { width: 100%; }
	.jd-cookie { left: 50%; bottom: 14px; }
	.jd-nav__links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
	.jd-reveal .w { opacity: 1; }
}

/* ---------- Ajustes post-revisión ---------- */
.jd-nav .jd-btn--dark { color: #fff; }
.jd-nav .jd-btn--glass, .jd-banner .jd-btn--glass { color: #fff; }
.jd-footer .jd-footer__copy { margin: 0 auto; }
body.admin-bar .jd-nav { top: 44px; }
@media (max-width: 782px) { body.admin-bar .jd-nav { top: 58px; } }
.jd-cookie { left: 50%; }
.jd-news { min-width: 250px; }
.jd-news input { flex: 1; min-width: 0; width: auto; }

.jd-cookie a, .jd-footer a, .jd-nav a { color: inherit; }
.jd-footer .jd-social { color: var(--jd-ink); }

/* ---------- Menú del celular (hamburguesa + panel en abanico) ---------- */
.jd-burger, .jd-menu-overlay { display: none; }

@media (max-width: 900px) {
	/* Header: logo a la izquierda, botón + hamburguesa a la derecha, sin píldora */
	.jd-nav { left: 12px; right: 12px; top: 12px; transform: none; justify-content: space-between; gap: 8px; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
	.jd-nav.is-dark { background: none; border: 0; }
	.jd-nav__logo, .jd-burger { width: 40px; height: 40px; margin: 0; border-radius: 12px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 4px 16px rgba(20, 20, 30, .08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background-color .3s ease, border-color .3s ease; }
	.jd-nav.is-dark .jd-nav__logo, .jd-nav.is-dark .jd-burger { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .28); box-shadow: none; }
	.jd-nav .jd-btn { margin-left: auto; }

	.jd-burger { display: inline-grid; place-content: center; gap: 4px; padding: 0; color: inherit; cursor: pointer; }
	.jd-burger i { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .35s ease, opacity .2s ease; }
	.jd-menu-open .jd-burger i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
	.jd-menu-open .jd-burger i:nth-child(2) { opacity: 0; }
	.jd-menu-open .jd-burger i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

	/* Con el panel abierto el header pasa a oscuro sobre blanco */
	html.jd-menu-open .jd-nav, html.jd-menu-open .jd-nav.is-dark { color: var(--jd-ink); }
	html.jd-menu-open .jd-nav .jd-nav__logo, html.jd-menu-open .jd-nav .jd-burger { background: #fff; border-color: #ecebe6; box-shadow: none; }
	html.jd-menu-open { overflow: hidden; }

	/* Panel a pantalla completa */
	.jd-menu-overlay { display: block; position: fixed; inset: 0; z-index: 45; visibility: hidden; pointer-events: none; transition: visibility 0s linear .95s; }
	.jd-menu-overlay.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }

	/* Abanico: láminas verticales que bajan una tras otra, empezando por la del botón (derecha) */
	.jd-fan { position: absolute; inset: 0; display: flex; }
	.jd-fan i { flex: 1 0 0; margin-right: -1px; background: #fff; clip-path: inset(0 0 100% 0 round 0 0 18px 18px); transition: clip-path .6s cubic-bezier(.65, 0, .25, 1); transition-delay: calc((8 - var(--i)) * 28ms); }
	.jd-fan i:last-child { margin-right: 0; }
	.jd-menu-overlay.is-open .jd-fan { background: #fff; transition: background 0s linear 1s; }   /* tapa las costuras entre láminas cuando ya terminó de abrir */
	.jd-menu-overlay.is-open .jd-fan i { clip-path: inset(0 0 0 0 round 0); transition-delay: calc(var(--i) * 45ms); }

	/* Enlaces: aparecen cuando el abanico ya cubrió la pantalla */
	.jd-menu-overlay__inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
	.jd-menu-overlay.is-open .jd-menu-overlay__inner { opacity: 1; transform: none; transition: opacity .45s ease .4s, transform .45s ease .4s; }
	.jd-menu-overlay nav { display: flex; flex-direction: column; align-items: center; }
	.jd-menu-overlay nav a { font: 400 clamp(44px, 12vw, 64px)/1.1 var(--jd-serif); color: #b9b9bd; text-decoration: none; transition: color .2s ease; }
	.jd-menu-overlay nav a.is-current, .jd-menu-overlay nav a:hover, .jd-menu-overlay nav a:focus-visible { color: var(--jd-ink); }
	.jd-menu-overlay__social { position: absolute; left: 0; right: 0; bottom: 110px; display: flex; justify-content: center; gap: 10px; }
}

/* ==========================================================================
   Páginas internas: blog, entradas y páginas (Servicios)
   ========================================================================== */
body.jd-inner { background: var(--jd-bg); color: var(--jd-ink); font-family: var(--jd-sans); -webkit-font-smoothing: antialiased; }
body.jd-inner #page.grid-container { max-width: none; padding: 0; }
body.jd-inner .site-content { display: block; max-width: var(--jd-wrap); margin: 0 auto; padding: 130px 24px 90px; }
body.jd-inner .content-area { width: 100%; float: none; margin: 0; }
body.jd-inner .site-main { margin: 0; }
body.jd-inner .widget-area { display: none; }
body.jd-inner .inside-article { background: transparent; padding: 0; margin: 0; }
.jd-inner :is(h1, h2, h3) { font-family: var(--jd-serif); font-weight: 400; letter-spacing: -0.01em; color: var(--jd-ink); }
.jd-inner a { color: inherit; }
.jd-inner .jd-btn--dark { color: #fff; }

/* Encabezado de página (Notas y título de las páginas) */
.jd-page__head { grid-column: 1 / -1; margin: 0 0 46px; }
.jd-page__head h1, .jd-inner.page .entry-title { font-size: clamp(42px, 6vw, 68px); line-height: 1.02; margin: 0 0 18px; }
.jd-page__head p { max-width: 560px; margin: 0; font-size: 15px; line-height: 1.6; color: var(--jd-muted); }
.jd-inner.page .entry-header { margin: 0 0 8px; }

/* Blog: grilla de tarjetas */
.jd-inner.blog .site-main, .jd-inner.archive .site-main, .jd-inner.search .site-main { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.jd-inner.blog .site-main > :not(article), .jd-inner.archive .site-main > :not(article), .jd-inner.search .site-main > :not(article) { grid-column: 1 / -1; }
.jd-inner.blog article, .jd-inner.archive article, .jd-inner.search article { position: relative; overflow: hidden; margin: 0; border-radius: 20px; background: #f6f5f1; border: 1px solid #ecebe6; }
.jd-inner:not(.single):not(.page) .entry-header { padding: 0; margin: 0; }
.jd-post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin: 0 0 18px; background: linear-gradient(160deg, #1d70b7, #5aa9dc); }
.jd-inner article:nth-of-type(3n+2) .jd-post-thumb { background: linear-gradient(160deg, #3f7f45, #8cc7e8); }
.jd-inner article:nth-of-type(3n) .jd-post-thumb { background: linear-gradient(160deg, #2a9ec7, #c9a37a); }
.jd-post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.jd-inner article:hover .jd-post-thumb img { transform: scale(1.03); }
.jd-inner:not(.single):not(.page) .entry-title { margin: 0 0 10px; padding: 0 22px; font-size: 28px; line-height: 1.1; }
.jd-inner .entry-title a { color: var(--jd-ink); text-decoration: none; }
.jd-inner:not(.single):not(.page) .entry-meta { padding: 0 22px; font-size: 12.5px; color: var(--jd-muted); }
.jd-inner .entry-meta a { color: inherit; text-decoration: none; }
.jd-inner.blog .byline, .jd-inner.archive .byline, .jd-inner.search .byline { display: none; }
.jd-inner .entry-summary { padding: 12px 22px 24px; font-size: 14px; line-height: 1.6; color: #6c6d72; }
.jd-inner .entry-summary p { margin: 0; }
.jd-inner.blog footer.entry-meta, .jd-inner.archive footer.entry-meta, .jd-inner.search footer.entry-meta { display: none; }
.jd-inner .paging-navigation, .jd-inner .nav-links { text-align: center; }
.jd-inner .page-numbers { display: inline-block; padding: 8px 14px; border-radius: 10px; font-size: 14px; text-decoration: none; }
.jd-inner .page-numbers.current { background: var(--jd-dark); color: #fff; }

/* Entrada individual y páginas: texto de lectura */
.jd-inner.single .site-main { max-width: 720px; margin: 0 auto; }
.jd-inner.single .entry-title { margin: 0 0 16px; font-size: clamp(38px, 5.5vw, 60px); line-height: 1.04; }
.jd-inner.single .entry-meta { margin-bottom: 36px; font-size: 13px; color: var(--jd-muted); }
.jd-inner .entry-content { font-size: 17px; line-height: 1.75; color: #34353a; }
.jd-inner .entry-content p { margin: 0 0 1.3em; }
.jd-inner .entry-content h2 { margin: 1.8em 0 .6em; font-size: 36px; line-height: 1.1; }
.jd-inner .entry-content h3 { margin: 1.6em 0 .5em; font-size: 28px; line-height: 1.15; }
.jd-inner .entry-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(128, 128, 128, .6); }
.jd-inner .entry-content .jd-btn { text-decoration: none; }
.jd-inner .entry-content img { max-width: 100%; height: auto; border-radius: 16px; }
.jd-inner .entry-content blockquote { margin: 1.8em 0; padding: 0 0 0 22px; border-left: 2px solid var(--jd-line); font: 400 26px/1.25 var(--jd-serif); color: var(--jd-ink); }
.jd-inner.single footer.entry-meta { margin-top: 48px; font-size: 13px; color: var(--jd-muted); }
.jd-inner .comments-area { margin-top: 64px; }

/* Página de Servicios */
.jd-inner .jd-page.jd-svcs { font-size: 16px; line-height: 1.5; }
.jd-svcs .jd-lead { max-width: 620px; margin: 0 0 56px; font-size: 18px; line-height: 1.6; color: #55565b; }
.jd-svcs h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 40px); line-height: 1.08; }
.jd-svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; margin: 0 0 20px; padding: 34px; border-radius: 22px; background: #f6f5f1; border: 1px solid #ecebe6; }
.jd-svc__intro p { margin: 0; font-size: 15px; line-height: 1.6; color: #6c6d72; }
.jd-svc__list { margin: 0; padding: 0; list-style: none; }
.jd-svc__list li { margin: 0; padding: 14px 0; border-bottom: 1px solid #e4e2dc; font-size: 15px; line-height: 1.45; }
.jd-svc__list li:first-child { padding-top: 0; }
.jd-svc__list li:last-child { padding-bottom: 0; border-bottom: 0; }
.jd-process { margin: 90px 0 70px; }
.jd-process__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 34px 0 0; padding: 0; list-style: none; counter-reset: step; }
.jd-process__steps li { position: relative; margin: 0; padding-top: 18px; border-top: 1px solid var(--jd-ink); counter-increment: step; }
.jd-process__steps li::before { content: counter(step); display: block; margin-bottom: 14px; font: 400 15px/1 var(--jd-serif); color: var(--jd-muted); }
.jd-process__steps strong { display: block; margin-bottom: 8px; font: 600 14px/1.35 var(--jd-sans); }
.jd-process__steps span { display: block; font-size: 13.5px; line-height: 1.55; color: #6c6d72; }
.jd-cta-box { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 44px; border-radius: 26px; background: var(--jd-dark); color: #fff; }
.jd-inner .jd-cta-box h2 { margin: 0; max-width: 520px; color: #fff; }
.jd-inner .jd-cta-box .jd-btn--dark { background: #fff; color: var(--jd-ink); padding: 12px 18px; }

@media (max-width: 900px) {
	body.jd-inner .site-content { padding: 100px 20px 70px; }
	.jd-svc { grid-template-columns: 1fr; gap: 22px; padding: 26px 22px; }
	.jd-process__steps { grid-template-columns: 1fr 1fr; }
	.jd-cta-box { padding: 32px 24px; }
}
@media (max-width: 560px) { .jd-process__steps { grid-template-columns: 1fr; } }

/* Páginas de cada servicio: definiciones, preguntas frecuentes y relacionadas */
.jd-svcpage .jd-block { max-width: 720px; margin: 0 0 56px; }
.jd-svcpage .jd-block p { margin: 0; font-size: 16px; line-height: 1.65; color: #55565b; }
.jd-defs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 56px; }
.jd-def { padding: 24px; border-radius: 18px; background: #f6f5f1; border: 1px solid #ecebe6; }
.jd-inner .jd-def h3 { margin: 0 0 10px; font-size: 28px; line-height: 1.1; }
.jd-def p { margin: 0; font-size: 14px; line-height: 1.55; color: #6c6d72; }
.jd-faq { margin: 70px 0; }
.jd-faq details { padding: 18px 0; border-top: 1px solid var(--jd-line); }
.jd-faq details:last-of-type { border-bottom: 1px solid var(--jd-line); }
.jd-faq summary { display: flex; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font: 500 16px/1.4 var(--jd-sans); color: var(--jd-ink); }
.jd-faq summary::-webkit-details-marker { display: none; }
.jd-faq summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--jd-muted); transition: transform .25s ease; }
.jd-faq details[open] summary::after { transform: rotate(45deg); }
.jd-faq details p { max-width: 680px; margin: 12px 0 0; font-size: 15px; line-height: 1.65; color: #55565b; }
.jd-related { margin: 0 0 70px; }
.jd-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.jd-inner .entry-content .jd-related a { display: block; padding: 22px; border-radius: 18px; background: #f6f5f1; border: 1px solid #ecebe6; text-decoration: none; }
.jd-related strong { display: block; margin-bottom: 8px; font: 400 24px/1.15 var(--jd-serif); color: var(--jd-ink); }
.jd-related span { display: block; font-size: 14px; line-height: 1.5; color: #6c6d72; }
@media (max-width: 900px) { .jd-defs, .jd-related__grid { grid-template-columns: 1fr; } }

/* Entradas y comentarios: mismo fondo que el sitio */
body.jd-inner .site-main, body.jd-inner .comments-area, body.jd-inner .comment-respond, body.jd-inner .page-header { background: transparent; box-shadow: none; }
body.jd-inner.single .comments-area { max-width: 720px; margin: 64px auto 0; padding: 0; }
body.jd-inner .comment-form input[type="text"], body.jd-inner .comment-form input[type="email"], body.jd-inner .comment-form input[type="url"], body.jd-inner .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #e3e1dc; border-radius: 12px; background: #fff; font: 15px/1.5 var(--jd-sans); }
body.jd-inner .comment-form .submit { padding: 12px 18px; border: 0; border-radius: 10px; background: var(--jd-dark); color: #fff; font: 500 14px/1 var(--jd-sans); cursor: pointer; }
body.jd-inner .comment-reply-title { font-size: 30px; }

/* ---------- Subrayado de "distintas áreas" y efecto del mouse ---------- */
.jd-hl { border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .1em; text-decoration-color: #cfcfd2; text-decoration-skip-ink: none; }
.jd-steps__head h2 { line-height: 1.1; }
.jd-scene rect { transform-box: fill-box; transform-origin: center; }
