/*
 * Nodabit — theme layer on top of nodabit.css (the design export).
 *  1. Resets for the semantic tags the templates use (h1–h3, lists, buttons, blockquote)
 *  2. CMS normalisation: Figma gave some repeated items fixed widths sized to their demo text;
 *     here they size to their content so edited text still fits
 *  3. Pieces the design didn't include: icons from files, logo images, header highlights,
 *     mobile menu panel, focus states, inner pages
 */

/* 1. Resets (zero specificity, so every design rule still wins) */
:where(.desktop, .mobile, .nb-menu) :where(h1, h2, h3, h4, blockquote, ul, ol, li, figure) {
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	list-style: none;
}
:where(.desktop, .mobile, .nb-menu) :where(button) {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	text-align: inherit;
}
:where(.btn, .btn-ghost, .upload-btn, a.problem__answer, .menu-toggle, .value-card__tag) { cursor: pointer; }

/* Focus */
:where(.desktop, .mobile, .nb-menu, .nb-inner) :is(a, button, summary):focus-visible {
	outline: 2px solid #ff6038;
	outline-offset: 2px;
}
:where(.desktop, .mobile) section:focus { outline: none; }

/* Small hover feedback */
.btn, .btn-ghost, .upload-btn, .nav__item { transition: transform .15s ease, filter .15s ease; }
.btn:hover, .btn-ghost:hover, .upload-btn:hover { transform: translateY(-1px); }
.nav__item:hover { filter: brightness(.94); }
@media (prefers-reduced-motion: reduce) {
	.btn, .btn-ghost, .upload-btn, .nav__item { transition: none; }
	.btn:hover, .btn-ghost:hover, .upload-btn:hover { transform: none; }
}

/* Reveal on scroll: add .nb-reveal plus one effect to any element.
     --fade        fades in
     --from-left   slides in from the left (moving right)
     --from-right  slides in from the right (moving left)
     --zoom-out    starts larger and shrinks to its size
     --slide-down  drops in from above (header)
     --slide-up    rises into place
     --pop         grows from 80% with a small overshoot
   Wrap several in .nb-reveal-group (with data-nb-stagger="seconds") to start them one after
   another once the group is in view, e.g. the pillar columns. data-nb-order="random" on the
   group shuffles the order.
   nodabit.js adds .nb-reveal-ready to <html> only when motion is allowed, then .is-in per element,
   so without JS or with reduced motion everything is simply shown. The individual `translate`
   and `scale` properties are used so the design's own `transform` positioning is kept. */
.nb-reveal-ready .nb-reveal {
	--nb-slide-x: 96px;
	opacity: 0;
	transition: opacity .6s ease, translate .8s cubic-bezier(.2, .7, .2, 1), scale 1s cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--nb-reveal-delay, 0s);
}
.nb-reveal-ready .mobile .nb-reveal { --nb-slide-x: 48px; }
.nb-reveal-ready .nb-reveal--fade { transition-duration: 1s; }
/* Logos: 3x faster than the other fades (stagger in cta.php: 0.17s, half of this). */
.nb-reveal-ready .logos .nb-reveal--fade { transition-duration: .34s; }
.nb-reveal-ready .nb-reveal--from-left { translate: calc(-1 * var(--nb-slide-x)) 0; }
.nb-reveal-ready .nb-reveal--from-right { translate: var(--nb-slide-x) 0; }
.nb-reveal-ready .nb-reveal--zoom-out { scale: 1.25; }
.nb-reveal-ready .nb-reveal--slide-down { translate: 0 calc(-100% - 24px); }
.nb-reveal-ready .nb-reveal--slide-up { translate: 0 48px; }
.nb-reveal-ready .nb-reveal--pop {
	scale: var(--nb-pop-from, .8); /* nodabit.js sets a random start size per element */
	transition-duration: .4s, .8s, .6s; /* opacity, translate, scale */
	transition-timing-function: ease, ease, cubic-bezier(.34, 1.56, .64, 1);
}
.nb-reveal-ready .nb-reveal.is-in { opacity: 1; translate: none; scale: none; }
/* Keep the start positions from widening the page. */
:where(.desktop, .mobile) section:has(.nb-reveal--from-left, .nb-reveal--from-right, .nb-reveal--zoom-out) { overflow-x: clip; }

