/* ==========================================================
   IDEAS WEB 2026 — Páginas internas (blog, nota, proyectos, proyecto)
   Se carga junto con iw-home.css (que aporta los componentes .h-*).
   ========================================================== */

/* ---------- Hero de página interna ---------- */
.p-hero { position: relative; padding: 170px 0 70px; overflow: hidden; border-bottom: 1px solid var(--iw-line); }
.p-hero__glow { position: absolute; width: 60vmax; height: 60vmax; right: -22vmax; top: -30vmax; border-radius: 50%; background: radial-gradient(circle, rgba(247, 59, 32, .28), rgba(247, 59, 32, 0) 60%); filter: blur(20px); pointer-events: none; }
.p-hero .iw-wrap { position: relative; z-index: 1; }
.p-hero__title { margin: 0; max-width: 16ch; font-size: clamp(44px, 8vw, 128px); line-height: .92; letter-spacing: -.055em; font-weight: 600; color: var(--iw-text); }
.p-hero__title--md { max-width: 22ch; font-size: clamp(36px, 5.4vw, 84px); line-height: .98; letter-spacing: -.05em; }
.p-hero__lead { margin: 30px 0 0; max-width: 60ch; font-size: clamp(17px, 1.5vw, 21px); color: var(--iw-muted); }
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 30px; font-family: var(--iw-mono); font-size: 12px; letter-spacing: .04em; color: var(--iw-muted); }
.p-meta a { color: var(--iw-text); }
.p-meta a:hover { color: var(--iw-accent); }
.p-back { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--iw-line-2); border-radius: 99px; color: var(--iw-text); }
.p-back:hover { border-color: var(--iw-text); }

/* ---------- Filtros / temas ---------- */
.p-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.p-filter a, .p-filter button { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 1px solid var(--iw-line-2); border-radius: 99px; background: none; color: var(--iw-muted); font: inherit; font-size: 14px; cursor: pointer; transition: .25s; }
.p-filter a:hover, .p-filter button:hover { color: var(--iw-text); border-color: var(--iw-text); }
.p-filter .is-active { background: var(--iw-text); color: var(--iw-bg); border-color: var(--iw-text); }
.p-topics { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: end; padding-bottom: 40px; margin-bottom: 50px; border-bottom: 1px solid var(--iw-line); }
.p-topics h2 { font-size: clamp(26px, 2.6vw, 38px) !important; letter-spacing: -.035em !important; font-weight: 600 !important; margin: 10px 0 10px !important; }
.p-topics p { margin: 0; color: var(--iw-muted); font-size: 15px; }

/* ---------- Grilla de notas ---------- */
.p-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 24px; }
.p-post { display: flex; flex-direction: column; gap: 14px; }
.p-post__img { display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--iw-line); background: var(--iw-surface); }
.p-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--iw-ease); }
.p-post:hover .p-post__img img { transform: scale(1.05); }
.p-post h2 { font-size: 22px !important; line-height: 1.2; letter-spacing: -.03em !important; font-weight: 600 !important; }
.p-post h2 a:hover { color: var(--iw-accent); }
.p-post p { margin: 0; font-size: 15px; color: var(--iw-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Primera nota destacada */
.p-post--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-bottom: 50px; border-bottom: 1px solid var(--iw-line); }
.p-post--featured .p-post__img { aspect-ratio: 16 / 9; }
.p-post--featured .p-post__body { display: flex; flex-direction: column; gap: 16px; }
.p-post--featured h2 { font-size: clamp(28px, 3.2vw, 48px) !important; line-height: 1.02; letter-spacing: -.045em !important; }
.p-post--featured p { -webkit-line-clamp: 4; font-size: 17px; }
.p-more-wrap { display: flex; justify-content: center; margin-top: 60px; }
.p-more-wrap .iw-btn[aria-busy="true"] { opacity: .5; pointer-events: none; }
.p-empty { padding: 60px 0; color: var(--iw-muted); font-size: 18px; }

/* ---------- Nota (post.php) ---------- */
.p-cover { margin: -1px 0 0; padding: 50px 0 0; }
.p-cover__in { border-radius: 24px; overflow: hidden; border: 1px solid var(--iw-line); background: var(--iw-surface); aspect-ratio: 16 / 8; }
.p-cover__in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-article { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 70px; justify-content: center; padding: 70px 0 40px; }
.p-article__aside { position: relative; }
/* Índice + compartir: un solo bloque fijo (no se superponen) */
.p-article__sticky { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 6px; }
.p-toc { position: static; }
.p-toc__title { display: block; margin-bottom: 14px; font-family: var(--iw-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--iw-accent); }
.p-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--iw-line); counter-reset: toc; }
.p-toc li { counter-increment: toc; }
.p-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; line-height: 1.35; color: var(--iw-muted); transition: color .2s, border-color .2s; }
.p-toc a::before { content: counter(toc, decimal-leading-zero) "  "; font-family: var(--iw-mono); font-size: 11px; color: var(--iw-muted-2); }
.p-toc a:hover, .p-toc a.is-active { color: var(--iw-text); border-left-color: var(--iw-accent); }
.p-share { display: flex; flex-direction: column; gap: 10px; margin-top: 36px; }
.p-share span { font-family: var(--iw-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--iw-muted); }
.p-share div { display: flex; gap: 8px; }
.p-share a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--iw-line-2); display: flex; align-items: center; justify-content: center; color: var(--iw-muted); transition: .25s; }
.p-share a:hover { color: var(--iw-text); border-color: var(--iw-text); }
.p-share svg { width: 16px; height: 16px; }
.p-article .post-content { max-width: 720px; }
.p-article .post-content > *:first-child { margin-top: 0; }
.p-article .post-content p, .p-article .post-content li { color: #d8d4ce; }
.p-article .post-content h2 { scroll-margin-top: 100px; }

/* CTA contextual al servicio (dentro de la nota) */
.p-svc-cta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin: 60px 0 0; padding: 30px 32px; border: 1px solid rgba(247, 59, 32, .35); border-radius: 22px; background: linear-gradient(135deg, rgba(247, 59, 32, .14), rgba(247, 59, 32, .03)); }
.p-svc-cta .iw-mono { color: var(--iw-accent-2); font-size: 11px; }
.p-svc-cta strong { display: block; margin: 8px 0 6px; font-size: 24px; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; color: var(--iw-text); }
.p-svc-cta p { margin: 0; max-width: 46ch; color: var(--iw-muted); font-size: 15px; }
.p-svc-cta__actions { display: flex; flex-direction: column; gap: 10px; }

