/* OleaIT · estilos del theme
   Fuentes: Penpot "OleaIT - Web" > handoff/pages > handoff/motion.md > handoff/DESIGN.md.
   Tokens con los nombres de DESIGN.md. Mobile-last: base de escritorio y max-width a 1023 y 639.
   Movimiento: solo las animaciones aprobadas de motion.md, solo transform y opacity,
   hover solo con ratón y nada de desplazamientos con prefers-reduced-motion. */

:root {
  --ink: #0a0a0a; --bg: #ffffff; --surface: #f2f2f2; --muted: #6b6b6b;
  --line: rgb(10 10 10 / 0.12); --line-strong: rgb(10 10 10 / 0.24);
  --blue: #0a4489; --blue-hover: #093a74; --blue-press: #08325f; --blue-on-dark: #4d8ae0;
  --error: #c4321f; --placeholder: #dce3ec;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px;
  --gutter: 80px; --wrap: 1280px; --section: 112px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-press: 160ms; --t-hover: 160ms; --t-card: 200ms;
  --nav-h: 72px;
}
@media (max-width: 1023px) { :root { --gutter: 40px; --section: 88px; } }
@media (max-width: 639px) { :root { --gutter: 24px; --section: 64px; --nav-h: 64px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--bg); padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus-visible { top: 12px; }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
p, dd, li { text-wrap: pretty; }
::selection { background: rgb(10 68 137 / 0.16); }
input, textarea { caret-color: var(--blue); }
/* los bloques de WordPress no añaden márgenes propios: el espacio lo dan las piezas */
.wp-block-group, .wp-block-image, .wp-block-heading { margin: 0; }
.wp-block-image img { height: auto; }

/* ---------- tipografía ---------- */
/* TODO(diseño): DESIGN.md da clamp(40px, 3.6vw + 12px, 72px) y clamp(30px, 2.2vw + 14px, 48px), pero Penpot dibuja
   72/48 px a 1440 y 40/30 px a 390. Manda Penpot: interpolación lineal entre los dos tableros (ver PREGUNTAS.md). */
.h1 { font-size: clamp(40px, 3.05vw + 28.1px, 72px); line-height: 1.04; letter-spacing: -0.038em; font-weight: 400; text-wrap: balance; }
.h1--post { font-size: clamp(30px, 4vw + 14.4px, 72px); }
.h2 { font-size: clamp(30px, 1.71vw + 23.3px, 48px); line-height: 1.1; letter-spacing: -0.033em; font-weight: 400; text-wrap: balance; }
.h3 { font-size: clamp(22px, 0.6vw + 18px, 28px); line-height: 1.2; letter-spacing: -0.018em; font-weight: 400; text-wrap: balance; }
.card-title { font-size: 18px; line-height: 1.35; font-weight: 500; letter-spacing: -0.005em; text-wrap: balance; }
.lead { font-size: clamp(18px, 0.3vw + 16px, 20px); line-height: 1.5; }
.small { font-size: 14px; line-height: 1.45; }
.label { font-size: 13px; line-height: 1.25; font-weight: 500; }
.muted { color: var(--muted); }
.accent { color: var(--blue); }
.measure { max-width: 36rem; }

/* ---------- maquetación ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section:not(.alt) + .section:not(.alt), .page-head + .section:not(.alt) { padding-top: 0; }
.alt { background: var(--surface); }
.stack > * + * { margin-top: var(--stack, 16px); }
.stack--8 { --stack: 8px; } .stack--24 { --stack: 24px; }
.head { display: grid; gap: 16px; max-width: 40rem; margin-bottom: 48px; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.head-row .head { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 133px; align-items: start; }
.split--hero { grid-template-columns: 1fr 543px; gap: 109px; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1024px) { .split--even { grid-template-columns: 1fr 1fr; gap: 80px; } }
@media (max-width: 1023px) {
  .split, .split--hero { grid-template-columns: 1fr; gap: 40px; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .g2, .g3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .head, .head-row { margin-bottom: 32px; }
}
.mt-64 { margin-top: 64px; }

/* ---------- botones y enlaces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 24px; border-radius: var(--r-sm);
  font-weight: 500; font-size: 16px; line-height: 1; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, border-color var(--t-hover) ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:active { background: var(--blue-press); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn svg { width: 12px; height: 12px; flex: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--blue);
  text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color var(--t-hover) ease; }
.link .arr { display: inline-block; transition: transform var(--t-hover) var(--ease-out); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--blue-hover); }
  .btn-secondary:hover { border-color: var(--ink); }
  .link:hover { color: var(--blue); }
  .link:hover .arr { transform: translateX(2px); }
}
@media (max-width: 639px) {
  .btn { height: 48px; }
  .actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .actions .btn { height: 48px; }
  .actions .link { align-self: center; }
}

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.admin-bar .nav { top: var(--wp-admin--admin-bar--height, 0px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 32px; }
.nav-left { display: flex; align-items: center; gap: 56px; }
.logo { display: inline-flex; flex: none; }
.logo img { height: 33px; width: auto; }
.nav-links { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; padding: 8px 0; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform var(--t-card) var(--ease-out); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover::after { transform: scaleX(1); } }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg); align-items: center; justify-content: center; cursor: pointer; transition: transform var(--t-press) var(--ease-out); }
.menu-btn:active { transform: scale(0.97); }
.menu-btn svg { width: 18px; height: 18px; }
.sheet { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 29; background: var(--bg); padding: 16px 24px 32px; overflow-y: auto;
  opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms; }
.admin-bar .sheet { top: calc(var(--nav-h) + var(--wp-admin--admin-bar--height, 0px)); }
.sheet.open { opacity: 1; transform: none; visibility: visible; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.sheet a:not(.btn) { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 20px; }
.sheet .btn { width: 100%; height: 48px; margin-top: 32px; }
/* Selector de idioma. TODO(diseño): no está en Penpot; texto de 14 px gris con el actual en tinta (ver PREGUNTAS.md). */
.nav-right { display: flex; align-items: center; gap: 24px; }
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; color: var(--muted); }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; text-decoration: none; color: var(--muted); border-radius: var(--r-sm); transition: color var(--t-hover) var(--ease-out); }
.lang-switch a[aria-current="page"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .lang-switch a:hover { color: var(--blue); } }
.lang-switch .sep { color: var(--line-strong); }
.sheet .lang-switch { margin-top: 24px; justify-content: center; font-size: 16px; }
.sheet .lang-switch a:not(.btn) { min-height: 44px; min-width: 44px; border-bottom: 0; font-size: 16px; }
@media (min-width: 1024px) { .sheet { display: none; } }
@media (max-width: 1023px) { .nav-right { display: none; } }
/* TODO(diseño): con el selector de idioma, entre 1024 y 1279 px la nav no cabe con los huecos de Penpot (56/32/32 px)
   y los enlaces se parten en dos líneas. Opción neutra: huecos de 40/24/24 px solo en ese tramo (ver PREGUNTAS.md). */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav .wrap { gap: 24px; }
  .nav-left { gap: 40px; }
  .nav-links { gap: 24px; }
}
.nav-links a { white-space: nowrap; }
@media (max-width: 1023px) { .nav-links { display: none; } .menu-btn { display: inline-flex; } .nav .nav-cta { display: none; } }
@media (max-width: 639px) { .logo img { height: 28px; } }
body.menu-open { overflow: hidden; }

