/* Páginas de servicio de Creación de Web (servicio.php).
   Se carga DESPUÉS de landing.css y solo agrega lo propio de estas páginas: la
   columna de lectura, el texto que viene del .md, la tabla que en el teléfono se
   vuelve tarjetas y la conversación de ejemplo en burbujas. Los colores, las
   fuentes, los botones, el formulario y el pie son los de la portada. */

/* ---------- Columna de lectura ---------- */
.s-col { width: min(100% - (var(--lado) * 2), 44rem); margin-inline: auto; }

/* ---------- Cabecera de la página ---------- */
.s-heroe { position: relative; isolation: isolate; overflow: hidden; padding: 140px 0 6px; background: var(--negro); }
.migas { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-bottom: 10px; color: var(--suave); font-size: 13.5px; }
.migas a { display: inline-flex; align-items: center; min-height: 44px; color: var(--suave); text-decoration: none; }
.migas a:hover { color: var(--acento-claro); text-decoration: underline; }
.migas [aria-current] { color: var(--texto); }
.s-heroe h1 {
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.015em;
}
.s-nota { margin-top: 18px; color: var(--suave); }
.s-heroe .s-acciones { margin-bottom: 72px; }

/* ---------- Texto del servicio ---------- */
.s-cuerpo { padding: 22px 0 64px; }
.prosa {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(236, 239, 233, .86);
  overflow-wrap: break-word;
}
.prosa > :first-child { margin-top: 0; }
.prosa p { margin: 0 0 1.15em; }
.prosa > p:first-child { font-size: 1.18rem; line-height: 1.6; color: var(--suave); }
.prosa strong { color: var(--texto); font-weight: 700; }
.prosa a { color: var(--acento-claro); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prosa a:hover { color: #fff; }
.prosa h2 {
  margin: 2.6em 0 .7em;
  padding-top: 1.5em;
  border-top: 1px solid var(--linea);
  color: var(--texto);
  font-size: clamp(1.55rem, 1.25rem + 1.3vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.prosa h3 { margin: 2em 0 .5em; color: var(--texto); font-size: 1.3rem; line-height: 1.3; }
.prosa hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--linea); }

/* Listas: viñeta cuadrada verde, y números dentro de un círculo */
.prosa ul, .prosa ol { margin: 0 0 1.3em; padding: 0; list-style: none; }
.prosa ul li { position: relative; margin-bottom: .75em; padding-left: 1.5em; }
.prosa ul li::before { content: ""; position: absolute; left: .15em; top: .66em; width: 7px; height: 7px; border-radius: 2px; background: var(--acento); }
.prosa ol { counter-reset: paso; }
.prosa ol li { position: relative; margin-bottom: .75em; padding-left: 2.4em; counter-increment: paso; }
.prosa ol li::before {
  content: counter(paso);
  position: absolute; left: 0; top: 2px;
  display: grid; place-items: center;
  width: 26px; height: 26px; border: 1px solid rgba(239, 239, 237, .55); border-radius: 50%;
  color: var(--acento-claro); font-size: 13px; font-weight: 700; line-height: 1;
}

/* Botón que el texto trae después de la primera frase: no hereda el color de enlace */
.s-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 0; }
.prosa a.boton { color: var(--tinta-btn); text-decoration: none; }
.prosa a.boton:hover { color: var(--tinta-btn); }
.prosa a.boton-linea { color: var(--texto); }
.prosa a.boton-linea:hover { color: var(--acento-claro); }

/* Cita común (si algún texto trae una sin turnos) */
.prosa blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--acento); color: var(--suave); }
.prosa blockquote p { margin: 0; }

/* ---------- Conversación de ejemplo ---------- */
.conversacion {
  display: flex; flex-direction: column; gap: 12px;
  margin: 1.6em 0 1.8em; padding: 18px 14px;
  background: var(--noche-2); border: 1px solid var(--linea); border-radius: 18px;
}
.prosa p.turno { margin: 0; max-width: 90%; padding: 12px 16px; border-radius: 16px; font-size: 16px; line-height: 1.55; }
.prosa .turno strong { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.turno-cliente { align-self: flex-end; border: 1px solid rgba(239, 239, 237, .38); border-bottom-right-radius: 5px; background: rgba(239, 239, 237, .14); color: var(--texto); }
.prosa .turno-cliente strong { color: var(--acento-claro); }
.turno-asistente { align-self: flex-start; border: 1px solid var(--linea); border-bottom-left-radius: 5px; background: rgba(236, 239, 233, .06); color: rgba(236, 239, 233, .92); }
.prosa .turno-asistente strong { color: var(--suave); }

/* ---------- Tabla: tarjetas en el teléfono, tabla desde 640 px ----------
   El HTML trae el nombre de cada columna en data-label de cada celda (lo pone
   servicio.php), así que en pantalla angosta cada fila es una tarjeta y no hay
   que desplazarse hacia el lado. La fila de títulos queda solo para lectores de pantalla. */
.tabla-scroll { margin: 1.6em 0 1.8em; }
.prosa table, .prosa tbody, .prosa tr, .prosa td { display: block; }
.prosa table { width: 100%; font-size: 15.5px; line-height: 1.55; }
.prosa thead {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.prosa tr { margin-bottom: 14px; padding: 18px 18px 16px; background: var(--noche-2); border: 1px solid var(--linea); border-radius: 16px; }
.prosa td { padding: 0; }
.prosa td + td { margin-top: 12px; }
.prosa td::before {
  content: attr(data-label); display: block; margin-bottom: 2px;
  color: var(--suave); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.prosa td:first-child { color: var(--texto); font-family: var(--titulos); font-size: 1.3rem; line-height: 1.25; }
.prosa td:first-child::before { display: none; }
.prosa td.precio { color: var(--acento-claro); font-family: var(--titulos); font-size: 1.7rem; line-height: 1.15; }

/* ---------- Otros servicios ---------- */
.s-otros { padding: 44px 0 72px; border-top: 1px solid var(--linea); }
.s-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.s-chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid rgba(236, 239, 233, .22); border-radius: 999px;
  color: var(--texto); font-size: 14.5px; font-weight: 600; text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}
.s-chips a:hover { border-color: var(--acento); color: var(--acento-claro); }

/* ---------- Pantallas medianas ---------- */
@media (min-width: 640px) {
  .tabla-scroll { overflow-x: auto; }
  .prosa table { display: table; border-collapse: collapse; }
  .prosa thead { position: static; display: table-header-group; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
  .prosa tbody { display: table-row-group; }
  .prosa tr { display: table-row; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
  .prosa th, .prosa td {
    display: table-cell; padding: 16px 20px 16px 0; vertical-align: top; text-align: left;
    border-bottom: 1px solid var(--linea);
  }
  .prosa th {
    padding-top: 0; color: var(--suave); font-size: 11.5px; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; border-bottom-color: rgba(236, 239, 233, .3);
  }
  .prosa td + td { margin-top: 0; }
  .prosa td::before { content: none; }
  .prosa td:first-child { width: 27%; font-size: 1.15rem; }
  .prosa td.precio { width: 17%; font-size: 1.3rem; white-space: nowrap; }
  .prosa p.turno { max-width: 82%; }
  .conversacion { padding: 22px 20px; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 960px) {
  .s-heroe { padding-top: 176px; }
  .s-cuerpo { padding: 30px 0 96px; }
  .prosa { font-size: 18px; }
  .prosa > p:first-child { font-size: 1.3rem; }
  .s-otros { padding: 56px 0 96px; }
}