/* Autor (E-E-A-T) */
.p-author { display: grid; grid-template-columns: 88px 1fr; gap: 26px; align-items: start; padding: 34px; border: 1px solid var(--iw-line); border-radius: 24px; background: var(--iw-surface); }
.p-author__avatar { position: relative; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: var(--iw-surface-2); border: 1px solid var(--iw-line-2); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 600; color: var(--iw-accent); }
.p-author__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-author h4 { margin: 8px 0 10px; font-size: 26px; letter-spacing: -.03em; font-weight: 600; color: var(--iw-text); }
.p-author p { margin: 0 0 18px; color: var(--iw-muted); font-size: 15.5px; }
.p-author__links { display: flex; flex-wrap: wrap; gap: 10px; }

/* Servicios relacionados + notas relacionadas */
.p-related { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: start; }
.p-related h3 { margin: 10px 0 12px; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.035em; font-weight: 600; color: var(--iw-text); }
.p-related p { margin: 0; color: var(--iw-muted); }
.p-block-title { margin: 10px 0 34px !important; font-size: clamp(28px, 3.4vw, 52px) !important; line-height: 1; letter-spacing: -.045em !important; font-weight: 600 !important; }
.p-posts--related h4 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.03em; font-weight: 600; color: var(--iw-text); }
.p-posts--related h4 a:hover { color: var(--iw-accent); }
.p-crumbs { padding: 26px 0; border-top: 1px solid var(--iw-line); font-size: 13px; color: var(--iw-muted); }
.p-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.p-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--iw-muted-2); }
.p-crumbs a:hover { color: var(--iw-text); }
.p-crumbs [aria-current] { color: var(--iw-text); }

/* ---------- Proyectos (listado) ---------- */
.p-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; }
.p-intro p { margin: 0; color: var(--iw-muted); font-size: 17px; }
.p-cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.p-case { display: flex; flex-direction: column; gap: 14px; min-height: 320px; padding: 26px 24px; border: 1px solid var(--iw-line); border-radius: 22px; background: var(--iw-bg); transition: border-color .3s, background .3s, transform .5s var(--iw-ease); }
.p-case:hover { border-color: var(--iw-line-2); background: var(--iw-surface); transform: translateY(-4px); }
.p-case strong { font-size: 24px; line-height: 1.08; letter-spacing: -.035em; font-weight: 600; color: var(--iw-text); }
.p-case p { flex: 1; margin: 0; font-size: 14.5px; color: var(--iw-muted); }
.p-case__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.p-case em { font-style: normal; font-size: 14px; color: var(--iw-text); }
.p-case:hover em { color: var(--iw-accent); }
.p-cases-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 90px 0 30px; }
.p-cases-head h3 { margin: 10px 0 0; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.035em; font-weight: 600; color: var(--iw-text); max-width: 26ch; }
.p-grid-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.h-work .h-work__t { font-size: clamp(24px, 2.9vw, 42px); }
.h-work__client { display: block; margin-top: 8px; font-family: var(--iw-mono); font-size: 11px; color: var(--iw-muted-2); }

