/* v16 · claridad · v16-servicios.css · ver C:/FlowXR/_DISENO_FLOWXR/CONTRATO_v16.md
   Hoja de Servicios (#dServicios) y pantallas de perfil (#dPerfil): foto + nombre + una frase + flecha; una familia por vez; lo demas plegado en filas.
   Coohom: una idea por pantalla. Aqui elevar es QUITAR de la vista; el detalle queda un toque adentro. Tokens v14. */

/* ---------- cabecera: el titulo manda; el rotulo y la bajada repiten lo que dicen las pestañas y la linea de confianza */
html body #dServicios .hoja-cab .rot,html body #dServicios .hoja-cab .sv-regla,html body #dPerfil #perRot{display:none}
html body #dPerfil .hoja-cab h2{text-wrap:balance}

/* ---------- pestañas (control segmentado de vidrio) */
html body #svcLista{display:flex;flex-direction:column;gap:16px}
html body .v16s-tabs{position:sticky;top:8px;z-index:6;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:16px;
  background:color-mix(in srgb,var(--paper) 90%,transparent);border:1px solid var(--v14-glass-line);-webkit-backdrop-filter:blur(22px) saturate(1.2);backdrop-filter:blur(22px) saturate(1.2)}
html body .v16s-tabs [role=tab]{min-height:48px;min-width:0;padding:6px 6px;border:0;border-radius:12px;background:transparent;color:var(--ink);cursor:pointer;
  font:600 14px/1.2 var(--body);letter-spacing:-.005em;text-align:center;text-wrap:balance;overflow-wrap:anywhere;transition:background var(--v14-t2) var(--v14-ease),color var(--v14-t2) var(--v14-ease)}
html body .v16s-tabs [role=tab][aria-selected=true]{background:var(--ink);color:var(--paper)}
html body .v16s-tabs [role=tab]:not([aria-selected=true]):hover{background:rgba(var(--ink-rgb,231,236,230),.1)}
html body .v16s-tabs [role=tab]:focus-visible{outline:2px solid var(--v14-accent);outline-offset:2px}
html body .v16s-fam{margin:0 0 -8px;font-size:14px;line-height:1.35;color:var(--muted)}
html body .v16s-trust{margin:0;font-size:13px;line-height:1.35;color:var(--muted)}
html body .v16s-panels{display:block}
html body .v16s-panel[hidden]{display:none}
html body .v16s-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
/* las secciones de cada familia pasan a ser sólo contenedores de ancla: sus tarjetas van directo a la rejilla del panel */
html body .v16s-panel>section.svc-grupo,html body .v16s-panel>section.svc-grupo>.svc-grid{display:contents}
html body .v16s-panel>section.svc-grupo{border:0;padding:0}
html body .v16s-panel .svc-grid{gap:16px}

