/* =====================================================================
   BerryGood · DISEÑO NUEVO (propuesta, estilo "opción E")
   Se activa con <html data-design="nuevo"> (js/design.js).
   Día   → crema / lavanda / frambuesa (referencia opcion-e-v2.html).
   Noche → misma estructura sobre fondo morado oscuro.
   Todas las clases usan el prefijo nd- para no chocar con el diseño actual.
   ===================================================================== */

/* ---------- Visibilidad de cada diseño ---------- */
:root:not([data-design="nuevo"]) .nd {
	display: none;
}

:root[data-design="nuevo"] :is(body > .skip-link, body > .site-header, body > #contenido, body > .site-footer, body > .loading-screen) {
	display: none !important;
}

:root[data-design="nuevo"] {
	scroll-padding-top: 90px;
	background: var(--nd-page);
}

:root[data-design="nuevo"] body {
	background: var(--nd-page);
}

:root[data-design="nuevo"] body::before {
	display: none;
}

/* ---------- Tokens · Noche ---------- */
:root {
	--nd-page: #120b1f;
}

.nd {
	--bg: #120b1f;
	--card: #1c1430;
	--fg: #f3eeff;
	--mut: #b3aacb;
	--line: #2e2445;
	--band: #0a0614;
	--band-fg: #f3eeff;
	--band-mut: #b3aacb;
	--lav: #2a2050;
	--pink: #4a1a3a;
	--peri: #26306b;
	--mint: #15382a;
	--hl-bg: #c2185b;
	--hl-fg: #ffffff;
	--red: #ff4d8d;
	--red-solid: #c2185b;
	--green: #34c486;
	--blue: #8b74ff;
	--sh: 0 22px 44px -26px rgba(0, 0, 0, .7);
	--sh-sm: 0 10px 24px -16px rgba(0, 0, 0, .7);
	--r: 18px;
	--font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

	position: relative;
	overflow-x: clip;
	min-height: 100vh;
	background: var(--bg);
	color: var(--fg);
	color-scheme: dark;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.55;
	/* Nitidez del texto: suavizado fino en Mac (sobre todo letras claras en fondo oscuro),
	   sin negritas o cursivas falsas y con ajustes de interletrado de la fuente */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-synthesis: none;
	font-kerning: normal;
	text-rendering: optimizeLegibility;
}

/* ---------- Tokens · Día (opción E) ---------- */
:root[data-theme="light"] {
	--nd-page: #faf8fc;
}

:root[data-theme="light"] .nd {
	--bg: #faf8fc;
	--card: #ffffff;
	--fg: #1b1030;
	--mut: #5a5470;
	--line: #e3ddee;
	--band: #1b1030;
	--band-fg: #ffffff;
	--band-mut: #cfccc0;
	--lav: #ece6ff;
	--pink: #ffd9e7;
	--peri: #dce3ff;
	--mint: #d9f0e3;
	--hl-bg: #ffd9e7;
	--hl-fg: inherit;
	--red: #c2185b;
	--red-solid: #c2185b;
	--green: #1f8a5b;
	--blue: #6d4aff;
	--sh: 0 22px 44px -26px rgba(27, 16, 48, .35);
	--sh-sm: 0 10px 24px -16px rgba(27, 16, 48, .35);
	color-scheme: light;
}

/* ---------- Base ---------- */
.nd *,
.nd *::before,
.nd *::after {
	box-sizing: border-box;
}

.nd :is(h1, h2, h3, p, ul, ol, form) {
	margin: 0;
	padding: 0;
}

.nd a {
	color: inherit;
	text-decoration: none;
}

.nd :is(img, svg) {
	display: block;
}

.nd :is(h1, h2, h3) {
	font-weight: 900;
	font-stretch: 112%;
	line-height: .98;
	letter-spacing: -.02em;
	text-wrap: balance;
}

.nd :focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 3px;
}

.nd ::selection {
	background: var(--red-solid);
	color: #fff;
}

.nd-gut {
	padding-right: max(20px, env(safe-area-inset-right, 0px));
	padding-left: max(20px, env(safe-area-inset-left, 0px));
}

.nd-wrap {
	max-width: 1200px;
	margin-inline: auto;
}

.nd section {
	padding-block: clamp(80px, 10vw, 120px);
}

.nd section.nd-pt0 {
	padding-top: 0;
}

.nd-skip {
	position: absolute;
	z-index: 100;
	top: 12px;
	left: 12px;
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--fg);
	color: var(--bg) !important;
	font-weight: 700;
	transform: translateY(-200%);
}

.nd-skip:focus {
	transform: none;
}

.nd-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .82rem;
	font-weight: 700;
	font-stretch: 80%;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.nd-hl {
	padding: 0 .14em;
	border-radius: 6px;
	background: linear-gradient(transparent 16%, var(--hl-bg) 16%, var(--hl-bg) 94%, transparent 94%);
	color: var(--hl-fg);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.nd-hl-l {
	background: linear-gradient(transparent 16%, var(--lav) 16%, var(--lav) 94%, transparent 94%);
	color: inherit;
}

/* Canvas del confeti */
.nd-fx {
	position: fixed;
	z-index: 150;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* ---------- Botones ---------- */
.nd-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	border: 1.5px solid var(--fg);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: .95rem;
	font-weight: 800;
	font-stretch: 90%;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.nd-btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--sh-sm);
}

.nd-btn:active {
	transform: scale(.97);
	box-shadow: none;
}

.nd .nd-btn-dark {
	background: var(--fg);
	color: var(--bg);
}

.nd .nd-btn-dark:hover {
	border-color: var(--red-solid);
	background: var(--red-solid);
	color: #fff;
}

.nd-btn-light {
	border-color: var(--line);
	background: var(--card);
}

.nd .nd-btn-red {
	justify-content: center;
	border-color: var(--red-solid);
	background: var(--red-solid);
	color: #fff;
}