/* ---------- hero de Inicio ---------- */
.hero { position: relative; min-height: 760px; display: flex; align-items: center; background: var(--placeholder); overflow: hidden; }
.hero > .hero-photo { position: absolute; inset: 0; }
.hero > .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero > .wrap { position: relative; display: flex; justify-content: flex-end; }
.hero-box { width: min(628px, 100%); background: var(--bg); border-radius: var(--r-lg); padding: 56px 48px 48px; display: grid; gap: 24px; }
@media (max-width: 1023px) {
  .hero { display: block; min-height: 0; background: var(--bg); }
  .hero > .hero-photo { position: static; height: 300px; background: var(--placeholder); }
  .hero > .wrap { display: block; }
  .hero-box { width: 100%; padding: 32px 0 48px; border-radius: 0; }
}
@media (max-width: 639px) { .hero > .hero-photo { height: 260px; } .hero-box { gap: 20px; } }

/* ---------- cabecera de página ---------- */
.page-head { padding-block: 96px var(--section); }
.page-head--tight { padding-bottom: 48px; }
.page-head--flush { padding-bottom: 0; }
@media (max-width: 639px) { .page-head { padding-block: 32px 48px; } .page-head--flush { padding-bottom: 0; } }
.page-head .text { display: grid; gap: 24px; align-content: start; }
.frame { border-radius: var(--r-lg); overflow: hidden; background: var(--placeholder); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--head { aspect-ratio: 543 / 460; }
@media (max-width: 639px) { .frame--head { aspect-ratio: 342 / 240; border-radius: var(--r-md); } }

/* hero-enter (motion.md): una vez al cargar, 8 px abajo -> su sitio, 60 ms entre hijos */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.enter > * { animation: rise 400ms var(--ease-out) both; }
.enter > *:nth-child(2) { animation-delay: 60ms; }
.enter > *:nth-child(3) { animation-delay: 120ms; }
.enter > *:nth-child(4) { animation-delay: 180ms; }
.enter > *:nth-child(n+5) { animation-delay: 240ms; }

/* ---------- filas, listas sin caja, FAQ ---------- */
.rows > * { padding-block: 20px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.rows .row-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.rows .row-head > .small { color: var(--blue); white-space: nowrap; }
/* Penpot: el título de la fila es 18/500 en tinta, sin subrayado; el enlace se ve al pasar el ratón */
.rows .row-title a { text-decoration: none; transition: color var(--t-hover) ease; }
.rows .row-title a::after { content: ""; position: absolute; inset: 0; }
.rows--links > * { position: relative; }
@media (hover: hover) and (pointer: fine) { .rows .row-title a:hover { color: var(--blue); } }
.faq > * { padding-block: 20px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.faq h3 { font-size: 18px; font-weight: 500; line-height: 1.35; text-wrap: balance; }
.features { gap: 40px 32px; }
.features > * { border-top: 1px solid var(--line-strong); padding-top: 20px; display: grid; gap: 8px; align-content: start; }

/* ---------- tarjetas ---------- */
.card { border-radius: var(--r-lg); padding: 32px; display: grid; gap: 12px; align-content: start; }
.card--surface { background: var(--surface); }
.card--line { border: 1px solid var(--line); }
.card--white { background: var(--bg); }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: 14px; line-height: 1; }
.card .ph { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 346 / 200; margin-top: 12px; background: var(--placeholder); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card p.desc { min-height: 3.2em; }
@media (max-width: 639px) {
  .card { padding: 20px; }
  .steps .card { grid-template-columns: 96px 1fr; align-items: center; column-gap: 16px; row-gap: 4px; }
  .steps .card .ph { grid-row: 1 / span 3; grid-column: 1; aspect-ratio: 1; margin: 0; width: 96px; }
  .steps .card > :not(.ph) { grid-column: 2; }
  .steps .card p.desc { min-height: 0; }
  .steps .step-num { display: none; }
}

/* tarjetas de artículo (card-hover: sube 2 px y la foto escala 1.03) */
.post { display: grid; gap: 12px; text-decoration: none; align-content: start; transition: transform var(--t-card) var(--ease-out); }
.post .ph { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 410 / 256; background: var(--placeholder); }
.post .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-card) var(--ease-out); }
.post .meta, .featured .meta { display: flex; gap: 12px; flex-wrap: wrap; }
.post .meta { padding-top: 8px; }
.post .title { font-size: 20px; line-height: 1.35; font-weight: 500; letter-spacing: -0.005em; text-wrap: balance; }
.post:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .post:hover { transform: translateY(-2px); }
  .post:hover .ph img { transform: scale(1.03); }
}
@media (max-width: 639px) {
  .posts-list .post { grid-template-columns: 110px 1fr; gap: 6px 16px; align-items: start; padding-block: 16px; border-bottom: 1px solid var(--line); }
  .posts-list .post .ph { aspect-ratio: 110 / 82; border-radius: 10px; grid-row: span 2; }
  .posts-list .post .meta { padding-top: 0; }
  .posts-list .post .title { font-size: 17px; overflow-wrap: anywhere; }
  .posts-list { gap: 0 !important; }
}
.blog-latest { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
.blog-latest > .head { margin-bottom: 48px; }
.blog-latest > .more { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 48px; }
.blog-latest > .posts-list, .blog-latest > .wp-block-oleait-latest-posts { grid-column: 1 / -1; }
@media (max-width: 639px) {
  .blog-latest { grid-template-columns: 1fr; }
  .blog-latest > .head { margin-bottom: 16px; }
  .blog-latest > .more { grid-column: 1; grid-row: 3; margin: 24px 0 0; }
}

/* ---------- foto a una columna ---------- */
.photo-col { border-radius: var(--r-lg); overflow: hidden; height: 100%; min-height: 560px; background: var(--placeholder); }
.photo-col img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .photo-col { min-height: 0; height: auto; aspect-ratio: 4 / 3; } }

