/* ERNST - bloques de diseño (productos, Nosotros, Contacto) */
:root {
    --nb-green: #0f3c1c;
    --nb-green-2: #2e7d46;
    --nb-mint: #9fd3ae;
    --nb-ink: #1c2620;
    --nb-text: #4a564e;
    --nb-light: #eef3ef;
    --nb-cream: #f6f3ee;
    --nb-line: #e3e9e4;
    --nb-wrap: 1200px;
    --nb-display: "Archivo", "Roboto", Helvetica, Arial, sans-serif;
}
.nb { position: relative; color: var(--nb-ink); }
.nb *, .nb *::before, .nb *::after { box-sizing: border-box; }
.nb img { max-width: 100%; display: block; }
.nb-wrap { max-width: var(--nb-wrap); margin: 0 auto; padding: 0 32px; }
.nb-bg-light { background: var(--nb-light); }
.nb-bg-cream { background: var(--nb-cream); }
.nb-bg-dark { background: radial-gradient(120% 90% at 75% 45%, #1d5a31 0%, #0f3c1c 45%, #0a2613 100%); color: #fff; }

/* Tipografía */
.nb-eyebrow { display: block; font-size: 14px; font-weight: 600; color: var(--nb-green-2); margin-bottom: 12px; }
.nb-title { margin: 0; font-family: var(--nb-display); font-weight: 700; font-stretch: 85%; font-size: clamp(32px, 4vw, 46px); line-height: 1.06; letter-spacing: -.015em; color: var(--nb-green); }
.nb-prose { font-size: 18px; color: #3e4a42; line-height: 1.6; }
.nb-prose p { margin: 0 0 14px; }
.nb-prose p:last-child { margin-bottom: 0; }
.nb-intro { font-size: 17px; color: var(--nb-text); max-width: 46ch; line-height: 1.6; }
.nb-intro p { margin: 0 0 10px; } .nb-intro p:last-child { margin: 0; }
.nb-bg-dark .nb-title, .nb-bg-dark .nb-card-title { color: #fff; }
.nb-bg-dark .nb-eyebrow { color: var(--nb-mint); }
.nb-bg-dark .nb-intro, .nb-bg-dark .nb-prose { color: #d9eadd; }

.nb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.nb-head-main { max-width: 36ch; }
.nb-head.is-center { flex-direction: column; align-items: center; text-align: center; }
.nb-head.is-center .nb-head-main { max-width: 52ch; }

/* Botones */
.nb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background .2s, color .2s, border-color .2s; }
.nb-btn .wa-icon { width: 20px; height: 20px; }
.nb-btn-white { background: #fff; color: var(--nb-green); }
.nb-btn-white:hover { background: #e9f3ec; color: var(--nb-green); }
.nb-btn-line { color: #fff; border-color: rgba(255,255,255,.45); }
.nb-btn-line:hover { border-color: #fff; color: #fff; }
.nb-btn-green { background: var(--nb-green); color: #fff; }
.nb-btn-green:hover { background: #1b5a2e; color: #fff; }
.nb-btn-outline { color: var(--nb-green); border-color: #b9cbbd; }
.nb-btn-outline:hover { border-color: var(--nb-green); color: var(--nb-green); }
.nb a:focus-visible, .nb button:focus-visible, .nb input:focus-visible, .nb select:focus-visible, .nb textarea:focus-visible { outline: 3px solid #8fc79e; outline-offset: 3px; }

.nb-checks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.nb-checks li { display: flex; gap: 12px; align-items: flex-start; }
.nb-checks .nb-ico { flex: none; color: var(--nb-green-2); margin-top: 2px; stroke-width: 2.2; }

/* ---------- Portada grande ---------- */
.nb-hero { min-height: 700px; display: flex; flex-direction: column; background: #0a2613; color: #fff; overflow: hidden; }
.nb-hero-img { position: absolute; top: 0; right: 0; width: 72%; height: 100%; object-fit: cover; }
.nb-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #0a2613 0%, #0a2613 22%, rgba(10,38,19,.8) 34%, rgba(10,38,19,.35) 50%, rgba(10,38,19,0) 68%), linear-gradient(0deg, rgba(8,30,15,.6) 0%, rgba(8,30,15,0) 45%); }
.nb-hero.no-img .nb-hero-shade { background: radial-gradient(120% 90% at 75% 45%, #1d5a31 0%, #0f3c1c 45%, #0a2613 100%); }
.nb-hero-in { position: relative; flex: 1; width: 100%; padding-top: 96px; padding-bottom: 48px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.nb-hero-badge { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; color: #cfe3d4; }
.nb-hero-badge img { height: 24px; width: auto; }
.nb-hero-sep { width: 1px; height: 20px; background: rgba(255,255,255,.35); }
.nb-hero-title { margin: 0; font-family: var(--nb-display); font-weight: 700; font-stretch: 78%; font-size: clamp(52px, 8vw, 112px); line-height: .94; letter-spacing: -.025em; max-width: 12ch; color: #fff; }
.nb-hero.is-long .nb-hero-title { font-stretch: 82%; font-size: clamp(42px, 5.4vw, 74px); line-height: 1; max-width: 13ch; }
.nb-hero.is-long .nb-hero-img { width: 62%; }
.nb-hero.is-long .nb-hero-shade { background: linear-gradient(90deg, #0a2613 0%, #0a2613 34%, rgba(10,38,19,.82) 44%, rgba(10,38,19,.3) 58%, rgba(10,38,19,0) 74%), linear-gradient(0deg, rgba(8,30,15,.6) 0%, rgba(8,30,15,0) 45%); }
.nb-hero-sub { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; font-weight: 300; color: #eef6f0; max-width: 28ch; }
.nb-hero-sub p { margin: 0; }
.nb-hero-sub strong { font-weight: 600; }
.nb-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.nb-hero-bar { position: relative; border-top: 1px solid rgba(255,255,255,.18); background: rgba(8,30,15,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nb-stats-1 { grid-template-columns: minmax(0, 1fr); } .nb-stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nb-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nb-stat { padding: 26px 28px; display: flex; gap: 16px; align-items: center; border-left: 1px solid rgba(255,255,255,.18); }
.nb-stat:first-child { border-left: 0; padding-left: 0; }
.nb-stat .nb-ico { flex: none; color: var(--nb-mint); }
.nb-stat strong { display: block; font-weight: 600; font-size: 18px; line-height: 1.3; }
.nb-stat small { display: block; font-size: 14px; color: #cfe3d4; }

/* ---------- Foto + texto ---------- */
.nb-media { padding: 104px 0; }
.nb-media.is-card { background: var(--nb-light); }
.nb-media-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.nb-media-row.is-right { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.nb-media-row.is-right .nb-media-img { order: 2; }
.nb-media-row.no-img { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.nb-media-img { display: block; overflow: hidden; border-radius: 18px; background: #e7eee5; aspect-ratio: 3 / 4; min-width: 0; }
.shape-square .nb-media-img { aspect-ratio: 1 / 1; }
.shape-wide .nb-media-img { aspect-ratio: 3 / 2; }
.nb-media-img img { width: 100%; height: 100%; object-fit: cover; }
.nb-media-img.fit-contain { background: radial-gradient(70% 60% at 50% 45%, #fff 0%, #e9efea 100%); padding: 32px; }
.nb-media-img.fit-contain img { object-fit: contain; }
.nb-media-body { display: flex; flex-direction: column; gap: 18px; }
.nb-media-body .nb-eyebrow { margin-bottom: -6px; }
.nb-media-body .nb-btn { align-self: flex-start; margin-top: 6px; }
.nb-media.is-card .nb-media-row { max-width: 1000px; margin: 0 auto; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,60,28,.12); gap: 0; }
.nb-media.is-card .nb-media-img { border-radius: 0; aspect-ratio: auto; height: 100%; min-height: 380px; }
.nb-media.is-card .shape-tall .nb-media-img { min-height: 460px; }
.nb-media.is-card .shape-square .nb-media-img { min-height: 400px; }
.nb-media.is-card .nb-media-body { padding: 48px; }
.nb-signature { font-family: "Caveat", cursive; font-size: 40px; color: var(--nb-green); line-height: 1; margin-top: 4px; }

/* ---------- Explicación numerada ---------- */
.nb-numbered { padding: 104px 0; }
.nb-num-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: center; background: var(--nb-cream); border-radius: 16px; padding: 36px 40px; }
.nb-bg-cream .nb-num-row { background: #fff; }
.nb-num-row.no-img { grid-template-columns: minmax(0, 1fr); }
.nb-num-img { width: 100%; height: auto; }
.nb-num-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; }
.nb-num-list li { display: flex; gap: 14px; align-items: flex-start; }
.nb-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--nb-green); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.nb-num-list strong { display: block; font-size: 17px; color: var(--nb-green); }
.nb-num-list p { margin: 2px 0 0; font-size: 15px; color: var(--nb-text); line-height: 1.55; }

/* ---------- Tarjetas ---------- */
.nb-cards { padding: 104px 0; }
.nb-cards-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nb-cards-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nb-cards-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.nb-cards-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.nb-cards-grid.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.nb-card { display: flex; flex-direction: column; gap: 12px; background: var(--nb-cream); border: 2px solid transparent; border-radius: 16px; padding: 28px; text-decoration: none; color: var(--nb-ink); transition: transform .25s ease, box-shadow .25s ease; }
.nb-bg-cream .nb-card, .nb-bg-light .nb-card { background: #fff; }
.nb-bg-dark .nb-card { background: rgba(255,255,255,.06); color: #fff; }
a.nb-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,60,28,.12); color: var(--nb-ink); }
.nb-card.is-hl { border-color: var(--nb-green-2); background: #e3efe6; }
.nb-bg-light .nb-card.is-hl, .nb-bg-cream .nb-card.is-hl { background: #fff; }
.nb-card-img img { width: 100%; height: auto; }
.look-full .nb-card { padding: 0 0 26px; overflow: hidden; }
.look-full .nb-card > :not(.nb-card-img) { padding: 0 24px; }
.look-full .nb-card-img { margin-bottom: 6px; }
.look-small .nb-card-img { display: flex; justify-content: center; }
.look-small .nb-card-img img { width: 100%; max-width: 150px; }
.look-small .nb-card { padding: 22px 14px 20px; }
.nb-card-ico { color: var(--nb-green-2); }
.nb-card-title { font-size: 19px; color: var(--nb-green); line-height: 1.3; }
.look-icon .nb-card-title { font-family: var(--nb-display); font-stretch: 90%; font-size: 22px; }
.nb-card-text { font-size: 15px; color: var(--nb-text); line-height: 1.55; }
.nb-cards-grid.is-center .nb-card { align-items: center; text-align: center; }
.nb-band { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: #fff; border: 1px solid var(--nb-line); border-radius: 14px; padding: 20px 28px; text-decoration: none; color: var(--nb-ink); font-size: 16px; }
.nb-bg-light .nb-band, .nb-bg-cream .nb-band { border-color: transparent; }
.nb-band strong { color: var(--nb-green); }
.nb-band-link { font-weight: 600; font-size: 15px; color: var(--nb-green); white-space: nowrap; }
a.nb-band:hover .nb-band-link { text-decoration: underline; }

/* ---------- Pantalla flotante ---------- */
.nb-screen { background: radial-gradient(120% 90% at 75% 45%, #1d5a31 0%, #0f3c1c 45%, #0a2613 100%); color: #fff; overflow: hidden; }
.nb-screen-row { max-width: 1240px; padding-top: 112px; padding-bottom: 112px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.nb-screen-row.is-left .nb-screen-img { order: -1; }
.nb-screen-row.is-left { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.nb-screen-row.no-img { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.nb-screen-body { display: flex; flex-direction: column; gap: 20px; }
.nb-screen .nb-eyebrow { color: var(--nb-mint); margin-bottom: 0; }
.nb-screen .nb-title { color: #fff; }
.nb-screen .nb-prose { color: #d9eadd; }
.nb-screen-lines { border-top: 1px solid rgba(255,255,255,.16); }
.nb-screen-lines div { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 16px; color: #d9eadd; }
.nb-screen-lines strong { color: #fff; }
.nb-screen-img { position: relative; }
.nb-screen-img img { position: relative; width: 100%; height: auto; }
.nb-screen-shadow { position: absolute; left: 8%; right: 8%; bottom: -6%; height: 18%; background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.45), rgba(0,0,0,0)); filter: blur(8px); }

/* ---------- Video con portada ---------- */
.nb-video { padding: 96px 0; }
.nb-video-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.nb-video-row.no-text { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.nb-video-body .nb-title { font-size: clamp(30px, 3.4vw, 40px); }
.nb-video-body .nb-prose { margin-top: 14px; }
.nb-video-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: var(--nb-green); cursor: pointer; box-shadow: 0 24px 60px rgba(15,60,28,.16); }
.nb-video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nb-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nb-video-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,30,15,.55) 0%, rgba(8,30,15,0) 45%); }
.nb-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--nb-green); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s ease; }
.nb-video-frame:hover .nb-play { transform: scale(1.08); }
.nb-video-cap { position: absolute; left: 24px; bottom: 20px; color: #fff; font-weight: 600; font-size: 15px; }

/* ---------- Instalación destacada ---------- */
.nb-pick { padding: 104px 0; }
.nb-pick-card { position: relative; display: block; width: 100%; min-height: 480px; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: var(--nb-green); color: #fff; text-align: left; cursor: pointer; font-family: inherit; }
.nb-pick-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.nb-pick-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,30,15,.92) 0%, rgba(8,30,15,.2) 60%, rgba(8,30,15,0) 100%); }
.nb-pick-count { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.94); color: var(--nb-ink); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.nb-pick-text { position: absolute; left: 44px; right: 44px; bottom: 40px; display: flex; flex-direction: column; gap: 6px; }
.nb-pick-eyebrow { font-size: 14px; font-weight: 600; color: #b9dcc2; }
.nb-pick-title { font-family: var(--nb-display); font-weight: 700; font-stretch: 85%; font-size: clamp(26px, 3vw, 34px); line-height: 1.12; max-width: 24ch; }

/* ---------- Logos ---------- */
.nb-logos { padding: 104px 0; }
.nb-logos-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); max-width: 1000px; margin: 0 auto; }
.nb-logos-grid.count-1 { max-width: 300px; } .nb-logos-grid.count-2 { max-width: 580px; } .nb-logos-grid.count-3 { max-width: 840px; }
.nb-logo { background: var(--nb-cream); border-radius: 14px; height: 120px; display: flex; align-items: center; justify-content: center; padding: 22px; text-decoration: none; color: var(--nb-green); font-weight: 700; font-size: 20px; }
.nb-logo img { max-height: 46px; width: auto; }
.nb-logos-grid.is-black .nb-logo img { filter: brightness(0); }

/* ---------- Llamado a WhatsApp ---------- */
.nb-cta { padding: 96px 0; }
.nb-cta-in { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.nb-cta .nb-prose { max-width: 46ch; color: var(--nb-text); }
.nb-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.nb-bg-dark.nb-cta .nb-prose { color: #d9eadd; }
.nb-bg-dark .nb-btn-green { background: #fff; color: var(--nb-green); }

/* ---------- Contacto ---------- */
.nb-contact-head { background: var(--nb-light); border-bottom: 1px solid #e0e8e2; padding: 72px 0 64px; }
.nb-contact-title { margin: 0 0 14px; font-family: var(--nb-display); font-weight: 700; font-stretch: 82%; font-size: clamp(40px, 5vw, 60px); line-height: 1.02; letter-spacing: -.02em; color: var(--nb-green); }
.nb-contact-head .nb-intro { font-size: 19px; max-width: 48ch; }
.nb-contact { padding: 72px 0 96px; }
.nb-contact-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.nb-contact-row.no-form { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.nb-contact-side { display: flex; flex-direction: column; gap: 14px; }
.nb-contact-wa { display: flex; gap: 18px; align-items: center; background: var(--nb-green); color: #fff; text-decoration: none; border-radius: 16px; padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.nb-contact-wa:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,60,28,.18); }
.nb-contact-wa-ico { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; }
.nb-contact-wa-ico .wa-icon { width: 28px; height: 28px; color: #fff; }
.nb-contact-wa-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nb-contact-wa-txt strong { font-size: 20px; }
.nb-contact-wa-txt small { font-size: 15px; color: #cfe3d4; }
.nb-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.nb-contact-item { display: flex; flex-direction: column; gap: 8px; background: var(--nb-cream); border-radius: 14px; padding: 22px; text-decoration: none; color: var(--nb-ink); }
.nb-contact-item.is-wide { grid-column: 1 / -1; }
.nb-contact-item .nb-ico { color: var(--nb-green-2); }
.nb-contact-item strong { font-size: 16px; color: var(--nb-green); }
.nb-contact-item span { font-size: 15px; color: var(--nb-text); overflow-wrap: anywhere; }
a.nb-contact-item:hover { box-shadow: 0 14px 30px rgba(15,60,28,.12); color: var(--nb-ink); }
.nb-form { background: #fff; border: 1px solid #e0e8e2; border-radius: 18px; padding: 36px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 60px rgba(15,60,28,.08); }
.nb-form-title { margin: 0; font-family: var(--nb-display); font-weight: 700; font-stretch: 85%; font-size: 32px; line-height: 1.1; color: var(--nb-green); }
.nb-form-sub { margin: -10px 0 0; font-size: 15px; color: #5b665f; }
.nb-form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.nb-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #2b352f; }
.nb-form input, .nb-form select, .nb-form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1px solid #cfd9d1; border-radius: 10px; min-height: 48px; background: #fff; width: 100%; }
.nb-form textarea { resize: vertical; }
.nb-form .nb-btn { width: 100%; min-height: 52px; }
.nb-form-note { margin: 0; font-size: 13px; color: #6b766f; text-align: center; }

/* ---------- Animaciones ---------- */
@keyframes nbIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes nbZoom { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
@keyframes nbKen { from { transform: scale(1.12); } to { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
    .nb-ken { animation: nbKen 14s cubic-bezier(.2,.6,.2,1) both; }
    .nb-in { animation: nbIn 1s cubic-bezier(.2,.7,.2,1) both; }
    .nb-d1 { animation-delay: .15s; } .nb-d2 { animation-delay: .3s; } .nb-d3 { animation-delay: .45s; }
    @supports (animation-timeline: view()) {
        .nb-rv { animation: nbIn linear both; animation-timeline: view(); animation-range: entry 5% entry 55%; }
        .nb-zoom { animation: nbZoom linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    }
}

/* ---------- Celular ---------- */
@media (max-width: 900px) {
    .nb-wrap { padding: 0 20px; }
    .nb-hero { min-height: 640px; }
    .nb-hero-img, .nb-hero.is-long .nb-hero-img { width: 100%; opacity: .45; }
    .nb-hero-in { padding-top: 64px; padding-bottom: 36px; }
    .nb-stats, .nb-stats-2, .nb-stats-4 { grid-template-columns: minmax(0, 1fr); }
    .nb-stat, .nb-stat:first-child { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); padding: 16px 0; }
    .nb-stat:first-child { border-top: 0; }
    .nb-media, .nb-numbered, .nb-cards, .nb-pick, .nb-logos { padding: 72px 0; }
    .nb-media-row, .nb-media-row.is-right, .nb-num-row, .nb-screen-row, .nb-screen-row.is-left, .nb-video-row, .nb-contact-row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .nb-media-row.is-right .nb-media-img { order: 0; }
    .nb-media.is-card .nb-media-body { padding: 32px 24px; }
    .nb-media.is-card .nb-media-img { aspect-ratio: 4 / 3; height: auto; }
    .nb-num-row { padding: 24px; }
    .nb-screen-row { padding-top: 72px; padding-bottom: 72px; }
    .nb-screen-img { order: -1; }
    .nb-cards-grid, .nb-cards-grid.cols-2, .nb-cards-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
    .nb-cards-grid.cols-5, .nb-cards-grid.cols-6, .nb-cards-grid.look-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nb-pick-card { min-height: 380px; }
    .nb-pick-text { left: 24px; right: 24px; bottom: 24px; }
    .nb-logos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nb-contact-grid, .nb-form-2 { grid-template-columns: minmax(0, 1fr); }
    .nb-form { padding: 24px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
    .nb-cards-grid.cols-5, .nb-cards-grid.cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ==========================================================
   Ajustes de diseño (se eligen en el panel, en cada bloque)
   ========================================================== */
/* Espacio arriba y abajo */
.nb.nb-sp-less:not(.nb-hero):not(.nb-screen) { padding-top: 56px; padding-bottom: 56px; }
.nb.nb-sp-more:not(.nb-hero):not(.nb-screen) { padding-top: 150px; padding-bottom: 150px; }
.nb.nb-sp-none:not(.nb-hero):not(.nb-screen) { padding-top: 0; padding-bottom: 0; }
.nb.nb-sp-less .nb-screen-row { padding-top: 56px; padding-bottom: 56px; }
.nb.nb-sp-more .nb-screen-row { padding-top: 150px; padding-bottom: 150px; }
.nb.nb-sp-none .nb-screen-row { padding-top: 24px; padding-bottom: 24px; }
.nb-hero.nb-sp-less { min-height: 560px; }
.nb-hero.nb-sp-more { min-height: 820px; }

/* Ancho del contenido */
.nb.nb-w-narrow .nb-wrap, .nb.nb-w-narrow .nb-screen-row { max-width: 920px; }
.nb.nb-w-wide .nb-wrap, .nb.nb-w-wide .nb-screen-row { max-width: 1420px; }
.nb.nb-w-full .nb-wrap, .nb.nb-w-full .nb-screen-row { max-width: none; }
.nb.nb-w-wide .nb-media.is-card .nb-media-row, .nb-media.is-card.nb-w-wide .nb-media-row { max-width: 1200px; }
.nb-media.is-card.nb-w-full .nb-media-row { max-width: none; }

/* Tamaño de la imagen */
/* Foto + texto */
.nb-img-small .nb-media-row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.nb-img-small .nb-media-row.is-right { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.nb-img-big .nb-media-row { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.nb-img-big .nb-media-row.is-right { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.nb-img-xbig .nb-media-row { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.nb-img-xbig .nb-media-row.is-right { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
/* Dibujo numerado */
.nb-img-small .nb-num-row { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.nb-img-big .nb-num-row { grid-template-columns: minmax(0, 8fr) minmax(0, 3.6fr); }
.nb-img-xbig .nb-num-row { grid-template-columns: minmax(0, 1fr); }
.nb-img-xbig .nb-num-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px 28px; }
/* Pantalla flotante */
.nb-img-small .nb-screen-row { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
.nb-img-small .nb-screen-row.is-left { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.nb-img-big .nb-screen-row { max-width: 1400px; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
.nb-img-big .nb-screen-row.is-left { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.nb-img-xbig .nb-screen-row { max-width: 1100px; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.nb-img-xbig .nb-screen-body { text-align: center; align-items: center; }
.nb-img-xbig .nb-screen-lines { text-align: left; width: 100%; max-width: 640px; }
.nb-img-xbig .nb-screen-row .nb-screen-img { order: 2; }
/* Video */
.nb-img-small .nb-video-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.nb-img-big .nb-video-row { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); }
.nb-img-xbig .nb-video-row { grid-template-columns: minmax(0, 1fr); max-width: 1040px; margin: 0 auto; }
/* Tarjetas */
.nb-img-small .nb-card-img { display: flex; justify-content: center; }
.nb-img-small .nb-card-img img { width: 70%; }
.nb-img-big .nb-card, .nb-img-xbig .nb-card { padding: 0 0 26px; overflow: hidden; }
.nb-img-big .nb-card > :not(.nb-card-img), .nb-img-xbig .nb-card > :not(.nb-card-img) { padding: 0 24px; }
.nb-img-big .nb-card-img, .nb-img-xbig .nb-card-img { margin-bottom: 6px; }
.nb-img-big .nb-cards-grid { gap: 16px; }
.nb-img-xbig .nb-cards-grid { gap: 16px; }
.nb-img-xbig .nb-cards-grid.cols-3, .nb-img-xbig .nb-cards-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nb-img-xbig .nb-cards-grid.cols-5, .nb-img-xbig .nb-cards-grid.cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nb-img-small .look-small .nb-card-img img { max-width: 110px; }
.nb-img-big .look-small .nb-card-img img { max-width: 200px; }
.nb-img-xbig .look-small .nb-card-img img { max-width: 260px; }
/* Portada grande */
.nb-hero.nb-img-small .nb-hero-img { width: 58%; }
.nb-hero.nb-img-big .nb-hero-img, .nb-hero.nb-img-xbig .nb-hero-img { width: 86%; }
.nb-hero.nb-img-xbig { min-height: 860px; }
/* Instalación destacada */
.nb-img-small .nb-pick-card { min-height: 360px; }
.nb-img-big .nb-pick-card { min-height: 600px; }
.nb-img-xbig .nb-pick-card { min-height: 720px; }
/* Logos */
.nb-img-small .nb-logo img { max-height: 34px; }
.nb-img-big .nb-logo { height: 150px; } .nb-img-big .nb-logo img { max-height: 64px; }
.nb-img-xbig .nb-logo { height: 180px; } .nb-img-xbig .nb-logo img { max-height: 84px; }

/* Tamaño del texto */
.nb-txt-big .nb-title { font-size: clamp(36px, 4.6vw, 56px); }
.nb-txt-big .nb-prose, .nb-txt-big .nb-intro { font-size: 20px; }
.nb-txt-big .nb-card-title { font-size: 22px; }
.nb-txt-big .nb-card-text, .nb-txt-big .nb-num-list p { font-size: 17px; }
.nb-txt-big .nb-num-list strong { font-size: 19px; }
.nb-txt-big .nb-checks, .nb-txt-big .nb-screen-lines div { font-size: 18px; }
.nb-txt-small .nb-title { font-size: clamp(28px, 3.2vw, 38px); }
.nb-txt-small .nb-prose, .nb-txt-small .nb-intro { font-size: 16px; }
.nb-txt-small .nb-card-text, .nb-txt-small .nb-num-list p { font-size: 14px; }
.nb-txt-small .nb-checks, .nb-txt-small .nb-screen-lines div { font-size: 15px; }

/* Alineación del título */
.nb-al-center .nb-head { flex-direction: column; align-items: center; text-align: center; }
.nb-al-center .nb-head-main { max-width: 52ch; }
.nb-al-center .nb-cta-in, .nb-al-center .nb-media-body, .nb-al-center .nb-screen-body, .nb-al-center .nb-video-body { text-align: center; align-items: center; }
.nb-al-center .nb-media-body .nb-btn { align-self: center; }

/* Animación */
.nb-anim-off .nb-rv, .nb-anim-off .nb-zoom, .nb-anim-off .nb-ken, .nb-anim-off .nb-in, .nb-anim-off.nb-rv { animation: none !important; opacity: 1 !important; transform: none !important; }

/* Mostrar solo en compu / solo en celular */
@media (min-width: 901px) { .nb.nb-show-mobile { display: none !important; } }
@media (max-width: 900px) {
    .nb.nb-show-desktop { display: none !important; }
    .nb.nb-sp-less:not(.nb-hero):not(.nb-screen) { padding-top: 40px; padding-bottom: 40px; }
    .nb.nb-sp-more:not(.nb-hero):not(.nb-screen) { padding-top: 96px; padding-bottom: 96px; }
    .nb.nb-sp-less .nb-screen-row { padding-top: 40px; padding-bottom: 40px; }
    .nb.nb-sp-more .nb-screen-row { padding-top: 96px; padding-bottom: 96px; }
    .nb[class*="nb-img-"] .nb-media-row, .nb[class*="nb-img-"] .nb-media-row.is-right,
    .nb[class*="nb-img-"] .nb-num-row, .nb[class*="nb-img-"] .nb-screen-row, .nb[class*="nb-img-"] .nb-screen-row.is-left,
    .nb[class*="nb-img-"] .nb-video-row { grid-template-columns: minmax(0, 1fr); }
    .nb-img-xbig .nb-cards-grid:not(.look-small), .nb-img-big .nb-cards-grid:not(.look-small) { grid-template-columns: minmax(0, 1fr); }
    .nb-hero[class*="nb-img-"] .nb-hero-img { width: 100%; }
    .nb-img-big .nb-pick-card, .nb-img-xbig .nb-pick-card { min-height: 480px; }
    .nb-hero.nb-sp-more, .nb-hero.nb-img-xbig { min-height: 680px; }
}