/* ---------- Proyecto (detalle) ---------- */
.p-proj { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 70px; padding: 70px 0 30px; }
.p-proj__side { display: flex; flex-direction: column; gap: 16px; }
.p-proj__side-in { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.p-side-card { padding: 26px; border: 1px solid var(--iw-line); border-radius: 22px; background: var(--iw-surface); }
.p-side-card h3 { margin: 0 0 16px; font-family: var(--iw-mono); font-size: 11px !important; font-weight: 500 !important; letter-spacing: .1em !important; text-transform: uppercase; color: var(--iw-accent); }
.p-side-card ul { list-style: none; margin: 0; padding: 0; }
.p-side-card li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--iw-line); font-size: 15px; }
.p-side-card li:first-child { border-top: 0; padding-top: 0; }
.p-side-card li span:first-child { color: var(--iw-muted); }
.p-side-card li a { display: flex; justify-content: space-between; width: 100%; color: var(--iw-text); }
.p-side-card li a::after { content: "↗"; color: var(--iw-muted-2); }
.p-side-card li a:hover { color: var(--iw-accent); }
.p-side-card .iw-btn { width: 100%; justify-content: center; margin-top: 18px; }
.p-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--iw-line); border: 1px solid var(--iw-line); border-radius: 24px; overflow: hidden; }
.p-steps__item { display: flex; flex-direction: column; gap: 14px; padding: 34px 30px; background: var(--iw-bg); }
.p-steps__n { font-family: var(--iw-mono); font-size: 12px; color: var(--iw-accent); }
.p-steps__item h3 { margin: 0; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -.045em; font-weight: 600; color: var(--iw-text); }
.p-steps__item p { margin: 0; color: var(--iw-muted); font-size: 15.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .p-article { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .p-article__sticky { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .p-toc { position: static; padding: 22px; border: 1px solid var(--iw-line); border-radius: 18px; background: var(--iw-surface); }
  .p-cases { grid-template-columns: 1fr 1fr; }
  .p-proj { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .p-proj__side-in { position: static; }
}
@media (max-width: 860px) {
  .p-hero { padding: 140px 0 50px; }
  .p-topics, .p-intro, .p-related, .p-post--featured { grid-template-columns: 1fr; }
  .p-posts { grid-template-columns: 1fr; }
  .p-svc-cta { grid-template-columns: 1fr; }
  .p-steps { grid-template-columns: 1fr; }
  .p-author { grid-template-columns: 1fr; }
  .p-cases-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .p-cases { grid-template-columns: 1fr; }
  .p-cover__in { aspect-ratio: 16 / 10; }
}

/* ==========================================================
   Tipografía de lectura para el HTML que viene del gestor
   (notas del blog y descripción de proyectos). Especificidad .h .post-content
   para ganarle a los estilos generales de la home y al CSS legado.
   ========================================================== */
.h .post-content { color: #d8d4ce; font-size: 18px; line-height: 1.75; overflow-wrap: break-word; }
.h .post-content > * { margin-top: 0; }
.h .post-content p { margin: 0 0 1.25em; }
.h .post-content h2 { margin: 2.2em 0 .7em; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.035em; font-weight: 600; color: var(--iw-text); }
.h .post-content h3 { margin: 1.9em 0 .6em; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; color: var(--iw-text); }
.h .post-content h4 { margin: 1.6em 0 .5em; font-size: 19px; font-weight: 600; color: var(--iw-text); }
.h .post-content > h2:first-child, .h .post-content > h3:first-child { margin-top: 0; }
.h .post-content ul, .h .post-content ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.h .post-content li { margin: 0 0 .5em; padding-left: .3em; }
.h .post-content li > ul, .h .post-content li > ol { margin: .5em 0 0; }
.h .post-content blockquote { margin: 2em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--iw-accent); background: none; font-family: var(--iw-serif); font-style: italic; font-size: 1.4em; line-height: 1.35; color: var(--iw-text); }
.h .post-content blockquote p { margin: 0; }
.h .post-content hr { margin: 2.6em 0; border: 0; border-top: 1px solid var(--iw-line); }
.h .post-content img { max-width: 100%; height: auto; margin: 1.8em 0; border-radius: 16px; border: 1px solid var(--iw-line); }
.h .post-content figure { margin: 2em 0; }
.h .post-content figure img { margin: 0; }
.h .post-content figcaption { margin-top: 10px; font-size: 14px; color: var(--iw-muted); }
.h .post-content iframe, .h .post-content .ql-video, .h .post-content video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 2em 0; border: 0; border-radius: 16px; }
.h .post-content table { width: 100%; margin: 2em 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--iw-line); border-radius: 14px; overflow: hidden; font-size: 15.5px; line-height: 1.5; display: block; overflow-x: auto; }
.h .post-content table tbody, .h .post-content table thead { display: table; width: 100%; border-collapse: collapse; }
.h .post-content th, .h .post-content td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--iw-line); }
.h .post-content th { background: var(--iw-surface-2); color: var(--iw-text); font-family: var(--iw-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.h .post-content tr:last-child td { border-bottom: 0; }
.h .post-content tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.h .post-content code { padding: 2px 6px; border-radius: 6px; background: var(--iw-surface-2); font-family: var(--iw-mono); font-size: .86em; color: var(--iw-text); }
.h .post-content pre { margin: 1.8em 0; padding: 20px; border: 1px solid var(--iw-line); border-radius: 14px; background: #070707; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.h .post-content pre code { padding: 0; background: none; }
.h .post-content a { color: var(--iw-accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(247, 59, 32, .45); }
.h .post-content a:hover { text-decoration-color: var(--iw-accent-2); }
.h .post-content strong, .h .post-content b { color: var(--iw-text); font-weight: 600; }
/* Alineaciones que genera el editor (Quill) */
.h .post-content .ql-align-center { text-align: center; }
.h .post-content .ql-align-right { text-align: right; }
.h .post-content .ql-align-justify { text-align: justify; }
.h .post-content .ql-indent-1 { padding-left: 2em; }
.h .post-content .ql-indent-2 { padding-left: 4em; }
@media (max-width: 600px) { .h .post-content { font-size: 17px; } }
/* Colores fijos que dejó el editor (p. ej. color: rgb(45,50,56)) serían invisibles sobre fondo oscuro */
.h .post-content [style*="color"] { color: inherit !important; background-color: transparent !important; }

/* Hero a pantalla completa (404, calificanos): el contenido ocupa todo el ancho, alineado a la izquierda */
.p-hero > .iw-wrap { width: 100%; }

/* Preguntas frecuentes de cada nota (cargadas desde el panel) */
.h .p-post-faq { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--iw-line); }
.h .p-post-faq .iw-mono { display: block; margin-bottom: 14px; color: var(--iw-accent); }
.h .p-post-faq h2 { margin: 0 0 22px; font-size: clamp(28px, 2.8vw, 40px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.h .p-post-faq .h-qa summary { font-size: clamp(16px, 1.3vw, 19px); }

/* ==================== Sobre nosotros ==================== */
.h .p-about-story { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.h .p-about-story .h-h2 { margin-bottom: 26px; }
.h .p-about-tldr { margin: 0 0 26px; padding: 22px 24px; border-left: 2px solid var(--iw-accent); background: var(--iw-surface); border-radius: 0 16px 16px 0; color: var(--iw-text); font-size: 17px; line-height: 1.6; }
.h .p-about-photo { position: sticky; top: 110px; margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--iw-line); aspect-ratio: 4 / 5; }
.h .p-about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--iw-ease); }
.h .p-about-photo:hover img { transform: scale(1.05); }
.h .p-about-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11, 11, 11, .85)); pointer-events: none; }
.h .p-about-photo figcaption { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.h .p-about-photo figcaption .iw-mono { color: var(--iw-accent); font-size: 11px; }
.h .p-about-photo figcaption strong { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.h .p-about-geo { grid-template-columns: repeat(3, 1fr); }
.h .p-about-leader { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.h .p-about-leader__img { position: relative; margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--iw-line); background: var(--iw-surface); aspect-ratio: 1 / 1; }
.h .p-about-leader__img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--iw-ease), transform .9s var(--iw-ease); }
.h .p-about-leader__img:hover img { filter: grayscale(0); transform: scale(1.03); }
.h .p-about-leader__role { margin: 14px 0 26px; font-size: 12px; color: var(--iw-accent); }
.h .p-about-leader .h-p { font-size: 19px; max-width: 52ch; }
.h .p-about-nums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--iw-line); border-bottom: 1px solid var(--iw-line); }
.h .p-about-num { display: flex; flex-direction: column; gap: 18px; padding: 44px 28px 40px; border-left: 1px solid var(--iw-line); }
.h .p-about-num:first-child { border-left: 0; padding-left: 0; }
.h .p-about-num__n { font-size: clamp(56px, 7vw, 112px); line-height: .85; letter-spacing: -.06em; font-weight: 600; font-variant-numeric: tabular-nums; }
.h .p-about-num__n sup { font-size: .38em; margin-left: 4px; color: var(--iw-accent); vertical-align: top; letter-spacing: 0; }
.h .p-about-num .iw-mono { font-size: 11px; color: var(--iw-muted); }
.h #numeros { padding-top: clamp(40px, 5vw, 70px); padding-bottom: clamp(40px, 5vw, 70px); }
@media (max-width: 960px) {
  .h .p-about-story, .h .p-about-leader { grid-template-columns: 1fr; }
  .h .p-about-photo { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .h .p-about-leader__img { max-width: 420px; }
  .h .p-about-geo { grid-template-columns: 1fr; }
  .h .p-about-nums { grid-template-columns: repeat(2, 1fr); }
  .h .p-about-num:nth-child(3) { border-left: 0; padding-left: 0; }
  .h .p-about-num:nth-child(n+3) { border-top: 1px solid var(--iw-line); }
}
@media (max-width: 520px) {
  .h .p-about-num { padding: 30px 16px 28px; }
  .h .p-about-num__n { font-size: 52px; }
}
.h.about-page .h-contact__big { font-size: clamp(40px, 5.2vw, 80px); }

/* ==================== Servicios con el diseño nuevo ==================== */
.h .p-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; font-family: var(--iw-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--iw-muted-2); }
.h .p-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--iw-line-2); }
.h .p-crumbs a { color: var(--iw-muted); text-decoration: none; }
.h .p-crumbs a:hover { color: var(--iw-text); }
.h .p-crumbs [aria-current] { color: var(--iw-text); }
.h .p-stats3 { grid-template-columns: repeat(3, 1fr); }
.h .p-method4 { grid-template-columns: repeat(4, 1fr); }
.h .p-method4 .h-step { padding-right: 28px; }
.h .p-method4 .h-step h3 { font-size: clamp(22px, 2vw, 30px); }