/* ---------- Navegación ---------- */
.nd-nav {
	position: sticky;
	z-index: 50;
	top: 0;
	border-bottom: 1.5px solid var(--line);
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.nd-nav .nd-wrap {
	position: relative;
	display: flex;
	height: 76px;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.nd-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.3rem;
	font-weight: 900;
	font-stretch: 115%;
	letter-spacing: -.02em;
	color: var(--fg);
}

.nd-berry {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.nd .nd-logo small {
	padding: 2px 8px;
	border: 2px solid var(--line);
	border-radius: 999px;
	background: var(--lav);
	font-size: .72rem;
	font-weight: 700;
	font-stretch: 80%;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.nd-menu {
	display: flex;
	gap: 6px;
	list-style: none;
}

.nd-menu a {
	display: block;
	padding: 8px 14px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-weight: 600;
	transition: .15s;
}

.nd-menu a:hover {
	border-color: var(--fg);
	background: var(--card);
}

.nd-nav-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nd-nav-actions :is(.theme-toggle, .design-toggle) {
	color: var(--fg);
}

.nd-nav-cta {
	padding: 11px 20px;
}

.nd-menu-btn {
	display: none;
	width: 46px;
	height: 46px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: var(--card);
	cursor: pointer;
}

.nd-menu-btn span {
	display: block;
	width: 20px;
	height: 3px;
	margin: 4px auto;
	border-radius: 2px;
	background: var(--fg);
}

/* ---------- Hero ---------- */
.nd .nd-hero {
	padding-block: 70px 90px;
}

.nd-hero-grid {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 56px;
	align-items: center;
}

.nd-hero-grid > * {
	min-width: 0;
}

.nd-hero h1 {
	margin: 18px 0 22px;
	font-size: clamp(2.7rem, 6.4vw, 5.4rem);
}

.nd-lead {
	max-width: 36ch;
	color: var(--mut);
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.nd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}

.nd-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-top: 30px;
	font-size: .95rem;
	font-weight: 600;
}

.nd-checks span {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nd-checks span::before {
	display: grid;
	width: 22px;
	height: 22px;
	place-items: center;
	border-radius: 50%;
	background: var(--green);
	color: #fff;
	font-size: .75rem;
	content: '✓';
}

.nd-stack {
	position: relative;
	height: 460px;
}

.nd-card {
	position: absolute;
	padding: 18px;
	border: 1.5px solid var(--line);
	border-radius: var(--r);
	background: var(--card);
	box-shadow: var(--sh);
}

.nd-s-web {
	top: 0;
	left: 0;
	width: 78%;
}

.nd-bar {
	display: flex;
	gap: 6px;
	margin: -4px -4px 14px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--line);
}

.nd-bar i {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.nd-bar i:nth-child(1) { background: #c2185b; }
.nd-bar i:nth-child(2) { background: #ece6ff; }
.nd-bar i:nth-child(3) { background: #1f8a5b; }

.nd-t {
	width: 64%;
	height: 18px;
	margin-bottom: 10px;
	border-radius: 5px;
	background: var(--fg);
}

.nd-l {
	height: 9px;
	margin-bottom: 7px;
	border-radius: 5px;
	background: var(--line);
}

.nd-g {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-top: 16px;
}

.nd-g i {
	height: 74px;
	border-radius: 10px;
}

.nd-g i:nth-child(1) { background: var(--pink); }
.nd-g i:nth-child(2) { background: var(--lav); }
.nd-g i:nth-child(3) { background: var(--blue); }

.nd-s-chat {
	z-index: 2;
	top: 140px;
	right: 0;
	width: 60%;
	background: var(--mint);
	font-size: .85rem;
}

.nd-who {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	font-weight: 800;
}

.nd-who i {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--green);
}

.nd-who small {
	display: block;
	color: var(--green);
	font-size: .72rem;
	font-weight: 500;
}

.nd-s-chat p {
	max-width: 88%;
	margin-top: 8px;
	padding: 8px 11px;
	border: 2px solid var(--line);
	border-radius: 12px;
	background: var(--card);
}

.nd-s-chat p.nd-me {
	margin-left: auto;
	background: var(--lav);
}

.nd-s-stat {
	bottom: 0;
	left: 0;
	width: 44%;
	background: var(--pink);
}

.nd-k {
	font-size: 1.9rem;
	font-weight: 900;
	font-stretch: 115%;
	line-height: 1;
}

.nd-s-stat span {
	font-size: .85rem;
	font-weight: 600;
}

.nd-bars {
	display: flex;
	height: 54px;
	align-items: flex-end;
	gap: 6px;
	margin-top: 10px;
}

.nd-bars i {
	flex: 1;
	border-radius: 4px 4px 0 0;
	background: var(--fg);
}

.nd-float {
	animation: nd-float 6s ease-in-out infinite;
}

.nd-fd2 { animation-delay: -2s; }
.nd-fd3 { animation-delay: -4s; }

@keyframes nd-float {
	50% { transform: translateY(-10px); }
}

/* ---------- Ticker ---------- */
.nd-ticker {
	overflow: hidden;
	padding: 16px 0;
	background: var(--band);
	color: #ece6ff;
}

.nd-tr {
	display: flex;
	width: max-content;
	animation: nd-tick 34s linear infinite;
}

.nd-ticker span {
	display: flex;
	align-items: center;
	gap: 44px;
	padding: 0 22px;
	font-size: 1.35rem;
	font-weight: 900;
	font-stretch: 120%;
	letter-spacing: -.01em;
	text-transform: uppercase;
	white-space: nowrap;
}

.nd-ticker span::after {
	color: #ff4d8d;
	font-size: .8rem;
	content: '●';
}

.nd-ticker:hover .nd-tr {
	animation-play-state: paused;
}

@keyframes nd-tick {
	to { transform: translateX(-50%); }
}

/* ---------- Encabezados de sección ---------- */
.nd-head {
	max-width: 760px;
	margin-bottom: 48px;
}

.nd-head h2 {
	margin-top: 14px;
	font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}

.nd-head > p:not(.nd-lead) {
	max-width: 56ch;
	margin-top: 18px;
	color: var(--mut);
	font-size: 1.12rem;
}

.nd-center {
	margin-inline: auto;
	text-align: center;
}

/* ---------- Servicios por marca (scroll horizontal en escritorio) ---------- */
.nd {
	--banana: #3a3010;
	--banana-dot: #f5c542;
	--lemon: #26300f;
	--lemon-dot: #c8e83a;
	--peach: #3a2412;
	--peach-dot: #ff7a18;
}

:root[data-theme="light"] .nd {
	--banana: #fff1c2;
	--banana-dot: #e0a800;
	--lemon: #eef9c8;
	--lemon-dot: #8fbf00;
	--peach: #ffe3cf;
	--peach-dot: #ff7a18;
}

.nd-b-banana { --c: var(--banana); --dot: var(--banana-dot); }
.nd-b-lemon { --c: var(--lemon); --dot: var(--lemon-dot); }
.nd-b-orange { --c: var(--peach); --dot: var(--peach-dot); }

.nd .nd-hs {
	padding-block: clamp(80px, 10vw, 120px);
}

.nd-hs-track {
	display: grid;
	max-width: 1200px;
	gap: 26px;
	margin-inline: auto;
}

.nd-hs-intro {
	margin-bottom: 10px;
}

.nd-brand-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
	list-style: none;
}

.nd-brand-chips li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 8px 8px 14px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	background: var(--c);
	font-size: .92rem;
	font-weight: 700;
}

.nd-brand-chips b {
	display: grid;
	min-width: 26px;
	height: 26px;
	place-items: center;
	border-radius: 999px;
	background: var(--card);
	font-size: .8rem;
}

.nd-brand-panel {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1.5px solid var(--line);
	border-radius: 24px;
	background: var(--card);
	box-shadow: var(--sh);
}

.nd-brand-head {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 18px;
	padding: 22px 26px;
	border-bottom: 1.5px solid var(--line);
	background: var(--c);
}

.nd-brand-head {
	color: inherit;
	transition: background-color .25s ease;
}

.nd-brand-head:hover {
	background: color-mix(in srgb, var(--c) 80%, var(--dot));
}

/* Logo real de la marca sobre placa oscura (igual que las tarjetas de la versión antigua) */
.nd-brand-logo {
	display: grid;
	width: 112px;
	height: 76px;
	place-items: center;
	padding: 8px 10px;
	border-radius: 16px;
	background: #1b1030;
	box-shadow: var(--sh-sm);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.nd-brand-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.nd-brand-logo-wide {
	padding: 10px 12px;
}

.nd-brand-head:hover .nd-brand-logo {
	transform: rotate(-3deg) scale(1.04);
}

.nd-brand-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	align-self: stretch;
	justify-content: space-between;
	gap: 10px;
}

.nd-brand-arrow {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 50%;
	background: #1b1030;
	color: #fff;
	font-size: 1.1rem;
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), background-color .3s;
}

.nd-brand-head:hover .nd-brand-arrow {
	background: var(--red-solid);
	transform: rotate(45deg);
}

.nd-brand-chips a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nd-brand-chips li {
	transition: transform .2s ease, border-color .2s ease;
}

.nd-brand-chips li:hover {
	border-color: var(--dot);
	transform: translateY(-2px);
}

.nd-brand-kick {
	font-size: .72rem;
	font-weight: 700;
	font-stretch: 80%;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .75;
}

.nd-brand-head h3 {
	margin: 2px 0 4px;
	font-size: 1.7rem;
}

.nd-brand-head p {
	color: var(--mut);
	font-size: .93rem;
	line-height: 1.4;
}

.nd-brand-count {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--card);
	font-size: .8rem;
	font-weight: 600;
	white-space: nowrap;
}

.nd-brand-count b {
	font-size: 1rem;
	font-weight: 900;
}

.nd-svc-list {
	display: grid;
	flex: 1;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	padding: 8px 10px;
	list-style: none;
}

.nd-svc-item {
	position: relative;
	padding: 14px 16px 14px 34px;
	border-radius: 14px;
	transition: background-color .2s ease;
}

.nd-svc-item::before {
	position: absolute;
	top: 22px;
	left: 14px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--dot);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot) 22%, transparent);
	content: '';
}

