/* Timed Clinical UI 2.0 — inicio moderno e interactivo */

/* ---------- Arreglos globales ---------- */
html { scroll-behavior: smooth; }
html:has(.tcui-home), body:has(.tcui-home), body.tcui-has-home { overflow-x: clip; }

/* Barra de progreso de lectura */
.tcui-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 99999; background: linear-gradient(90deg, #a9e0a9, #3d8f3d); pointer-events: none; }

/* Mini carrito vacío */
body.tcui-hide-minicart .woocommerce-mini-cart__empty-message,
body.tcui-hide-minicart .widget_shopping_cart:has(.woocommerce-mini-cart__empty-message),
body.tcui-hide-minicart .elementor-menu-cart__toggle_button:has(.elementor-button-text:empty) { display: none; }
body.tcui-hide-minicart .cart-contents .amount,
body.tcui-hide-minicart .elementor-menu-cart__toggle .elementor-button-text { display: none; }

/* Título de página en el inicio */
body.tcui-hide-home-title.home .entry-title,
body.tcui-hide-home-title.home .page-title,
body.tcui-hide-home-title.home .entry-header { display: none; }
body.tcui-hide-home-title.home .site-content,
body.tcui-hide-home-title.home .entry-content { margin-top: 0; padding-top: 0; }

/* Encabezado claro en el inicio (Astra) */
body.tcui-light-header.home #masthead .main-header-bar,
body.tcui-light-header.home #masthead .ast-primary-header-bar,
body.tcui-light-header.home #masthead .ast-above-header,
body.tcui-light-header.home #masthead .ast-main-header-bar-alignment { background: #fff !important; }
body.tcui-light-header.home #masthead { box-shadow: 0 1px 0 rgba(47, 63, 80, .12); }
body.tcui-light-header.home #masthead .menu-link,
body.tcui-light-header.home #masthead .ast-header-account-link,
body.tcui-light-header.home #masthead .ast-site-header-cart a,
body.tcui-light-header.home #masthead .ast-icon { color: #2f3f50 !important; fill: #2f3f50 !important; }
body.tcui-light-header.home #masthead .menu-link:hover { color: #2b752b !important; }
body.ast-theme-transparent-header .tcui-home { --tcui-top: 90px; }

/* ---------- Base ---------- */
.tcui {
	--tc-primary: #2b752b;
	--tc-accent: #3d8f3d;
	--tc-dark: #16401a;
	--tc-mint: #a9e0a9;
	--tc-ivory: #f1f7f1;
	--tc-ink: #2f3f50;
	--tc-muted: #5d6b78;
	--tc-line: rgba(47, 63, 80, .14);
	--tc-radius: 20px;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--tc-ink);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.tcui *, .tcui *::before, .tcui *::after { box-sizing: border-box; }
.tcui :where(h1, h2, h3, p, ul, ol) { margin: 0; }
.tcui a { text-decoration: none; }
.tcui button { font: inherit; }
.tcui .tcui-ico { width: 1.25em; height: 1.25em; flex: none; }
.tcui-wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.tcui-wrap--narrow { width: min(820px, 100% - 40px); }
.tcui-home { width: 100vw; max-width: 100vw; position: relative; left: 50%; margin-left: -50vw; overflow-x: clip; }
.tcui-home img, .tcui-home svg { max-width: 100%; }
.tcui-h1, .tcui-h2, .tcui-lead { overflow-wrap: break-word; }
.tcui :focus-visible { outline: 3px solid var(--tc-accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- Tipografía ---------- */
.tcui-h1, .tcui-h2, .tcui-spec h3, .tcui-steps h3, .tcui-pn__text h3, .tcui-foot__brand {
	font-family: inherit;
	letter-spacing: -.025em;
}
.tcui-h1 { font-size: clamp(2.2rem, 5.4vw, 4.1rem); line-height: 1.06; font-weight: 800; color: #fff; }
.tcui-h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); line-height: 1.12; font-weight: 700; color: var(--tc-primary); }
.tcui-h2--light { color: #fff; }
.tcui-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .84); max-width: 44ch; margin-top: 14px; }
.tcui-eyebrow, .tcui-kicker { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tc-primary); }
.tcui-hero .tcui-eyebrow, .tcui-promo .tcui-eyebrow { color: var(--tc-mint); }
.tcui-eyebrow { margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.tcui-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tc-mint); box-shadow: 0 0 0 0 rgba(169, 224, 169, .7); animation: tcui-pulse 2.2s infinite; }

