/* ==========================================================================
   LHD Corporativa · 0.11.0
   Índice
   1. Tipografía alojada en el tema
   2. Variables de diseño
   3. Base y accesibilidad
   4. Botones
   5. Cabecera y logotipo (animación del punto)
   6. Portada: héroe
   7. Secciones, tarjetas y pasos
   8. Demostraciones: estructura común
   9. Banda de marca (fotografía + empresa ficticia)
   10. Ventana de gestión (componentes de interfaz)
   11. Teléfono
   12. NEXO
   13. ALMA
   14. NUTRIX
   15. Contacto, pie y WhatsApp
   16. Páginas internas
   17. Responsive
   18. Movimiento reducido
   ========================================================================== */

/* 1. Tipografía ------------------------------------------------------------ */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); }

@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }

/* 2. Variables ------------------------------------------------------------- */
:root {
	/* Marca LHD (aprobada) */
	--bg: #07101b;
	--bg-alt: #0a1724;
	--surface: #101e2c;
	--line: #223a50;
	--cyan: #20d5f5;
	--cyan-soft: #91edff;
	--ink: #f5f9ff;
	--muted: #a9bccd;

	/* Interfaces simuladas (fondo claro) */
	--ui-bg: #f5f8fb;
	--ui-surface: #ffffff;
	--ui-bar: #e8eff5;
	--ui-nav: #edf2f7;
	--ui-line: #d9e3eb;
	--ui-ink: #13263a;
	--ui-muted: #4c6276;
	--ui-accent: #0b7590;
	--ui-accent-strong: #075d73;
	--ok-bg: #e2f5ec;  --ok-ink: #135c3d;
	--warn-bg: #fdeceb; --warn-ink: #9a2c1f;
	--info-bg: #e1f2fa; --info-ink: #0a5670;

	/* Empresas ficticias */
	--nexo: #154e82;
	--alma: #7c465d;
	--nutrix: #1f6f5c;

	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--max: 1200px;
	--gutter: 28px;
	--radius: 14px;
	--header-h: 76px;
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.app-window :focus-visible, .phone :focus-visible { outline-color: var(--ui-accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 100;
	background: var(--cyan); color: #04121c; padding: 10px 16px; border-radius: 8px;
	font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
	color: var(--cyan);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

/* 4. Botones --------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px;
	background: var(--cyan); color: #04121c;
	border: 1px solid var(--cyan); border-radius: 8px;
	font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--cyan-soft); border-color: var(--cyan-soft); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 42px; padding: 9px 18px; font-size: .92rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: #3b5a73; }
.btn--ghost:hover { background: #12263a; border-color: var(--cyan); color: var(--ink); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 5. Cabecera y logotipo --------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 40;
	background: rgba(7, 16, 27, .9);
	backdrop-filter: saturate(140%) blur(14px);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; white-space: nowrap; }
.site-logo__mark { position: relative; font-size: 1.75rem; font-weight: 800; letter-spacing: -.06em; color: #fff; line-height: 1; }
.site-logo__dot {
	display: inline-block;
	width: .28em; height: .28em;
	margin-left: .08em;
	border-radius: 50%;
	background: var(--cyan);
	box-shadow: 0 0 .5em rgba(32, 213, 245, .45);
	transform-origin: 50% 100%;
}
.site-logo__name { font-size: .88rem; font-weight: 600; letter-spacing: .01em; color: #e6eef6; }

/* Entrada del punto: site.js lo hace rebotar por la página hasta su sitio cada vez que se abre una página.
   Mientras <html> tenga .lhd-dot-intro el punto espera oculto; si el script no llega, aparece a los 4 s. */
.site-logo__dot { pointer-events: none; }
.lhd-dot-intro .site-logo__dot { opacity: 0; animation: lhd-dot-failsafe 0s 4.5s forwards; }
@keyframes lhd-dot-failsafe { to { opacity: 1; } }

.site-nav { display: flex; align-items: center; gap: 28px; }
.primary-menu { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { text-decoration: none; font-size: .95rem; color: #dbe6f0; }
.primary-menu a:hover { color: var(--cyan); }
.menu-toggle {
	display: none; align-items: center; gap: 10px;
	min-height: 44px; padding: 8px 14px;
	background: transparent; color: var(--ink);
	border: 1px solid #34536c; border-radius: 8px; cursor: pointer;
}
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after {
	display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }

/* 6. Héroe: vídeo a pantalla completa, titular a todo el ancho y cinta de servicios ---------- */
.hero { position: relative; overflow: hidden; background: #07101b; }
.hero__burst {
	position: absolute; left: 50%; top: 40%; z-index: 3; pointer-events: none;
	width: min(620px, 80vw); aspect-ratio: 1; border-radius: 50%; opacity: 0;
	background: radial-gradient(circle, rgba(120, 236, 255, .5) 0%, rgba(32, 213, 245, .26) 28%, rgba(32, 213, 245, .08) 55%, transparent 70%);
}
.hero__media {
	position: relative; margin: 0; overflow: hidden;
	height: calc(100svh - var(--header-h, 76px)); min-height: 520px; max-height: 1080px;
}
.hero__frame { position: absolute; inset: 0; transform: scale(var(--hero-scale, 1)); transform-origin: 50% 35%; }
.hero__poster, .hero__poster img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__video { opacity: 0; transition: opacity .8s ease; }
.hero__media.is-playing .hero__video, .hero__media.is-paused .hero__video { opacity: 1; }
.hero__shade {
	position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(180deg, rgba(7, 16, 27, .55) 0%, rgba(7, 16, 27, 0) 18%, rgba(7, 16, 27, 0) 58%, rgba(7, 16, 27, .82) 88%, #07101b 100%),
		radial-gradient(ellipse 60% 50% at 50% 45%, rgba(32, 213, 245, .10), transparent 70%);
	opacity: var(--hero-shade, 1);
}
.hero__caption {
	position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2;
	display: flex; align-items: center; gap: 14px; color: #f5f9ff; font-size: .95rem;
}
.hero__badge {
	flex: 0 0 auto; padding: 5px 11px; border-radius: 999px;
	background: rgba(7, 16, 27, .6); border: 1px solid rgba(32, 213, 245, .55); color: var(--cyan);
	font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.hero__chapter { flex: 0 1 auto; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hero__progress { display: flex; gap: 6px; flex: 0 1 220px; min-width: 60px; }
.hero__progress i { flex: 1; height: 3px; border-radius: 3px; background: rgba(245, 249, 255, .28); transition: background .4s ease; }
.hero__progress i.is-done, .hero__progress i.is-active { background: var(--cyan); }
.hero__toggle {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
	min-height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer;
	border: 1px solid rgba(245, 249, 255, .35); background: rgba(7, 16, 27, .6); color: #f5f9ff;
	font: inherit; font-size: .85rem; font-weight: 600; backdrop-filter: blur(6px);
}
.hero__toggle:hover { border-color: var(--cyan); }
.hero__toggle:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.hero__toggle-icon { position: relative; width: 12px; height: 12px; }
.hero__toggle-icon::before, .hero__toggle-icon::after { content: ""; position: absolute; top: 0; width: 4px; height: 12px; border-radius: 1px; background: currentColor; }
.hero__toggle-icon::before { left: 1px; }
.hero__toggle-icon::after { right: 1px; }
.hero__toggle[aria-pressed="true"] .hero__toggle-icon::before { left: 2px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.hero__toggle[aria-pressed="true"] .hero__toggle-icon::after { display: none; }

.hero__copy { position: relative; z-index: 1; padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(48px, 6vw, 88px); }
.hero__title {
	margin: 14px 0 clamp(32px, 4vw, 56px);
	font-size: clamp(2.4rem, 5.4vw, 5.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1;
	text-wrap: balance;
}
.hero__word { display: inline-block; }
.hero__row {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: clamp(24px, 4vw, 64px); align-items: start;
	padding-top: 28px; border-top: 1px solid var(--line);
}
.hero__highlight { margin: 0; color: var(--cyan); font-size: clamp(1.45rem, 2.3vw, 2.15rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.hero__intro { margin: 0; color: var(--muted); font-size: clamp(1.08rem, 1.4vw, 1.25rem); }


@media (max-width: 899px) {
	.hero__media { height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 5; max-height: 78svh; }
	.hero__caption { bottom: 16px; gap: 10px; font-size: .88rem; }
	.hero__burst { top: 40%; }
}
@media (max-width: 640px) {
	.hero__row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.hero__progress { display: none; }
	.hero__toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.hero__toggle { padding: 0; width: 44px; height: 44px; justify-content: center; }
}

/* 6b. Movimiento al desplazarse (solo si site.js lo activa y no hay «reducir movimiento») ---- */
.lhd-motion .hero__word { opacity: 0; transform: translateY(.42em) rotate(2deg); }
.lhd-motion .hero__title.is-in .hero__word {
	opacity: 1; transform: none;
	transition: opacity .7s ease, transform .9s cubic-bezier(.2, .75, .2, 1);
	transition-delay: calc(var(--i) * 85ms);
}
.lhd-motion [data-reveal] { opacity: 0; transform: translateY(34px); }
.lhd-motion [data-reveal].is-in {
	opacity: 1; transform: none;
	transition: opacity .8s ease, transform .9s cubic-bezier(.2, .75, .2, 1);
	transition-delay: var(--d, 0ms);
}

/* 7b. Escaparate de demostraciones ---------------------------------------- */
.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0 0 88px; padding: 0; list-style: none; }
.showcase__link {
	display: flex; flex-direction: column; height: 100%; overflow: hidden;
	border-radius: 20px; background: #0c1824; color: inherit; text-decoration: none;
	border: 1px solid rgba(160, 220, 255, .12);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s ease, box-shadow .35s ease;
}
.showcase__link:hover { transform: translateY(-6px); border-color: rgba(32, 213, 245, .45); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.showcase__link:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.showcase__media { position: relative; display: block; aspect-ratio: 640 / 524; overflow: hidden; background: #08131e; }
.showcase__media::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand); }
.showcase__media img, .showcase__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.showcase__media video { opacity: 0; transition: opacity .5s ease, transform .6s ease; }
.showcase__media video.is-playing { opacity: 1; }
.showcase__link:hover .showcase__media img, .showcase__link:hover .showcase__media video { transform: scale(1.03); }
.showcase__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex: 1; }
.showcase__meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.showcase__num { color: var(--cyan); font-weight: 700; letter-spacing: .08em; }
.showcase__mark { width: 26px; height: 26px; flex: 0 0 auto; }
.showcase__title { color: var(--ink); font-size: 1.32rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.showcase__text { color: var(--muted); font-size: .98rem; }
.showcase__go { margin-top: auto; padding-top: 10px; color: var(--cyan); font-weight: 700; font-size: .95rem; }
@media (max-width: 960px) {
	.showcase {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(270px, 78%);
		overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter, 16px); gap: 14px;
		margin: 0 calc(var(--gutter, 16px) * -1) 64px; padding: 4px var(--gutter, 16px) 14px;
		scrollbar-width: thin;
	}
	.showcase__item { scroll-snap-align: start; }
	.showcase__link:hover { transform: none; }
}


/* 7c. Soluciones como filas, beneficios y línea de trabajo ------------------ */
.services { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-row {
	position: relative; display: grid; grid-template-columns: 80px minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr);
	gap: clamp(16px, 3vw, 44px); align-items: baseline;
	padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line);
}
.service-row::before {
	content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
	background: var(--cyan); transform-origin: left; transition: transform .9s cubic-bezier(.2, .75, .2, 1) .15s;
}
.lhd-motion .service-row:not(.is-in)::before { transform: scaleX(0); }
.service-row__num { color: var(--cyan); font-size: .9rem; font-weight: 700; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.service-row__verb { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.service-row__title { margin: 0; font-size: 1.2rem; line-height: 1.35; }
.service-row__text { margin: 0; color: var(--muted); }

.benefits { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.benefits__head { position: sticky; top: calc(var(--header-h) + 40px); }
.benefits__head h2 { margin-bottom: 0; }
.benefits__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
.benefit { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.benefit h3 { display: flex; align-items: center; gap: 12px; font-size: 1.22rem; margin: 0 0 10px; }
.benefit h3::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(32, 213, 245, .14); }
.benefit p { margin: 0; color: var(--muted); }

.timeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; }
.timeline::before { background: var(--line); }
.timeline::after { background: var(--cyan); transform: scaleX(var(--progress, 1)); transform-origin: left; }
.timeline__step { position: relative; z-index: 1; }
.timeline__num {
	display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px;
	border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); color: var(--cyan);
	font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums;
}
.timeline__step h3 { font-size: 1.2rem; margin: 0 0 8px; line-height: 1.3; }
.timeline__step p { margin: 0; color: var(--muted); }

/* 7. Secciones, tarjetas y pasos ------------------------------------------ */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); }
.section--glow { background: radial-gradient(ellipse at 92% 0%, #0e3043 0, transparent 46%), #07121e; }
.section__header { max-width: 800px; margin-bottom: 44px; }
.section__header--split {
	max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(44px, 5vw, 72px);
}
.section__header--split h2 { margin-bottom: 0; }
.section__header--split .section__intro { margin: 0; }
.section h2 { text-wrap: balance; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 18px; }
.section__intro { color: var(--muted); font-size: 1.08rem; line-height: 1.75; }

.card-grid { display: grid; gap: 18px; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card--compact { padding: 26px 22px; }
.card__kicker { color: var(--cyan); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.card h3 { font-size: 1.32rem; letter-spacing: -.01em; line-height: 1.28; margin-bottom: 12px; }
.card--compact h3 { font-size: 1.14rem; }
.card p:not(.card__kicker) { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { border-top: 2px solid var(--cyan); padding-top: 20px; }
.step__number { color: var(--cyan); font-size: .85rem; font-weight: 700; letter-spacing: .1em; }
.step h3 { font-size: 1.25rem; margin: 10px 0; }
.step p { color: var(--muted); }

/* 8. Demostraciones: estructura ------------------------------------------- */
.demo { padding: 88px 0; border-top: 1px solid var(--line); }
.demo:first-of-type { border-top: 0; padding-top: 12px; }
.demo__head { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); gap: 56px; align-items: end; margin-bottom: 30px; }
.demo__title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 14px; }
.demo__intro > p:not(.eyebrow) { max-width: 680px; color: var(--muted); line-height: 1.7; }
.demo__aside { display: flex; flex-direction: column; gap: 14px; }
.demo__try { color: #d8e5ef; font-size: .95rem; line-height: 1.6; }
.demo__try strong { color: var(--ink); }
.demo__cta {
	display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
	padding-top: 12px; border-top: 1px solid var(--line);
	color: var(--cyan); font-weight: 700; text-decoration: none; line-height: 1.4;
}
.demo__cta:hover { color: var(--cyan-soft); text-decoration: underline; text-underline-offset: 4px; }
.demo-disclosure { max-width: 820px; color: #9db2c4; font-size: .9rem; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Guía visual: el botón que toca pulsar en cada paso lleva un halo cian de LHD. */
.is-next { animation: lhd-next 1.6s ease-in-out infinite; }
@keyframes lhd-next {
	0%, 100% { box-shadow: 0 0 0 2px rgba(32, 213, 245, .95), 0 0 0 2px rgba(32, 213, 245, 0); }
	50% { box-shadow: 0 0 0 2px rgba(32, 213, 245, .95), 0 0 0 9px rgba(32, 213, 245, .22); }
}

/* 9. Escena de cada empresa: fotografía, marca, monitor y móvil ----------- */
.scene {
	position: relative; isolation: isolate; overflow: hidden;
	padding: 30px 36px 40px;
	border-radius: 26px;
	background: var(--scene-bg);
	border: 1px solid rgba(255, 255, 255, .08);
	box-shadow: 0 40px 90px rgba(0, 0, 0, .45);
}
.scene__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.scene__shade { position: absolute; inset: 0; z-index: -1; background: var(--scene-shade); }
.scene__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 128px; }
.scene__brand { display: flex; align-items: center; gap: 16px; }
.scene__mark { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35)); }
.scene__brand-text { display: flex; flex-direction: column; gap: 8px; }
.scene__name { font-family: var(--brand-font); font-size: 2.1rem; font-weight: 700; letter-spacing: var(--brand-tracking, 0); line-height: 1; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.scene__name span { font-weight: 500; opacity: .85; }
.scene__tagline { color: rgba(255, 255, 255, .9); font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.scene__label { padding: 5px 12px; border-radius: 99px; background: rgba(4, 12, 20, .55); color: #eef4f9; font-size: .78rem; font-weight: 600; white-space: nowrap; backdrop-filter: blur(6px); }
.scene__devices { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 36px; align-items: end; }

.monitor { min-width: 0; }
.monitor__screen {
	padding: 12px;
	background: #0a0c0f;
	border-radius: 18px 18px 0 0;
	box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.monitor__screen .app-window { border-radius: 6px; box-shadow: none; }
.monitor__chin { position: relative; height: 26px; background: linear-gradient(180deg, #1c2026, #111418); border-radius: 0 0 14px 14px; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.monitor__chin::after { content: ""; position: absolute; left: 50%; top: 9px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #3a4048; }
.monitor__stand { position: relative; height: 74px; }
.monitor__stand::before { content: ""; position: absolute; left: 50%; top: 0; width: 120px; height: 62px; transform: translateX(-50%); background: linear-gradient(90deg, #6f7781, #c9d0d7 45%, #7d858f); clip-path: polygon(24% 0, 76% 0, 86% 100%, 14% 100%); }
.monitor__stand::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 250px; height: 12px; transform: translateX(-50%); border-radius: 50% / 100%; background: linear-gradient(180deg, #c3cad1, #7a828c); box-shadow: 0 10px 22px rgba(0, 0, 0, .45); }

/* Temas de cada marca ------------------------------------------------------ */
.scene--nexo {
	--scene-bg: #08142a;
	--scene-shade: linear-gradient(180deg, rgba(5, 14, 34, .3) 0%, rgba(5, 14, 34, .78) 34%, rgba(5, 14, 34, .97) 66%);
	--brand-font: "Space Grotesk", var(--font);
	--brand-tracking: .01em;
	--ui-bg: #0e1a30; --ui-surface: #15243d; --ui-bar: #0a1426; --ui-nav: #0b1629; --ui-line: #243a5c;
	--ui-ink: #eaf1ff; --ui-muted: #a5b8d6; --ui-accent: #2563eb; --ui-accent-strong: #1d4fc4;
	--ok-bg: #0f3a2b; --ok-ink: #86e9b4; --warn-bg: #4a1c22; --warn-ink: #ffb3ad; --info-bg: #13335f; --info-ink: #a9cdff;
}
.scene--alma {
	--scene-bg: #3a1e29;
	--scene-shade: linear-gradient(180deg, rgba(58, 24, 37, .18) 0%, rgba(58, 24, 37, .66) 36%, rgba(48, 20, 31, .96) 68%);
	--brand-font: "Playfair Display", Georgia, serif;
	--brand-tracking: .06em;
	--ui-bg: #fbf7f4; --ui-surface: #ffffff; --ui-bar: #f3e8e3; --ui-nav: #f7efeb; --ui-line: #ecdcd5;
	--ui-ink: #3a2129; --ui-muted: #74545e; --ui-accent: #9c4562; --ui-accent-strong: #7f3550;
}
.scene--nutrix {
	--scene-bg: #0c3226;
	--scene-shade: linear-gradient(180deg, rgba(8, 40, 30, .2) 0%, rgba(8, 40, 30, .7) 36%, rgba(8, 36, 27, .96) 68%);
	--brand-font: "Nunito", var(--font);
	--brand-tracking: .03em;
	--ui-bg: #f6fbf8; --ui-surface: #ffffff; --ui-bar: #e7f3ec; --ui-nav: #edf6f1; --ui-line: #d3e7dc;
	--ui-ink: #15352a; --ui-muted: #4a675b; --ui-accent: #217a54; --ui-accent-strong: #185e40;
}
.scene--nutrix .app-window, .scene--nutrix .phone { font-family: "Nunito", var(--font); }
.scene--alma .app-main h4, .scene--alma .phone__title, .scene--alma .lockup__name, .scene--alma .phone-hero__text { font-family: "Playfair Display", Georgia, serif; letter-spacing: .02em; }
.scene--nexo .app-main h4, .scene--nexo .phone__title, .scene--nexo .lockup__name, .scene--nexo .kpi__value { font-family: "Space Grotesk", var(--font); }

/* NEXO trabaja en modo oscuro: ajustes de los componentes claros por defecto. */
.scene--nexo .app-nav span.is-active { background: #1a2d4b; color: #fff; box-shadow: none; }
.scene--nexo .ui-table th { background: #122139; }
.scene--nexo .ui-table tr.is-highlight td { background: #2a1a24; }
.scene--nexo .ui-btn--ghost { background: #1f3352; color: #eaf1ff; }
.scene--nexo .ui-btn--ghost:hover:not(:disabled) { background: #284066; }
.scene--nexo .flow li { background: #172843; }
.scene--nexo .flow li::before { background: #0e1a30; color: #a5b8d6; }
.scene--nexo .app-status { background: #13233c; color: #cfdcf1; }
.scene--nexo .ui-panel { border-color: #2c4a78; box-shadow: none; }
.scene--nexo .app-window__dots i { background: #33476a; }
.scene--nexo .phone__screen { background: #0c1628; color: #eaf1ff; }
.scene--nexo .phone-card { background: #15243d; }
.scene--nexo .phone-card--empty { background: #101d33; border-color: #2a3f62; }
.scene--nexo .phone-card--alert { background: #2a1820; border-color: #5a2a33; }
.scene--nexo .phone-card--success { background: #0f2f26; border-color: #1e5a44; }
.scene--nexo .phone-card--muted { background: #1a2436; border-color: #2c3a52; }
.scene--nexo .phone-stats div { background: #15243d; }
.scene--nexo .phone__app-head .lockup__name { color: #fff; }
.scene--nexo .phone__notch { background: #000; }

/* 10. Ventana de gestión --------------------------------------------------- */
.app-window {
	container: appwin / inline-size;
	min-width: 0;
	background: var(--ui-bg);
	color: var(--ui-ink);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
	font-size: 13px;
	line-height: 1.45;
}
.app-window__bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; background: var(--ui-bar); border-bottom: 1px solid var(--ui-line); }
.app-window__dots { display: flex; gap: 6px; }
.app-window__dots i { width: 10px; height: 10px; border-radius: 50%; background: #b9c8d4; }
.app-window__module { margin-left: auto; color: var(--ui-muted); font-size: 12px; font-weight: 600; }
.app-window__body { display: grid; grid-template-columns: 108px minmax(0, 1fr); min-height: 100%; }
.app-nav { display: flex; flex-direction: column; gap: 4px; padding: 16px 10px; background: var(--ui-nav); border-right: 1px solid var(--ui-line); }
.app-nav span { padding: 8px 10px; border-radius: 7px; color: var(--ui-muted); font-size: 12px; font-weight: 600; }
.app-nav span.is-active { background: #ffffff; color: var(--ui-ink); box-shadow: 0 1px 2px rgba(19, 38, 58, .08); }
@container appwin (max-width: 500px) {
	.app-window__body { grid-template-columns: minmax(0, 1fr); }
	.app-nav { display: none; }
	.app-window__module { display: none; }
}
.app-main { container: appmain / inline-size; min-width: 0; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.app-main__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-main h4 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }

.lockup { display: inline-flex; align-items: center; gap: 8px; }
.lockup__mark { width: 26px; height: 26px; flex: none; }
.lockup__text { display: flex; flex-direction: column; line-height: 1.05; }
.lockup__name { font-weight: 800; letter-spacing: .08em; font-size: 13px; }
.lockup__suffix { font-size: 12px; color: var(--ui-muted); letter-spacing: .04em; }
.lockup--compact .lockup__mark { width: 24px; height: 24px; }

.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; background: var(--ok-bg); color: var(--ok-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip--warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip--info { background: var(--info-bg); color: var(--info-ink); }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 9px; min-width: 0; }
.kpi__label { color: var(--ui-muted); font-size: 12px; line-height: 1.3; }
.kpi__value { font-size: 22px; font-weight: 800; color: var(--ui-ink); letter-spacing: -.02em; line-height: 1.15; }
.kpi__unit { color: var(--ui-muted); font-size: 12px; }

.ui-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 9px; overflow: hidden; }
.ui-table th, .ui-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--ui-line); }
.ui-table th { background: #eef3f7; color: var(--ui-muted); font-size: 12px; font-weight: 700; }
.ui-table tr:last-child td { border-bottom: 0; }
.ui-table td:nth-child(2), .ui-table td:nth-child(3), .ui-table th:nth-child(2), .ui-table th:nth-child(3) { text-align: right; width: 56px; }
.ui-table tr.is-highlight td { background: #fff7f6; }
.status { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status--ok { background: var(--ok-bg); color: var(--ok-ink); }
.status--warn { background: var(--warn-bg); color: var(--warn-ink); }
.status--info { background: var(--info-bg); color: var(--info-ink); }

.app-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.app-actions--end { justify-content: flex-end; }
.ui-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 38px; padding: 8px 14px;
	background: var(--ui-accent); color: #fff;
	border: 0; border-radius: 8px;
	font-size: 13px; font-weight: 700; line-height: 1.2;
	cursor: pointer; transition: background-color .15s ease, opacity .15s ease;
}
.ui-btn:hover:not(:disabled) { background: var(--ui-accent-strong); }
.ui-btn:disabled { opacity: .45; cursor: not-allowed; }
.ui-btn--ghost { background: #e3ebf1; color: var(--ui-ink); }
.ui-btn--ghost:hover:not(:disabled) { background: #d4dfe8; }
.ui-btn--block { width: 100%; }
.ui-btn--small { min-height: 34px; padding: 6px 12px; font-size: 12px; }

.ui-panel { padding: 14px; background: var(--ui-surface); border: 1px solid #bcd9e4; border-radius: 10px; box-shadow: 0 6px 18px rgba(19, 58, 81, .07); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
@container appmain (min-width: 560px) {
	.ui-panel--inline { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; }
	.ui-panel--inline .ui-btn { flex: none; }
}
.ui-panel__title { font-weight: 700; font-size: 13px; }
.ui-panel__text { color: var(--ui-muted); font-size: 13px; }
.ui-mail { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.ui-mail dt { color: var(--ui-muted); }
.ui-mail dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.flow { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.flow li { counter-increment: flow; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 99px; background: #e6edf2; color: var(--ui-muted); font-size: 12px; font-weight: 600; }
.flow li::before { content: counter(flow); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; font-size: 12px; }
.flow li.is-done { background: var(--ok-bg); color: var(--ok-ink); }
.flow li.is-done::before { content: "✓"; background: #1e8a5e; color: #fff; }
.flow li.is-stopped { background: var(--warn-bg); color: var(--warn-ink); }
.flow li.is-stopped::before { content: "×"; background: #b5392a; color: #fff; }

.app-status { min-height: 38px; padding: 9px 12px; border-radius: 8px; background: #eaf1f6; color: #2c4256; font-size: 13px; }

/* 11. Teléfono ------------------------------------------------------------- */
.phone {
	width: 250px;
	padding: 9px;
	background: #0c1824;
	border: 1px solid #2a465e;
	border-radius: 36px;
	box-shadow: 0 26px 60px rgba(0, 0, 0, .5), inset 0 0 0 2px #050b12;
}
.phone__screen {
	position: relative;
	min-height: 488px;
	padding: 0 14px 16px;
	background: #fff;
	color: var(--ui-ink);
	border-radius: 28px;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.45;
	display: flex; flex-direction: column; gap: 12px;
}
.phone__status { display: flex; align-items: center; justify-content: space-between; height: 32px; font-size: 12px; font-weight: 700; }
.phone__notch { width: 70px; height: 20px; border-radius: 12px; background: #0c1824; }
.phone__app-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--ui-line); color: var(--ui-muted); font-size: 12px; font-weight: 600; }
.phone__app-head .lockup__name { color: var(--ui-ink); }
.phone__title { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.phone__foot { margin-top: auto; color: var(--ui-muted); font-size: 12px; }

.phone-card { padding: 13px; border-radius: 14px; background: #f2f6f9; display: flex; flex-direction: column; gap: 6px; }
.phone-card--empty { color: var(--ui-muted); text-align: center; padding: 26px 12px; border: 1px dashed var(--ui-line); background: #fafcfd; }
.phone-card--alert { background: #fff5f3; border: 1px solid #f2cdc6; }
.phone-card--success { background: #e9f7f0; border: 1px solid #bfe5d1; }
.phone-card--muted { background: #f1f3f5; border: 1px solid #dde3e8; }
.phone-card__kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ui-muted); }
.phone-card--alert .phone-card__kicker { color: var(--warn-ink); }
.phone-card--success .phone-card__kicker { color: var(--ok-ink); }
.phone-card__title { font-size: 16px; font-weight: 800; }
.phone-card__text { color: var(--ui-muted); font-size: 13px; }
.phone-card__facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 2px 0 4px; font-size: 13px; }
.phone-card__facts dt { color: var(--ui-muted); }
.phone-card__facts dd { margin: 0; font-weight: 700; text-align: right; }
.phone-card__actions { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.phone-section-title { margin-top: 4px; color: var(--ui-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.phone-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.phone-stats div { padding: 10px; border-radius: 12px; background: #f2f6f9; }
.phone-stats dt { color: var(--ui-muted); font-size: 12px; line-height: 1.3; }
.phone-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }

/* 12. NEXO ----------------------------------------------------------------- */
.lockup--nexo .lockup__mark { border-radius: 7px; }
.product-hero { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; }
.product-hero__media { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.product-hero__photo { width: 100%; height: 100%; object-fit: contain; }
.product-hero__media:empty { display: none; }
.product-hero__name { font-size: 15px; font-weight: 700; }
.product-hero__ref { color: var(--ui-muted); font-size: 12px; margin: 2px 0 10px; }
.phone-card__product { display: flex; align-items: center; gap: 10px; }
.phone-card__thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; padding: 2px; background: #fff; flex: none; }

/* 13. ALMA ----------------------------------------------------------------- */
.agenda {
	display: grid;
	grid-template-columns: 50px repeat(3, minmax(0, 1fr));
	grid-template-rows: 26px repeat(4, 52px);
	gap: 4px;
	padding: 10px;
	background: var(--ui-surface);
	border: 1px solid var(--ui-line);
	border-radius: 10px;
}
.agenda__corner { grid-column: 1; grid-row: 1; }
.agenda__day { grid-row: 1; align-self: center; font-size: 12px; font-weight: 700; color: var(--ui-ink); padding-left: 4px; }
.agenda__time { grid-column: 1; align-self: start; padding-top: 4px; font-size: 12px; color: var(--ui-muted); font-variant-numeric: tabular-nums; }
.agenda__cell { background: #eff4f8; border-radius: 6px; }
.appt {
	z-index: 1; min-width: 0; overflow: hidden;
	padding: 5px 8px;
	background: #f6e6ea;
	border-left: 3px solid var(--ui-accent);
	border-radius: 6px;
	color: #4a2433; font-size: 12px; line-height: 1.3;
}
.appt b { display: block; font-weight: 700; }
.appt--free { background: #fff; border: 1.5px dashed var(--ui-accent); color: var(--info-ink); }
.appt--new { background: var(--ok-bg); border: 0; border-left: 3px solid #1e8a5e; color: var(--ok-ink); animation: lhd-pop .35s ease-out; }
@keyframes lhd-pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.services { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; }
.services legend { padding: 0; margin-bottom: 4px; color: var(--ui-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.service { display: flex; align-items: center; gap: 9px; min-height: 40px; border-bottom: 1px solid var(--ui-line); cursor: pointer; }
.service input { width: 18px; height: 18px; margin: 0; accent-color: var(--ui-accent); }
.service__time { margin-left: auto; color: var(--ui-muted); font-size: 12px; }
.phone-summary { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 2px 0 4px; padding: 10px 12px; background: #f6ece9; border-radius: 10px; }
.phone-summary dd { margin: 0; text-align: right; font-weight: 700; }
.phone-hero { position: relative; height: 112px; margin: 0 -14px; overflow: hidden; }
.phone-hero__photo { width: 100%; height: 100%; object-fit: cover; }
.phone-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(58, 24, 37, .78)); }
.phone-hero__text { position: absolute; z-index: 1; left: 14px; bottom: 10px; color: #fff; font-size: 17px; font-weight: 700; }
.phone-hero:not(:has(img)) { display: none; }
.phone-summary dt { color: var(--ui-muted) !important; }
.phone-notice {
	position: absolute; z-index: 3; left: 10px; right: 10px; top: 40px;
	padding: 12px; border-radius: 16px;
	background: #1d1218; color: #fff;
	box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
	animation: lhd-notice .35s ease-out;
}
.phone-notice__title { font-weight: 800; font-size: 14px; }
.phone-notice__text { color: #f1dde6; font-size: 13px; margin: 3px 0 10px; }
.phone-notice__actions { display: flex; gap: 6px; }
@keyframes lhd-notice { from { transform: translateY(-14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* 14. NUTRIX --------------------------------------------------------------- */
.ui-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ui-line); }
.ui-tabs [role="tab"] {
	min-height: 38px; padding: 8px 12px; margin-bottom: -1px;
	background: transparent; color: var(--ui-muted);
	border: 0; border-bottom: 2px solid transparent;
	font-size: 13px; font-weight: 700; cursor: pointer;
}
.ui-tabs [role="tab"][aria-selected="true"] { color: var(--ui-accent); border-bottom-color: var(--ui-accent); }
.ui-tabs [role="tab"]:hover { color: var(--ui-ink); }
.ui-tabpanel { display: flex; flex-direction: column; gap: 12px; }
.facts { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 0; margin: 0; background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 10px; overflow: hidden; }
.facts dt, .facts dd { margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--ui-line); }
.facts dt { color: var(--ui-muted); background: #f6f9fb; }
.facts dd { font-weight: 600; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.ui-chart { margin: 0; padding: 12px; background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 10px; }
.ui-chart figcaption { font-size: 12px; font-weight: 700; color: var(--ui-muted); margin-bottom: 6px; }
.ui-chart svg { width: 100%; height: auto; }
.ui-chart__grid path { stroke: #e2eaee; stroke-width: 1; }
.ui-chart__axis text { fill: #546b7d; font-size: 12px; font-family: var(--font); }
.ui-chart__line { fill: none; stroke: var(--ui-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ui-chart__dots circle { fill: var(--ui-accent); }

/* Plan semanal: lista compacta en ventanas estrechas, tarjetas con foto en ventanas anchas. */
.week { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 10px; overflow: hidden; }
.week__day {
	position: relative; min-width: 0;
	display: grid; grid-template-columns: auto 92px minmax(0, 1fr); align-items: center; gap: 10px;
	padding: 7px 12px; border-bottom: 1px solid var(--ui-line);
}
.week__day:last-child { border-bottom: 0; }
.week__media { display: block; width: 52px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #eef3f1; }
.week__media:empty { display: none; }
.week__photo { width: 100%; height: 100%; object-fit: cover; }
.week__name { grid-column: 2; color: var(--ui-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.week__dish { grid-column: 3; font-size: 13px; font-weight: 700; line-height: 1.3; }
.week__day.is-changed { background: #eef8f3; }
.week__day.is-changed .week__dish::after { content: "Actualizado"; display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 99px; background: #1e8a5e; color: #fff; font-size: 12px; font-weight: 700; vertical-align: 1px; }
@container appmain (min-width: 560px) {
	.week.has-photos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; background: none; border: 0; border-radius: 0; overflow: visible; }
	.week.has-photos .week__day { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 1px solid var(--ui-line); border-radius: 10px; overflow: hidden; background: var(--ui-surface); }
	.week.has-photos .week__media { width: 100%; border-radius: 0; }
	.week.has-photos .week__name { padding: 8px 9px 0; }
	.week.has-photos .week__dish { padding: 2px 9px 10px; }
	.week.has-photos .week__day.is-changed { border-color: #1e8a5e; box-shadow: 0 0 0 2px rgba(30, 138, 94, .25); }
	.week.has-photos .week__day.is-changed .week__dish::after { position: absolute; top: 6px; right: 6px; margin: 0; }
}

.meal-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; align-items: end; padding: 12px; background: #eef7f3; border: 1px solid #c6e3d6; border-radius: 10px; }
.meal-editor .ui-btn { grid-column: 1 / -1; justify-self: start; }
@container appmain (min-width: 560px) {
	.meal-editor { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; }
	.meal-editor .ui-btn { grid-column: auto; }
}
.meal-editor__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.meal-editor label { font-size: 12px; font-weight: 700; color: #234d41; }
.meal-editor select { width: 100%; min-height: 38px; padding: 6px 8px; border: 1px solid #8fb9aa; border-radius: 7px; background: #fff; color: var(--ui-ink); font-size: 13px; }


.day-pills { display: flex; justify-content: space-between; gap: 4px; }
.day-pills button {
	position: relative; width: 34px; height: 34px; border-radius: 50%;
	border: 1px solid var(--ui-line); background: #fff; color: var(--ui-ink);
	font-size: 13px; font-weight: 700; cursor: pointer;
}
.day-pills button[aria-pressed="true"] { background: var(--ui-accent); border-color: var(--ui-accent); color: #fff; }
.day-pills button.has-update::after { content: ""; position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; background: #f0a33c; border: 2px solid #fff; }
.meal { display: flex; flex-direction: column; gap: 4px; }
.meal__media { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #eef3f1; margin-bottom: 6px; }
.meal__photo { width: 100%; height: 100%; object-fit: cover; }
.meal__day { color: var(--ui-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.meal__name { font-size: 16px; font-weight: 800; line-height: 1.25; }
.meal__badge { align-self: flex-start; padding: 2px 8px; border-radius: 99px; background: #fdf1e1; color: #7a4a0c; font-size: 12px; font-weight: 700; }
.ingredients { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 0; padding: 0; list-style: none; }
.ingredients li { padding: 3px 8px; border-radius: 99px; background: #edf6f2; color: #1d5546; font-size: 12px; font-weight: 600; }
.shopping { margin-top: auto; border-top: 1px solid var(--ui-line); padding-top: 10px; }
.shopping summary { cursor: pointer; font-weight: 700; font-size: 13px; list-style-position: inside; }
.shopping summary span { color: var(--ui-muted); font-weight: 600; }
.shopping ul { margin: 8px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 10px; font-size: 12px; }
.shopping li { padding: 2px 0; break-inside: avoid; }
.shopping li::before { content: "○ "; color: var(--ui-accent); }

/* 15. Contacto, pie y WhatsApp -------------------------------------------- */
.section--contact { background: radial-gradient(ellipse 60% 70% at 85% 100%, rgba(32, 213, 245, .10), transparent 70%), var(--bg-alt); padding-bottom: clamp(96px, 10vw, 140px); }
.contact__title { max-width: 24ch; font-size: clamp(2.3rem, 5vw, 4.6rem) !important; letter-spacing: -.05em !important; line-height: 1.02 !important; margin: 10px 0 clamp(36px, 4vw, 56px) !important; }
.contact__row {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px);
	align-items: start; padding-top: 30px; border-top: 1px solid var(--line);
}
.contact__copy .section__intro { margin: 0 0 14px; }
.contact__note { color: var(--ink); font-weight: 600; margin: 0; }
.contact__panel { display: flex; flex-direction: column; }
.contact__lead { margin: 0 0 14px; color: var(--muted); font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.contact__channels { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.contact__mail {
	position: relative; min-width: 0; color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
	font-size: clamp(1.3rem, 2.4vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; padding-bottom: 6px;
	background: linear-gradient(var(--cyan), var(--cyan)) left bottom / 100% 2px no-repeat;
	transition: background-size .35s ease, color .2s ease;
}
.contact__mail:hover { color: var(--cyan); background-size: 40% 2px; }
.contact__mail:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
@media (max-width: 480px) {
	.contact__whatsapp { width: 48px; height: 48px; }
	.contact__whatsapp svg { width: 27px; height: 27px; }
}
.contact__whatsapp {
	flex: 0 0 auto; display: grid; place-items: center; width: 60px; height: 60px;
	border-radius: 50%; background: #25d366; color: #fff; transition: transform .2s ease, box-shadow .2s ease;
}
.contact__whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
.contact__whatsapp:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.contact__whatsapp svg { width: 30px; height: 30px; }

.site-footer { border-top: 1px solid var(--line); padding: 0 0 30px; color: var(--muted); font-size: .9rem; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 48px; padding-top: 56px; padding-bottom: 40px; }
.site-footer__brand p { margin: 10px 0 0; max-width: 30ch; }
.site-footer__logo { color: var(--ink); text-decoration: none; font-size: 2.6rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.site-footer__dot { display: inline-block; width: .22em; height: .22em; margin-left: .06em; border-radius: 50%; background: var(--cyan); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.site-footer__nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer__nav a:hover { color: var(--cyan); }
.site-footer__inner { padding-top: 24px; background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__legal a { text-decoration: none; }
.site-footer__legal a:hover { color: var(--cyan); text-decoration: underline; }

.whatsapp-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 50;
	display: grid; place-items: center; width: 54px; height: 54px;
	border-radius: 50%; background: #25d366; color: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
	transition: transform .2s ease;
}
.whatsapp-float:hover { transform: translateY(-2px); }
.whatsapp-float svg { width: 30px; height: 30px; }

.demo__custom {
	margin: 18px 0 0; padding: 14px 18px; border-left: 3px solid var(--cyan);
	background: rgba(32, 213, 245, .06); border-radius: 0 10px 10px 0; color: var(--muted);
}
.demo__custom strong { color: var(--ink); }

.admin-photo-notice {
	position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 300px;
	display: flex; flex-direction: column; gap: 4px;
	padding: 12px 14px; border-radius: 10px;
	background: #fff8e6; color: #3d2c00; border: 1px solid #e8c766;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .4); font-size: 13px; line-height: 1.4;
}
.admin-photo-notice a { color: #5a3d00; font-weight: 700; }
.admin-contact-notice {
	display: flex; flex-direction: column; gap: 4px; margin: 18px 0 0;
	padding: 12px 14px; border-radius: 10px;
	background: #fff8e6; color: #3d2c00; border: 1px solid #e8c766; font-size: 13px; line-height: 1.4;
}
.contact .admin-contact-notice, .contact .admin-contact-notice strong { color: #3d2c00; }
.contact .admin-contact-notice a { color: #5a3d00; font-weight: 700; }

/* 16. Páginas internas ----------------------------------------------------- */
.page { padding: 80px 0 100px; min-height: 60vh; }
.entry__title { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; margin-bottom: 24px; }
.entry--summary { padding: 24px 0; border-bottom: 1px solid var(--line); }
.entry--summary .entry__title { font-size: 1.5rem; margin-bottom: 8px; }
.entry__content { color: #dbe6ef; }
.entry__content > * + * { margin-top: 1em; }
.entry__content h2 { font-size: 1.5rem; margin-top: 2em; }
.entry__content h3 { font-size: 1.2rem; margin-top: 1.6em; }
.entry__content a { color: var(--cyan); }
.entry__content ul, .entry__content ol { padding-left: 1.4em; }
.lead-muted { color: var(--muted); font-size: 1.1rem; margin-bottom: 28px; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, .gallery-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: var(--muted); font-size: .9rem; margin-top: .5em; }
.sticky, .bypostauthor { position: relative; }
.page-links { margin-top: 2em; display: flex; gap: 10px; }

/* 17. Responsive ----------------------------------------------------------- */
@media (max-width: 1180px) {
	.demo__head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.card-grid--3, .steps { grid-template-columns: minmax(0, 1fr); }
	.steps { gap: 28px; }
	.contact { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 860px) {
	:root { --gutter: 20px; --header-h: 68px; }
	.menu-toggle { display: inline-flex; }
	.site-nav {
		display: none;
		position: absolute; top: var(--header-h); left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 18px;
		padding: 22px var(--gutter) 26px;
		background: var(--bg); border-bottom: 1px solid var(--line);
		box-shadow: 0 18px 30px rgba(0, 0, 0, .4);
	}
	.site-nav.is-open { display: flex; }
	.primary-menu { flex-direction: column; align-items: flex-start; gap: 4px; }
	.primary-menu a { display: block; padding: 10px 0; font-size: 1.05rem; }
	.section { padding: 76px 0; }
	.demo { padding: 64px 0; }
	.scene { padding: 22px 22px 30px; }
	.scene__top { margin-bottom: 72px; }
	.scene__devices { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.phone { justify-self: center; width: min(100%, 320px); }
	.phone__screen { min-height: 0; }
}
@media (max-width: 760px) {
	.scene { padding: 16px 14px 24px; border-radius: 20px; }
	.scene__top { flex-direction: column; margin-bottom: 48px; }
	.scene__label { order: -1; }
	.scene__mark { width: 50px; height: 50px; }
	.scene__name { font-size: 1.6rem; }
	.scene__tagline { font-size: .75rem; letter-spacing: .14em; }
	.monitor__screen { padding: 6px; border-radius: 12px 12px 0 0; }
	.monitor__chin { height: 16px; border-radius: 0 0 10px 10px; }
	.monitor__chin::after { top: 5px; width: 6px; height: 6px; margin-left: -3px; }
	.monitor__stand { height: 40px; }
	.monitor__stand::before { width: 70px; height: 32px; }
	.monitor__stand::after { width: 150px; height: 9px; }
	.product-hero { grid-template-columns: minmax(0, 1fr); }
	.product-hero__media { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
	.card-grid--4 { grid-template-columns: minmax(0, 1fr); }
	.app-main { padding: 16px 14px; }
	.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
	.kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kpi { padding: 9px; }
	.kpi__value { font-size: 19px; }
	.ui-table th, .ui-table td { padding: 8px; }
	.agenda { grid-template-columns: 42px repeat(3, minmax(0, 1fr)); padding: 8px; }
	.whatsapp-float { width: 48px; height: 48px; right: 14px; bottom: 14px; }
	.whatsapp-float svg { width: 26px; height: 26px; }
	.admin-photo-notice { left: 10px; right: 70px; bottom: 10px; max-width: none; }
}
@media (max-width: 400px) {
	.site-logo__name { display: none; }
	.kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.kpis .kpi:last-child { grid-column: 1 / -1; }
}

/* 18. Movimiento reducido -------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.lhd-dot-intro .site-logo__dot { animation: lhd-dot-failsafe 0s 4.5s forwards !important; }
}

/* Ajustes de móvil de las secciones rediseñadas (al final para que prevalezcan). */
@media (max-width: 960px) {
	.section__header--split { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.service-row { grid-template-columns: 56px minmax(0, 1fr); row-gap: 10px; }
	.service-row__title, .service-row__text { grid-column: 2; }
	.benefits { grid-template-columns: minmax(0, 1fr); }
	.benefits__head { position: static; }
	.contact__row { grid-template-columns: minmax(0, 1fr); }
	.timeline { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 0; }
	.timeline::before, .timeline::after { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
	.timeline::after { transform: scaleY(var(--progress, 1)); transform-origin: top; }
	.timeline__step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; padding-bottom: 28px; }
	.timeline__num { grid-row: span 2; margin: 0; }
}
@media (max-width: 560px) {
	.benefits__list { grid-template-columns: minmax(0, 1fr); }
	.service-row { grid-template-columns: minmax(0, 1fr); }
	.service-row__title, .service-row__text { grid-column: 1; }
}

