/* Software Digital · tema hijo «sd-tienda» · fase 3: la página Empresas (/empresas/), solo en la vista previa.
   Sale del prototipo: rediseno/prototipo/sitio/css/vistas/empresas.css y las piezas de css/sistema.css que usa
   (titulares, botones, enlaces, tarjetas, lista, pasos, plegables, campos, casilla, estado y panel oscuro).
   Todo cuelga de body.sd-empresas-nueva y de .sd-emp (inc/empresas.php y plantillas/empresas.php).
   Las variables, los iconos, la cabecera y el pie vienen de sd-tienda.css.

   0 página y piezas del sistema · 1 arranque · 2 tres formas · 3 la tarifa · 4 qué recibes · 5 la API (04-12-2026) · 6 el alta */

/* 0 ─ La página: sin barra lateral, el lienzo gris azulado, y Astra fuera de lo nuevo */
body.sd-empresas-nueva { background: var(--fondo); color: var(--tinta); }
body.sd-empresas-nueva #page, body.sd-empresas-nueva .site-content, body.sd-empresas-nueva #content { background: transparent; }
body.sd-empresas-nueva .site-content > .ast-container { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
body.sd-empresas-nueva #primary { width: auto; max-width: none; margin: 0 !important; padding: 0 !important; float: none; border: 0; }
body.sd-empresas-nueva #secondary { display: none; }
body.sd-empresas-nueva .sd-pie { margin-top: 72px; }
html:has(body.sd-empresas-nueva) { scroll-behavior: smooth; scroll-padding-top: calc(var(--cabecera) + 20px); }

.sd-emp { --accion-claro: #8FC0FF; --radio-campo: 14px; --t-m: clamp(26px, 20px + 1.7vw, 40px); --t-s: 21px; --t-nota: 16px;
  font-family: var(--fuente); font-size: 17px; line-height: 1.5; letter-spacing: 0; color: var(--tinta);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-wrap: break-word; padding-bottom: 8px; }
@media (min-width: 1024px) { .sd-emp { --t-s: 24px; --aire: 112px; } }
:where(.sd-emp, .sd-emp *, .sd-emp *::before, .sd-emp *::after) { box-sizing: border-box; }
.sd-emp :is(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset) { margin: 0; }
.sd-emp :is(ul, ol) { padding: 0; list-style: none; }
.sd-emp :is(h1, h2, h3) { font-family: var(--fuente); color: inherit; }
.sd-emp img { display: block; max-width: 100%; height: auto; }
.sd-emp a { color: inherit; }
.sd-emp :is(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
.sd-emp b, .sd-emp strong { font-weight: 600; }
.sd-emp small { font-size: inherit; }
.sd-emp table { border-collapse: collapse; width: 100%; margin: 0; border: 0; }
.sd-emp :is(th, td) { border: 0; }
.sd-emp [hidden] { display: none !important; }
.sd-emp :focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 8px; }
.sd-emp .sobre-tinta :focus-visible, .sd-emp .sobre-tinta:focus-visible { outline-color: #fff; }
.sd-emp .ancho { width: min(100% - 2 * var(--margen), 1240px); margin-inline: auto; }
.sd-emp .junto { white-space: nowrap; }

/* Titulares y texto */
.sd-emp .titulo { font-size: var(--t-l); line-height: 1.06; font-weight: 650; letter-spacing: -.025em; color: var(--gris-titular); text-wrap: balance; }
.sd-emp .titulo b { font-weight: inherit; color: var(--tinta); }
.sd-emp .titulo--simple { color: var(--tinta); }
.sd-emp .titulo__resto { display: none; }
.sd-emp .subtitulo { font-size: var(--t-s); line-height: 1.2; font-weight: 650; letter-spacing: 0; text-wrap: balance; color: var(--tinta); }
.sd-emp .antetitulo { font-weight: 600; color: var(--accion); }
.sd-emp .entrada { font-size: 19px; line-height: 1.45; letter-spacing: 0; color: var(--gris); text-wrap: pretty; }
.sd-emp .suave { color: var(--gris); }
.sd-emp .estrellas { display: inline-flex; gap: 1px; color: var(--ambar); vertical-align: -3px; }
.sd-emp .estrellas svg { width: 18px; height: 18px; fill: currentColor; stroke: var(--ambar-filete); stroke-width: 1.1; stroke-linejoin: round; }
.sd-emp .bloque { margin-top: var(--aire); }
.sd-emp .bloque--junto { margin-top: calc(var(--aire) * .62); }
.sd-emp .bloque__cabeza { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.sd-emp .bloque__nota { display: flex; align-items: center; justify-content: space-between; gap: 2px 20px; flex-wrap: wrap; flex: 1 1 100%; color: var(--gris); }
.sd-emp .bloque > .titulo { margin-bottom: 18px; }
@media (min-width: 640px) {
  .sd-emp .titulo__resto { display: inline; }
  .sd-emp .entrada { font-size: 21px; line-height: 1.4; }
}
@media (min-width: 1024px) {
  .sd-emp .bloque__cabeza, .sd-emp .bloque > .titulo { margin-bottom: 32px; }
  .sd-emp .bloque__nota { flex: 0 1 auto; padding-bottom: 6px; }
}

/* Migas (desde tableta) */
.sd-emp .migas { display: none; }
@media (min-width: 768px) {
  .sd-emp .migas { display: flex; flex-wrap: wrap; gap: 0 10px; margin-top: 6px; color: var(--gris); font-size: 16px; }
  .sd-emp .migas a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: 0 -4px; color: var(--gris); }
  .sd-emp .migas a:hover { text-decoration: underline; text-underline-offset: 4px; color: var(--tinta); }
  .sd-emp .migas span { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Botones y enlaces (las mismas medidas que .sd-boton, con los nombres del prototipo) */
.sd-emp .boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; max-width: 100%; padding: 8px 24px; border: 0; border-radius: 999px; background: var(--velo); color: var(--tinta);
  font-family: var(--fuente); font-weight: 600; font-size: 17px; line-height: 1.2; letter-spacing: 0; text-decoration: none; text-align: center; text-wrap: balance; cursor: pointer;
  transition: background-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.sd-emp .boton:hover { background: var(--velo-hondo); color: var(--tinta); }
.sd-emp .boton:active { transform: scale(.98); }
.sd-emp .boton--accion, .sd-emp .boton--accion:focus { background: var(--accion); color: #fff; }
.sd-emp .boton--accion:hover, .sd-emp .boton--accion:active { background: var(--accion-hondo); color: #fff; }
.sd-emp .boton--velo { background: var(--velo); color: var(--tinta); box-shadow: inset 0 0 0 1px #C9CCD4; }
.sd-emp .boton--blanco { background: #fff; color: var(--tinta); }
.sd-emp .boton--blanco:hover { background: var(--velo); color: var(--tinta); }
.sd-emp .boton--grande { min-height: 54px; padding-inline: 30px; }
.sd-emp .boton--ancho { width: 100%; }
.sd-emp .enlace { display: inline-block; padding: 10px 0; border: 0; background: none; font-weight: 600; line-height: 1.42; text-decoration: none; color: var(--accion); cursor: pointer; }
.sd-emp .enlace .icono { display: inline-block; width: 18px; height: 18px; margin-left: 2px; vertical-align: -3.5px; transition: transform .2s; }
.sd-emp .enlace .icono--antes { width: 22px; height: 22px; margin: 0 7px 0 0; vertical-align: -5px; color: #1A9E4C; }
.sd-emp .enlace:hover { color: var(--accion-hondo); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.sd-emp .enlace:hover .icono:not(.icono--antes) { transform: translateX(3px); }
.sd-emp .enlace--tinta, .sd-emp .enlace--tinta:hover { color: var(--tinta); }
.sd-emp .enlace--tinta:hover { text-decoration-color: var(--accion); }
@media (min-width: 1024px) { .sd-emp .boton--grande { min-height: 56px; font-size: 18px; } }

/* Tarjetas, estado, lista y pasos */
.sd-emp .tarjeta-blanca { background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); }
.sd-emp .estado { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 999px; background: var(--velo); color: var(--tinta); font-weight: 600; font-size: 16px; line-height: 1.4; letter-spacing: 0; white-space: nowrap; vertical-align: 3px; }
.sd-emp .estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.sd-emp .estado--ok { background: var(--verde-velo); color: var(--verde); }
.sd-emp .estado--info { background: var(--accion-velo); color: var(--accion); }
.sd-emp .lista { padding: 6px var(--relleno); }
.sd-emp .lista li { display: flex; gap: 14px; padding: 14px 0; align-items: flex-start; color: var(--gris); text-wrap: pretty; }
.sd-emp .lista li + li { border-top: 1px solid var(--linea); }
.sd-emp .lista b { color: var(--tinta); }
.sd-emp .lista .icono { color: var(--accion); margin-top: 1px; }
.sd-emp .pasos { display: grid; gap: var(--hueco); counter-reset: paso; }
.sd-emp .pasos li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; counter-increment: paso; }
.sd-emp .pasos li::before { content: counter(paso); flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accion-velo); color: var(--accion); font-weight: 650; font-size: 17px; }
.sd-emp .pasos h3 { font-size: 19px; line-height: 1.25; font-weight: 650; letter-spacing: 0; margin-top: 4px; color: var(--tinta); }
.sd-emp .pasos p { margin-top: 4px; color: var(--gris); text-wrap: pretty; }
@media (min-width: 1024px) {
  .sd-emp .lista { padding: 14px var(--relleno); display: flex; flex-direction: column; justify-content: center; }
  .sd-emp .lista li { padding: 18px 0; }
  .sd-emp .pasos li::before { width: 40px; height: 40px; }
}

/* Plegables y preguntas */
.sd-emp .plegables { padding: 4px var(--relleno); }
.sd-emp .plegable + .plegable { border-top: 1px solid var(--linea); }
.sd-emp .plegable > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: 0; cursor: pointer; list-style: none; }
.sd-emp .plegable > summary::-webkit-details-marker { display: none; }
.sd-emp .plegable > summary::marker { content: ""; }
.sd-emp .plegable > summary .icono { transition: transform .25s; color: var(--gris); }
.sd-emp .plegable[open] > summary .icono { transform: rotate(180deg); }
.sd-emp .plegable__cuerpo { padding: 0 0 20px; color: var(--gris); display: grid; gap: 12px; max-width: 68ch; text-wrap: pretty; }
.sd-emp .plegable__cuerpo a, .sd-emp .campo__ayuda a { color: var(--accion); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sd-emp .preguntas { display: grid; gap: 14px; }
.sd-emp .preguntas__cabeza { display: flex; flex-direction: column; align-items: flex-start; }
.sd-emp .preguntas__largo { display: none; }
@media (min-width: 640px) { .sd-emp .preguntas__largo { display: inline; } }
@media (min-width: 1024px) {
  .sd-emp .preguntas { grid-template-columns: 1fr 1.5fr; gap: 20px 64px; align-items: start; }
  .sd-emp .plegables { padding: 8px var(--relleno); }
  .sd-emp .plegable > summary { min-height: 68px; padding: 14px 0; font-size: 19px; }
}

/* Campos y casilla */
.sd-emp .campos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.sd-emp .campo { display: grid; gap: 6px; min-width: 0; align-content: start; }
.sd-emp .campo__rotulo { font-weight: 600; line-height: 1.3; color: var(--tinta); }
.sd-emp .campo__control {
  width: 100%; min-height: 52px; margin: 0; padding: 13px 16px; border: 0; border-radius: var(--radio-campo);
  background: var(--blanco); box-shadow: inset 0 0 0 1px var(--borde); color: var(--tinta); font-size: 17px; line-height: 1.4;
  -webkit-appearance: none; appearance: none; transition: box-shadow .15s; outline: none;
}
.sd-emp .campo__control::placeholder { color: var(--gris); opacity: 1; }
.sd-emp .campo__control:hover { box-shadow: inset 0 0 0 1px var(--tinta); }
.sd-emp .campo__control:focus, .sd-emp .campo__control:focus-visible { outline: none; border: 0; box-shadow: inset 0 0 0 2px var(--accion), 0 0 0 4px rgba(10, 100, 220, .18); }
.sd-emp select.campo__control {
  height: auto; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A606B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.sd-emp .campo__ayuda { color: var(--gris); font-size: var(--t-nota); line-height: 1.4; }
.sd-emp .campo__error { display: flex; gap: 6px; align-items: flex-start; color: var(--aviso); font-size: var(--t-nota); font-weight: 500; line-height: 1.4; }
.sd-emp .campo__error .icono { width: 20px; height: 20px; margin-top: 1px; }
.sd-emp .campo__control[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--aviso); background-color: #FFFCF4; }
.sd-emp .casilla { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 0; cursor: pointer; line-height: 1.4; color: var(--tinta); }
.sd-emp .casilla input { -webkit-appearance: none; appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 0; border-radius: 7px; background: var(--blanco); box-shadow: inset 0 0 0 1.5px var(--borde); cursor: pointer; transition: box-shadow .15s, background-color .15s; }
.sd-emp .casilla input:checked { background: var(--accion) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-8.5'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: none; }
.sd-emp .casilla input:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.sd-emp .casilla span small { display: block; color: var(--gris); }
/* El campo trampa: fuera de la vista y de los lectores, pero en el formulario */
.sd-emp .e-alta__miel { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sd-emp .e-alta__aviso { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radio-s); background: var(--aviso-velo); color: var(--tinta); font-size: 16px; line-height: 1.45; }
.sd-emp .e-alta__aviso .icono { color: var(--aviso); }

/* Panel oscuro */
.sd-emp .panel-tinta { background: var(--tinta); color: #fff; border-radius: var(--radio-l); padding: 24px 22px; display: grid; gap: 16px; position: relative; overflow: hidden; }
.sd-emp .panel-tinta::before { content: ""; position: absolute; inset: auto -20% -70% 30%; height: 120%; background: radial-gradient(closest-side, rgba(10, 100, 220, .55), transparent); pointer-events: none; }
.sd-emp .panel-tinta > * { position: relative; }
.sd-emp .panel-tinta .antetitulo { color: var(--accion-claro); }
.sd-emp .panel-tinta h2 { font-size: var(--t-m); line-height: 1.08; font-weight: 650; letter-spacing: -.023em; margin-top: 6px; text-wrap: balance; color: #fff; }
@media (min-width: 640px) { .sd-emp .panel-tinta { padding: 36px 32px; } }
@media (min-width: 1024px) { .sd-emp .panel-tinta h2 { font-size: 44px; line-height: 1.06; letter-spacing: -.026em; max-width: 16em; } }

/* Arranque: las tres cajas del tema (las mismas de las fichas), montadas con CSS */
.sd-emp .e-hero__arte { position: relative; aspect-ratio: 1090 / 560; }
.sd-emp .e-hero__caja { position: absolute; bottom: 0; width: 46%; height: auto; }
.sd-emp .e-hero__caja--izq { left: 1%; width: 40%; bottom: 7%; }
.sd-emp .e-hero__caja--der { right: 1%; width: 40%; bottom: 7%; }
.sd-emp .e-hero__caja--cen { left: 27%; z-index: 1; }
.sd-emp .e-hero h1 .estado, .sd-emp .e-forma .estado { font-size: 15px; }



/* 1 ─ Arranque */
.sd-emp .e-hero { margin-top: 12px; padding: 24px 20px 14px; background: var(--blanco); border-radius: var(--radio-l); box-shadow: var(--sombra); overflow: hidden; }
.sd-emp .e-hero .antetitulo { display: none; }
.sd-emp .e-hero h1 { font-size: clamp(28px, 8.6vw, 34px); line-height: 1.03; letter-spacing: -.027em; }
.sd-emp .e-hero .entrada { margin-top: 12px; }
.sd-emp .e-largo { display: none; }
.sd-emp .e-hero__acciones { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.sd-emp .e-hero__acciones .enlace { display: none; white-space: nowrap; }
/* Tres cajas en una sola imagen, como el arranque de la portada. Solo Windows y Office: es donde se aplica la tarifa. */
.sd-emp .e-hero__arte { margin: 18px -10px 0; }
.sd-emp .e-hero__sello { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 2px; padding-top: 14px; border-top: 1px solid var(--linea); color: var(--gris); }
.sd-emp .e-hero__sello b { color: var(--tinta); }
.sd-emp .e-hero__pedidos { display: none; }

/* 2 ─ Tres formas de comprar */
.sd-emp .e-formas { padding: 4px var(--relleno); background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); }
.sd-emp .e-forma { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 0 4px; }
.sd-emp .e-forma + .e-forma { border-top: 1px solid var(--linea); }
.sd-emp .e-forma__icono { width: 44px; height: 44px; border-radius: 14px; background: var(--accion-velo); color: var(--accion); display: grid; place-items: center; }
.sd-emp .e-forma__para { display: none; color: var(--gris); }
.sd-emp .e-forma .subtitulo { font-size: 19px; line-height: 1.22; margin-top: 1px; }
.sd-emp .e-forma__texto > p:not(.e-forma__para) { margin-top: 4px; color: var(--gris); text-wrap: pretty; }

/* 3 ─ La tarifa en cifras */
.sd-emp .e-precios { padding: 4px var(--relleno); }
.sd-emp .e-precios th { font-weight: 500; text-align: left; }
.sd-emp .e-precios__nombre { color: var(--tinta); font-weight: 600; letter-spacing: 0; line-height: 1.25; text-wrap: balance; }
.sd-emp .e-precios img { width: 48px; height: 48px; flex: none; }
.sd-emp .e-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sd-emp .e-precios__web, .sd-emp .e-precios__base, .sd-emp .e-precios__rotulo { color: var(--gris); }
.sd-emp .e-precios__tuyo b { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--accion-velo); color: var(--accion); font-size: 19px; font-weight: 650; letter-spacing: 0; line-height: 1.35; }
.sd-emp .e-precios__nota { margin-top: 14px; color: var(--gris); max-width: 62ch; text-wrap: pretty; }
/* En el móvil cada producto es una fila: la caja, el nombre con su precio de la web debajo y, a la derecha, el precio con tarifa. */
@media (max-width: 639.98px) {
  .sd-emp .e-precios thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sd-emp .e-precios table, .sd-emp .e-precios tbody { display: block; }
  .sd-emp .e-precios tr { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "caja nombre tuyo" "caja web tuyo"; align-items: center; gap: 2px 12px; padding: 12px 0; }
  .sd-emp .e-precios tr + tr { border-top: 1px solid var(--linea); }
  .sd-emp .e-precios tbody th { display: contents; }
  .sd-emp .e-precios img { grid-area: caja; }
  .sd-emp .e-precios__nombre { grid-area: nombre; align-self: end; }
  .sd-emp .e-precios__web { grid-area: web; align-self: start; line-height: 1.3; }
  .sd-emp .e-precios__tuyo { grid-area: tuyo; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; line-height: 1.3; }
  .sd-emp .e-precios__base { display: none; }
}

/* 4 ─ Qué recibes: la factura de muestra y la lista */
.sd-emp .e-recibes { display: grid; gap: var(--hueco); }
.sd-emp .e-factura { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.sd-emp .e-factura__cabeza { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--linea); line-height: 1.35; }
.sd-emp .e-factura__logo { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.sd-emp .e-factura__titulo { font-weight: 600; }
.sd-emp .e-factura__dato { color: var(--gris); }
.sd-emp .e-factura__cabeza .estado { margin-left: auto; align-self: flex-start; }
.sd-emp .e-factura__cliente { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; padding: 14px 2px 12px; line-height: 1.4; }
.sd-emp .e-factura__cliente span { color: var(--gris); }
.sd-emp .e-factura__lineas li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 14px; border-radius: 12px; background: var(--fondo); line-height: 1.35; }
.sd-emp .e-factura__lineas li + li { margin-top: 6px; }
.sd-emp .e-factura__importe { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sd-emp .e-factura__total { margin-top: 10px; }
.sd-emp .e-factura__total div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 14px; color: var(--gris); font-variant-numeric: tabular-nums; }
.sd-emp .e-factura__total .e-factura__suma { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--linea); color: var(--tinta); font-size: 20px; font-weight: 650; letter-spacing: 0; }
.sd-emp .e-recibes .e-desde-tableta { display: none; }
.sd-emp .lista a { color: var(--accion); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sd-emp .lista a:hover { color: var(--accion-hondo); text-decoration-thickness: 2px; }

/* 5 ─ La API (04-12-2026, ya sin «próximamente»): panel oscuro con el texto y la ventana de código, cuatro ventajas en
   tarjetas blancas y tres pasos. La ventana de código (sd_t_empresas_api_codigo) es la misma que la de la portada. */
.sd-emp { --fuente-codigo: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
.sd-emp .e-api { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 30px 16px 16px; }
.sd-emp .e-api p:not(.antetitulo) { display: block; margin-top: 0; }
.sd-emp .e-api__texto { padding-inline: 4px; }
.sd-emp .e-api h2 { margin-top: 8px; }
.sd-emp .e-api p.e-api__llano { margin-top: 14px; color: #C5CAD3; font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.sd-emp .e-api p.e-api__seguro { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: #fff; font-size: 16px; line-height: 1.45; font-weight: 500; text-wrap: pretty; }
.sd-emp .e-api__seguro .icono { width: 22px; height: 22px; margin-top: -1px; color: var(--accion-claro); }
.sd-emp .e-api__acciones { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 24px; }
.sd-emp .e-api__acciones .boton { width: 100%; }
.sd-emp .e-api__acciones .enlace { text-align: center; }
.sd-emp .enlace--claro { color: var(--accion-claro); }
.sd-emp .enlace--claro:hover { color: #fff; }

/* La ventana de código */
.sd-emp .e-codigo { min-width: 0; margin: 0; padding-bottom: 4px; border-radius: 20px; background: #07090D; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.sd-emp .e-codigo__barra { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sd-emp .e-codigo__puntos { display: flex; gap: 7px; }
.sd-emp .e-codigo__puntos i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.sd-emp .e-codigo__puntos i + i { background: #FEBC2E; }
.sd-emp .e-codigo__puntos i + i + i { background: #28C840; }
.sd-emp .e-codigo__ruta { font-family: var(--fuente-codigo); font-size: 13px; line-height: 1.2; color: #8A93A3; }
.sd-emp .e-api p.e-codigo__rotulo { display: flex; align-items: center; gap: 10px; margin: 16px 16px 0; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.3; }
.sd-emp .e-codigo__paso { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(143, 192, 255, .18); color: var(--accion-claro); font-size: 14px; font-weight: 650; }
.sd-emp .e-codigo__texto { margin: 8px 0 0; padding: 8px 16px 12px; background: none; border: 0; border-radius: 0; overflow-x: auto; overscroll-behavior-x: contain; font-family: var(--fuente-codigo); font-size: 13px; line-height: 1.65; letter-spacing: 0; color: #D7DCE4; white-space: pre; tab-size: 2; }
.sd-emp .e-codigo__texto:focus-visible { outline-offset: -3px; }
.sd-emp .e-codigo__texto code { font: inherit; color: inherit; background: none; padding: 0; }
.sd-emp .e-codigo .cd-k { color: #8FC0FF; }
.sd-emp .e-codigo .cd-s { color: #A6E3B5; }
.sd-emp .e-codigo .cd-n { color: #FFC56B; }
.sd-emp .e-codigo .cd-m { color: #fff; font-weight: 700; }
.sd-emp .e-codigo .cd-c { color: #8A93A3; }
.sd-emp .e-codigo .cd-ok { color: #5BD68A; font-weight: 700; }

/* Cuatro ventajas */
.sd-emp .e-api__ventajas { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hueco); margin-top: var(--hueco); }
.sd-emp .e-api__ventajas li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 22px 20px; }
.sd-emp .e-api__icono { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accion-velo); color: var(--accion); }
.sd-emp .e-api__ventajas h3 { margin-top: 1px; font-size: 18px; line-height: 1.25; font-weight: 650; letter-spacing: 0; color: var(--tinta); text-wrap: balance; }
.sd-emp .e-api__ventajas p { margin-top: 6px; color: var(--gris); line-height: 1.45; text-wrap: pretty; }
.sd-emp .e-api__ventajas a { color: var(--accion); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Tres pasos */
.sd-emp .e-api__como { margin-top: 40px; }
.sd-emp .e-api__como-titulo { margin-bottom: 16px; font-size: var(--t-s); line-height: 1.2; font-weight: 650; letter-spacing: -.01em; color: var(--gris-titular); text-wrap: balance; }
.sd-emp .e-api__como-titulo b { color: var(--tinta); }
.sd-emp .e-api__pasos h4 { margin: 5px 0 0; font-size: 18px; line-height: 1.25; font-weight: 650; letter-spacing: 0; color: var(--tinta); text-wrap: balance; }
.sd-emp .e-api__pasos p { margin-top: 6px; }

/* En el móvil, ventajas y pasos en una sola tarjeta con separadores: menos alto y el mismo aire */
@media (max-width: 639.98px) {
  .sd-emp :is(.e-api__ventajas, .e-api__pasos) { gap: 0; padding: 2px var(--relleno); border-radius: var(--radio); background: var(--blanco); box-shadow: var(--sombra); }
  .sd-emp :is(.e-api__ventajas, .e-api__pasos) > li { padding: 20px 0; border-radius: 0; background: none; box-shadow: none; }
  .sd-emp :is(.e-api__ventajas, .e-api__pasos) > li + li { border-top: 1px solid var(--linea); }
  .sd-emp .e-api__como { margin-top: 36px; }
}
@media (min-width: 640px) {
  .sd-emp .e-api { padding: 40px 32px 32px; gap: 32px; }
  .sd-emp .e-api__acciones { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
  .sd-emp .e-api__acciones .boton { width: auto; }
  .sd-emp .e-codigo__texto { font-size: 14px; padding-inline: 20px; }
  .sd-emp .e-api p.e-codigo__rotulo { margin-inline: 20px; }
  .sd-emp .e-api__ventajas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .sd-emp .e-api__pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sd-emp .e-api__pasos li { padding: 24px; }
}
@media (min-width: 1024px) {
  .sd-emp .e-api { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 56px; padding: 64px 56px; }
  .sd-emp .e-api__texto { padding-inline: 0; }
  .sd-emp .e-api p.e-api__llano { margin-top: 18px; font-size: 20px; max-width: 26em; }
  .sd-emp .e-api p.e-api__seguro { display: inline-flex; margin-top: 24px; }
  .sd-emp .e-api__acciones { margin-top: 30px; }
  .sd-emp .e-codigo { border-radius: 24px; }
  .sd-emp .e-api__ventajas { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--hueco); }
  .sd-emp .e-api__ventajas li { display: block; padding: 28px 26px; }
  .sd-emp .e-api__ventajas h3 { margin-top: 18px; font-size: 19px; }
  .sd-emp .e-api__como { margin-top: 56px; }
  .sd-emp .e-api__como-titulo { margin-bottom: 20px; }
}

/* 6 ─ El alta */
.sd-emp .e-alta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.sd-emp .e-alta__texto .entrada { margin-top: 10px; max-width: 30em; }
/* Los tres pasos en el móvil: tres columnas con el número y el rótulo; la frase, desde 900 px */
.sd-emp .e-alta__pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.sd-emp .e-alta__pasos li { flex-direction: column; align-items: center; gap: 8px; padding: 0 2px; text-align: center; }
.sd-emp .e-alta__pasos h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0; text-wrap: balance; }
.sd-emp .e-alta__pasos p { display: none; }
.sd-emp .e-alta__wa { display: none; }
.sd-emp .e-alta__form { padding: var(--relleno); }
.sd-emp .e-alta__form .casilla { padding-block: 4px; }
.sd-emp .e-alta__legal { text-align: center; }
.sd-emp .e-alta__hecho { display: grid; justify-items: start; gap: 10px; padding: 32px var(--relleno); }
.sd-emp .e-alta__hecho:focus-visible { outline-offset: 4px; border-radius: var(--radio); }
.sd-emp .e-alta__sello { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--verde-velo); color: var(--verde); margin-bottom: 4px; }
.sd-emp .e-alta__sello .icono { width: 28px; height: 28px; stroke-width: 2.2; }
.sd-emp .e-alta__hecho .suave b { color: var(--tinta); overflow-wrap: anywhere; }
.sd-emp .e-alta__hecho .boton { margin-top: 8px; }

/* ── Tableta */
@media (min-width: 640px) {
  .sd-emp .e-hero { padding: 36px 32px 28px; }
  .sd-emp .e-hero h1 { font-size: 52px; line-height: 1.02; }
  .sd-emp .e-largo { display: inline; }
  .sd-emp .e-hero__acciones { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
  .sd-emp .e-hero__acciones .enlace { display: inline-block; }
  .sd-emp .e-hero__arte { max-width: 560px; margin-inline: auto; }
  .sd-emp .e-hero__pedidos { display: inline; }
  .sd-emp .e-forma { grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 24px 0 10px; }
  .sd-emp .e-forma__icono { width: 52px; height: 52px; border-radius: 16px; }
  .sd-emp .e-forma__para { display: block; }
  .sd-emp .e-forma .subtitulo { font-size: var(--t-s); }
  .sd-emp .e-precios { padding: 8px var(--relleno); }
  .sd-emp .e-precios thead th { padding: 14px 12px 12px 0; color: var(--gris); }
  .sd-emp .e-precios tbody tr { border-top: 1px solid var(--linea); }
  .sd-emp .e-precios tbody th, .sd-emp .e-precios td { padding: 10px 12px 10px 0; vertical-align: middle; }
  .sd-emp .e-precios tbody th { display: flex; align-items: center; gap: 14px; }
  .sd-emp .e-precios th.e-num, .sd-emp .e-precios td.e-num { text-align: right; }
  .sd-emp .e-precios tr > :last-child { padding-right: 0; }
  .sd-emp .e-precios img { width: 56px; height: 56px; }
  .sd-emp .e-precios__rotulo { display: none; }
  .sd-emp .e-precios .e-precios__base { display: none; }          /* la columna «Sin IVA», desde 900 px */
  .sd-emp .e-alta__pasos { margin-top: 24px; }
}
@media (min-width: 640px) and (max-width: 899.98px) {
  .sd-emp .e-precios td.e-precios__tuyo, .sd-emp .e-precios thead th:nth-child(3) { padding-right: 0; }
}
@media (min-width: 768px) {
  .sd-emp .e-recibes { grid-template-columns: 1fr 1fr; }
  .sd-emp .e-recibes .e-desde-tableta { display: flex; }
}
/* ── Desde 900 px: las tres formas en tres tarjetas y el alta en dos columnas */
@media (min-width: 900px) {
  .sd-emp .e-formas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hueco); padding: 0; background: none; border-radius: 0; box-shadow: none; }
  .sd-emp .e-forma { display: flex; flex-direction: column; gap: 0; padding: var(--relleno) var(--relleno) 16px; background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); }
  .sd-emp .e-forma + .e-forma { border-top: 0; }
  .sd-emp .e-forma__icono { margin-bottom: 22px; }
  .sd-emp .e-forma__texto { display: flex; flex-direction: column; flex: 1; }
  .sd-emp .e-forma .subtitulo { margin-top: 4px; }
  .sd-emp .e-forma__texto > p:not(.e-forma__para) { margin: 10px 0 6px; }
  .sd-emp .e-forma .enlace { margin-top: auto; align-self: flex-start; }
  .sd-emp .e-precios .e-precios__base { display: table-cell; }
  .sd-emp .e-alta { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; align-items: center; }
  .sd-emp .e-alta__pasos { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 28px; max-width: 30em; }
  .sd-emp .e-alta__pasos li { flex-direction: row; align-items: flex-start; gap: 16px; padding: 14px 0; text-align: left; }
  .sd-emp .e-alta__pasos h3 { margin-top: 5px; font-size: 19px; font-weight: 650; letter-spacing: 0; }
  .sd-emp .e-alta__pasos p { display: block; }
  .sd-emp .e-alta__wa { display: block; margin-top: 10px; }
}
/* ── Ordenador: el arranque entero cabe en la primera pantalla de un portátil (1366 × 650) */
@media (min-width: 1024px) {
  .sd-emp .e-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; margin-top: 2px; padding: 40px 12px 36px 48px; min-height: 470px; }
  .sd-emp .e-hero__texto { grid-column: 1; grid-row: 1; }
  .sd-emp .e-hero__sello { grid-column: 1; grid-row: 2; margin-top: 28px; padding-top: 20px; }
  .sd-emp .e-hero__arte { grid-column: 2; grid-row: 1 / span 2; align-self: center; max-width: none; margin: 0; }
  .sd-emp .e-hero .antetitulo { display: block; }
  .sd-emp .e-hero h1 { font-size: clamp(46px, 4.7vw, 64px); line-height: 1.01; margin-top: 12px; }
  .sd-emp .e-hero .entrada { margin-top: 18px; max-width: 25em; }
  .sd-emp .e-hero__acciones { margin-top: 26px; }
  .sd-emp .e-forma__icono { width: 56px; height: 56px; border-radius: 18px; }
  .sd-emp .e-forma__icono .icono { width: 26px; height: 26px; }
  .sd-emp .e-precios { padding: 14px 40px 16px; }
  .sd-emp .e-precios tbody th, .sd-emp .e-precios td { padding-block: 14px; }
  .sd-emp .e-precios__nombre { font-size: 19px; }
  .sd-emp .e-precios__tuyo b { font-size: 21px; padding: 4px 14px; }
  .sd-emp .e-recibes { grid-template-columns: 1.1fr 1fr; }
  .sd-emp .e-factura { padding: 36px; }
  .sd-emp .e-factura__cliente { padding: 18px 2px 14px; }
  .sd-emp .e-factura__lineas li { padding: 12px 16px; }
  .sd-emp .e-factura__total div { padding-inline: 16px; }
  .sd-emp .e-alta { gap: 80px; }
  .sd-emp .e-alta__hecho { padding: 44px var(--relleno); }
}
@media (min-width: 1240px) {
  .sd-emp .e-hero { padding-left: 72px; min-height: 500px; }
}