/* ---------- Botones ---------- */
.tcui-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1;
	border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.tcui-btn .tcui-ico { width: 1.1em; height: 1.1em; transition: transform .2s; }
.tcui-btn:hover { transform: translateY(-2px); }
.tcui-btn:hover .tcui-ico { transform: translateX(3px); }
.tcui-btn--gold { background: #fff; color: var(--tc-dark); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
.tcui-btn--gold:hover { background: var(--tc-mint); box-shadow: 0 14px 34px rgba(0, 0, 0, .3); color: var(--tc-dark); }
.tcui-btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; backdrop-filter: blur(6px); }
.tcui-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.tcui-btn--navy { background: var(--tc-primary); color: #fff; box-shadow: 0 10px 24px rgba(43, 117, 43, .28); }
.tcui-btn--navy:hover { background: var(--tc-dark); color: #fff; }
.tcui-link { display: inline-block; margin-left: 16px; font-weight: 600; color: var(--tc-primary); }
.tcui-link:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.tcui-hero {
	position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--tcui-top, 0px) + clamp(48px, 9vw, 120px)) 0 clamp(64px, 8vw, 110px);
	background: linear-gradient(160deg, var(--tc-primary), var(--tc-dark));
}
.tcui-blob { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; opacity: .55; }
.tcui-blob--a { width: 520px; height: 520px; right: -120px; top: -160px; background: #a9e0a9; animation: tcui-drift 16s ease-in-out infinite alternate; }
.tcui-blob--b { width: 460px; height: 460px; left: -140px; bottom: -200px; background: #3d8f3d; animation: tcui-drift 20s ease-in-out infinite alternate-reverse; }
.tcui-hero__grid--solo { grid-template-columns: 1fr !important; max-width: 860px; }
.tcui-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.tcui-rot { margin-top: 18px; font-size: clamp(1.15rem, 2vw, 1.5rem); color: rgba(255, 255, 255, .9); min-height: 1.6em; }
.tcui-rot b { color: var(--tc-mint); font-weight: 600; display: inline-block; transition: opacity .35s, transform .35s; }
.tcui-rot b.is-out { opacity: 0; transform: translateY(8px); }
.tcui-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.tcui-actions--center { justify-content: center; }
.tcui-chips { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.tcui-chips li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .8); font-size: .92rem; }
.tcui-chips .tcui-ico { color: var(--tc-mint); width: 1.1em; height: 1.1em; }

/* Visual del hero: caso clínico interactivo */
.tcui-hero__visual { position: relative; min-width: 0; }
.tcui-case { background: #fff; color: var(--tc-ink); border-radius: 22px; padding: 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); width: 100%; max-width: 480px; margin-left: auto; min-width: 0; }
.tcui-case__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tcui-case__tag { display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 700; color: var(--tc-primary); text-transform: uppercase; letter-spacing: .08em; }
.tcui-case__tag .tcui-ico { width: 1.2em; height: 1.2em; }
.tcui-case__step { font-size: .76rem; font-weight: 600; color: var(--tc-muted); font-variant-numeric: tabular-nums; }
.tcui-case__bar { height: 5px; border-radius: 99px; background: #e6ebf2; overflow: hidden; margin-bottom: 16px; }
.tcui-case__bar i { display: block; height: 100%; width: 0; background: var(--tc-accent); border-radius: 99px; transition: width .5s ease; }
.tcui-case__vig { font-size: .98rem; line-height: 1.5; color: var(--tc-ink); margin-bottom: 14px; font-weight: 500; }
.tcui-opts { display: grid; gap: 8px; }
.tcui-opt { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 12px; background: #fff; cursor: pointer; text-align: left; color: var(--tc-ink); font: inherit; font-size: .9rem; line-height: 1.4; border: 1.5px solid var(--tc-line); border-radius: 12px; transition: border-color .2s, background .2s, transform .2s; }
.tcui-opt:hover:not(:disabled) { border-color: var(--tc-accent); transform: translateX(3px); }
.tcui-opt b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eef2f7; color: var(--tc-primary); font-size: .8rem; flex: none; }
.tcui-opt:disabled { cursor: default; }
.tcui-opt.is-ok { border-color: var(--tc-accent); background: rgba(61, 143, 61, .12); }
.tcui-opt.is-ok b { background: var(--tc-accent); color: #fff; }
.tcui-opt.is-bad { border-color: #c0392b; background: rgba(192, 57, 43, .08); }
.tcui-opt.is-bad b { background: #c0392b; color: #fff; }
.tcui-case__fb { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--tc-ivory); font-size: .86rem; line-height: 1.5; border-left: 4px solid var(--tc-accent); }
.tcui-case__fb strong { display: block; color: var(--tc-primary); margin-bottom: 3px; }
.tcui-case__btn { margin-top: 12px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--tc-primary); color: #fff; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; transition: background .2s, transform .2s; }
.tcui-case__btn:hover { background: var(--tc-accent); transform: translateY(-1px); }
.tcui-case__end { text-align: center; padding: 6px 0; }
.tcui-case__end b { display: block; font-size: 1.7rem; color: var(--tc-primary); }
.tcui-case__note { margin-top: 14px; font-size: .72rem; color: var(--tc-muted); }

/* ---------- Cinta de especialidades ---------- */
.tcui-marquee { background: var(--tc-dark); overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .08); }
.tcui-marquee__track { display: flex; gap: 14px; width: max-content; padding: 16px 0; animation: tcui-marq 42s linear infinite; }
.tcui-marquee:hover .tcui-marquee__track { animation-play-state: paused; }
.tcui-marquee span { white-space: nowrap; padding: 7px 18px; border-radius: 999px; border: 1px solid rgba(169, 224, 169, .3); color: rgba(255, 255, 255, .85); font-size: .88rem; }

/* ---------- Cifras y panel ---------- */
.tcui-band { background: var(--tc-ivory); border-bottom: 1px solid var(--tc-line); }
.tcui-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 72px; padding: 36px 0; }
.tcui-stat { text-align: center; }
.tcui-stat strong { display: block; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.1; color: var(--tc-primary); font-variant-numeric: tabular-nums; }
.tcui-stat span { font-size: .9rem; color: var(--tc-muted); }

.tcui-panel { background: var(--tc-ivory); border-bottom: 1px solid var(--tc-line); padding: 34px 0; }
.tcui-panel__in { display: grid; grid-template-columns: 1.1fr auto 1.4fr; gap: 28px 44px; align-items: center; }
.tcui-panel__hi .tcui-h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 6px 0; }
.tcui-panel__hi p:last-child { color: var(--tc-muted); }
.tcui-panel__nums { display: flex; gap: 34px; align-items: center; }
.tcui-stat--ring strong {
	position: relative; isolation: isolate; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 6px;
	background: conic-gradient(var(--tc-accent) calc(var(--p, 0) * 1%), #dfe8df 0); font-size: 1.35rem;
}
.tcui-stat--ring strong::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--tc-ivory); z-index: -1; }
.tcui-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.tcui-quick a {
	display: flex; align-items: center; gap: 10px; padding: 13px 16px; background: #fff; border: 1px solid var(--tc-line); border-radius: 14px;
	font-weight: 600; font-size: .92rem; color: var(--tc-primary); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tcui-quick a:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(22, 64, 26, .14); border-color: var(--tc-accent); }

/* ---------- Secciones ---------- */
.tcui-sec { padding: clamp(60px, 8vw, 108px) 0; background: #fff; }
.tcui-sec--ivory { background: var(--tc-ivory); }
.tcui-sec--tight { padding-top: 56px; }
.tcui-head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.tcui-kicker { margin-bottom: 10px; }

/* ---------- Pestañas de herramientas ---------- */
.tcui-tablist { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.tcui-tablist button {
	display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 999px; background: #fff; cursor: pointer;
	border: 1.5px solid var(--tc-line); color: var(--tc-ink); font-weight: 600; font-size: .94rem; transition: all .2s;
}
.tcui-tablist button:hover { border-color: var(--tc-accent); color: var(--tc-primary); }
.tcui-tablist button[aria-selected="true"] { background: var(--tc-primary); border-color: var(--tc-primary); color: #fff; box-shadow: 0 10px 24px rgba(43, 117, 43, .3); }
.tcui-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tcui-pn[hidden] { display: none; }
.tcui-pn:not([hidden]) { animation: tcui-fade .45s ease both; }
.tcui-pn__text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--tc-primary); margin-bottom: 10px; }
.tcui-pn__text > p { color: var(--tc-muted); font-size: 1.05rem; }
.tcui-pn__text ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.tcui-pn__text li { display: flex; align-items: center; gap: 10px; }
.tcui-pn__text li .tcui-ico { color: var(--tc-accent); width: 1.15em; height: 1.15em; }
.tcui-pn__viz { position: relative; background: linear-gradient(145deg, var(--tc-ivory), #e4f0e4); border: 1px solid var(--tc-line); border-radius: 28px; padding: 34px; display: grid; place-items: center; min-height: 320px; }
.tcui-viz__note { position: absolute; right: 18px; bottom: 12px; font-size: .7rem; color: var(--tc-muted); letter-spacing: .04em; }
.tcui-viz { width: 100%; max-width: 380px; background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 20px 50px rgba(22, 64, 26, .14); }
.tcui-viz--flash, .tcui-viz--stats, .tcui-viz--cal { background: transparent; box-shadow: none; padding: 0; }

.tcui-viz__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--tc-muted); }
.tcui-viz__bar b { background: var(--tc-primary); color: #fff; padding: 4px 10px; border-radius: 999px; letter-spacing: 0; }
.tcui-viz__opts { display: grid; gap: 8px; margin-top: 6px; }
.tcui-viz__opts div { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1.5px solid var(--tc-line); border-radius: 12px; }
.tcui-viz__opts b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eef2f7; color: var(--tc-primary); font-size: .8rem; }
.tcui-viz__opts i { flex: 1; height: 9px; }
.tcui-viz__opts .on { border-color: var(--tc-accent); background: rgba(61, 143, 61, .1); }
.tcui-viz__opts .on b { background: var(--tc-accent); color: #fff; }

.tcui-phases { list-style: none; padding: 0; display: flex; justify-content: space-between; gap: 6px; margin-bottom: 18px; position: relative; }
.tcui-phases li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: var(--tc-muted); }
.tcui-phases li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eef2f7; }
.tcui-phases li.done span { background: var(--tc-accent); color: #fff; }
.tcui-phases li.now { color: var(--tc-primary); }
.tcui-phases li.now span { background: var(--tc-primary); color: #fff; box-shadow: 0 0 0 4px rgba(43, 117, 43, .18); }
.tcui-branch { display: grid; gap: 8px; margin-top: 4px; }
.tcui-branch div { padding: 10px 12px; border: 1.5px solid var(--tc-line); border-radius: 12px; display: grid; gap: 6px; }
.tcui-branch em { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--tc-muted); text-transform: uppercase; letter-spacing: .06em; }
.tcui-branch .on { border-color: var(--tc-accent); background: rgba(61, 143, 61, .1); }

.tcui-flip { display: block; width: 100%; max-width: 340px; height: 210px; margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; perspective: 900px; }
.tcui-flip__in { position: relative; display: block; width: 100%; height: 100%; transition: transform .65s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; }
.tcui-flip.is-flipped .tcui-flip__in { transform: rotateY(180deg); }
.tcui-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 24px; border-radius: 20px; text-align: left; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 20px 50px rgba(22, 64, 26, .16); }
.tcui-face small { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.tcui-face--f { background: #fff; color: var(--tc-muted); }
.tcui-face--b { background: linear-gradient(145deg, var(--tc-primary), var(--tc-dark)); color: var(--tc-mint); transform: rotateY(180deg); }
.tcui-face--b .tcui-sk { background: rgba(255, 255, 255, .25); }
.tcui-viz__hint { text-align: center; margin-top: 16px; font-size: .84rem; color: var(--tc-muted); }

.tcui-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.tcui-day { background: #fff; border-radius: 12px; padding: 8px 6px; min-height: 150px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 8px 22px rgba(22, 64, 26, .08); }
.tcui-day b { font-size: .7rem; text-align: center; color: var(--tc-muted); }
.tcui-ev { display: block; height: 22px; border-radius: 6px; }
.tcui-ev--1 { background: #2b752b; } .tcui-ev--2 { background: #3b82c4; } .tcui-ev--3 { background: #d98b2b; } .tcui-ev--4 { background: #8b5cf6; } .tcui-ev--5 { background: #d9534f; }
.tcui-legend { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.tcui-legend .tcui-ev { width: 14px; height: 14px; border-radius: 50%; }
.tcui-legend small { margin-left: 8px; color: var(--tc-muted); font-size: .78rem; }

.tcui-heat { display: flex; gap: 4px; justify-content: center; padding: 18px; background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(22, 64, 26, .12); }
.tcui-heat div { display: flex; flex-direction: column; gap: 4px; }
.tcui-heat i { width: 13px; height: 13px; border-radius: 3px; background: #e8efe8; }
.tcui-heat .l1 { background: #c5e1c5; } .tcui-heat .l2 { background: #8cc98c; } .tcui-heat .l3 { background: #4fa44f; } .tcui-heat .l4 { background: #2b752b; }
.tcui-spark { display: flex; align-items: flex-end; gap: 10px; height: 100px; margin-top: 18px; padding: 14px 18px 0; background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(22, 64, 26, .12); }
.tcui-spark i { flex: 1; height: var(--h); border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--tc-accent), var(--tc-primary)); transform-origin: bottom; }
.tcui-pn:not([hidden]) .tcui-spark i { animation: tcui-grow .8s ease both; }

/* ---------- Cobertura por especialidad ---------- */
.tcui-cov__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.tcui-chip { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--tc-line); color: var(--tc-ink); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; }
.tcui-chip:hover { border-color: var(--tc-accent); color: var(--tc-primary); transform: translateY(-2px); }
.tcui-chip.is-on { background: var(--tc-primary); border-color: var(--tc-primary); color: #fff; box-shadow: 0 8px 20px rgba(43, 117, 43, .28); }
.tcui-cov__out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin-inline: auto; }
.tcui-tile {
	position: relative; overflow: hidden; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 28px 20px; background: #fff;
	border: 1.5px solid var(--tc-line); border-radius: var(--tc-radius); color: var(--tc-ink); transition: transform .25s, opacity .25s, border-color .25s, box-shadow .25s;
}
.tcui-tile .tcui-ico { width: 30px; height: 30px; color: var(--tc-primary); margin-bottom: 6px; }
.tcui-tile strong { color: var(--tc-primary); }
.tcui-tile [data-state] { font-size: .84rem; font-weight: 600; }
.tcui-tile.is-yes { border-color: var(--tc-accent); box-shadow: 0 14px 34px rgba(22, 64, 26, .12); }
.tcui-tile.is-yes [data-state] { color: var(--tc-accent); }
.tcui-tile.is-yes:hover { transform: translateY(-4px); }
.tcui-tile.is-no { opacity: .5; }
.tcui-tile.is-no [data-state] { color: var(--tc-muted); }

/* ---------- Tarjetas con spotlight ---------- */
.tcui-grid { display: grid; gap: 22px; }
.tcui-grid--5 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.tcui-spec {
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius); padding: 28px; color: var(--tc-ink); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tcui-spec::before, .tcui-tile::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
	background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(61, 143, 61, .16), transparent 62%);
}
.tcui-spec:hover::before, .tcui-tile:hover::before { opacity: 1; }
.tcui-spec:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(22, 64, 26, .14); border-color: var(--tc-accent); color: var(--tc-ink); }
.tcui-spec h3 { font-size: 1.12rem; color: var(--tc-primary); }
.tcui-spec p { color: var(--tc-muted); font-size: .95rem; flex: 1; }
.tcui-spec__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(43, 117, 43, .12); color: var(--tc-primary); margin-bottom: 6px; transition: background .25s, color .25s, transform .25s; }
.tcui-spec:hover .tcui-spec__ico { background: var(--tc-primary); color: #fff; transform: rotate(-6deg) scale(1.06); }
.tcui-spec__ico .tcui-ico { width: 26px; height: 26px; }
.tcui-more { font-weight: 600; font-size: .92rem; color: var(--tc-primary); display: inline-flex; gap: 6px; margin-top: 6px; }
.tcui-more i { font-style: normal; transition: transform .2s; }
.tcui-spec:hover .tcui-more i { transform: translateX(5px); }

/* ---------- Pasos ---------- */
.tcui-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.tcui-steps::before { content: ""; position: absolute; top: 27px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--tc-accent) 0 8px, transparent 8px 16px); opacity: .5; }
.tcui-steps li { text-align: center; padding: 0 12px; position: relative; }
.tcui-step__n { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--tc-primary); color: #fff; font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; box-shadow: 0 0 0 8px var(--tc-ivory); }
.tcui-steps h3 { font-size: 1.2rem; color: var(--tc-primary); margin-bottom: 6px; }
.tcui-steps p { color: var(--tc-muted); font-size: .95rem; }