/* Tipos de app: lista + teléfono */
.h .p-apps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(40px, 6vw, 110px); align-items: center; }
.h .p-apps__list { border-top: 1px solid var(--iw-line); }
.h .p-app { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--iw-line); cursor: pointer; outline: none; }
.h .p-app::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--iw-accent); transition: width .8s var(--iw-ease); }
.h .p-app.is-on::before { width: 100%; }
.h .p-app__n { padding-top: 10px; font-size: 12px; color: var(--iw-muted-2); transition: color .3s; }
.h .p-app h3 { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; color: var(--iw-muted-2); transition: color .35s, transform .5s var(--iw-ease); }
.h .p-app p { margin: 0; max-width: 54ch; color: var(--iw-muted); font-size: 15.5px; opacity: .55; transition: opacity .35s; }
.h .p-app.is-on h3 { color: var(--iw-text); transform: translateX(10px); }
.h .p-app.is-on p { opacity: 1; }
.h .p-app.is-on .p-app__n { color: var(--iw-accent); }
.h .p-app:focus-visible h3 { text-decoration: underline; text-decoration-color: var(--iw-accent); text-underline-offset: 6px; }
.h .p-apps__device { position: relative; display: flex; justify-content: center; }
.h .p-apps__device::before { content: ""; position: absolute; width: 130%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(247, 59, 32, .22), transparent 62%); pointer-events: none; }