/* 2. Normalisation of per-item widths */
.desktop .nav__item, .mobile .nav__item { width: auto; }
.desktop .nav__item--header { background: #ececec; }
.desktop .pillar__head, .mobile .pillar__head { width: auto; }
.desktop .step__num-wrap, .mobile .step__num-wrap,
.desktop .value-card__tag, .mobile .value-card__tag,
.desktop .price-row__num-wrap, .mobile .price-row__num-wrap { width: auto; }
.desktop .service__title-wrap--1,
.mobile .service__title-wrap--1, .mobile .service__title-wrap--3 { width: auto; }
.mobile .price-table__th-wrap { width: auto; padding: 0 6px; }
.desktop .case__flow--1, .mobile .case__flow--1 { margin: 0; padding: 0; list-style: none; }

/* 3a. Icons from assets/icons fill their design slots (32px pillars, 72px elsewhere) */
.nb-icon { display: block; width: 100%; height: 100%; }
.desktop .service__glyph, .mobile .service__glyph { overflow: visible; }

/* Column titles: the orange highlight follows the text */
.desktop .price-table__th .nb-th-label { background: #ff6038; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Technology logos as images */
.desktop .logos, .mobile .logos { margin: 0; padding: 0; list-style: none; }
.desktop .logos__item, .mobile .logos__item { display: flex; align-items: center; justify-content: center; }
.desktop .logos__img, .mobile .logos__img {
	position: static;
	width: auto;
	height: auto;
	max-width: 75%;
	max-height: 57px;
	object-fit: contain;
}

/* Background videos */
.mobile .hero__bg > video, .mobile .demo__media > video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cta__quote, .contact__email-inner { z-index: 1; }

/* Problem answer as a link */
a.problem__answer:hover .problem__answer-text { text-decoration: underline; text-underline-offset: 3px; }

/* FAQ answers may have several paragraphs */
.faq-item__answer p + p { margin-top: .75em; }

/* Mobile value-card tabs */
.mobile .value-card__tag { border: 0; }
.mobile .value-card__tag:not(.value-card__tag--1) { background: #f5f5f5; }
.nb-tab-slash { font-size: 16px; color: #d7d4d4; }
.value-card__tag[aria-selected="true"] .nb-tab-slash { color: #9c9c9c; }
.mobile [data-nb-panel][hidden] { display: none !important; }

/* Brand image uploaded in the options page */
.nb-brand-img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }

/* Mobile layout without a hero section */
.mobile .nb-mobile-bar { position: relative; align-self: stretch; height: 72px; background: #000; }

/* Skip link */
.nb-skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 1001;
	padding: 8px 12px;
	background: #ff6038;
	color: #101112;
	font: 16px/1 "IBM Plex Mono", monospace;
	text-transform: uppercase;
}
.nb-skip-link:focus { left: 8px; }

/* 3b. Mobile menu panel */
.nb-menu {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding: 16px 16px 32px;
	overflow-y: auto;
	background: #101112;
	color: #f6f8fa;
}
.nb-menu[hidden] { display: none; }
html.nb-menu-open { overflow: hidden; }
.nb-menu__bar { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.nb-menu__close {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	background: #ececec;
	color: #101112;
	font: 400 16px/1.5 "IBM Plex Mono", monospace;
	text-transform: uppercase;
}
.nb-menu__close-icon { position: relative; width: 24px; height: 24px; background: #ff6038; }
.nb-menu__close-icon::before, .nb-menu__close-icon::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 11px;
	width: 14px;
	height: 2px;
	background: #101112;
	transform: rotate(45deg);
}
.nb-menu__close-icon::after { transform: rotate(-45deg); }
.nb-menu__nav { display: flex; flex-direction: column; gap: 8px; }
.nb-menu__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 16px;
	border: 1px solid #3e3e3c;
	font: 400 20px/1.2 "IBM Plex Mono", monospace;
	letter-spacing: -0.5px;
	text-transform: uppercase;
}
.nb-menu__link:hover { border-color: #ff6038; }
.nb-menu__marker { width: 6px; height: 6px; flex: none; background: #ff6038; }
.nb-menu__cta { margin-top: auto; }
.nb-menu__cta .btn { display: inline-flex; }

/* 3c. Inner pages (legal pages, posts, 404) */
.nb-inner { background: #f6f8fa; color: #101112; font-family: "Poppins", sans-serif; }
.nb-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px clamp(16px, 6.67vw, 96px);
	background: #101112;
	color: #f6f8fa;
}
.nb-bar__brand { display: flex; align-items: center; gap: 12px; font: 500 22px/1 "Poppins", sans-serif; letter-spacing: -0.5px; }
.nb-bar__brand svg { width: 32px; height: 32px; }
.nb-bar__nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nb-bar__nav a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	border: 1px solid #3e3e3c;
	font: 400 14px/1 "IBM Plex Mono", monospace;
	text-transform: uppercase;
}
.nb-bar__nav a::before { content: ""; width: 4px; height: 4px; background: #ff6038; }
.nb-page { padding: clamp(48px, 8vw, 120px) clamp(16px, 6.67vw, 96px); }
.nb-page__inner { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.6; }
.nb-page__label { margin: 0 0 16px; font: 400 14px/1.2 "IBM Plex Mono", monospace; color: #72716f; text-transform: uppercase; }
.nb-page__title { margin: 0 0 32px; font: 500 clamp(36px, 5vw, 64px)/1.05 "Poppins", sans-serif; letter-spacing: -1px; }
.nb-page__inner h2 { margin: 2em 0 .5em; font: 500 28px/1.2 "Poppins", sans-serif; }
.nb-page__inner h3 { margin: 1.5em 0 .5em; font: 500 22px/1.3 "Poppins", sans-serif; }
.nb-page__inner p, .nb-page__inner ul, .nb-page__inner ol { margin: 0 0 1em; }
.nb-page__inner a { color: inherit; text-decoration: underline; text-decoration-color: #ff6038; text-underline-offset: 3px; }
.nb-page__inner img { max-width: 100%; height: auto; }
.nb-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	padding: 24px clamp(16px, 6.67vw, 96px);
	background: #101112;
	color: #9c9c9c;
	font: 400 13px/1.4 "IBM Plex Mono", monospace;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.nb-foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.nb-foot a:hover { color: #f6f8fa; }

/* Header nav sizes to its pills (Figma fixed the bar to the demo labels' widths) */
.desktop .header__bar { width: auto; flex-wrap: nowrap; }
.desktop .nav--header { width: auto; flex-wrap: nowrap; }
.desktop .nav--footer { width: auto; max-width: 640px; justify-content: flex-end; }
.desktop .nav--footer .nav__item::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid #3e3e3c;
	pointer-events: none;
}

/* Mobile horizontal scrollers: start-aligned when they overflow (a centred overflowing row
   hides its first items out of reach) and snap card by card. */
.mobile .logos { justify-content: safe center; }
.mobile .logos__item, .mobile .case, .mobile .step { scroll-snap-align: start; }

/* Inner pages: footer stays at the bottom on short pages */
body.nb-inner { display: flex; flex-direction: column; min-height: 100vh; margin: 0; }
body.nb-inner .nb-page { flex: 1 0 auto; }

/* Typewriter for the section labels (.label__text), built by nodabit.js: each letter is a
   hidden span that becomes visible in turn, with an orange block cursor after the last one. */
.nb-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.nb-type__char { visibility: hidden; }
.nb-type__char.is-on { visibility: visible; }
.nb-type__char.is-cursor { position: relative; }
.nb-type__char.is-cursor::after {
	content: "";
	position: absolute;
	left: 100%;
	top: .1em;
	bottom: .1em;
	width: .6em;
	background: #ff6038;
	animation: nb-type-blink 1s steps(1) infinite;
}
@keyframes nb-type-blink { 50% { opacity: 0; } }

/* Price tables size to their rows: the design export fixed the heights for its 9-row table,
   which leaves empty space when a table has fewer rows. */
.desktop .pricing, .desktop .pricing__inner, .desktop .price-table,
.mobile .pricing, .mobile .pricing__inner, .mobile .price-table--1 { min-height: 0; }
/* Dark (SEO-style) heading without a description: drop the space reserved for it on mobile. */
.mobile .seo .section-head:not(:has(.section-head__desc)),
.mobile .seo .section-head:not(:has(.section-head__desc)) .section-head__body { min-height: 0; }

/* Prices with tabs (price_tabs layout, see price-table.php). Without JavaScript every panel is
   listed with its own title; nodabit.js adds .nb-ptabs-ready to <html> and shows the tab bar. */
.nb-ptabs { align-self: stretch; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.nb-ptabs__list { display: none; }
.nb-ptabs-ready .nb-ptabs__list {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	margin: 0 0 8px;
}
.nb-ptabs-ready .nb-ptabs__list::-webkit-scrollbar { display: none; }
.nb-ptabs__tab {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border: 1px solid #3e3e3c;
	background: transparent;
	color: #d7d4d4;
	font: 400 14px/1 "IBM Plex Mono", monospace;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.nb-ptabs__tab:hover { border-color: #72716f; color: #f6f8fa; }
.nb-ptabs__tab[aria-selected="true"] { background: #f6f8fa; border-color: #f6f8fa; color: #101112; }
.nb-ptabs__marker { width: 6px; height: 6px; background: currentColor; opacity: .5; }
.nb-ptabs__tab[aria-selected="true"] .nb-ptabs__marker { background: #ff6038; opacity: 1; }
.maintenance .nb-ptabs__tab { border-color: #d7d4d4; color: #3e3e3c; }
.maintenance .nb-ptabs__tab:hover { border-color: #72716f; color: #101112; }
.maintenance .nb-ptabs__tab[aria-selected="true"] { background: #101112; border-color: #101112; color: #f6f8fa; }
.nb-ptabs__panel { display: flex; flex-direction: column; gap: 16px; }
.nb-ptabs__panel[hidden] { display: none; }
.nb-ptabs__panel:focus-visible { outline: 2px solid #ff6038; outline-offset: 4px; }
.nb-ptabs__title { margin: 16px 0 0; font: 400 24px/1.2 "Poppins", sans-serif; color: inherit; }
.seo .nb-ptabs__title { color: #f6f8fa; }
.nb-ptabs-ready .nb-ptabs__title { display: none; }
.nb-ptabs__intro {
	max-width: 760px;
	margin: 0;
	font: 400 14px/1.5 "IBM Plex Mono", monospace;
	color: #72716f;
}
.seo .nb-ptabs__intro { color: #a9a8a6; }
.nb-ptabs .price-table { align-self: stretch; }
/* The panels change height with each tab: no fixed heights from the design export. */
.nb-ptabs .price-table, .seo:has(.nb-ptabs), .seo:has(.nb-ptabs) .seo__inner,
.maintenance:has(.nb-ptabs), .maintenance:has(.nb-ptabs) .maintenance__inner { min-height: 0; }
/* Mobile price rows: keep a gap between a long name and the price. */
.mobile .price-row__head { column-gap: 12px; }
@media (prefers-reduced-motion: reduce) { .nb-ptabs__tab { transition: none; } }

/* Floating WhatsApp button (footer.php, when a number is set in Nodabit → Ajustes) */
.nb-whatsapp {
	position: fixed;
	right: 24px;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 6px 20px rgba(16, 17, 18, .25);
	transition: transform .15s ease, box-shadow .15s ease;
}
.nb-whatsapp svg { width: 30px; height: 30px; }
.nb-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 17, 18, .3); }
.nb-whatsapp:focus-visible { outline: 2px solid #ff6038; outline-offset: 3px; }
.nb-menu-open .nb-whatsapp { display: none; }
@media (max-width: 899px) {
	.nb-whatsapp { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
	.nb-whatsapp svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.nb-whatsapp { transition: none; }
	.nb-whatsapp:hover { transform: none; }
}

/* LinkedIn link in the footers */
.footer__social {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #72716f;
	font: 400 12px/1 "IBM Plex Mono", monospace;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}
.footer__social svg { width: 16px; height: 16px; flex: none; }
.footer__social:hover { color: #f6f8fa; }
.nb-foot .footer__social { font-size: inherit; letter-spacing: inherit; color: inherit; }
.desktop .footer__copy { width: auto; }
.mobile .footer__copy { right: 3.88%; top: 409px; width: auto; }

/* Cookie notice (inc/template-tags.php, nodabit.js). Accept and reject look the same. */
.nb-consent {
	position: fixed;
	left: 24px;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 1100;
	box-sizing: border-box;
	width: min(560px, calc(100% - 48px));
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 24px;
	border: 1px solid #3e3e3c;
	background: #101112;
	color: #d7d4d4;
	box-shadow: 0 12px 40px rgba(16, 17, 18, .35);
	font: 400 13px/1.55 "IBM Plex Mono", monospace;
}
.nb-consent[hidden] { display: none; }
.nb-consent:focus { outline: none; }
.nb-consent__title { margin: 0 0 8px; font: 500 18px/1.3 "Poppins", sans-serif; color: #f6f8fa; }
.nb-consent__text { margin: 0; }
.nb-consent a { color: #f6f8fa; text-decoration: underline; text-decoration-color: #ff6038; text-underline-offset: 3px; }
.nb-consent__prefs { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid #3e3e3c; }
.nb-consent__prefs[hidden] { display: none; }
.nb-consent__opt { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.nb-consent__opt input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #ff6038; cursor: pointer; }
.nb-consent__opt input:disabled { cursor: not-allowed; }
.nb-consent__opt strong { display: block; color: #f6f8fa; font-weight: 500; }
.nb-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0 0; }
.nb-consent__btn {
	padding: 12px 20px;
	border: 1px solid #f6f8fa;
	background: #f6f8fa;
	color: #101112;
	font: 400 13px/1 "IBM Plex Mono", monospace;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
}
.nb-consent__btn:hover { background: #ff6038; border-color: #ff6038; }
.nb-consent__btn[hidden] { display: none; }
.nb-consent__link {
	margin-left: auto;
	padding: 12px 4px;
	border: 0;
	background: none;
	color: #d7d4d4;
	font: inherit;
	text-decoration: underline;
	text-decoration-color: #72716f;
	text-underline-offset: 3px;
	cursor: pointer;
}
.nb-consent__link:hover { color: #f6f8fa; }
.nb-consent :focus-visible { outline: 2px solid #ff6038; outline-offset: 2px; }
.nb-consent-open .nb-whatsapp { display: none; }
@media (max-width: 899px) {
	.nb-consent { left: 0; bottom: 0; width: 100%; max-height: 85vh; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); border-width: 1px 0 0; }
	.nb-consent__btn { flex: 1 1 0; }
	.nb-consent__link { flex-basis: 100%; margin: 0; text-align: center; }
}

/* "Configurar cookies" in the footers: a button that looks like the legal links. */
button.nb-consent-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
button.footer__legal-link.nb-consent-link { color: #72716f; }
button.nb-consent-link:hover { color: #f6f8fa; }
.desktop .footer__legal { width: auto; }
.mobile .footer__legal { height: auto; }