/* ---------- plataformas ---------- */
.platforms { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.platforms li { display: flex; align-items: center; gap: 10px; }
.platforms img { height: 28px; width: auto; }
.platforms-title { margin-top: 48px !important; }

/* ---------- diagrama de sincronización ---------- */
.diagram { background: var(--bg); border-radius: var(--r-lg); padding: 40px 24px; display: flex; align-items: center; justify-content: center; }
.diagram .sys { width: 164px; border: 1.5px solid rgb(10 68 137 / 0.35); border-radius: var(--r-md); overflow: hidden; background: var(--bg); font-size: 14px; }
.diagram .sys header { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.diagram .sys li { padding: 7px 12px; }
.diagram .sys li.hl { background: rgb(10 68 137 / 0.08); }
.diagram .wire { flex: 0 0 16px; height: 1.5px; background: rgb(10 68 137 / 0.5); }
.diagram .pill { padding: 6px 12px; border: 1.5px solid rgb(10 68 137 / 0.35); border-radius: 999px; font-size: 14px; white-space: nowrap; }
@media (max-width: 639px) {
  .diagram { flex-direction: column; padding: 20px; }
  .diagram .sys { width: 100%; }
  .diagram .sys ul { display: flex; gap: 8px; padding: 8px 12px; }
  .diagram .sys li { padding: 4px 8px; border-radius: 6px; }
  .diagram .wire { flex: 0 0 16px; width: 1.5px; height: 16px; }
}

/* ---------- planes y packs ---------- */
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 20px; align-content: start; }
.plan--featured { border: 2px solid var(--blue); }
.plan .stack .small { min-height: 2.9em; }
.plan-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan .price { display: flex; align-items: baseline; gap: 6px; }
.plan dl { display: grid; }
.plan dl div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.plan dt { color: var(--muted); }
.plan dd { text-align: right; }
.plan .btn { width: 100%; }
.badge { font-size: 12px; font-weight: 500; color: #fff; background: var(--blue); border-radius: 999px; padding: 3px 10px; }
.pack { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 8px; align-content: start; }
.plans { list-style: none; }
@media (max-width: 1279px) and (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .plans { grid-template-columns: 1fr; } .plan, .pack { padding: 20px; } .plan dl div { padding-block: 8px; } }
.glossary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; margin-top: 40px; font-size: 14px; }
.glossary > * > :first-child { font-weight: 500; margin-bottom: 4px; }
.glossary > * > :last-child { color: var(--muted); }
@media (max-width: 1023px) { .glossary { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .glossary { grid-template-columns: 1fr; } }

/* ---------- widget del buscador (estático: la animación widget-buscador no está aprobada) ---------- */
.widget-frame { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); padding: 32px; }
.widget { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 14px; overflow: hidden; }
.w-top { display: flex; align-items: center; gap: 20px; padding: 16px 20px 8px; }
.w-shop { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: 0.04em; font-size: 15px; }
.w-field { flex: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 10px; font-size: 16px; }
.w-sugg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 0 20px 14px; font-size: 13px; }
.w-chip { padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }
.w-chip b { font-weight: 600; }
.w-bar { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: var(--surface); border-block: 1px solid var(--line); }
.w-filters { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 500; }
.w-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 16px 20px 24px; }
.w-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; display: grid; gap: 6px; }
.w-card img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); width: 100%; background: var(--surface); }
.w-card .w-name { font-weight: 500; }
.w-card .w-price { color: var(--muted); font-size: 13px; }
@media (max-width: 639px) {
  .widget-frame { padding: 16px; }
  .widget { border: 0; background: transparent; }
  .w-top { padding: 0 0 12px; } .w-shop { display: none; }
  .w-sugg { padding: 0 0 12px; } .w-sugg .w-lbl, .w-sugg .w-chip:nth-child(4) { display: none; }
  .w-bar { background: transparent; border: 0; padding: 0 0 12px; } .w-filters { display: none; }
  .w-grid { grid-template-columns: 1fr 1fr; padding: 0; gap: 10px; } .w-grid .w-card:nth-child(3) { display: none; }
  .w-card { background: var(--bg); }
}