/* ---------- tarjetas: foto grande + nombre + una frase (2 lineas) + «+» */
html body #dServicios .svc-card,html body #dPerfil .svc-card{border-radius:var(--v14-r-card)}
html body #dServicios .svc-img,html body #dPerfil .svc-img{aspect-ratio:3/2}
html body #dServicios .svc-tx,html body #dPerfil .svc-tx{gap:4px;padding:14px 68px 16px 16px;min-height:88px;justify-content:center}
html body #dServicios .svc-n,html body #dPerfil .svc-n{font-size:19px;line-height:1.18;font-weight:600;letter-spacing:-.015em}
html body #dServicios .svc-l,html body #dPerfil .svc-l{font-size:14px;line-height:1.4;color:var(--muted);max-width:none;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
html body #dServicios .v16s-resto,html body #dPerfil .v16s-resto{display:none}
html body #dServicios .svc-card.abre .v16s-resto,html body #dPerfil .svc-card.abre .v16s-resto{display:inline}
html body #dServicios .svc-card.abre .svc-l,html body #dPerfil .svc-card.abre .svc-l{display:block;-webkit-line-clamp:unset;overflow:visible}
/* fuera de la vista hasta abrir: tipo, linea de distribucion y «Quoted per project» */
html body #dServicios .svc-card:not(.abre) :is(.svc-tipo,.svc-dist,.svc-pbox),html body #dPerfil .svc-card:not(.abre) :is(.svc-tipo,.svc-dist,.svc-pbox){display:none}
html body #dServicios .svc-pbox,html body #dPerfil .svc-pbox{padding-top:8px}
html body #dServicios .svc-mas,html body #dPerfil .svc-mas{width:44px;height:44px;right:12px;bottom:22px}
html body #dServicios .svc-card.abre .svc-mas,html body #dPerfil .svc-card.abre .svc-mas{bottom:auto;top:auto}
/* tarjeta abierta: el detalle completo de siempre; en escritorio ocupa la fila entera, foto a la izquierda y detalle a la derecha */
html body #dServicios .svc-card.abre,html body #dPerfil .svc-card.abre{grid-column:1/-1}
html body #dServicios .svc-card.abre:not(.grande) .svc-cab,html body #dPerfil .svc-card.abre:not(.grande) .svc-cab{grid-template-columns:minmax(0,1fr);align-items:stretch}
html body #dServicios .svc-card.abre .svc-tx,html body #dPerfil .svc-card.abre .svc-tx{min-height:0}
@media(min-width:900px){
  html body #dServicios .svc-card.abre,html body #dPerfil .svc-card.abre{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:start}
  html body #dServicios .svc-card.abre .svc-det,html body #dPerfil .svc-card.abre .svc-det{border-top:0;border-left:1px solid var(--h-line);height:100%}
}
html body #dServicios .svc-card.abre .svc-det[hidden]{display:none}
@media(min-width:600px){
  html body .v16s-panel{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:900px){
  html body .v16s-panel[data-fam=viz]{grid-template-columns:repeat(4,minmax(0,1fr))}
  html body .v16s-panel:not([data-fam=viz]) .svc-img{aspect-ratio:2/1}
  html body .v16s-tabs{max-width:640px}
}
@media(min-width:600px){html body .v16s-tabs{max-width:640px}}

/* ---------- filas plegadas de una linea (≥ 52 px, flecha) */
html body .v16s-rows{display:flex;flex-direction:column;margin-top:8px}
html body .v16s-panel>.v16s-row{grid-column:1/-1}
html body .v16s-row,html body #dServicios #sv-limites,html body #dPerfil .per-otros{border:0;border-top:1px solid var(--h-line);border-radius:0;background:transparent;padding:0;margin:0}
html body .v16s-row>summary,html body #dPerfil .per-otros>summary,html body #dPerfil #perCaps .per-caps-t,html body #dPerfil .per-acc>button{
  display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;width:100%;min-height:56px;padding:0 4px;margin:0;border:0;border-radius:0;background:transparent;
  color:var(--ink);font:600 16px/1.25 var(--body);letter-spacing:-.005em;text-transform:none;cursor:pointer;list-style:none;text-align:left}
html body .v16s-row>summary::-webkit-details-marker,html body #dPerfil .per-otros>summary::-webkit-details-marker{display:none}
html body .v16s-row>summary::marker,html body #dPerfil .per-otros>summary::marker{content:''}
html body .v16s-row>summary::after,html body #dPerfil .per-otros>summary::after,html body #dPerfil #perCaps .per-caps-t::after{
  content:'';flex:none;width:9px;height:9px;margin-right:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform var(--v14-t2) var(--v14-ease);opacity:.7}