.nd-svc-item:hover {
	background: color-mix(in srgb, var(--c) 70%, transparent);
}

.nd-svc-tag {
	display: block;
	color: var(--mut);
	font-size: .66rem;
	font-weight: 700;
	font-stretch: 80%;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.nd-svc-item h4 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 2px 0 3px;
	font-size: 1.08rem;
	font-weight: 800;
	font-stretch: 105%;
	letter-spacing: -.01em;
	line-height: 1.2;
}

.nd-svc-item p {
	display: -webkit-box;
	overflow: hidden;
	color: var(--mut);
	font-size: .86rem;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.nd-free {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #fbd46a;
	color: #1b1030;
	font-size: .62rem;
	font-weight: 800;
	font-stretch: 85%;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.nd-brand-panel-wide .nd-svc-list {
	grid-template-columns: 1fr;
	padding: 14px;
	gap: 6px;
}

.nd-brand-panel-wide .nd-svc-item {
	padding: 20px 20px 20px 40px;
	border: 1.5px solid var(--line);
}

.nd-brand-panel-wide .nd-svc-item::before {
	top: 30px;
	left: 18px;
}

.nd-brand-panel-wide .nd-svc-item h4 {
	font-size: 1.35rem;
}

.nd-brand-panel-wide .nd-svc-item p {
	font-size: .95rem;
	-webkit-line-clamp: 3;
}

.nd-more {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding: 16px 26px;
	border-top: 1.5px solid var(--line);
	font-size: .85rem;
	font-weight: 800;
	font-stretch: 90%;
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: background-color .2s;
}

.nd-more:hover {
	background: var(--c);
}

.nd-more span {
	transition: transform .2s;
}

.nd-more:hover span {
	transform: translateX(4px);
}

.nd-cta-panel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 18px;
	padding: 40px;
	border-radius: 24px;
	background: var(--band);
	color: var(--band-fg);
}

.nd-cta-panel h2 {
	font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.nd-cta-panel p {
	max-width: 34ch;
	color: var(--band-mut);
	font-size: 1.05rem;
}

.nd-free-lg {
	padding: 6px 14px;
	font-size: .78rem;
}

/* Modo horizontal: lo activa el JS en pantallas grandes */
.nd-hs.is-horizontal {
	padding: 0;
}

.nd-hs.is-horizontal .nd-hs-pin {
	display: flex;
	height: 100vh;
	align-items: center;
	overflow: hidden;
	padding-top: 76px;
}

.nd-hs.is-horizontal .nd-hs-track {
	display: flex;
	max-width: none;
	align-items: stretch;
	gap: 28px;
	margin: 0;
	padding-right: 6vw;
	padding-left: max(20px, calc((100vw - 1200px) / 2));
	will-change: transform;
}

.nd-hs.is-horizontal .nd-hs-intro {
	display: flex;
	flex: none;
	flex-direction: column;
	justify-content: center;
	width: min(500px, 80vw);
	margin: 0;
}

.nd-hs.is-horizontal .nd-brand-panel {
	flex: none;
	width: min(820px, 88vw);
	height: min(660px, calc(100vh - 116px));
}

.nd-hs.is-horizontal .nd-brand-panel-wide {
	width: min(560px, 80vw);
}

.nd-hs.is-horizontal .nd-cta-panel {
	flex: none;
	width: min(440px, 80vw);
}

@media (max-height: 760px) {
	.nd-hs.is-horizontal .nd-svc-item {
		padding-block: 9px;
	}

	.nd-hs.is-horizontal .nd-svc-item p {
		-webkit-line-clamp: 1;
	}

	.nd-hs.is-horizontal .nd-brand-head {
		padding-block: 14px;
	}
}

/* ---------- Banda WhatsApp ---------- */
.nd-band-l {
	border-block: 1.5px solid var(--line);
	background: var(--lav);
}

.nd-wa {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.nd-wa > * {
	min-width: 0;
}

.nd-wa .nd-head {
	margin-bottom: 0;
}

.nd-wa .nd-lead {
	max-width: 42ch;
	margin-top: 18px;
	color: inherit;
	font-size: 1.15rem;
}

.nd-feat {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 30px;
}

.nd-feat div {
	padding: 16px;
	border: 1.5px solid var(--line);
	border-radius: 14px;
	background: var(--card);
	box-shadow: var(--sh-sm);
}

.nd-feat b {
	display: block;
	margin-bottom: 2px;
	font-size: 1.05rem;
}

.nd-feat span {
	color: var(--mut);
	font-size: .92rem;
}

.nd-phone {
	width: min(340px, 100%);
	margin-inline: auto;
	padding: 10px;
	border: 1.5px solid #1b1030;
	border-radius: 40px;
	background: #1b1030;
	box-shadow: 0 30px 60px -28px rgba(194, 24, 91, .55);
}

.nd-scr {
	display: flex;
	height: 560px;
	flex-direction: column;
	overflow: hidden;
	border-radius: 31px;
	background: #ece5dd;
	color: #1b1030;
}

.nd-scr-top {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px;
	background: #1f8a5b;
	color: #fff;
	font-weight: 700;
}

.nd-scr-top i {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 50%;
	background: #ffd9e7;
	color: #1b1030;
	font-style: normal;
	font-weight: 900;
}

.nd-scr-top small {
	display: block;
	font-size: .72rem;
	font-weight: 500;
	opacity: .9;
}

.nd-msgs {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 9px;
	padding: 14px 12px;
	font-size: .88rem;
}

.nd-m {
	max-width: 84%;
	padding: 8px 12px 5px;
	border: 2px solid #e3ddee;
	border-radius: 14px;
	background: #fff;
}

.nd-m.nd-me {
	align-self: flex-end;
	background: #dff6d6;
}

.nd-m.nd-mcard {
	background: #ece6ff;
}

.nd-m small {
	display: block;
	color: #6d6d6d;
	font-size: .66rem;
	text-align: right;
}

.nd.is-animated .nd-m {
	opacity: 0;
	transform: translateY(10px) scale(.96);
	transition: opacity .45s ease, transform .45s cubic-bezier(.2, .9, .3, 1.3);
}

.nd.is-animated .nd-m.is-on {
	opacity: 1;
	transform: none;
}

/* ---------- Proceso ---------- */
.nd-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.nd-step {
	position: relative;
	padding: 24px;
	border: 1.5px solid var(--line);
	border-radius: var(--r);
	background: var(--card);
	box-shadow: var(--sh-sm);
}

.nd-n {
	display: inline-grid;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	place-items: center;
	border: 1.5px solid var(--line);
	border-radius: 50%;
	background: var(--c);
	font-size: 1.3rem;
	font-weight: 900;
	font-stretch: 115%;
}

.nd-step h3 {
	margin-bottom: 8px;
	font-size: 1.3rem;
}

.nd-step p {
	color: var(--mut);
	font-size: .97rem;
}

.nd-step:not(:last-child)::after {
	position: absolute;
	z-index: 1;
	top: 38px;
	right: -21px;
	font-size: 1.3rem;
	font-weight: 900;
	content: '→';
}

/* ---------- Precios ---------- */
.nd-plans {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-bottom: 18px;
}

.nd-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 26px 24px;
	border: 1.5px solid var(--line);
	border-radius: var(--r);
	background: var(--card);
	box-shadow: var(--sh-sm);
	transition: transform .2s ease;
}

.nd-plan:hover {
	transform: translateY(-4px);
}

.nd-plan h3 {
	min-height: 2.1em;
	font-size: 1.25rem;
	line-height: 1.05;
}

.nd-price {
	margin-top: 14px !important;
	font-size: clamp(1.7rem, 2.4vw, 2.1rem);
	font-weight: 900;
	font-stretch: 112%;
	letter-spacing: -.02em;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.nd-price small {
	display: block;
	color: var(--mut);
	font-size: .72rem;
	font-weight: 700;
	font-stretch: 80%;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.nd-mini .nd-price small {
	display: inline;
	margin-left: 4px;
	font-size: .9rem;
	letter-spacing: 0;
	text-transform: none;
}

.nd-plan-note {
	margin: 6px 0 16px !important;
	padding-bottom: 16px;
	border-bottom: 1.5px solid var(--line);
	color: var(--mut);
	font-size: .88rem;
}

.nd-plan ul {
	display: grid;
	gap: 9px;
	list-style: none;
	font-size: .95rem;
}

.nd-plan li {
	position: relative;
	padding-left: 24px;
}

.nd-plan li::before {
	position: absolute;
	top: .45em;
	left: 2px;
	width: 10px;
	height: 6px;
	border-bottom: 2px solid var(--red);
	border-left: 2px solid var(--red);
	transform: rotate(-45deg);
	content: '';
}

.nd-plan-star {
	border-color: #c2185b;
	background: #c2185b;
	color: #fff;
	box-shadow: 0 30px 60px -28px rgba(194, 24, 91, .6);
}

.nd-plan-star :is(.nd-plan-note, .nd-price small) {
	border-color: rgba(255, 255, 255, .3);
	color: rgba(255, 255, 255, .85);
}

.nd-plan-star li::before {
	border-color: #ffd9e7;
}

.nd-badge {
	align-self: flex-start;
	margin-bottom: 12px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #fbd46a;
	color: #1b1030;
	font-size: .7rem;
	font-weight: 800;
	font-stretch: 85%;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.nd-monthly {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.nd-mini {
	display: block;
	padding: 24px;
	border: 1.5px solid var(--line);
	border-radius: var(--r);
	background: var(--c);
}

.nd-mini b {
	font-size: 1.1rem;
}

.nd-mini .nd-price {
	margin: 8px 0 8px !important;
}

.nd-mini > span {
	color: var(--mut);
	font-size: .93rem;
}

.nd-price-txt {
	font-size: 1.4rem !important;
}

/* ---------- ¿Por qué BerryGood? ---------- */
.nd-why {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	overflow: hidden;
	border: 1.5px solid var(--line);
	border-radius: var(--r);
	background: var(--card);
	box-shadow: var(--sh);
}

.nd-why div {
	padding: 28px;
	border-right: 1.5px solid var(--line);
	border-bottom: 1.5px solid var(--line);
}

.nd-why div:nth-child(3n) { border-right: 0; }
.nd-why div:nth-last-child(-n+3) { border-bottom: 0; }

.nd-why b {
	display: block;
	margin-bottom: 6px;
	font-size: 1.15rem;
}

.nd-why span {
	color: var(--mut);
	font-size: .97rem;
}

.nd-why i {
	display: block;
	width: 30px;
	height: 8px;
	margin-bottom: 14px;
	border-radius: 4px;
	background: var(--c);
}

/* ---------- Contacto ---------- */
.nd-band-dark {
	background: var(--band);
	color: var(--band-fg);
}

.nd-contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: start;
}

.nd-contact > * {
	min-width: 0;
}

.nd-contact h2 {
	font-size: clamp(2.3rem, 5vw, 4rem);
}

.nd-contact .nd-hl {
	background: linear-gradient(transparent 16%, #ffd9e7 16%, #ffd9e7 94%, transparent 94%);
	color: #1b1030;
}

.nd-contact .nd-label {
	color: #ffb3cf;
}

.nd-contact .nd-lead {
	max-width: 38ch;
	margin-top: 20px;
	color: var(--band-mut);
	font-size: 1.15rem;
}

/* Fondo con brillos de la marca */
.nd-contact-sec {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.nd-contact-sec::before {
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		radial-gradient(40% 55% at 8% 0%, rgba(194, 24, 91, .32), transparent 70%),
		radial-gradient(45% 60% at 100% 100%, rgba(109, 74, 255, .28), transparent 70%);
	content: '';
}

.nd-contact {
	align-items: center;
}

/* Qué pasa después */
.nd-next {
	display: grid;
	gap: 14px;
	margin: 32px 0 28px !important;
	list-style: none;
	counter-reset: nd-next;
}

.nd-next li {
	position: relative;
	display: grid;
	padding-left: 52px;
	counter-increment: nd-next;
}

.nd-next li::before {
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border: 1.5px solid rgba(255, 255, 255, .18);
	border-radius: 50%;
	background: rgba(255, 255, 255, .06);
	color: #ffb3cf;
	font-weight: 900;
	content: counter(nd-next);
}

.nd-next li:not(:last-child)::after {
	position: absolute;
	top: 40px;
	bottom: -12px;
	left: 17px;
	width: 1.5px;
	background: rgba(255, 255, 255, .14);
	content: '';
}

.nd-next b {
	font-size: 1.05rem;
}

.nd-next span {
	color: var(--band-mut);
	font-size: .95rem;
}

/* Tarjeta de WhatsApp directo */
.nd-wa-card {
	display: flex;
	max-width: 420px;
	align-items: center;
	gap: 14px;
	padding: 14px 18px 14px 14px;
	border: 1.5px solid rgba(37, 211, 102, .35);
	border-radius: 16px;
	background: rgba(37, 211, 102, .08);
	transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.nd-wa-card:hover {
	border-color: #25d366;
	background: rgba(37, 211, 102, .14);
	transform: translateY(-2px);
}

.nd-wa-ic {
	display: grid;
	width: 44px;
	height: 44px;
	flex: none;
	place-items: center;
	border-radius: 12px;
	background: #25d366;
	color: #fff;
}

.nd-wa-ic svg {
	width: 26px;
	height: 26px;
}

.nd-wa-txt {
	display: grid;
	flex: 1;
	line-height: 1.3;
}

.nd-wa-txt small {
	color: var(--band-mut);
	font-size: .82rem;
}

.nd-wa-txt b {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: .01em;
}

.nd-wa-go {
	font-size: 1.3rem;
	font-weight: 900;
	transition: transform .18s ease;
}

.nd-wa-card:hover .nd-wa-go {
	transform: translateX(4px);
}

/* Formulario */
.nd-form-wrap {
	position: relative;
}

.nd .nd-form,
.nd .nd-sent {
	display: grid;
	gap: 18px;
	padding: 32px;
	border: 1.5px solid var(--line);
	border-radius: calc(var(--r) + 6px);
	background: var(--bg);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65);
	color: var(--fg);
}

.nd-form[hidden],
.nd-sent[hidden] {
	display: none;
}

.nd-form-head h3 {
	font-size: 1.6rem;
}

.nd-form-head p {
	margin-top: 6px !important;
	color: var(--mut);
	font-size: .95rem;
}

.nd-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.nd-field {
	display: grid;
	min-width: 0;
	gap: 7px;
	margin: 0;
	padding: 0;
	border: 0;
}

.nd-field label,
.nd-field legend {
	padding: 0;
	font-size: .9rem;
	font-weight: 700;
}

.nd-field legend {
	margin-bottom: 7px;
}

.nd-opt {
	color: var(--mut);
	font-weight: 500;
}

.nd-field :is(input, textarea) {
	width: 100%;
	padding: 13px 15px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: var(--card);
	color: var(--fg);
	font: inherit;
	font-size: 1rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.nd-field textarea {
	min-height: 96px;
	resize: vertical;
}

.nd-field :is(input, textarea)::placeholder {
	color: color-mix(in srgb, var(--mut) 75%, transparent);
}

.nd-field :is(input, textarea):hover {
	border-color: color-mix(in srgb, var(--fg) 30%, var(--line));
}

.nd .nd-field :is(input, textarea):focus-visible {
	border-color: var(--blue);
	outline: none;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent);
}

/* Servicio como botones seleccionables */
.nd-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nd-chip {
	position: relative;
	cursor: pointer;
}

.nd-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.nd-chip span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	font-size: .9rem;
	font-weight: 600;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.nd-chip:hover span {
	border-color: color-mix(in srgb, var(--fg) 35%, var(--line));
}

.nd-chip input:checked + span {
	border-color: var(--red-solid);
	background: var(--red-solid);
	color: #fff;
}

.nd-chip input:checked + span::before {
	content: '✓';
	font-weight: 900;
}

.nd-chip input:focus-visible + span {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
}

/* Errores */
.nd-err {
	display: none;
	color: var(--red);
	font-size: .82rem;
	font-weight: 700;
}

.nd-field.is-invalid .nd-err {
	display: block;
}

.nd-field.is-invalid :is(input, textarea),
.nd-field.is-invalid .nd-chip span {
	border-color: var(--red);
}

.nd .nd-submit {
	justify-content: center;
	width: 100%;
	padding-block: 16px;
	font-size: 1rem;
}

.nd-submit svg {
	width: 22px;
	height: 22px;
}

.nd-form-note {
	color: var(--mut);
	font-size: .8rem;
	text-align: center;
}

/* Confirmación */
.nd .nd-sent {
	justify-items: center;
	padding-block: 48px;
	text-align: center;
	outline: none;
}

.nd-sent-ic {
	display: grid;
	width: 64px;
	height: 64px;
	place-items: center;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	font-size: 1.8rem;
	font-weight: 900;
	animation: nd-pop .5s cubic-bezier(.34, 1.56, .64, 1);
}

.nd-sent h3 {
	font-size: 1.8rem;
}

.nd-sent p {
	max-width: 34ch;
	color: var(--mut);
}

.nd-sent-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 6px;
}

.nd .nd-btn-ghost {
	border-color: var(--line);
	background: transparent;
}

@keyframes nd-pop {
	from {
		opacity: 0;
		transform: scale(.4);
	}
}

@media (max-width: 760px) {
	.nd-form-row {
		grid-template-columns: 1fr;
	}

	.nd .nd-form,
	.nd .nd-sent {
		padding: 22px;
	}
}

/* ---------- Footer ---------- */
.nd-footer {
	padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px));
	border-top: 2px solid #2a2a2a;
	background: var(--band);
	color: var(--band-mut);
	font-size: .93rem;
}

.nd-footer .nd-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.nd-footer .nd-logo {
	color: #fff;
}

.nd-footer .nd-berry {
	width: 32px;
	height: 32px;
}

.nd-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}

.nd-footer a:hover {
	color: #ffb3cf;
}

.nd-wa-btn {
	position: fixed;
	z-index: 40;
	right: calc(20px + env(safe-area-inset-right, 0px));
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	display: grid;
	width: 60px;
	height: 60px;
	place-items: center;
	border-radius: 50%;
	background: #25d366;
	box-shadow: var(--sh-sm);
	transition: transform .18s;
}

.nd-wa-btn:hover {
	transform: translateY(-2px);
}

/* ---------- Aparición al hacer scroll (solo con JS) ---------- */
.nd.is-animated .nd-rv {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

.nd.is-animated .nd-rv.is-in {
	opacity: 1;
	transform: none;
}

.nd.is-animated .nd-d1 { transition-delay: .08s; }
.nd.is-animated .nd-d2 { transition-delay: .16s; }
.nd.is-animated .nd-d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.nd-plans {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 980px) {
	.nd-menu {
		display: none;
	}

	.nd-menu.is-open {
		position: absolute;
		top: 84px;
		right: 0;
		left: 0;
		display: flex;
		flex-direction: column;
		padding: 12px;
		border: 1.5px solid var(--line);
		border-radius: 16px;
		background: var(--card);
		box-shadow: var(--sh);
	}

	.nd-menu.is-open a {
		padding: 12px 14px;
	}

	.nd-menu-btn {
		display: block;
	}

	.nd-nav-cta {
		display: none;
	}

	.nd-hero-grid,
	.nd-wa,
	.nd-contact {
		grid-template-columns: 1fr;
	}

	.nd-steps {
		grid-template-columns: 1fr 1fr;
	}

	.nd-step::after {
		display: none;
	}

	.nd-monthly {
		grid-template-columns: 1fr;
	}

	.nd-why {
		grid-template-columns: 1fr 1fr;
	}

	.nd-why div {
		border-right: 1.5px solid var(--line) !important;
		border-bottom: 1.5px solid var(--line) !important;
	}

	.nd-why div:nth-child(2n) { border-right: 0 !important; }
	.nd-why div:nth-last-child(-n+2) { border-bottom: 0 !important; }
}

@media (max-width: 560px) {
	.nd-gut {
		padding-right: max(16px, env(safe-area-inset-right, 0px));
		padding-left: max(16px, env(safe-area-inset-left, 0px));
	}

	.nd {
		font-size: 16px;
	}

	.nd-logo small {
		display: none;
	}

	.nd .nd-hero {
		padding-block: 44px 70px;
	}

	.nd-stack {
		height: 420px;
	}

	.nd-s-web { width: 88%; }
	.nd-s-chat { width: 76%; }
	.nd-s-stat { width: 62%; }

	.nd-steps,
	.nd-why,
	.nd-feat,
	.nd-plans,
	.nd-svc-list {
		grid-template-columns: 1fr;
	}

	.nd-brand-head {
		grid-template-columns: 1fr auto;
		gap: 14px;
		padding: 18px;
	}

	.nd-brand-head > div {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.nd-brand-head h3 {
		font-size: 1.45rem;
		overflow-wrap: anywhere;
	}

	.nd-brand-side {
		grid-row: 1;
		grid-column: 2;
		align-self: center;
		flex-direction: row;
		align-items: center;
	}

	.nd-brand-logo {
		width: 92px;
		height: 64px;
	}

	.nd-cta-panel {
		padding: 28px 22px;
	}

	.nd-why div {
		border-right: 0 !important;
		border-bottom: 1.5px solid var(--line) !important;
	}

	.nd-why div:last-child {
		border-bottom: 0 !important;
	}

	.nd-form {
		padding: 20px;
	}

	.nd-scr {
		height: 520px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nd *,
	.nd *::before,
	.nd *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- WhatsApp ---------- */
.nd .nd-btn-wa {
	border-color: #25d366;
	background: #25d366;
	color: #0b2a17;
}

.nd .nd-btn-wa:hover {
	border-color: #1ebe5b;
	background: #1ebe5b;
}

/* ---------- Clientes (vitrina) ---------- */
.nd-client-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.nd-client {
	--view: 170px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1.5px solid var(--line);
	border-radius: var(--r);
	background: var(--card);
	box-shadow: var(--sh-sm);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}

.nd-client:hover {
	transform: translateY(-6px);
	box-shadow: var(--sh);
}

.nd-client-shot {
	display: block;
	border-bottom: 1.5px solid var(--line);
	background: var(--c);
}

.nd-client-bar {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px 10px;
}

.nd-client-bar i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--fg) 18%, transparent);
}

.nd-client-bar i:first-child { background: #ff5f57; }
.nd-client-bar i:nth-child(2) { background: #febc2e; }
.nd-client-bar i:nth-child(3) { background: #28c840; }

.nd-client-bar span {
	flex: 1;
	overflow: hidden;
	margin-left: 6px;
	padding: 2px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--card) 85%, transparent);
	color: var(--mut);
	font-size: .68rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nd-client-view {
	position: relative;
	display: block;
	height: var(--view);
	overflow: hidden;
	margin: 0 8px;
	border-radius: 8px 8px 0 0;
	background: #fff;
}

/* La captura se desliza para mostrar la página completa */
.nd-client-view img {
	display: block;
	width: 100%;
	height: auto;
	transform: translateY(0);
	transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
	will-change: transform;
}

.nd-client-shot:is(:hover, :focus-visible) .nd-client-view img {
	transform: translateY(calc(-100% + var(--view)));
	transition: transform 5s ease-in-out;
}

.nd-client-view::after {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(27, 16, 48, .78);
	color: #fff;
	font-size: .62rem;
	font-weight: 700;
	content: 'Recorrer ↕';
	opacity: 1;
	transition: opacity .3s;
}

.nd-client-shot:hover .nd-client-view::after {
	opacity: 0;
}

.nd-client-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 16px;
}

.nd-client-cat {
	align-self: flex-start;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--c);
	font-size: .62rem;
	font-weight: 700;
	font-stretch: 85%;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.nd-client-body h3 {
	font-size: 1.12rem;
}

.nd-client-body p {
	display: -webkit-box;
	overflow: hidden;
	color: var(--mut);
	font-size: .84rem;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.nd-client-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 4px;
	color: var(--red);
	font-size: .74rem;
	font-weight: 800;
	font-stretch: 90%;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.nd-client-link span {
	transition: transform .2s;
}

.nd-client-link:hover span {
	transform: translate(3px, -3px);
}

.nd-swipe {
	display: none;
}

/* ---------- Cinta de clientes antes del pie ---------- */
.nd-clients-ticker {
	display: flex;
	align-items: center;
	overflow: hidden;
	border-top: 1.5px solid rgba(255, 255, 255, .08);
	background: var(--band);
	color: #ece6ff;
}

.nd-clients-ticker-label {
	position: relative;
	z-index: 1;
	flex: none;
	align-self: stretch;
	display: flex;
	align-items: center;
	padding: 0 22px 0 max(20px, calc((100vw - 1200px) / 2));
	background: var(--band);
	box-shadow: 18px 0 24px -6px var(--band);
	color: #ffb3cf;
	font-size: .75rem;
	font-weight: 800;
	font-stretch: 85%;
	letter-spacing: .14em;
	text-transform: uppercase;
	white-space: nowrap;
}

.nd-clients-ticker-viewport {
	flex: 1;
	overflow: hidden;
}

.nd-clients-ticker-track {
	display: flex;
	width: max-content;
	animation: nd-tick 38s linear infinite;
}

.nd-clients-ticker:is(:hover, :focus-within) .nd-clients-ticker-track {
	animation-play-state: paused;
}

.nd-clients-ticker-group {
	display: flex;
}

.nd-clients-ticker a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 18px 26px;
	font-size: 1.05rem;
	font-weight: 800;
	font-stretch: 110%;
	white-space: nowrap;
	transition: color .2s;
}

.nd-clients-ticker a::after {
	margin-left: 18px;
	color: #ff4d8d;
	font-size: .7rem;
	content: '●';
}

.nd-clients-ticker a b {
	color: #ffb3cf;
	font-weight: 800;
	transition: transform .2s;
}

.nd-clients-ticker a:hover {
	color: #ffb3cf;
}

.nd-clients-ticker a:hover b {
	transform: translate(2px, -2px);
}

/* ---------- Clientes · responsive ---------- */
@media (max-width: 1100px) {
	.nd-client-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 820px) {
	.nd-client-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 680px) {
	.nd-swipe {
		display: block;
		margin: -24px 0 14px;
		color: var(--mut);
		font-size: .85rem;
		font-weight: 700;
	}

	/* Carrusel deslizable en celular */
	.nd-client-grid {
		display: flex;
		gap: 16px;
		margin-inline: -16px;
		padding: 4px 16px 18px;
		overflow-x: auto;
		scroll-padding-inline: 16px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.nd-client-grid::-webkit-scrollbar {
		display: none;
	}

	.nd-client {
		--view: 170px;
		flex: none;
		width: 66%;
		scroll-snap-align: start;
	}

	.nd-client:hover {
		transform: none;
	}

	/* Sin mouse: la captura se recorre sola cuando la tarjeta está a la vista */
	.nd-client.is-visible .nd-client-view img {
		animation: nd-pan 12s ease-in-out 1s infinite alternate;
	}

	.nd-client-view::after {
		content: 'Recorriendo…';
	}

	.nd-clients-ticker-label {
		display: none;
	}
}

@keyframes nd-pan {
	0%, 12% { transform: translateY(0); }
	88%, 100% { transform: translateY(calc(-100% + var(--view))); }
}

@media (prefers-reduced-motion: reduce) {
	.nd-clients-ticker-track {
		width: auto;
		flex-wrap: wrap;
	}

	.nd-clients-ticker-group {
		flex-wrap: wrap;
	}

	.nd-clients-ticker-group[aria-hidden="true"] {
		display: none;
	}

	.nd-client-view img,
	.nd-client-shot:hover .nd-client-view img {
		transform: none !important;
	}
}

/* =====================================================================
   Videos de fondo (propuestas H1 y H4 de propuestas/index.html)
   - Hero: partículas moradas (Pexels 7101912)
   - Cómo trabajamos: equipo revisando un proyecto (Pexels 8519377)
   El video lo reproduce js/berryGoodjs/mainBerryGoodNuevo.js solo si está
   a la vista; mientras tanto se ve el poster.
   ===================================================================== */
.nd .nd-hero-video,
.nd .nd-proceso-video {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.nd .nd-hero-video > .nd-wrap,
.nd .nd-proceso-video > .nd-wrap {
	position: relative;
	z-index: 1;
}

.nd-bgvid {
	position: absolute;
	z-index: -1;
	inset: 0;
	pointer-events: none;
}

.nd-bgvid-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Velo: tapa el video detrás del texto y lo deja ver hacia la derecha */
.nd-bgvid::after {
	position: absolute;
	inset: 0;
	content: '';
}

.nd-hero-video .nd-bgvid::after {
	background:
		linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 42%, color-mix(in srgb, var(--bg) 30%, transparent) 100%),
		linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}

/* En "Cómo trabajamos" el texto va centrado: velo parejo y bordes que se funden */
.nd-proceso-video .nd-bgvid::after {
	background:
		linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%),
		color-mix(in srgb, var(--bg) 76%, transparent);
}

:root[data-theme="light"] .nd-proceso-video .nd-bgvid::after {
	background:
		linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%),
		color-mix(in srgb, var(--bg) 82%, transparent);
}

/* Las flechas entre pasos necesitan contraste sobre el video */
.nd-proceso-video .nd-step:not(:last-child)::after {
	text-shadow: 0 0 12px var(--bg), 0 0 4px var(--bg);
}

@media (max-width: 1100px) {
	.nd-hero-video .nd-bgvid::after {
		background:
			linear-gradient(0deg, var(--bg) 0%, transparent 25%),
			color-mix(in srgb, var(--bg) 80%, transparent);
	}
}

/* =====================================================================
   Animaciones del hero (propuestas A1, A3, A5 y A6)
   Las clases las agrega js/berryGoodjs/mainBerryGoodNuevo.js; sin JS o con
   "reducir movimiento" el hero se ve estático y completo.
   ===================================================================== */
.nd-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* A1 · Titular palabra por palabra */
.nd-words .nd-w {
	display: inline-block;
	overflow: hidden;
	padding-bottom: .16em;
	margin-bottom: -.16em;
	vertical-align: top;
}

.nd-words .nd-w > span,
.nd-words .nd-w-hl {
	display: inline-block;
}

.nd-words.is-play .nd-w > span,
.nd-words.is-play .nd-w-hl {
	animation: nd-word .8s cubic-bezier(.2, .8, .2, 1) both;
	animation-delay: calc(var(--i) * 90ms + 150ms);
}

@keyframes nd-word {
	from {
		opacity: 0;
		transform: translateY(105%);
	}
}

/* A3 · Palabra rotativa dentro del resaltado */
.nd-hero h1 .nd-hl {
	display: inline-block;
	box-sizing: content-box;
	overflow: hidden;
	/* Espacio extra abajo para letras como g o p, sin agrandar el resaltado */
	padding-bottom: .16em;
	margin-bottom: -.16em;
	background-repeat: no-repeat;
	background-size: 100% calc(100% - .16em);
	/* Recorta arriba justo donde empieza la franja de color: la palabra que sale no se ve encima del titular */
	clip-path: inset(14% 0 0 0);
	vertical-align: bottom;
	white-space: nowrap;
	transition: width .45s cubic-bezier(.2, .8, .2, 1);
}

.nd-rot {
	display: inline-block;
	transition: transform .32s cubic-bezier(.4, 0, .2, 1), opacity .32s;
}

.nd-rot.is-out {
	opacity: 0;
	transform: translateY(-90%);
}

.nd-rot.is-in {
	opacity: 0;
	transform: translateY(90%);
	transition: none;
}

/* A5 · Chat que escribe */
.nd-s-chat p.is-hidden {
	display: none;
}

.nd .nd-s-chat p:not(.is-hidden) {
	animation: nd-bubble .4s cubic-bezier(.34, 1.56, .64, 1);
}

.nd .nd-s-chat p.nd-typing {
	display: flex;
	width: max-content;
	gap: 4px;
	padding: 11px 14px;
}

.nd .nd-s-chat p.nd-typing.is-hidden {
	display: none;
}

.nd-typing i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mut);
	animation: nd-dot 1s ease-in-out infinite;
}

.nd-typing i:nth-child(2) { animation-delay: .15s; }
.nd-typing i:nth-child(3) { animation-delay: .3s; }

@keyframes nd-bubble {
	from {
		opacity: 0;
		transform: translateY(8px) scale(.9);
	}
}

@keyframes nd-dot {
	0%, 60%, 100% { opacity: .5; transform: none; }
	30% { opacity: 1; transform: translateY(-4px); }
}

/* A6 · Barras que crecen */
.nd-grow .nd-bars i {
	transform: scaleY(0);
	transform-origin: bottom;
}

.nd-grow.is-grown .nd-bars i {
	transform: none;
	transition: transform .9s cubic-bezier(.34, 1.4, .64, 1);
}

.nd-grow.is-grown .nd-bars i:nth-child(2) { transition-delay: .08s; }
.nd-grow.is-grown .nd-bars i:nth-child(3) { transition-delay: .16s; }
.nd-grow.is-grown .nd-bars i:nth-child(4) { transition-delay: .24s; }
.nd-grow.is-grown .nd-bars i:nth-child(5) { transition-delay: .32s; }
.nd-grow.is-grown .nd-bars i:nth-child(6) { transition-delay: .4s; background: var(--red-solid); }

@media (prefers-reduced-motion: reduce) {
	.nd-words .nd-w > span,
	.nd-words .nd-w-hl,
	.nd .nd-s-chat p,
	.nd-typing i {
		animation: none !important;
	}
}

/* ---------- Botón "Versión anterior" con el logo antiguo ----------
   Solo el logo: el menú no tiene espacio para texto. El texto queda para
   lectores de pantalla y el title muestra "Volver a la versión anterior". */
.nd .design-toggle.nd-old-toggle {
	width: 40px;
	padding: 0;
	border: 1.5px solid var(--line);
	background: #fff;
}

.nd .nd-old-toggle img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.nd .nd-old-toggle span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.nd .design-toggle.nd-old-toggle:hover {
	border-color: var(--fg);
	background: #fff;
	transform: rotate(-12deg) scale(1.06);
}

/* ---------- Cliente pendiente de autorización ----------
   En blanco y negro hasta que el cliente confirme; toma color al pasar el
   mouse o al enfocarlo con el teclado. Para publicarlo normal, quitar la
   clase nd-client-pending de la tarjeta en index.html. */
.nd-client-pending :is(.nd-client-view img, .nd-client-bar) {
	filter: grayscale(1);
	transition: filter .45s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1);
}

.nd-client-pending:is(:hover, :focus-within) :is(.nd-client-view img, .nd-client-bar) {
	filter: none;
}