/* ---------- documento de ejemplo ---------- */
.sheet-doc { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; }
.sheet-doc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sheet-doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sheet-doc th, .sheet-doc td { text-align: left; padding: 12px 24px; border-top: 1px solid var(--line); vertical-align: top; }
.sheet-doc thead th { border-top: 0; font-size: 13px; font-weight: 500; color: var(--muted); padding-block: 12px 8px; }
.sheet-doc th:last-child, .sheet-doc td:last-child { text-align: right; white-space: nowrap; }
.sheet-doc tfoot th, .sheet-doc tfoot td { font-weight: 600; border-top: 1px solid var(--line-strong); }
.sheet-doc__foot { padding: 14px 24px; border-top: 1px solid var(--line); }
.sev { display: inline-block; font-size: 13px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--surface); }
.sev--high { background: rgb(196 50 31 / 0.1); color: var(--error); }
.sev--mid { background: rgb(10 68 137 / 0.08); color: var(--blue); }
@media (max-width: 639px) { .sheet-doc th, .sheet-doc td, .sheet-doc__head, .sheet-doc__foot { padding-inline: 16px; } }

/* ---------- contacto ---------- */
.contact { display: grid; grid-template-columns: 5fr 6fr; column-gap: 133px; row-gap: 40px; align-items: start; grid-template-areas: "head form" "aside form"; }
.contact__head { grid-area: head; }
.contact__aside { grid-area: aside; display: grid; gap: 32px; align-content: start; }
.contact__form, .contact > .wp-block-oleait-forms-contact { grid-area: form; }
@media (max-width: 1023px) { .contact { grid-template-columns: 1fr; grid-template-areas: "head" "form" "aside"; } }
/* "Qué pasa después": lista ordenada; el número va en un círculo gris dibujado con un contador */
.next { display: grid; gap: 16px; margin-top: 12px; counter-reset: next; }
.next li { counter-increment: next; display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.next li::before { content: counter(next); grid-row: 1 / span 3; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1; }
.next li strong { display: block; font-size: 18px; line-height: 1.35; font-weight: 500; letter-spacing: -0.005em; color: var(--ink); }
.next li br { display: none; }
.facts { display: grid; gap: 20px; }
.facts > * > :first-child { font-size: 13px; font-weight: 500; color: var(--muted); }

/* formulario (marcado del plugin oleait-forms; el theme pone los estilos) */
.form { background: var(--surface); border-radius: var(--r-lg); padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full, .form > .check, .form > .btn, .form > .status, .form > .note, .form > .form-hp { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea, .field select { height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg); padding: 0 14px; font-size: 16px; width: 100%; }
.field textarea { height: 140px; padding: 12px 14px; resize: vertical; }
.field select { padding-right: 40px; appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8l4-3.5' fill='none' stroke='%230a0a0a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field [aria-invalid="true"], .check [aria-invalid="true"] { border: 2px solid var(--error); }
.err { color: var(--error); font-size: 14px; font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.check label a { text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.form > .btn { justify-self: start; }
.status { font-size: 14px; min-height: 1.4em; }
.status:empty { display: none; }
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 639px) { .form { grid-template-columns: 1fr; padding: 20px; } .form > .btn { justify-self: stretch; height: 48px; } }

/* ---------- blog ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer; font-size: 14px; color: var(--ink);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease; }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.blog-filter { margin: 16px 0 0; align-items: center; }
.featured { display: grid; grid-template-columns: 737px 1fr; gap: 48px; align-items: center; text-decoration: none; }
.featured .ph { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 737 / 440; background: var(--placeholder); }
.featured .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-card) var(--ease-out); }
.featured .link { margin-top: 24px; }
@media (hover: hover) and (pointer: fine) { .featured:hover .ph img { transform: scale(1.03); } }
@media (max-width: 1279px) { .featured { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
@media (max-width: 1023px) { .featured { grid-template-columns: 1fr; gap: 20px; } }
.blog-list { margin-top: 80px; gap: 64px 24px; }
.blog-list:first-child { margin-top: 0; }
@media (max-width: 639px) { .blog-list { margin-top: 32px; } }
.empty { padding-block: 24px; }
.pagination { margin-top: 64px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 500; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); text-decoration: none; }
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination .page-numbers.dots { border: 0; }
.search-form { display: flex; gap: 8px; max-width: 36rem; }
.search-form input[type="search"] { flex: 1; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0 14px; font-size: 16px; background: var(--bg); min-width: 0; }
@media (max-width: 639px) { .search-form { flex-direction: column; } }

/* ---------- artículo ---------- */
.crumbs { font-size: 14px; }
.post-meta time { white-space: nowrap; }
.post-hero { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1280 / 520; margin-top: 24px; background: var(--placeholder); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-head .enter { display: grid; gap: 24px; }
.post-head .h1 { max-width: 62rem; }
.article-body { padding-top: 64px; }
.article-grid { display: grid; grid-template-columns: 302px minmax(0, 737px); gap: 241px; align-items: start; }
.article-grid--notoc { grid-template-columns: minmax(0, 737px); justify-content: end; }
.toc { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 12px; font-size: 14px; }
.admin-bar .toc { top: calc(var(--nav-h) + 32px + var(--wp-admin--admin-bar--height, 0px)); }
.toc a { text-decoration: none; color: var(--ink); transition: color var(--t-hover) ease; }
.toc a[aria-current] { color: var(--blue); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--blue); } }
.prose { display: grid; gap: 20px; min-width: 0; }
.prose > p, .prose > ul, .prose > ol, .prose li { font-size: 18px; line-height: 1.65; }
.prose > p.lead, .prose > .is-style-lead { font-size: 20px; line-height: 1.5; }
.prose h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.018em; font-weight: 400; margin-top: 28px; text-wrap: balance; }
.prose h3 { font-size: 20px; line-height: 1.35; font-weight: 500; margin-top: 8px; }
.prose ul, .prose ol { display: grid; gap: 6px; padding-left: 20px; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose pre, .prose .wp-block-code { background: #0f1b2d; color: #e6edf7; border-radius: var(--r-md); padding: 16px 20px; overflow-x: auto; font: 14px/1.6 var(--mono); margin: 0; }
.prose code { font-family: var(--mono); font-size: .9em; }
.prose pre code { font-size: inherit; }
.prose a:not(.btn) { text-decoration-color: var(--blue); text-underline-offset: 3px; color: var(--blue); }
.prose figure img { border-radius: var(--r-md); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose blockquote { border-left: 2px solid var(--blue); padding-left: 20px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); }
.callout { background: var(--surface); border-radius: var(--r-lg); padding: 40px; display: grid; gap: 16px; margin-top: 32px; }
.prose .callout h2 { margin: 0; font-size: clamp(22px, 0.6vw + 18px, 28px); }
.prose .callout p { font-size: 16px; line-height: 1.6; color: var(--muted); }
@media (max-width: 1023px) { .article-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .toc { position: static; } }
/* Tablas anchas del contenido importado (p. ej. .table-responsive): scroll dentro de su caja, no de la página. */
.prose .table-responsive, .prose .wp-block-table { max-width: 100%; overflow-x: auto; }
/* La rejilla de .prose no debe crecer con el contenido (pies de foto de ancho fijo, URL largas). */
.prose { grid-template-columns: minmax(0, 1fr); overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
/* [caption] del contenido importado: WordPress le pone width fijo en línea. */
.prose .wp-caption { max-width: 100%; }
.prose .wp-caption img { max-width: 100%; height: auto; }
@media (max-width: 639px) {
  .article-body { padding-top: 40px; }
  .toc { display: none; }
  .post-hero { aspect-ratio: 342 / 214; border-radius: var(--r-md); }
  .prose h2 { font-size: 24px; }
  .callout { padding: 20px; }
}
.related .head-row .h3 { margin: 0; }

/* ---------- pie ---------- */
.footer { background: var(--surface); padding: var(--section) 0 48px; }
.footer--noclose { padding-top: 120px; }
main:has(> .alt:last-child) + .footer, main:has(> :last-child.alt) + .footer, .footer--line { border-top: 1px solid var(--line); }
.footer .close { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 80px; }
.footer .close .head { margin-bottom: 0; }
.footer .cols { display: grid; grid-template-columns: 519px repeat(3, 1fr); gap: 24px; }
.footer .cols h2 { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.footer .cols li + li { margin-top: 4px; }
.footer .cols a { font-size: 14px; text-decoration: none; display: inline-block; padding-block: 4px; }
.footer .about { margin-top: 16px; max-width: 24rem; }
@media (hover: hover) and (pointer: fine) { .footer .cols a:hover { color: var(--blue); } }
.footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 1023px) { .footer .cols { grid-template-columns: 1fr 1fr; } .footer .cols > :first-child { grid-column: 1 / -1; } }
@media (max-width: 639px) { .footer .close { margin-bottom: 48px; } .footer .close .btn { width: 100%; } .footer--noclose { padding-top: 64px; } }

/* ---------- barra de acción fija en móvil ---------- */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--bg); border-top: 1px solid var(--line); padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(110%); visibility: hidden; transition: transform 220ms var(--ease-out), visibility 0s linear 220ms; }
.actionbar.show { transform: none; visibility: visible; transition: transform 220ms var(--ease-out); }
.actionbar .btn { width: 100%; height: 48px; }
@media (min-width: 640px) { .actionbar { display: none; } }

/* ---------- páginas genéricas (legales, etc.) ---------- */
.page-default .prose { max-width: 737px; }

/* ---------- reducir movimiento: sin desplazamientos ni escalas ---------- */
@media (prefers-reduced-motion: reduce) {
  .enter > * { animation: none; }
  .btn:active, .chip:active, .menu-btn:active, .post:active { transform: none; }
  .post:hover, .post:hover .ph img, .featured:hover .ph img, .link:hover .arr { transform: none !important; }
  .nav-links a::after { transition: none; }
  .sheet, .sheet.open { transform: none; transition: opacity 120ms ease, visibility 0s linear 120ms; }
  .sheet.open { transition: opacity 120ms ease; }
  .actionbar, .actionbar.show { transform: none; }
  .actionbar { opacity: 0; transition: opacity 120ms ease, visibility 0s linear 120ms; }
  .actionbar.show { opacity: 1; transition: opacity 120ms ease; }
}

/* la paginación de WordPress usa .nav-links: que no herede los estilos del menú */
.pagination .nav-links { display: flex !important; gap: 8px; font-size: 15px; }
.pagination .nav-links a::after { display: none; }

/* ---------- medidas de Penpot que DESIGN.md no fija ---------- */
.head > .lead { max-width: 560px; }                 /* Penpot: lead de 560 px bajo el h2 */
.rows--links > * > p.muted { max-width: 440px; }    /* Penpot: descripción de la fila de servicio, 440 px */
.footer .about { font-size: 16px; line-height: 1.6; max-width: 410px; } /* Penpot: 16 px y 410 px (la ficha dice 14 px; ver PREGUNTAS.md) */
@media (min-width: 1024px) { .split--hero:has(> .widget-frame) { grid-template-columns: 1fr 643px; } } /* Penpot: el widget mide 643 px */
.post-head + .article-body { padding-top: 64px; }   /* la regla .page-head + .section lo anularía */
@media (max-width: 639px) { .post-head + .article-body { padding-top: 40px; } }
.blog-head .h1 { max-width: 640px; }                 /* Penpot: «Blog de PrestaShop / y WordPress» en dos líneas */
/* TODO(diseño): entre 1024 y 1279 px la columna fija de 543/643 px deja al H1 sin sitio y desborda.
   Opción neutra mientras el diseño no lo defina: columnas proporcionales y hueco de 64 px (ver PREGUNTAS.md). */
@media (min-width: 1024px) and (max-width: 1279px) {
  .split--hero, .split--hero:has(> .widget-frame) { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 64px; }
  .split { gap: 80px; }
}
.h1, .h2 { overflow-wrap: break-word; }
.h1--post { overflow-wrap: anywhere; } /* títulos con palabras largas (ERR_CONNECTION_RESET) a 360 px */