/* ---------- Promo y final ---------- */
.tcui-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; background: linear-gradient(135deg, var(--tc-dark), var(--tc-primary)); border-radius: 28px; padding: clamp(30px, 5vw, 58px); position: relative; overflow: hidden; }
.tcui-promo::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 2px solid rgba(169, 224, 169, .35); }
.tcui-promo > div:first-child { max-width: 640px; position: relative; z-index: 1; }
.tcui-promo__cta { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tcui-promo__cta small { color: rgba(255, 255, 255, .65); }
.tcui-final { position: relative; overflow: hidden; isolation: isolate; background: var(--tc-dark); text-align: center; padding: clamp(60px, 8vw, 100px) 0; }
.tcui-final::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--tc-accent); filter: blur(90px); opacity: .35; left: 50%; top: -260px; transform: translateX(-50%); z-index: -1; }
.tcui-final .tcui-lead { margin: 14px auto 28px; }

/* ---------- FAQ ---------- */
.tcui-faq { display: grid; gap: 12px; }
.tcui-faq details { background: #fff; border: 1.5px solid var(--tc-line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.tcui-faq details[open] { border-color: var(--tc-accent); box-shadow: 0 12px 30px rgba(22, 64, 26, .1); }
.tcui-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 600; color: var(--tc-primary); }
.tcui-faq summary::-webkit-details-marker { display: none; }
.tcui-faq summary .tcui-ico { transition: transform .25s; color: var(--tc-accent); }
.tcui-faq details[open] summary .tcui-ico { transform: rotate(45deg); }
.tcui-faq details p { padding: 0 22px 20px; color: var(--tc-muted); animation: tcui-fade .3s ease both; }