html body .v16s-row[open]>summary::after,html body #dPerfil .per-otros[open]>summary::after,html body #dPerfil #perCaps.v16s-open .per-caps-t::after{transform:rotate(225deg)}
html body .v16s-row>summary:focus-visible,html body #dPerfil .per-otros>summary:focus-visible,html body #dPerfil #perCaps .per-caps-t:focus-visible,html body #dPerfil .per-acc>button:focus-visible{outline:2px solid var(--v14-accent);outline-offset:-2px;border-radius:8px}
html body .v16s-row>summary:hover,html body #dPerfil .per-acc>button:hover{background:rgba(var(--ink-rgb,231,236,230),.05)}
html body .v16s-body{display:grid;gap:16px;padding:4px 4px 24px}
html body .v16s-body>*{min-width:0}
html body .v16s-row .svc-gt{font-size:15px;font-weight:600;letter-spacing:-.005em;text-transform:none}
html body .v16s-rows>.v16s-row>.v16s-body>#sv-como>.svc-gt,html body .v16s-rows>.v16s-row>.v16s-body>section>.svc-gt{display:none}
html body .v16s-row .svc-aviso{border:0;padding:0;font-size:15px;color:var(--ink)}
html body .v16s-row .svc-frase,html body .v16s-row .svc-glinea,html body .v16s-row .svc-nota-camino{font-size:14px;margin:0;color:var(--muted)}
html body .v16s-row .svc-caps{border:0;padding:0}
html body .v16s-row .svc-caps-t{font-size:14px}
html body .v16s-row .cap-grid{grid-template-columns:minmax(0,1fr)}
@media(min-width:900px){html body .v16s-row .cap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
html body .v16s-rows>.v16s-row>.v16s-body .svc-grid{grid-template-columns:minmax(0,1fr)}
@media(min-width:600px){html body .v16s-rows>.v16s-row>.v16s-body .svc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:900px){html body .v16s-rows>.v16s-row>.v16s-body .svc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
html body .v16s-row .como-pasos{grid-template-columns:minmax(0,1fr)}
@media(min-width:900px){html body .v16s-row .como-pasos{grid-template-columns:repeat(3,minmax(0,1fr))}}
html body .v16s-row .sv-tabla{width:100%}

/* ---------- CTA fija de la hoja de Servicios: un solo boton lleno, abajo, siempre a mano (se esconde si hay una tarjeta abierta, que trae el suyo) */
html body #dServicios .hoja-pie,html body #dPerfil .v16s-cta{position:sticky;bottom:calc(8px + var(--safe-b,0px));z-index:6;display:flex;justify-content:center;margin:0 auto;padding:8px;width:100%;max-width:460px;box-sizing:border-box;border-radius:20px;
  background:color-mix(in srgb,var(--paper) 88%,transparent);border:1px solid var(--v14-glass-line);-webkit-backdrop-filter:blur(22px) saturate(1.2);backdrop-filter:blur(22px) saturate(1.2)}
html body #dServicios .hoja-pie .btn-primario,html body #dPerfil .v16s-cta .btn-primario{min-height:52px;width:100%;margin:0}
html body #dServicios .hoja-pie [data-idioma]{display:none}
html body #dServicios .pagina-col:has(#svcLista[data-abierto]:not([data-abierto=""])) .hoja-pie{display:none}

/* ---------- pantalla de perfil: titulo, 2-3 tarjetas, un boton lleno fijo; lo demas en filas */
html body #dPerfil .pagina-col{display:flex;flex-direction:column;gap:16px}
html body #dPerfil #perLista{order:1;display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
html body #dPerfil .v16s-cta{order:2}
html body #dPerfil .per-otros{order:3}
html body #dPerfil #perCaps{order:4;border-top:1px solid var(--h-line);display:block;padding:0}
html body #dPerfil #perCaps:not(.v16s-open) .cap-chip{display:none}
html body #dPerfil #perCaps.v16s-open{padding-bottom:16px}
html body #dPerfil #perCaps.v16s-open .cap-chip{margin:4px 8px 4px 4px}
html body #dPerfil .per-guia{order:5;margin:0;font-size:14px}
html body #dPerfil .v16s-row[data-k=caso]{order:6}
html body #dPerfil .v16s-row[data-k=precio]{order:8}
html body #dPerfil .per-acc{order:7;display:flex;flex-direction:column;gap:0;border-top:1px solid var(--h-line)}
html body #dPerfil .per-acc>button{flex:none!important;border-bottom:1px solid var(--h-line);font-weight:600}
html body #dPerfil .per-acc>button:last-child{border-bottom:0}
html body #dPerfil .per-acc>button::after{content:'';flex:none;width:9px;height:9px;margin-right:6px;border-right:2px solid currentColor;border-top:2px solid currentColor;transform:rotate(45deg);opacity:.7}
html body #dPerfil .per-acc>button svg{display:none}
html body #dPerfil .per-precio{margin:0;font-size:15px;line-height:1.4;color:var(--ink)}
html body #dPerfil .per-nota{order:9;margin:0;font-size:13px;color:var(--muted)}
html body #dPerfil #perPasos{order:10;margin:0;max-width:none}
html body #dPerfil footer.pie{order:99}
html body #dPerfil .per-nota[hidden],html body #dPerfil .per-guia[hidden]{display:none}
@media(min-width:600px){html body #dPerfil #perLista{grid-template-columns:repeat(var(--n,2),minmax(0,1fr))}}
@media(min-width:900px){html body #dPerfil #perLista{grid-template-columns:repeat(var(--n,2),minmax(0,1fr))}}
/* el caso de «un proyecto, explicado» queda como fila de enlace */
html body #dPerfil #perCaso .caso-card{min-height:56px}
/* tarjetas del perfil: mismas que en Servicios; a lo sumo dos a la vista, el resto en una fila */
html body #dPerfil .svc-tx{min-height:0;padding:12px 66px 14px 16px}
html body #dPerfil .v16s-row[data-k=mas]{order:3}
html body #dPerfil .v16s-row[data-k] .v16s-body{padding-bottom:16px}

@media (prefers-reduced-motion:reduce){html body .v16s-tabs [role=tab],html body .v16s-row>summary::after{transition:none}}

/* ---------- pie v15 dentro de estas dos pantallas: fila plegada + barra de honestidad a la vista */
html body :is(#dServicios,#dPerfil) footer.pie{padding-top:0;margin-top:8px}
html body :is(#dServicios,#dPerfil) footer.pie>.v16s-pie{margin-bottom:8px}
html body :is(#dServicios,#dPerfil) footer.pie .v16s-body{padding-inline:0}
html body :is(#dServicios,#dPerfil) footer.pie .pie-wm{font-size:1.25rem}
/* perfil: la tarjeta principal («Start here») lleva su frase; las demas, sólo foto + nombre + «+» (la frase está un toque adentro) */
html body #dPerfil .svc-card:not(.abre):not([data-start]) .svc-l{display:none}
html body #dPerfil .svc-card:not(.abre):not([data-start]) .svc-tx{min-height:72px;justify-content:center}
html body #dPerfil .svc-img{aspect-ratio:8/5}
html body :is(#dServicios,#dPerfil) dialog,html body :is(#dServicios,#dPerfil) .hoja-cuerpo{padding-bottom:calc(20px + var(--safe-b,0px))}
html body :is(#dServicios,#dPerfil) footer.pie .pie-barra{padding-block:8px}
/* rotulo de honestidad: nunca recortado; si no cabe en una linea, baja a dos */
html body :is(#dServicios,#dPerfil) .fp-rot{white-space:normal;max-width:calc(100% - 24px);overflow-wrap:anywhere}

/* ---------- ronda 2 (integrador) */
html body #dPerfil .per-otros>summary .v16s-sum2{display:none}
html body #dPerfil .per-otros[open]>summary .v16s-sum2{display:inline}
/* la barra fija del boton no tapa la ultima fila ni tarjeta: aire debajo del contenido */
html body #dServicios .pagina-col>.hoja-pie{margin-bottom:12px}
html body #dPerfil .v16s-cta{margin-bottom:12px}
/* escritorio: si el contenido casi entra, el boton queda en su sitio, no flota encima */
@media(min-width:900px){
  html body #dServicios .hoja-pie,html body #dPerfil .v16s-cta{position:static;max-width:320px;margin:8px 0 16px;padding:0;background:none;border:0;-webkit-backdrop-filter:none;backdrop-filter:none}
  html body #dServicios .hoja-pie{justify-content:flex-start}
  html body #dPerfil .v16s-cta{margin-left:0;margin-right:auto}
}

/* pantallas bajas (360x640): tarjetas del perfil mas bajas y menos aire, para quedar en <= 2 pantallas */
@media (max-width:640px) and (max-height:700px){
  html body #dPerfil .svc-img{aspect-ratio:3/1}
  html body #dPerfil .pagina-col,html body #dPerfil #perLista{gap:10px}
  html body .v16s-row>summary,html body #dPerfil .per-otros>summary,html body #dPerfil #perCaps .per-caps-t,html body #dPerfil .per-acc>button{min-height:48px}
  html body #dPerfil footer.pie .pie-c{display:none}
  html body #dPerfil .svc-card:not(.abre):not([data-start]) .svc-tx{min-height:56px}
  html body #dPerfil .svc-tx{padding-top:8px;padding-bottom:10px}
}
@media (max-width:640px) and (max-height:700px){html body #dPerfil .v16s-t2{display:none}}
