/* Ideas Web 2027 — diseño claro. SOLO lo cargan las páginas ya rediseñadas ($pageCss): las demás no cambian.
   Idea: un titular grande, una foto a lo ancho y secciones que se separan con espacio, casi sin cajas.
   Color: blanco, gris apenas cálido, tinta y el naranja de la marca (solo en acciones y «consultas.»). */
:root {
  --iw-bg: #fff;
  --iw-surface: #f5f3f2;
  --iw-surface-2: #ece9e7;
  --iw-line: rgba(28, 20, 18, .13);
  --iw-line-2: rgba(28, 20, 18, .3);
  --iw-text: #1c1412;
  --iw-muted: #625854;
  --iw-muted-2: #776c67;
  --iw-accent: #d93218;
  --n-gap: clamp(76px, 9vw, 148px);
}

/* ---------- Encabezado y menú (en las páginas rediseñadas) ---------- */
.iw-header.scrolled, .iw-header.is-open { background: rgba(255, 255, 255, .94); }
.iw-mega { background: #fff; }
.iw-mega::after, .iw-mega__promo::before { display: none; }
.iw-nav { font-size: 15px; }
.iw-nav > a[href="/"] { display: none; }
.iw-nav > a[href="/contacto"] { padding: 9px 18px; border-radius: 99px; background: #d93218; color: #fff; }
.iw-nav > a[href="/contacto"]:hover { background: #b9270f; color: #fff; }
.iw-hostbtn { background: #fff; border-color: var(--iw-line-2); animation: none; }
.iw-hostbtn::after, .iw-hostbtn__dot { display: none; }
.iw-hostbtn:hover, .iw-hostbtn[aria-expanded="true"] { box-shadow: none; border-color: var(--iw-text); }
.iw-hpop__box { background: #fff; box-shadow: 0 24px 60px rgba(28, 20, 18, .18); }
.iw-hpop__k { color: #6d3fd1; }
.iw-coupon { border-color: var(--iw-line-2); }
.iw-btn--light:hover { background: #3a2c28; }

/* El pie queda oscuro, igual que en el resto del sitio */
.iw-footer {
  --iw-bg: #0b0b0b; --iw-surface: #131313; --iw-line: rgba(255, 255, 255, .09); --iw-line-2: rgba(255, 255, 255, .16);
  --iw-text: #f2f0ec; --iw-muted: #9a958f; --iw-accent: #f73b20;
}

/* ---------- Base ---------- */
.n27 { background: var(--iw-bg); color: var(--iw-text); }
.n27 h2, .n27 h3, .n27 p, .n27 ul, .n27 ol, .n27 dl, .n27 dd, .n27 figure, .n27 blockquote { margin: 0; padding: 0; }
.n27 ul, .n27 ol { list-style: none; }
.n27 a { color: inherit; }
.n27 img { display: block; max-width: 100%; }
.n27 h2 { max-width: 17ch; font-size: clamp(32px, 4.1vw, 60px); font-weight: 600; line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; color: var(--iw-text); }
.n27 h3 { font-weight: 600; letter-spacing: -.025em; color: var(--iw-text); }
.n27 summary:focus-visible { outline: 2px solid var(--iw-accent); outline-offset: 3px; }
.n27 section { scroll-margin-top: 76px; }
.n27 .n27-sec--line { scroll-margin-top: 120px; }
.n27-svc, .n27-prods { scroll-margin-top: 100px; }
.n27-sec { padding: var(--n-gap) 0; }
.n27-sec--soft { background: var(--iw-surface); }
.n27-sec--line { padding-top: 0; }
.n27-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 4.5vw, 68px); }
.n27-sec--soft .n27-head h2 { max-width: 20ch; }
.n27-two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px clamp(40px, 7vw, 120px); align-items: start; }
.n27-p { max-width: 60ch; color: var(--iw-muted); font-size: 18px; line-height: 1.6; }
h2 + .n27-p { padding-top: 22px !important; }
.n27-p + .n27-p { margin-top: 20px !important; }
.n27-p--big { color: var(--iw-text); font-size: clamp(20px, 1.8vw, 25px); line-height: 1.42; letter-spacing: -.015em; }
.n27 .n27-link { display: inline-block; padding: 8px 0; font-size: 17px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--iw-accent); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.n27 .n27-link:hover { color: var(--iw-accent); }
.n27-two > div > .n27-link { margin-top: 22px; }

/* ---------- Comienzo ---------- */
.n27-hero { padding: clamp(124px, 12vw, 176px) 0 0; }
.n27-hero--home { padding-bottom: var(--n-gap); }
.n27 .n27-h1 { max-width: 17ch; margin: 0; font-size: clamp(42px, 7vw, 108px); font-weight: 600; line-height: .98; letter-spacing: -.052em; text-wrap: balance; color: var(--iw-text); }
.n27-h1 em { font-style: normal; color: var(--iw-accent); }
.n27-hero__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px 48px; margin: clamp(26px, 3vw, 44px) 0 clamp(40px, 4.5vw, 68px); }
.n27-lead { flex: 1 1 420px; max-width: 56ch; color: var(--iw-muted); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.n27-lead strong { font-weight: 500; color: var(--iw-text); }
.n27-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.n27-ctas .iw-btn { height: 54px; padding: 0 26px; font-size: 16px; }
.n27 .iw-btn--accent { color: #fff; }
.n27 .n27-cover { display: block; text-decoration: none; }
/* Las imágenes se muestran siempre completas: sin proporción fija, sin recorte y sin zoom. */
.n27-cover img { display: block; width: 100%; height: auto; }
.n27-cover__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-top: 16px; font-size: 16px; }
.n27-cover__cap b { font-weight: 600; }
.n27-cover__cap span { color: var(--iw-muted); }
.n27-cover__cap i { margin-left: auto; font-style: normal; transition: transform .3s var(--iw-ease); }
.n27-cover:hover i { transform: translateX(6px); }
.n27-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; padding-top: clamp(56px, 6vw, 92px) !important; }
.n27-facts li { padding-top: 22px; border-top: 1px solid var(--iw-line-2); background: linear-gradient(var(--iw-accent), var(--iw-accent)) 0 -1px / 32px 3px no-repeat; }
.n27-facts b { display: block; font-size: clamp(28px, 2.9vw, 42px); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.n27-facts span { display: block; margin-top: 8px; color: var(--iw-muted); font-size: 15px; line-height: 1.4; }

/* ---------- Proyectos ---------- */
.n27-works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(44px, 5vw, 76px) clamp(20px, 2.4vw, 36px); }
.n27 .n27-work { display: block; text-decoration: none; }
/* Marco: todas las imágenes de trabajos van sobre el mismo fondo, con margen y esquinas redondeadas,
   para que se vean como parte del diseño aunque cada foto tenga su propio fondo. La imagen nunca se recorta. */
.n27-work__img, .n27-cover__img {
  display: block; position: relative; padding: clamp(8px, .9vw, 14px); border: 1px solid var(--iw-line); border-radius: 18px;
  background: var(--iw-surface); transition: transform .45s var(--iw-ease), box-shadow .45s var(--iw-ease), border-color .3s;
}
.n27-sec--soft .n27-work__img { background: #fff; }
.n27-work__img img, .n27-cover__img img { display: block; width: 100%; height: auto; border-radius: 10px; }
.n27-work:hover .n27-work__img, .n27-cover:hover .n27-cover__img { transform: translateY(-4px); border-color: var(--iw-line-2); box-shadow: 0 26px 50px -30px rgba(28, 20, 18, .45); }
/* Capturas de sistemas: se muestran como una ventana del navegador */
.n27 .n27-work__img--cap { padding-top: 40px; background: #fff; }
.n27-work__img--cap::before { content: ""; position: absolute; top: 16px; left: 18px; width: 46px; height: 10px;
  background: radial-gradient(circle at 5px 5px, #e0dbd8 4.5px, transparent 5px) 0 0 / 18px 10px repeat-x; }
.n27-work__img--cap::after { content: attr(data-bar); position: absolute; top: 11px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 160px);
  padding: 2px 14px; border-radius: 99px; background: var(--iw-surface); color: var(--iw-muted); font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n27-work__img--cap img { border: 1px solid var(--iw-line); border-radius: 6px; }
.n27 .n27-work h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 22px; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.n27 .n27-work h3::after { content: "→"; flex: none; color: var(--iw-accent); font-weight: 400; transition: transform .3s var(--iw-ease); }
.n27-work:hover h3 { color: var(--iw-accent); }
.n27-work:hover h3::after { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) { .n27-work:hover .n27-work__img, .n27-cover:hover .n27-cover__img { transform: none; } }

/* Etiqueta chica arriba de cada título (va en data-k: no cambia el texto del título) */
.n27 h2[data-k]::before { content: attr(data-k); display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--iw-muted);
  font-size: 13px; font-weight: 500; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; }
.n27 h2[data-k]::before { background: linear-gradient(var(--iw-accent), var(--iw-accent)) 0 50% / 22px 2px no-repeat; padding-left: 32px; }
.n27-work__k { display: block; margin-top: 6px; color: var(--iw-muted); font-size: 16px; line-height: 1.4; }
.n27-clients { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(40px, 7vw, 120px); margin-top: clamp(64px, 7vw, 112px); padding-top: 36px; border-top: 1px solid var(--iw-line-2); }
.n27-clients p { color: var(--iw-muted); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.n27-clients ul { display: flex; flex-wrap: wrap; gap: 12px 0; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; letter-spacing: -.02em; }
.n27-clients li { display: flex; align-items: center; }
.n27-clients li:not(:last-child)::after { content: ""; width: 4px; height: 4px; margin: 0 16px; border-radius: 50%; background: var(--iw-accent); }

/* ---------- Servicios ---------- */
.n27-svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 20px clamp(28px, 4vw, 64px); padding: clamp(32px, 3.4vw, 52px) 0; border-top: 1px solid var(--iw-line); }
.n27 .n27-svc h3 { font-size: clamp(28px, 3vw, 44px); line-height: 1.05; letter-spacing: -.04em; }
.n27-svc p { max-width: 40ch; color: var(--iw-muted); font-size: 18px; line-height: 1.5; }
.n27-svc li a, .n27-inline a { display: inline-block; padding: 6px 0; font-size: 17px; line-height: 1.35; text-decoration: none; }
.n27-svc li a:hover, .n27-inline a:hover { color: var(--iw-accent); text-decoration: underline; text-underline-offset: 5px; }
.n27-prods { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(28px, 4vw, 64px); padding-top: clamp(32px, 3.4vw, 52px); border-top: 1px solid var(--iw-line); }
.n27 .n27-prods h3 { max-width: 16ch; font-size: clamp(21px, 1.7vw, 25px); line-height: 1.2; }
.n27-prods > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px clamp(28px, 4vw, 64px); }
.n27-prods p { color: var(--iw-muted); font-size: 16px; line-height: 1.5; }
.n27-prods p a { display: block; margin-bottom: 4px; color: var(--iw-text); font-size: 21px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.n27-prods p a:hover { color: var(--iw-accent); }
.n27-prods small { grid-column: 1 / -1; color: var(--iw-muted); font-size: 13px; line-height: 1.5; }

/* ---------- Precios ---------- */
.n27-prices > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; padding: 22px 0; border-bottom: 1px solid var(--iw-line); }
.n27-prices > div:first-child { padding-top: 4px; }
.n27-prices dt { font-size: clamp(19px, 1.6vw, 23px); font-weight: 400; }
.n27-prices dd { font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.n27-prices small { margin-right: 4px; color: var(--iw-muted); font-size: 16px; font-weight: 400; letter-spacing: 0; }

/* ---------- Reseñas ---------- */
.n27-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px clamp(28px, 4vw, 64px); }
.n27-stars { color: #b25b00; font-size: 17px; letter-spacing: .12em; }
.n27 .n27-quote blockquote { margin: 14px 0 20px; border: 0; font-size: clamp(19px, 1.55vw, 23px); font-style: normal; line-height: 1.42; letter-spacing: -.015em; color: var(--iw-text); overflow-wrap: anywhere; }
.n27-quote figcaption { color: var(--iw-muted); font-size: 15px; }
.n27-quote figcaption b { display: block; font-weight: 600; color: var(--iw-text); }
.n27-more { margin-top: 48px; }
.n27-more summary { width: fit-content; padding: 8px 0; cursor: pointer; font-size: 17px; font-weight: 500; }
.n27-more[open] summary { margin-bottom: 36px; }
.n27 .n27-quotes--more .n27-quote blockquote { font-size: 17px; line-height: 1.5; letter-spacing: 0; }

/* ---------- Cómo trabajamos (el orden importa: por eso lleva números) ---------- */
.n27-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); counter-reset: paso; }
.n27-steps li { counter-increment: paso; }
.n27-steps li::before { content: counter(paso); display: block; margin-bottom: 18px; color: var(--iw-accent); font-size: clamp(28px, 2.9vw, 42px); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.n27 .n27-steps h3 { margin-bottom: 10px; font-size: 22px; }
.n27-steps p { max-width: 36ch; color: var(--iw-muted); font-size: 17px; line-height: 1.5; }

/* ---------- Quiénes somos, novedades y preguntas ---------- */
.n27-inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 28px; margin-top: 30px !important; }
.n27-news li { border-bottom: 1px solid var(--iw-line); }
.n27-news a { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 20px; align-items: baseline; padding: 22px 0; text-decoration: none; }
.n27-news li:first-child a { padding-top: 4px; }
.n27-news time { color: var(--iw-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.n27 .n27-news h3 { font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; line-height: 1.28; }
.n27-news a:hover h3 { color: var(--iw-accent); }
.n27-faq details { border-bottom: 1px solid var(--iw-line); }
.n27-faq summary { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-size: clamp(18px, 1.45vw, 21px); font-weight: 500; line-height: 1.35; letter-spacing: -.015em; }
.n27-faq summary::-webkit-details-marker { display: none; }
.n27-faq summary::after { content: "+"; flex: none; color: var(--iw-accent); font-size: 26px; font-weight: 400; line-height: 1; }
.n27-faq details[open] summary::after { content: "–"; }
.n27-faq details:first-child summary { padding-top: 2px; }
.n27 .n27-faq p { max-width: 64ch; padding: 0 44px 26px 0; color: var(--iw-muted); font-size: 17px; line-height: 1.6; }

/* ---------- Páginas de servicios ---------- */
.n27-crumbs { margin-bottom: clamp(26px, 3vw, 42px); }
.n27-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--iw-muted); font-size: 15px; }
.n27-crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--iw-muted-2); }
.n27-crumbs a { text-decoration: none; }
.n27-crumbs a:hover { color: var(--iw-accent); text-decoration: underline; text-underline-offset: 4px; }
.n27-hero--svc { padding-top: clamp(112px, 10vw, 146px); }
.n27-hero--svc .n27-h1 { font-size: clamp(40px, 6.1vw, 92px); max-width: 20ch; }
.n27-hero--svc .n27-hero__row { margin-bottom: 0; }
.n27-note { margin-top: 26px !important; color: var(--iw-muted); font-size: 16px; line-height: 1.5; }
.n27-note a { text-underline-offset: 4px; }
.n27-note a:hover { color: var(--iw-accent); }
.n27-head > div > .n27-p { padding-top: 20px !important; }
.n27-works > .n27-work--big { grid-column: 1 / -1; }
/* Foto grande 3:2 con el texto al costado, para que entre entera en la pantalla */
@media (min-width: 981px) {
  .n27 .n27-work--side, .n27 .n27-cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); column-gap: clamp(28px, 3.4vw, 52px); }
  .n27-work--side .n27-work__img, .n27-cover .n27-cover__img { grid-row: 1 / 3; }
  .n27 .n27-work--side h3 { align-self: end; }
  .n27-cover__cap { align-self: end; flex-direction: column; padding: 0; }
  .n27-cover__cap b { font-size: clamp(22px, 2vw, 30px); line-height: 1.15; letter-spacing: -.03em; }
  .n27-cover__cap i { margin: 10px 0 0; }
}
.n27-wide h2 { max-width: 22ch; }
.n27-type { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr); gap: 16px clamp(28px, 4vw, 64px); align-items: start; padding: clamp(28px, 2.8vw, 42px) 0; border-top: 1px solid var(--iw-line); }
.n27 .n27-type h3 { max-width: 20ch; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.n27-type p { max-width: 46ch; color: var(--iw-muted); font-size: 17px; line-height: 1.5; }
.n27-type__r { text-align: right; }
.n27-type__r b { display: block; font-size: clamp(22px, 2vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.n27-type__r small { margin-right: 4px; color: var(--iw-muted); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.n27-type .n27-link { font-size: 16px; }
.n27-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px clamp(28px, 4vw, 64px); }
.n27 .n27-points h3 { margin-bottom: 10px; font-size: clamp(21px, 1.7vw, 25px); line-height: 1.2; }
.n27-points p { max-width: 44ch; color: var(--iw-muted); font-size: 17px; line-height: 1.55; }
.n27-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 30px !important; }
.n27-list li { padding: 13px 0; border-bottom: 1px solid var(--iw-line); font-size: 17px; line-height: 1.35; }
.n27-rubros li { border-bottom: 1px solid var(--iw-line); }
.n27-rubros a { display: block; padding: 22px 0; text-decoration: none; }
.n27-rubros li:first-child a { padding-top: 4px; }
.n27 .n27-rubros h3 { font-size: clamp(20px, 1.7vw, 25px); line-height: 1.2; }
.n27-rubros a:hover h3 { color: var(--iw-accent); }
.n27-rubros p { margin-top: 6px !important; color: var(--iw-muted); font-size: 17px; line-height: 1.5; }
.n27-links { display: flex; flex-wrap: wrap; gap: 6px 32px; margin-top: 22px; }
.n27-sec--soft + .n27-sec--line { padding-top: var(--n-gap); }

/* ---------- Contacto ---------- */
.n27-contact { padding: var(--n-gap) 0; background: var(--iw-surface); }
.n27 .n27-contact h2 { font-size: clamp(38px, 5vw, 74px); line-height: 1; }
.n27-data { display: grid; gap: 20px; margin-top: 38px !important; }
.n27-data a, .n27-data b { font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; letter-spacing: -.02em; text-decoration: none; overflow-wrap: anywhere; }
.n27-data a:hover { color: var(--iw-accent); }
.n27-data span { display: block; margin-top: 2px; color: var(--iw-muted); font-size: 15px; }
html .n27 .n27-form { display: grid; gap: 22px; max-width: none; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
.n27 .n27-form .form-group { margin: 0; }
html .n27 .n27-form .form-group label { display: block; margin-bottom: 8px; font: 500 16px/1.3 var(--iw-display); letter-spacing: 0; text-transform: none; color: var(--iw-text) !important; }
html .n27 .n27-form .form-group input, html .n27 .n27-form .form-group textarea {
  width: 100%; padding: 15px 16px !important; border: 1px solid #8b807b !important; border-radius: 6px !important;
  background: #fff !important; color: var(--iw-text) !important; font: 400 17px/1.4 var(--iw-display);
}
html .n27 .n27-form .form-group :is(input, textarea):focus { border-color: var(--iw-accent) !important; outline: 2px solid var(--iw-accent); outline-offset: 0; }
html .n27 .n27-form ::placeholder { color: #766b66 !important; opacity: 1; }
.n27-form .iw-btn { height: 54px; padding: 0 28px; font-size: 16px; }

/* ---------- Antes y ahora ---------- */
.n27-vs li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); gap: 12px clamp(24px, 4vw, 64px); padding: 26px 0; border-top: 1px solid var(--iw-line); }
.n27 .n27-vs h3 { font-size: clamp(20px, 1.7vw, 25px); line-height: 1.2; }
.n27-vs p { color: var(--iw-muted); font-size: 17px; line-height: 1.5; }
.n27-vs p:last-child { color: var(--iw-text); }
.n27-vs b { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; }
.n27-vs p:last-child b { color: var(--iw-accent); }
.n27-points--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Pantallas chicas ---------- */
@media (max-width: 980px) {
  .n27-two, .n27-clients { grid-template-columns: minmax(0, 1fr); }
  .n27-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n27-svc h3 { grid-column: 1 / -1; }
  .n27-prods { grid-template-columns: minmax(0, 1fr); }
  .n27 .n27-prods h3 { max-width: none; }
  .n27-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n27-quotes { grid-template-columns: minmax(0, 1fr); }
  .n27-quotes--more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n27-type { grid-template-columns: minmax(0, 1fr) auto; }
  .n27-type p { grid-column: 1 / -1; grid-row: 2; }
  .n27-vs li { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n27-vs h3 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .n27-hero { padding-top: 112px; }
  .n27 .n27-h1 { font-size: clamp(38px, 11.4vw, 54px); line-height: 1; }
  .n27-lead { flex-basis: 100%; }
  .n27-ctas { width: 100%; }
  .n27-ctas .iw-btn, .n27-form .iw-btn { width: 100%; justify-content: center; }
  .n27-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .n27-works, .n27-svc, .n27-type, .n27-points, .n27-vs li, .n27-inline, .n27-steps, .n27-quotes--more, .n27-prods > div { grid-template-columns: minmax(0, 1fr); }
  .n27-news a { grid-template-columns: minmax(0, 1fr); }
  .n27-type p { grid-row: auto; }
  .n27-type__r { text-align: left; }
  .n27-list { gap: 0 18px; }
  .n27-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); }
  .n27-steps li::before { grid-row: 1 / 3; margin: 0; }
  .n27 .n27-faq p { padding-right: 0; }
  .n27-svc li a, .n27-inline a { padding: 9px 0; }
}
@media (prefers-reduced-motion: reduce) { .n27 *, .n27 *::before { transition: none !important; } }

/* ===== Casos (v7) ===== */
.n27-facts--case { padding-top: 0 !important; margin-top: clamp(28px, 4vw, 56px); gap: 28px 32px; }
.n27-facts--case b { font-size: clamp(18px, 1.5vw, 21px); letter-spacing: -.015em; line-height: 1.25; }
.n27-list--tags { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0 !important; }
.n27-list--tags li b { display: block; margin-bottom: 2px; color: var(--iw-muted); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.n27-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; margin-top: 8px; }
.n27-shots figure { display: flex; flex-direction: column; margin: 0; }
.case-gallery__zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--iw-line); background: #fff; cursor: zoom-in; line-height: 0; overflow: hidden; }
.case-gallery__zoom img { display: block; width: 100%; height: auto; }
.n27-shots figcaption { padding-top: 14px; }
.n27-shots figcaption strong { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 500; }
.n27-shots figcaption span { display: block; color: var(--iw-muted); font-size: 15px; line-height: 1.5; }
.case-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(10, 12, 16, .92); cursor: zoom-out; }
.case-lightbox[hidden] { display: none; }
.case-lightbox img { max-width: 100%; max-height: 100%; }
.case-lightbox__close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
@media (max-width: 700px) { .n27-list--tags { grid-template-columns: 1fr; } .case-lightbox { padding: 12px; } }
html .n27 .n27-form .form-group select { width: 100%; padding: 15px 16px !important; border: 1px solid #8b807b !important; border-radius: 6px !important; background: #fff !important; color: var(--iw-text) !important; font: 400 17px/1.4 var(--iw-display); }
html .n27 .n27-form .form-group select:focus { border-color: var(--iw-accent) !important; outline: 2px solid var(--iw-accent); outline-offset: 0; }
.n27-map { margin-top: 36px; border: 1px solid var(--iw-line); background: #fff; line-height: 0; }
.n27-map iframe { width: 100%; height: 320px; border: 0; }
.n27-steps:has(li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.n27-photo { margin-top: 36px; }
.n27-photo .n27-work__img { display: block; }
.n27-portrait { max-width: 340px; margin-top: 28px; border: 1px solid var(--iw-line); background: #fff; line-height: 0; }
.n27-portrait img { display: block; width: 100%; height: auto; }
.n27-points li > a { display: block; text-decoration: none; }
.n27-points li > a:hover h3 { color: var(--iw-accent); }
@media (max-width: 900px) { .n27-steps:has(li:nth-child(3):last-child) { grid-template-columns: 1fr; } }
.n27 .n27-maph { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.03em; margin-bottom: 12px; }
.n27-meta { margin-top: 10px; color: var(--iw-muted); font-size: 14px; letter-spacing: .02em; }
.n27-points li > a .n27-link { margin-top: 8px; }
.n27-filter { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 26px; }
.n27-filter a { padding: 8px 16px; border: 1px solid var(--iw-line-2); border-radius: 99px; font-size: 15px; text-decoration: none; }
.n27-filter a:hover { border-color: var(--iw-accent); color: var(--iw-accent); }
.n27-filter a.is-active { background: var(--iw-text); border-color: var(--iw-text); color: #fff; }
.n27-more { display: flex; justify-content: center; margin-top: 48px; }
/* Herramienta SEO (formulario en hero claro) */
html .n27-tool .seo-audit-form { display: flex; max-width: 720px; margin: 34px 0 0; padding: 6px; background: #fff; border: 1px solid #8b807b; border-radius: 10px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
html .n27-tool .seo-audit-form:focus-within { background: #fff; border-color: var(--iw-accent); box-shadow: none; transform: none; outline: 2px solid var(--iw-accent); }
html .n27-tool .seo-audit-form input { flex: 1; min-width: 0; padding: 0 18px; border: 0; background: transparent; color: var(--iw-text); font: 500 17px/1.3 var(--iw-display); outline: none; }
html .n27-tool .seo-audit-form button { height: 50px; padding: 0 24px; border-radius: 8px; }
.n27-tool .n27-toolnote { margin-top: 14px; color: var(--iw-muted); font-size: 15px; }
@media (max-width: 640px) { html .n27-tool .seo-audit-form .input-group { flex-direction: column; gap: 8px; } html .n27-tool .seo-audit-form input { height: 50px; } }
.n27-facts--case li { min-width: 0; }
.n27-facts--case b { overflow-wrap: anywhere; }

/* ===== Notas del blog y detalle de proyecto (v15) ===== */
.n27-metaline { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; color: var(--iw-muted); font-size: 15px; }
.n27-metaline a { text-decoration: underline; text-underline-offset: 4px; }
.n27-postcover { padding-bottom: clamp(24px, 3vw, 44px); }
.n27-postcover .n27-work__img { display: block; max-width: 1100px; margin: 0 auto; }
.n27-art { display: grid; grid-template-columns: 250px minmax(0, 740px); gap: clamp(40px, 6vw, 84px); justify-content: center; padding: clamp(40px, 5vw, 72px) 0; }
.n27-art__side { position: relative; }
.n27-art__sticky { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 6px; }
.n27-toc__t, .n27-share > span { display: block; margin-bottom: 14px; color: var(--iw-accent); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.n27-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--iw-line-2); }
.n27-toc a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; color: var(--iw-muted); font-size: 15px; line-height: 1.35; text-decoration: none; }
.n27-toc a:hover { color: var(--iw-text); border-left-color: var(--iw-accent); }
.n27-share { margin-top: 34px; }
.n27-share > div { display: flex; gap: 8px; }
.n27-share a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--iw-line-2); border-radius: 50%; color: var(--iw-muted); }
.n27-share a:hover { color: var(--iw-text); border-color: var(--iw-text); }
.n27-share svg { width: 16px; height: 16px; }
.post-content { color: var(--iw-text); font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.n27 .post-content > *:first-child { margin-top: 0; }
.n27 .post-content p { margin: 0 0 1.25em; max-width: none; }
.n27 .post-content h2 { margin: 2.1em 0 .6em; font-size: clamp(27px, 2.7vw, 38px); line-height: 1.12; scroll-margin-top: 100px; }
.n27 .post-content h3 { margin: 1.8em 0 .5em; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2; }
.n27 .post-content h4 { margin: 1.5em 0 .4em; font-size: 19px; font-weight: 600; }
.n27 .post-content ul, .n27 .post-content ol { margin: 0 0 1.4em; padding-left: 1.3em; list-style: revert; }
.n27 .post-content li { margin: 0 0 .5em; padding-left: .3em; }
.n27 .post-content li::marker { color: var(--iw-accent); }
.n27 .post-content a { text-decoration: underline; text-decoration-color: var(--iw-accent); text-underline-offset: 3px; }
.n27 .post-content a:hover { color: var(--iw-accent); }
.n27 .post-content blockquote { margin: 2em 0; padding: 2px 0 2px 24px; border-left: 3px solid var(--iw-accent); font-size: 1.15em; line-height: 1.5; }
.n27 .post-content blockquote p { margin: 0; }
.n27 .post-content hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--iw-line-2); }
.n27 .post-content img { display: block; max-width: 100%; height: auto; margin: 1.8em 0; border: 1px solid var(--iw-line); border-radius: 10px; }
.n27 .post-content figure { margin: 2em 0; } .n27 .post-content figure img { margin: 0; }
.n27 .post-content figcaption { margin-top: 10px; color: var(--iw-muted); font-size: 14px; }
.n27 .post-content iframe, .n27 .post-content video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 2em 0; border: 0; }
.n27 .post-content table { display: block; width: 100%; margin: 2em 0; overflow-x: auto; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.n27 .post-content th, .n27 .post-content td { padding: 12px 16px; border: 1px solid var(--iw-line-2); text-align: left; vertical-align: top; }
.n27 .post-content th { background: var(--iw-surface); font-weight: 600; }
.n27 .post-content code { padding: 2px 6px; background: var(--iw-surface); font-size: .88em; }
.n27 .post-content pre { margin: 1.8em 0; padding: 18px; overflow-x: auto; background: #1c1412; color: #f4efec; font-size: 14px; line-height: 1.6; }
.n27 .post-content pre code { padding: 0; background: none; color: inherit; }
.n27 .post-content .ql-align-center { text-align: center; } .n27 .post-content .ql-align-right { text-align: right; } .n27 .post-content .ql-align-justify { text-align: justify; }
.n27 .post-content .ql-indent-1 { padding-left: 2em; }
.n27-artfaq { margin-top: 56px; }
.n27-artfaq h2 { margin-bottom: 18px; font-size: clamp(27px, 2.7vw, 38px); }
.n27-svccta { display: grid; gap: 18px; margin-top: 56px; padding: 28px; border: 1px solid var(--iw-line-2); background: var(--iw-surface); }
.n27-svccta strong { display: block; margin: 4px 0 8px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.n27-svccta span.n27-k { color: var(--iw-accent); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.n27-svccta p { color: var(--iw-muted); }
.n27-svccta .n27-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.n27-author { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 24px; align-items: start; }
.n27-author__av { position: relative; display: grid; place-items: center; width: 88px; height: 88px; overflow: hidden; border-radius: 50%; background: var(--iw-surface); font-weight: 600; }
.n27-author__av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.n27-author h3 { margin: 4px 0 8px; font-size: 26px; }
.n27-author .n27-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.n27-proj { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(36px, 5vw, 72px); padding: clamp(40px, 5vw, 72px) 0; }
.n27-proj__side { display: grid; gap: 28px; align-content: start; }
.n27-proj__card { padding-top: 20px; border-top: 1px solid var(--iw-line-2); }
.n27-proj__card h2 { margin-bottom: 14px; font-size: 20px; }
.n27-proj__card ul { display: grid; gap: 10px; }
.n27-proj__card li { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; }
.n27-proj__card li span:first-child { color: var(--iw-muted); }
.n27-proj__card .iw-btn { margin-top: 18px; }
@media (max-width: 900px) {
  .n27-art, .n27-proj { grid-template-columns: 1fr; }
  .n27-art__sticky { position: static; max-height: none; }
  .n27-author { grid-template-columns: 1fr; }
}
.n27 .n27-k { color: var(--iw-accent); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Espacios: ninguna línea ni bloque pegado al texto de al lado ---------- */
/* La ficha / cifras que viene justo debajo de la portada de una página */
.n27-hero + .n27-sec--line:has(> .iw-wrap > .n27-facts) { padding-top: clamp(44px, 5vw, 72px); }
/* Un párrafo seguido de tarjetas, listas o pasos: aire entre los dos */
.n27 p + :is(.n27-works, .n27-work, .n27-points, .n27-steps, .n27-rubros, .n27-prices, .n27-quotes, .n27-facts, .n27-shots) { margin-top: clamp(28px, 3vw, 44px); }
/* Una lista (con líneas) seguida de un párrafo */
.n27 :is(ul, ol, dl) + :is(p, .n27-p, .n27-note) { margin-top: clamp(22px, 2.4vw, 32px); }
.n27 .n27-hero__row + .n27-facts { margin-top: clamp(40px, 4.5vw, 64px); }
.n27 .n27-works + :is(ul, ol, dl, p, .n27-points, .n27-list) { margin-top: clamp(40px, 5vw, 72px); }
/* Imagen de portada de proyecto / nota: separada del encabezado que tiene arriba */
.n27 .n27-postcover { padding-top: clamp(28px, 3.4vw, 48px); }
/* Bloque de dos columnas seguido de otra lista o grilla */
.n27 .n27-two + :is(ul, ol, dl, p, div, .n27-points, .n27-list, .n27-works, .n27-steps, .n27-rubros, .n27-quotes, .n27-prices, .n27-facts) { margin-top: clamp(48px, 5.5vw, 80px); }
/* La franja roja y lo que viene después: la sección con línea arriba recupera su aire */
.fx-ads + .n27-sec--line { padding-top: var(--n-gap); }
.fx-ads + .n27-sec--line::before { display: none; }
/* Bloques grandes seguidos de otro bloque: siempre con aire */
.n27 :is(.n27-cover, .n27-rubros, .n27-points, .n27-steps, .n27-quotes, .n27-prices, .n27-shots) + :is(.n27-facts, .n27-prods, .n27-points, .n27-works, .n27-rubros, .n27-steps, .n27-quotes, .n27-prices, .n27-list, .n27-cover) { margin-top: clamp(40px, 5vw, 72px); }
/* Título seguido de su bajada, fuera de la portada con columnas */
.n27 .iw-wrap > .n27-h1 + .n27-lead { margin-top: clamp(20px, 2.4vw, 32px); }
.n27 .seo-audit-form { padding-top: 20px; }
/* Portada de página: aire debajo de los botones, antes de la sección que sigue */
.n27-hero:not(.n27-hero--home) { padding-bottom: clamp(48px, 6vw, 88px); }
/* Portada: proyecto de muestra con el detalle y el «Ver el proyecto» debajo de la imagen */
.n27 .n27-cover__img { display: block; text-decoration: none; }
.n27 .n27-cover__cap { display: grid; justify-items: start; gap: 10px; padding-top: 22px; max-width: 62ch; }
.n27 .n27-cover__cap p { margin: 0; color: var(--iw-muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.n27 .n27-cover__cap .n27-link { margin-top: 6px; }
.n27 .n27-cover__cap .n27-link span { color: inherit; }
@media (min-width: 981px) {
  .n27 .n27-cover { display: block; }
  .n27 .n27-cover .n27-cover__img { grid-row: auto; }
  .n27 .n27-cover__cap { align-self: auto; padding-top: 24px; }
}
