/* RBL WEB v2 · Páginas Nosotros, Noticias y Contáctenos
   Se carga después de v2.css y servicio.css. Clases p-* */

/* ===== Nosotros: testimonios en gris (entre Cómo trabajamos blanco y el contacto negro) ===== */
.p-voices-grey { background: #f4f4f6; }
.p-voices-grey .v-voices__card { background: #fff; }

/* ===== Nosotros: servicios con la primera fila sin borde superior extra ===== */
.p-services .v-sechead { padding-top: 0; }

/* ===== Contáctenos: el "¿Conversamos?" es la portada ===== */
.p-contact-page .v-contact { border-top: 0; padding-top: calc(var(--header-h, 4rem) + 1.5rem); }
.p-contact-page .v-contact__top { align-items: center; text-align: center; }
.p-contact-page .s-crumbs { justify-content: center; margin-bottom: calc(.6 * var(--v-u)); }
.p-contact-page .s-crumbs, .p-contact-page .s-crumbs a { color: rgba(255, 255, 255, .62); }
.p-contact-page .s-crumbs a:hover, .p-contact-page .s-crumbs [aria-current] { color: #fff; }
.p-social { display: flex; flex-wrap: wrap; gap: calc(.5 * var(--v-u)); }
.p-social a { display: inline-flex; align-items: center; gap: .55em; padding: calc(.5 * var(--v-u)) calc(1 * var(--v-u)); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: calc(.9 * var(--v-u)); font-weight: 500; color: var(--v-ink); transition: background-color .3s, border-color .3s, color .3s; }
.p-social a:hover { background: #fff; border-color: #fff; color: #0b0b0d; }
.p-social svg { width: 1.15em; height: 1.15em; }
@media (min-width: 64rem) {
  .p-contact-page .v-contact { min-height: 100svh; padding-top: calc(var(--header-h) + 2.2 * var(--v-u)); }
}
@media (max-width: 63.99rem) {
  .p-social a { font-size: .9rem; padding: .55rem 1rem; }
}

/* Contáctenos: accesos a los servicios (4 tarjetas en claro) */
.p-incs-4 .s-inc { color: inherit; }
.p-incs-4 .s-inc__go { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--v-purple); font-size: calc(.95 * var(--v-u)); }
.p-incs-4 .s-inc__go .n-ico { width: 1em; height: 1em; transition: transform .4s var(--v-ease); }
.p-incs-4 .s-inc:hover .s-inc__go .n-ico { transform: translateX(4px); }
.s-light.s-includes { background: #fff; }
.s-light .s-inc { background: #f4f4f6; }
@media (min-width: 64rem) {
  .p-incs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 63.99rem) {
  .p-incs-4 .s-inc__go { font-size: .95rem; }
}

/* ===== Noticias: archivo del blog ===== */
.p-blog { background: #fff; color: #0b0b0d; padding: calc(var(--header-h, 4rem) + 2rem) var(--v-gut) 3.5rem; display: flex; flex-direction: column; gap: calc(1.8 * var(--v-u)); --ic-ac: var(--v-purple); }
.p-blog .v-title em { color: var(--v-purple); }
.p-blog .v-tbadge { background: rgba(115, 31, 184, .09); }
.p-blog__head { display: flex; flex-direction: column; gap: calc(1 * var(--v-u)); }
.p-blog__head .s-crumbs { margin-bottom: calc(.4 * var(--v-u)); }
.p-blog__row { display: flex; align-items: flex-end; justify-content: space-between; gap: calc(1.5 * var(--v-u)); flex-wrap: wrap; }
.p-blog__sub { color: #5d5d66; max-width: 40ch; font-size: calc(1.05 * var(--v-u)); line-height: 1.45; }
.p-blog__filters { display: flex; flex-wrap: wrap; gap: calc(.5 * var(--v-u)); }
.p-blog__filters .v-pill.is-on { background: #0b0b0d; border-color: #0b0b0d; color: #fff; }
.p-posts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--v-u); }
.p-posts .v-post { min-height: 0; }
.p-posts .v-post[hidden] { display: none; }
.p-posts .v-post--main .v-post__img { aspect-ratio: 16 / 9; }
.p-blog__empty { color: #5d5d66; }
@media (min-width: 48rem) {
  .p-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-posts .v-post--main { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .p-blog { min-height: 100svh; padding: calc(var(--header-h) + 2.6 * var(--v-u)) var(--v-gut) calc(4 * var(--v-u)); }
  .p-blog .v-title { font-size: calc(5 * var(--v-u)); }
  .p-posts { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: calc(1.2 * var(--v-u)); }
  .p-posts .v-post { grid-column: span 2; }
  .p-posts .v-post--main { grid-column: 1 / -1; }
  .p-posts .v-post--main { flex-direction: row; min-height: calc(22 * var(--v-u)); }
  .p-posts .v-post--main .v-post__img { aspect-ratio: auto; flex: 0 0 56%; width: 56%; min-height: 0; }
  .p-posts .v-post--main .v-post__body { flex: 1 1 0; min-width: 0; justify-content: center; padding: calc(2.4 * var(--v-u)) calc(5.5 * var(--v-u)) calc(2.4 * var(--v-u)) calc(2.4 * var(--v-u)); gap: calc(1 * var(--v-u)); }
  .p-posts .v-post--main .v-post__title { font-size: calc(2.6 * var(--v-u)); max-width: 18ch; overflow-wrap: normal; }
  .p-posts .v-post--main .v-post__excerpt { -webkit-line-clamp: 4; }
}

/* ===== Artículos paso a paso (correos corporativos) ===== */
.p-steps { list-style: none; padding: 0 !important; margin: 1.6rem 0 0; display: flex; flex-direction: column; gap: 1rem; counter-reset: ps; }
.p-step { counter-increment: ps; display: grid; gap: 1rem; padding: 1.2rem; border: 1px solid #e4e4e8; border-radius: 1.2rem; background: #fff; }
.p-step__txt { position: relative; padding-left: 2.8rem; margin: 0; }
.p-step__txt::before { content: counter(ps); position: absolute; left: 0; top: .1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--v-purple); color: #fff; font-size: .85rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.p-step__txt code, .v-art__body code { font-family: inherit; font-weight: 600; background: #f4f4f6; padding: .1em .45em; border-radius: .4em; color: #0b0b0d; }
.p-step__img { margin: 0; border-radius: .9rem; overflow: hidden; background: #f4f4f6; display: grid; place-items: center; padding: 1rem; }
.p-step__img img { display: block; max-width: 100%; height: auto; border-radius: .5rem; box-shadow: 0 1px 0 rgba(11, 11, 13, .06), 0 8px 24px rgba(11, 11, 13, .08); }
.p-step__img--phone img { width: min(100%, 17rem); }
.p-step__img--win img { width: min(100%, 26rem); }
@media (min-width: 48rem) {
  .p-step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 1.4rem; }
  .p-step--wide { grid-template-columns: 1fr; }
  .p-step--wide .p-step__img img { width: 100%; }
}
.p-step--noimg { grid-template-columns: 1fr !important; }
.v-art-page .v-contact { background: #0b0b0d; color: #f3f3f4; border-top: 0; --ic-ac: var(--v-purple-hi); }

/* Noticias: la última fila nunca deja huecos (JS pone p-span-half / p-span-full según cuántas quedan) */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .p-posts .v-post.p-span-full { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .p-posts .v-post.p-span-half { grid-column: span 3; }
  .p-posts .v-post.p-span-full { grid-column: 1 / -1; }
}
@media (min-width: 48rem) {
  .p-posts .v-post.p-span-half, .p-posts .v-post.p-span-full { flex-direction: row; min-height: calc(14 * var(--v-u)); }
  .p-posts .v-post.p-span-half .v-post__img, .p-posts .v-post.p-span-full .v-post__img { aspect-ratio: auto; flex: 0 0 44%; width: 44%; min-height: 0; }
  .p-posts .v-post.p-span-full .v-post__img { flex-basis: 32%; width: 32%; }
  .p-posts .v-post.p-span-half .v-post__body, .p-posts .v-post.p-span-full .v-post__body { flex: 1 1 0; min-width: 0; justify-content: center; }
}

/* Nosotros: título más largo que el de los servicios, en menos líneas para que la portada respire */
@media (min-width: 64rem) {
  .p-hero-nos .s-hero__text { width: min(100%, calc(52 * var(--v-u))); }
  .p-hero-nos .s-hero__title { font-size: calc(5 * var(--v-u)); max-width: 14ch; line-height: .98; }
}

/* ---------- Páginas legales (privacidad, cookies, libro de reclamaciones) ---------- */
.p-falta { background: #fff3b0; color: #0b0b0d; padding: 0 .3em; border-radius: .3em; }
.p-legal .v-art__body h2 { margin-top: 2.6rem; }
.p-prov { padding: 1.2rem 1.4rem; border: 1px solid #e4e4e8; border-radius: 1rem; background: #f6f6f8; font-size: 1rem; line-height: 1.5; }
.p-prov p + p { margin-top: .2rem; }
.p-enviado { padding: 1.2rem 1.4rem; border-left: 3px solid var(--v-purple); background: rgba(115, 31, 184, .06); border-radius: 0 1rem 1rem 0; }
.p-enviado--error { border-left-color: #c0392b; background: rgba(192, 57, 43, .06); }
.p-libro { background: #f6f6f8; border-color: #e4e4e8; padding: 1.6rem; gap: 1.4rem; }
.p-libro__grupo { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.p-libro__grupo:not(:last-of-type) { padding-bottom: 1.4rem; border-bottom: 1px solid #e4e4e8; }
.p-libro legend { padding: 0; margin-bottom: 1rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; color: #0b0b0d; }
.p-libro .v-field label { color: #55555c; font-size: .75rem; }
.p-libro .v-field input, .p-libro .v-field textarea { background: #fff; border-color: #d6d6dc; color: #0b0b0d; font-size: 1rem; padding: .8rem 1rem; }
.p-libro .v-field input:focus, .p-libro .v-field textarea:focus { border-color: var(--v-purple); background: #fff; }
.p-libro .v-topic__opt span { border-color: #d6d6dc; color: #0b0b0d; font-size: .95rem; padding: .5rem 1.1rem; }
.p-libro__ayuda { font-size: .95rem; line-height: 1.55; color: #55555c; }
.p-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .98rem; line-height: 1.5; color: #2a2a30; cursor: pointer; }
.p-check input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--v-purple); flex: none; }
.p-libro__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 40rem) { .p-libro { padding: 1.1rem; } }