/* ---------- Pie ampliado ---------- */
.tcui-foot { background: var(--tc-dark); color: rgba(255, 255, 255, .75); padding: 56px 0 32px; font-size: .94rem; }
.tcui-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.tcui-foot__brand { display: block; color: #fff; font-size: 1.4rem; margin-bottom: 10px; }
.tcui-foot h3 { color: var(--tc-mint); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;  }
.tcui-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tcui-foot a { color: rgba(255, 255, 255, .8); }
.tcui-foot a:hover { color: var(--tc-mint); }

/* ---------- Animaciones ---------- */
@keyframes tcui-pulse { 70% { box-shadow: 0 0 0 10px rgba(169, 224, 169, 0); } 100% { box-shadow: 0 0 0 0 rgba(169, 224, 169, 0); } }
@keyframes tcui-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-50px, 40px, 0) scale(1.12); } }
@keyframes tcui-bob { 0%, 100% { transform: translateZ(70px) translateY(0); } 50% { transform: translateZ(70px) translateY(-9px); } }
@keyframes tcui-marq { to { transform: translateX(-50%); } }
@keyframes tcui-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tcui-grow { from { transform: scaleY(.1); } to { transform: scaleY(1); } }

.tcui-js .tcui-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease calc(var(--d, 0) * 90ms), transform .6s ease calc(var(--d, 0) * 90ms); }
.tcui-js .tcui-reveal.is-in { opacity: 1; transform: none; }
.tcui-js .tcui-reveal.is-in.tcui-spec { transition: opacity .6s ease calc(var(--d, 0) * 90ms), transform .25s, box-shadow .25s, border-color .25s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.tcui-hero__grid { grid-template-columns: 1fr; gap: 44px; }
	.tcui-pn { grid-template-columns: 1fr; gap: 28px; }
	.tcui-panel__in { grid-template-columns: 1fr; }
	.tcui-foot__grid { grid-template-columns: 1fr; gap: 28px; }
	.tcui-steps { grid-template-columns: 1fr; }
	.tcui-steps::before { display: none; }
	.tcui-cov__out { grid-template-columns: 1fr; }
	.tcui-case { margin: 0 auto; max-width: 560px; }
}
@media (max-width: 640px) {
	.tcui-actions .tcui-btn { width: 100%; }
	.tcui-stats { gap: 22px 40px; }
	.tcui-tablist { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
	.tcui-tablist::-webkit-scrollbar { display: none; }
	.tcui-tablist button { flex: none; }
	.tcui-case { padding: 16px; border-radius: 18px; }
	.tcui-case__vig { font-size: .93rem; }
	.tcui-opt { font-size: .86rem; padding: 9px 10px; }
	.tcui-pn__viz { padding: 22px; }
	.tcui-link { margin-left: 0; margin-top: 14px; }
}

/* ---------- Acceso restringido (suscriptores) ---------- */
.tcui-lock { display: grid; grid-template-columns: 1fr 1.05fr; max-width: 980px; margin: 32px auto; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(22, 64, 26, .16); border: 1px solid var(--tc-line); font-family: inherit; color: var(--tc-ink); }
.tcui-lock__hero { position: relative; padding: 40px 36px; color: #fff; background: radial-gradient(120% 90% at 0% 0%, var(--tc-accent), var(--tc-primary) 55%, var(--tc-dark)); overflow: hidden; }
.tcui-lock__hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -90px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.tcui-lock__badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .74rem; font-weight: 600; letter-spacing: .03em; }
.tcui-lock__badge .tcui-ico { width: 1.1em; height: 1.1em; }
.tcui-lock__ico { display: grid; place-items: center; width: 56px; height: 56px; margin: 22px 0 14px; border-radius: 16px; background: rgba(255, 255, 255, .16); }
.tcui-lock__ico .tcui-ico { width: 28px; height: 28px; }
.tcui-lock .tcui-kicker { color: var(--tc-mint); margin-bottom: 8px; }
.tcui-lock__title { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.tcui-lock__lead { margin-top: 12px; color: rgba(255, 255, 255, .85); line-height: 1.55; }
.tcui-lock__list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.tcui-lock__list li { display: flex; align-items: center; gap: 10px; font-size: .94rem; }
.tcui-lock__list .tcui-ico { width: 1.2em; height: 1.2em; color: var(--tc-mint); flex: none; }
.tcui-lock__body { padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.tcui-lock__q { font-weight: 700; font-size: 1.05rem; color: var(--tc-primary); }
.tcui-lock__plans { display: grid; gap: 12px; }
.tcui-plan { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--tc-line); border-radius: 16px; text-decoration: none; color: var(--tc-ink); background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tcui-plan:hover { transform: translateY(-2px); border-color: var(--tc-accent); box-shadow: 0 12px 28px rgba(43, 117, 43, .16); }
.tcui-plan--best { border-color: var(--tc-primary); background: var(--tc-ivory); }
.tcui-plan__tag { position: absolute; top: -10px; right: 14px; padding: 3px 10px; border-radius: 999px; background: var(--tc-primary); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tcui-plan__name { grid-column: 1; font-weight: 700; font-size: 1rem; }
.tcui-plan__price { grid-column: 1; color: var(--tc-muted); font-size: .88rem; }
.tcui-plan__price .amount, .tcui-plan__price bdi { color: var(--tc-primary); font-weight: 700; }
.tcui-plan__cta { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--tc-primary); color: #fff; font-weight: 600; font-size: .86rem; white-space: nowrap; }
.tcui-plan__cta .tcui-ico { width: 1em; height: 1em; }
.tcui-lock__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tcui-lock__actions--center { justify-content: flex-start; }
.tcui-lock .tcui-btn--solid { background: var(--tc-primary); color: #fff; }
.tcui-lock .tcui-btn--solid:hover { background: var(--tc-accent); }
.tcui-lock .tcui-btn--outline { background: transparent; color: var(--tc-primary); border: 1.5px solid var(--tc-primary); }
.tcui-lock .tcui-btn--outline:hover { background: var(--tc-ivory); }
.tcui-lock__hint { font-size: .84rem; color: var(--tc-muted); line-height: 1.5; }
.tcui-lock__hint a { color: var(--tc-primary); font-weight: 600; }
@media (max-width: 780px) {
	.tcui-lock { grid-template-columns: 1fr; margin: 16px 12px; border-radius: 20px; }
	.tcui-lock__hero, .tcui-lock__body { padding: 26px 22px; }
	.tcui-plan { grid-template-columns: 1fr; }
	.tcui-plan__cta { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
	.tcui-lock__actions .tcui-btn { width: 100%; }
}

/* ---------- Portada con sesión iniciada ---------- */
.tcui-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; width: 100%; max-width: 520px; margin-left: auto; }
.tcui-tile { text-align: left; align-items: flex-start; position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: 20px; background: #fff; color: var(--tc-ink); box-shadow: 0 18px 44px rgba(0, 0, 0, .22); transition: transform .2s, box-shadow .2s; }
.tcui-tile:hover { transform: translateY(-4px); box-shadow: 0 26px 56px rgba(0, 0, 0, .3); }
.tcui-tile__ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 13px; background: var(--tc-ivory); color: var(--tc-primary); }
.tcui-tile__ico .tcui-ico { width: 24px; height: 24px; }
.tcui-tile strong { font-size: 1rem; font-weight: 700; color: var(--tc-primary); }
.tcui-tile small { font-size: .8rem; color: var(--tc-muted); line-height: 1.35; }
.tcui-tile.is-locked { background: rgba(255, 255, 255, .92); }
.tcui-tile.is-locked .tcui-tile__ico { background: #eef1f4; color: #6b7a88; }
.tcui-tile__chip { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--tc-primary); color: #fff; font-style: normal; font-size: .72rem; font-weight: 600; }
.tcui-tile__chip .tcui-ico { width: .95em; height: .95em; }
.tcui-hero__grid:has(.tcui-tiles) { align-items: center; }
.tcui-panel { background: var(--tc-ivory); padding: clamp(40px, 6vw, 70px) 0; border-bottom: 1px solid var(--tc-line); }
.tcui-panel__head { text-align: center; margin-bottom: 28px; }
.tcui-panel__head .tcui-h2 { margin-top: 6px; }
.tcui-panel__empty { text-align: center; color: var(--tc-muted); margin-bottom: 18px; }
.tcui-panel .tcui-btn { display: flex; width: fit-content; margin-inline: auto; }
.tcui-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; max-width: 1000px; margin-inline: auto; }
.tcui-kpi { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 16px; background: #fff; border: 1px solid var(--tc-line); border-radius: 20px; box-shadow: 0 10px 28px rgba(22, 64, 26, .07); }
.tcui-kpi strong { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; font-weight: 800; color: var(--tc-primary); font-variant-numeric: tabular-nums; }
.tcui-kpi span { margin-top: 6px; font-size: .88rem; color: var(--tc-muted); }
.tcui-kpi--ring strong { position: relative; z-index: 0; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--tc-accent) calc(var(--p, 0) * 1%), #dfe8df 0); font-size: 1.4rem; }
.tcui-kpi--ring strong::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; z-index: -1; }
@media (max-width: 960px) { .tcui-tiles { max-width: 560px; margin: 0 auto; } }
@media (max-width: 640px) { .tcui-tiles { gap: 10px; } .tcui-tile { padding: 14px; border-radius: 16px; } .tcui-tile small { display: none; } .tcui-tile__chip { margin-top: 6px; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.tcui *, .tcui *::before, .tcui *::after { animation: none !important; transition: none !important; }
	.tcui-js .tcui-reveal { opacity: 1; transform: none; }
}