/* Teléfono dibujado con código */
.h .p-phone { position: relative; width: min(100%, 300px); aspect-ratio: 9 / 19.2; padding: 10px; border-radius: 46px; background: linear-gradient(160deg, #2b2a29, #121212 55%); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 50px 100px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .04); }
.h .p-phone--sm { width: min(100%, 270px); }
.h .p-phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 37px; background: #0e0e0e; }
.h .p-phone__notch { position: absolute; top: 9px; left: 50%; z-index: 3; width: 88px; height: 24px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.h .p-scr { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 11px; padding: 46px 16px 16px; font-size: 12px; line-height: 1.35; color: var(--iw-text); opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .45s, transform .6s var(--iw-ease); }
.h .p-scr.is-on { opacity: 1; transform: none; }
.h .ps-status { position: absolute; top: 14px; left: 22px; right: 22px; display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 600; }
.h .ps-status__i { display: flex; gap: 3px; align-items: flex-end; }
.h .ps-status__i i { width: 3px; background: var(--iw-text); border-radius: 1px; }
.h .ps-status__i i:nth-child(1) { height: 5px; } .h .ps-status__i i:nth-child(2) { height: 7px; } .h .ps-status__i i:nth-child(3) { height: 9px; }
.h .ps-eyebrow { font-family: var(--iw-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--iw-accent); }
.h .ps-title { margin-top: -6px; font-size: 24px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.h .ps-mut { color: var(--iw-muted); font-size: 11px; }
.h .ps-card { display: flex; flex-direction: column; gap: 7px; padding: 12px; border-radius: 16px; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, .06); }
.h .ps-card--accent { background: linear-gradient(135deg, rgba(247, 59, 32, .22), rgba(247, 59, 32, .05)); border-color: rgba(247, 59, 32, .35); }
.h .ps-row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.h .ps-bar { height: 5px; border-radius: 99px; background: #2a2a2a; overflow: hidden; }
.h .ps-bar i { display: block; height: 100%; border-radius: 99px; background: var(--iw-accent); }
.h .ps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.h .ps-list li { display: flex; align-items: center; gap: 9px; padding: 8px 2px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 11.5px; color: var(--iw-muted); }
.h .ps-list li::before { content: ""; flex: 0 0 14px; height: 14px; border-radius: 50%; border: 1.5px solid #3a3a3a; }
.h .ps-list li.is-done { color: var(--iw-text); }
.h .ps-list li.is-done::before { background: var(--iw-accent); border-color: var(--iw-accent); box-shadow: inset 0 0 0 3px #0e0e0e; }
.h .ps-list li.is-now { color: var(--iw-text); font-weight: 600; }
.h .ps-list li.is-now::before { border-color: var(--iw-accent); }
.h .ps-list em { margin-left: auto; font-style: normal; font-weight: 400; font-size: 9.5px; font-family: var(--iw-mono); color: var(--iw-accent); }
.h .ps-tabs { margin-top: auto; display: flex; justify-content: space-between; padding: 10px 6px 2px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 9.5px; color: var(--iw-muted-2); }
.h .ps-tabs .is-on { color: var(--iw-text); font-weight: 600; }
.h .ps-pill { align-self: flex-start; padding: 2px 8px; border-radius: 99px; background: var(--iw-accent); color: #fff; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.h .ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.h .ps-tile { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, .06); font-size: 11.5px; font-weight: 500; }
.h .ps-tile i { font-style: normal; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(247, 59, 32, .15); color: var(--iw-accent); font-size: 13px; }
.h .ps-note { flex-direction: row; align-items: center; gap: 9px; font-size: 11px; color: var(--iw-muted); }
.h .ps-dot { flex: 0 0 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.h .ps-grid--shop { gap: 9px; }
.h .ps-prod { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--iw-muted); }
.h .ps-prod b { color: var(--iw-text); font-size: 12px; }
.h .ps-art { display: block; aspect-ratio: 1; margin-bottom: 5px; border-radius: 14px; background: #1c1c1c; position: relative; overflow: hidden; }
.h .ps-art::after { content: ""; position: absolute; left: 22%; right: 22%; top: 22%; bottom: 22%; border-radius: 12px; }
.h .ps-art--1::after { background: linear-gradient(160deg, #f73b20, #8c1d0f); border-radius: 14px 14px 20px 20px; }
.h .ps-art--2::after { background: linear-gradient(160deg, #e9e6e1, #8f8a84); border-radius: 40% 60% 20% 20%; top: 42%; }
.h .ps-art--3::after { background: radial-gradient(circle at 50% 35%, #ffd8c8, #f73b20 60%, #5c1509); border-radius: 50% 50% 10px 10px; }
.h .ps-art--4::after { background: linear-gradient(160deg, #cfcac4, #6e6a65); border-radius: 8px 8px 18px 18px; left: 30%; right: 30%; top: 30%; }
.h .ps-btn { margin-top: auto; padding: 12px; border-radius: 14px; background: var(--iw-accent); color: #fff; text-align: center; font-weight: 600; font-size: 12.5px; }
.h .ps-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.h .ps-days span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 12px; background: #1a1a1a; color: var(--iw-muted); font-size: 9.5px; }
.h .ps-days b { color: var(--iw-text); font-size: 15px; }
.h .ps-days .is-on { background: var(--iw-accent); color: rgba(255, 255, 255, .8); }
.h .ps-days .is-on b { color: #fff; }
.h .ps-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.h .ps-slots span { padding: 10px 0; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); text-align: center; font-size: 11.5px; font-weight: 500; }
.h .ps-slots .is-on { background: var(--iw-text); color: #0e0e0e; border-color: var(--iw-text); }
.h .ps-slots .is-off { color: var(--iw-muted-2); text-decoration: line-through; border-style: dashed; }
.h .ps-search { padding: 11px 14px; border-radius: 99px; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, .1); font-size: 11.5px; color: var(--iw-muted); }
.h .ps-search::before { content: "⌕ "; color: var(--iw-text); }
.h .ps-ai { background: linear-gradient(160deg, rgba(247, 59, 32, .16), #161616 70%); border-color: rgba(247, 59, 32, .3); font-size: 11.5px; color: var(--iw-muted); }
.h .ps-ai b { color: var(--iw-text); font-weight: 600; }
.h .ps-ai__h { color: var(--iw-accent); font-family: var(--iw-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.h .ps-src { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: #262626; color: var(--iw-text); font-size: 10px; }
.h .ps-src i { width: 10px; height: 10px; border-radius: 50%; background: var(--iw-accent); }
.h .ps-result b { font-size: 12.5px; color: #9fb8ff; font-weight: 500; }
.h .ps-lines { display: flex; flex-direction: column; gap: 5px; }
.h .ps-lines i { height: 5px; border-radius: 99px; background: #2a2a2a; }
.h .ps-lines i:nth-child(2) { width: 82%; } .h .ps-lines i:nth-child(3) { width: 64%; }
.h .p-feature-device { position: relative; z-index: 1; display: flex; justify-content: center; }

@media (max-width: 960px) {
  .h .p-apps { grid-template-columns: 1fr; }
  .h .p-apps__device { order: -1; }
  .h .p-phone { width: min(100%, 270px); }
  .h .p-stats3 { grid-template-columns: 1fr; }
  .h .p-method4 { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .h .p-method4 .h-method__line { display: none; }
}
@media (max-width: 560px) {
  .h .p-app { grid-template-columns: 44px 1fr; gap: 12px; padding: 24px 0; }
  .h .p-method4 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .h .p-scr, .h .p-app h3 { transition: none; } }
.h .p-hero .p-crumbs { padding: 0; border: 0; }
.h .ps-dot--acc { background: var(--iw-accent); } .h .ps-note b { color: var(--iw-text); font-weight: 600; }

/* ==================== Plantilla de servicios 2026 (convertidos) ==================== */
.h .p-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.h .p-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.h .p-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.h .p-intro-solo { max-width: 880px; }
.h .p-intro-solo .h-h2, .h .p-about-story .h-h2 { margin-bottom: 26px; }
.h .p-tags { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.h .p-tags span { padding: 10px 16px; border: 1px solid var(--iw-line-2); border-radius: 99px; font-size: 14px; color: var(--iw-text); background: rgba(255, 255, 255, .02); transition: border-color .3s, background .3s; }
.h .p-tags span:hover { border-color: var(--iw-accent); background: rgba(247, 59, 32, .08); }
.h .p-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 0; }
.h .p-cards .h-card p + p { margin-top: -6px; }
.h .p-bn { grid-template-columns: repeat(var(--cols, 4), 1fr); row-gap: 40px; }
.h .p-bn .h-bn { padding-bottom: 6px; }
.h .p-bn .h-bn:nth-child(3n) { border-right: 0; margin-right: 0; }
.h .p-stats2 { grid-template-columns: repeat(2, 1fr); }
.h .p-stats3 { grid-template-columns: repeat(3, 1fr); }
.h .p-method { grid-template-columns: repeat(var(--cols, 3), 1fr); }
.h .p-method .h-step { padding-right: 28px; }
.h .p-method .h-step h3 { font-size: clamp(22px, 2vw, 30px); }
.h .p-features { display: flex; flex-direction: column; gap: 24px; }
.h .p-feature h3 { font-size: clamp(28px, 3.2vw, 48px); }
.h .p-feature--rev .p-media { order: -1; }
.h .p-feature ul, .h .p-split ul { margin: 0 0 16px; padding-left: 18px; color: var(--iw-muted); }
.h .p-media { position: relative; z-index: 1; margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--iw-line); background: #141414; aspect-ratio: 4 / 3; }
.h .p-media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.72); transition: transform .9s var(--iw-ease), filter .6s; }
.h .p-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 88% 8%, rgba(247, 59, 32, .5), transparent 55%), linear-gradient(180deg, rgba(11, 11, 11, 0) 45%, rgba(11, 11, 11, .6)); }
.h .p-media:hover img { transform: scale(1.04); filter: grayscale(.6) contrast(1.06) brightness(.8); }
.h .p-about-story .p-media { position: sticky; top: 110px; aspect-ratio: 4 / 3.4; }
.h .p-table { overflow-x: auto; border: 1px solid var(--iw-line); border-radius: 22px; }
.h .p-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.h .p-table th, .h .p-table td { padding: 20px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--iw-line); color: var(--iw-muted); background: transparent !important; }
.h .p-table thead th { font-family: var(--iw-mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--iw-muted-2); }
.h .p-table thead th:last-child { color: var(--iw-accent); }
.h .p-table tbody tr:last-child td { border-bottom: 0; }
.h .p-table td:first-child { color: var(--iw-text); font-weight: 500; white-space: nowrap; }
.h .p-table td:last-child { color: var(--iw-text); background: rgba(247, 59, 32, .04) !important; }
.h .p-table .check-icon { color: var(--iw-accent); margin-right: 4px; }
.h .p-table .highlight-text { color: var(--iw-text); font-weight: 600; }
.h .h-qa__a { margin: 0 0 26px; max-width: 62ch; color: var(--iw-muted); }
.h .h-qa__a a, .h .h-p a, .h .h-card p a, .h .h-feature p a { color: var(--iw-text); text-decoration: underline; text-decoration-color: var(--iw-accent); text-underline-offset: 3px; }
.h .p-legacy { background: var(--iw-bg); }
@media (max-width: 960px) {
  .h .p-split { grid-template-columns: 1fr; }
  .h .p-bn { grid-template-columns: 1fr 1fr; }
  .h .p-bn .h-bn:nth-child(3n) { border-right: 1px solid var(--iw-line); margin-right: 26px; }
  .h .p-bn .h-bn:nth-child(2n) { border-right: 0; margin-right: 0; }
  .h .p-stats2, .h .p-stats3 { grid-template-columns: 1fr; }
  .h .p-method { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .h .p-method .h-method__line { display: none; }
  .h .p-feature--rev .p-media { order: 0; }
  .h .p-about-story .p-media { position: relative; top: 0; }
}
@media (max-width: 560px) {
  .h .p-bn, .h .p-method { grid-template-columns: 1fr; }
  .h .p-bn .h-bn { border-right: 0 !important; margin-right: 0 !important; }
}
.h .p-table td.feature-name, .h .p-table td:first-child { color: var(--iw-text) !important; }
.h .p-table td.col-saas, .h .p-table th.col-saas { color: var(--iw-muted) !important; }
.h .p-table td.col-custom { color: var(--iw-text) !important; }
.h .p-table th.col-custom { color: var(--iw-accent) !important; }
.h .p-table .highlight-text { color: var(--iw-text) !important; }
.h .p-table .check-icon { color: var(--iw-accent) !important; background: none !important; }
.h .h-contact__big.p-contact--long { font-size: clamp(40px, 4.8vw, 72px) !important; }
.h a.p-card-link { color: inherit; text-decoration: none; }
.h a.p-card-link:hover .h-link { border-color: var(--iw-accent); color: var(--iw-accent); }
.h .p-rows { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--iw-line); }
.h .p-row { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--iw-line); }
.h .p-row:nth-child(odd) { border-right: 1px solid var(--iw-line); }
.h .p-row:nth-child(even) { padding-left: 28px; }
.h .p-row strong { display: block; margin-bottom: 8px; font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.03em; }
.h .p-row p { margin: 0; color: var(--iw-muted); font-size: 15px; }
.h .p-techs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.h .p-tech { padding: 28px; border: 1px solid var(--iw-line); border-radius: 22px; background: var(--iw-surface); }
.h .p-tech h4 { margin: 0 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.h .p-tech p { margin: 0; color: var(--iw-muted); font-size: 15px; }
.h .p-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 20px; border-top: 1px solid var(--iw-line); }
.h .p-kv > div { display: flex; flex-direction: column; gap: 8px; padding: 26px 20px 0 0; }
.h .p-kv strong { font-size: clamp(30px, 3.4vw, 50px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.h .p-kv .iw-mono { font-size: 11px; color: var(--iw-muted); }
.h .p-callout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(30px, 5vw, 80px); align-items: center; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--iw-line); border-radius: 28px; background: radial-gradient(circle at 100% 0, rgba(247, 59, 32, .18), transparent 50%), var(--iw-surface); }
.h .p-callout .h-p { margin: 0; }
.h .p-callout > div:last-child { justify-self: end; }
.h .p-check { list-style: none; margin: 0; padding: 0; justify-self: stretch; }
.h .p-check li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--iw-line); color: var(--iw-text); font-size: 15.5px; }
.h .p-check li::before { content: "✓"; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: rgba(247, 59, 32, .15); color: var(--iw-accent); font-size: 11px; display: grid; place-items: center; }
@media (max-width: 960px) {
  .h .p-rows { grid-template-columns: 1fr; }
  .h .p-row, .h .p-row:nth-child(even) { padding: 24px 0; border-right: 0; }
  .h .p-callout { grid-template-columns: 1fr; }
  .h .p-callout > div:last-child { justify-self: start; }
}
.h .p-tags .p-tag2 { display: flex; flex-direction: column; gap: 4px; flex: 1 1 calc(50% - 10px); padding: 16px 18px; border-radius: 16px; color: var(--iw-muted); font-size: 14px; }
.h .p-tags .p-tag2 b { color: var(--iw-text); font-size: 16px; font-weight: 600; }
.h .p-table thead th { color: var(--iw-muted-2) !important; } .h .p-table thead th.col-custom, .h .p-table thead th:last-child { color: var(--iw-accent) !important; }

/* Imágenes dentro de los pasos del método + vitrina con mockup central (restituye imágenes del diseño anterior) */
.h .p-step-media { margin: 28px 0 0; aspect-ratio: 4 / 3; }
.h .p-step-media img { object-position: 50% 35%; }
.h .p-showcase { display: grid; grid-template-columns: 1fr minmax(240px, 320px) 1fr; gap: 24px; align-items: center; }
.h .p-showcase__col { display: grid; gap: 24px; }
.h .p-showcase .p-media { aspect-ratio: 2 / 3; }
.h .p-showcase .p-media img { object-position: 50% 50%; }
@media (max-width: 900px) {
  .h .p-showcase { grid-template-columns: 1fr; }
  .h .p-showcase .p-media { width: 100%; max-width: 320px; margin: 0 auto; }
}

/* Caso con cifras, tarjetas con ícono y bloque secundario (páginas inmobiliarias) */
.h .p-case-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--iw-line); }
.h .p-case-stats h4 { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.h .p-case-stats p { margin: 0; color: var(--iw-muted); font-size: 14.5px; }
.h .p-icard .p-ico { display: inline-flex; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; border: 1px solid var(--iw-line-2); align-items: center; justify-content: center; color: var(--iw-accent); transition: background .4s, color .4s; }
.h .p-icard .p-ico svg { width: 20px; height: 20px; }
.h .p-icard:hover .p-ico { background: var(--iw-accent); color: #fff; }
.h .p-subbox { margin-top: 64px; padding: clamp(28px, 4vw, 52px); border-radius: 26px; border: 1px solid var(--iw-line); background: radial-gradient(circle at 92% 0%, rgba(247, 59, 32, .16), transparent 45%), #111; }
.h .p-subbox__head { max-width: 640px; margin-bottom: 32px; }
.h .p-subbox__head .h-p { margin-top: 14px; }
.h .p-wide-media { aspect-ratio: 21 / 9; margin: 0 0 48px; }
@media (max-width: 700px) { .h .p-wide-media { aspect-ratio: 4 / 3; } }
.h .p-actions--center { justify-content: center; margin-top: 40px; }
/* Etiquetas que además son enlaces (mismo aspecto que las etiquetas, con flecha) */
.h .p-tags a.p-taglink { padding: 10px 16px; border: 1px solid var(--iw-line-2); border-radius: 99px; font-size: 14px; color: var(--iw-text); background: rgba(255, 255, 255, .02); text-decoration: none; transition: border-color .3s, background .3s; }
.h .p-tags a.p-taglink::after { content: " →"; color: var(--iw-accent); }
.h .p-tags a.p-taglink:hover { border-color: var(--iw-accent); background: rgba(247, 59, 32, .08); }
.h .p-tags a.p-taglink.p-tag2 { display: flex; flex-direction: column; gap: 4px; flex: 1 1 calc(50% - 10px); padding: 16px 18px; border-radius: 16px; color: var(--iw-muted); }
.h .p-tags a.p-taglink.p-tag2::after { content: none; }
.h .p-tags a.p-taglink.p-tag2 b::after { content: " →"; color: var(--iw-accent); }
.h .p-cards.p-cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .h .p-cards.p-cards--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .h .p-cards.p-cards--3 { grid-template-columns: 1fr; } }
/* Fotos verticales: marco más alto y anclado arriba para no cortar caras ni carteles */
.h .p-media.p-media--tall { aspect-ratio: 4 / 5; }
.h .p-media.p-media--tall img { object-position: 50% 10%; }
.h .p-form-btns { display: inline-flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.h .p-cards.p-cards--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .h .p-cards.p-cards--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .h .p-cards.p-cards--5 { grid-template-columns: 1fr; } }

/* ===== Casos técnicos ===== */
.h .h-sec.p-sec--tight { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); }
.h .p-casesum { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--iw-line); border-bottom: 1px solid var(--iw-line); }
.h .p-casesum > div { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 26px 0; }
.h .p-casesum > div + div { padding-left: 22px; border-left: 1px solid var(--iw-line); }
.h .p-casesum .iw-mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--iw-accent); }
.h .p-casesum strong { font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--iw-text); }
@media (max-width: 900px) { .h .p-casesum { grid-template-columns: 1fr 1fr; } .h .p-casesum > div:nth-child(3) { padding-left: 0; border-left: 0; } .h .p-casesum > div:nth-child(n+3) { border-top: 1px solid var(--iw-line); } }
@media (max-width: 520px) { .h .p-casesum { grid-template-columns: 1fr; } .h .p-casesum > div { padding-left: 0 !important; border-left: 0 !important; } .h .p-casesum > div + div { border-top: 1px solid var(--iw-line); } }
.h .p-split--result .h-num { padding-bottom: 18px; }
.h .p-split--result .h-p + .h-p { margin-top: 14px; }
/* galería de capturas (conserva el visor ampliable del caso) */
.h .p-gallery.case-gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; margin-top: 0; }
.h .p-gallery .case-gallery__item { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--iw-line); border-radius: 20px; background: #111; box-shadow: none; overflow: hidden; }
.h .p-gallery .case-gallery__zoom { display: block; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--iw-line); background: #0d0d0d; cursor: zoom-in; line-height: 0; }
.h .p-gallery .case-gallery__zoom img { display: block; width: 100%; height: auto; transition: transform .45s var(--iw-ease); }
.h .p-gallery .case-gallery__zoom:hover img { transform: scale(1.025); }
.h .p-gallery figcaption { padding: 20px 22px 24px; }
.h .p-gallery figcaption strong { display: block; color: var(--iw-text); font-size: 17px; font-weight: 600; margin-bottom: 6px; letter-spacing: -.01em; }
.h .p-gallery figcaption span { display: block; color: var(--iw-muted); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 520px) { .h .p-gallery.case-gallery__grid { grid-template-columns: 1fr; } }
/* servicios relacionados */
.h .p-related .h-h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; }
.h .p-related .p-subbox__head { margin-bottom: 24px; }
.h .p-eyebrow { display: block; margin-bottom: 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
/* Nota del blog: si la cantidad de accesos es impar, el último ocupa la fila completa */
.h .p-related .h-chips > .h-chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Portada de la nota: la imagen se muestra entera, con sus proporciones reales */
.p-cover__in { aspect-ratio: auto; max-width: 1180px; margin: 0 auto; }
.p-cover__in img { height: auto; object-fit: contain; }
@media (max-width: 520px) { .p-cover__in { aspect-ratio: auto; } }
/* Tarjetas de notas: misma proporción que las imágenes del blog (3:2) para no cortar títulos */
.p-post__img, .p-post--featured .p-post__img { aspect-ratio: 3 / 2; }

/* ===== Mapa del sitio y perfil del fundador ===== */
.h .p-sitemap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.h .p-sitemap .visual-sitemap-card { margin: 0; padding: 28px; border: 1px solid var(--iw-line); border-radius: 20px; background: #111; box-shadow: none; transition: border-color .4s; }
.h .p-sitemap .visual-sitemap-card:hover { border-color: var(--iw-line-2); }
.h .p-sitemap .visual-sitemap-card > span { display: block; margin-bottom: 12px; font-family: var(--iw-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--iw-accent); }
.h .p-sitemap .visual-sitemap-card > p { margin: 0 0 18px; color: var(--iw-muted); font-size: 14.5px; line-height: 1.6; }
.h .p-sitemap .visual-sitemap-card ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.h .p-sitemap .visual-sitemap-card a { color: var(--iw-text); font-weight: 500; font-size: 15px; line-height: 1.35; text-decoration: none; transition: color .2s; }
.h .p-sitemap .visual-sitemap-card a:hover { color: var(--iw-accent); }
@media (max-width: 980px) { .h .p-sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .h .p-sitemap { grid-template-columns: 1fr; } }
.h .p-tags--links { margin-top: 26px; }
.h .p-about-photo-jp { aspect-ratio: 1 / 1; }
.h .p-about-photo-jp img { object-position: 50% 20%; }

/* ===== Contacto ===== */
.h .p-contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.h .p-contact-card { padding: clamp(26px, 3.4vw, 48px); border: 1px solid var(--iw-line); border-radius: 26px; background: radial-gradient(circle at 100% 0%, rgba(247, 59, 32, .14), transparent 45%), #111; }
.h .p-contact-card .h-p { margin: 12px 0 26px; }
.h .p-contact-form { padding: 0 !important; border: 0 !important; background: transparent !important; gap: 22px; }
.h .p-contact-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.h .p-contact-form select { width: 100%; padding: 12px 0 14px; font-size: 17px; font-family: inherit; outline: none; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--iw-accent) 50%), linear-gradient(135deg, var(--iw-accent) 50%, transparent 50%) !important;
  background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50% !important; background-size: 6px 6px, 6px 6px !important; background-repeat: no-repeat !important; }
.h .p-contact-form select option { background: #141414; color: #eee; }
.h .p-contact-submit { justify-content: center; width: 100%; margin-top: 6px; gap: 10px; }
.h .p-contact-submit svg { width: 18px; height: 18px; }
.h .p-cinfo { display: grid; gap: 14px; margin-bottom: 18px; }
.h .p-cinfo-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border: 1px solid var(--iw-line); border-radius: 20px; background: #111; }
.h .p-cinfo-item .p-ico { display: inline-flex; flex: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--iw-line-2); align-items: center; justify-content: center; color: var(--iw-accent); }
.h .p-cinfo-item .p-ico svg { width: 20px; height: 20px; }
.h .p-cinfo-item h3 { margin: 2px 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.h .p-cinfo-item p { margin: 0; color: var(--iw-muted); font-size: 15px; line-height: 1.5; }
.h .p-map { border: 1px solid var(--iw-line); border-radius: 22px; overflow: hidden; line-height: 0; background: #111; }
.h .p-map iframe { width: 100%; height: 320px; border: 0; filter: grayscale(.85) contrast(1.05); }
@media (max-width: 900px) { .h .p-contact-grid { grid-template-columns: 1fr; } }

/* ===== Herramienta SEO: buscador dentro del encabezado nuevo ===== */
.h .p-tool { max-width: 720px; margin: 36px 0 0; }
.h .p-tool .input-group { display: flex; gap: 8px; padding: 6px; border-radius: 99px; background: var(--iw-surface); border: 1px solid var(--iw-line-2); }
.h .p-tool .input-group:focus-within { border-color: var(--iw-accent); }
.h .p-tool input { flex: 1; min-width: 0; padding: 0 20px; background: none !important; border: 0 !important; color: var(--iw-text) !important; font-size: 17px; outline: none; }
.h .p-tool .iw-btn { flex: none; }
.h .p-tool > p { margin: 14px 0 0 20px; font-family: var(--iw-mono); font-size: 11px; letter-spacing: .06em; color: var(--iw-muted); }
@media (max-width: 560px) { .h .p-tool .seo-audit-form .input-group { flex-direction: column; border-radius: 22px !important; } .h .p-tool .seo-audit-form input { padding: 14px 16px !important; text-align: left; } .h .p-tool .iw-btn { justify-content: center; } }
.h .p-tool .seo-audit-form { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; max-width: none !important; }
