/* Documentacions FPA (mesa, documents-inter) y Enllaços (enlaces): nueva presentación. Alcance: body.docs. Solo HTML/CSS.
   Mismo lenguaje que la portada, Guardó y Qui som: franja verde con bolas, marcador amarillo, tarjetas con línea de 1 px y sombra desplazada. */
body.docs .dc { overflow-x: clip; background: #fff; --dc-r: 16px; }
body.docs .dc :where(h2, h3, p, ul, figure) { margin: 0; }
body.docs .dc :where(ul) { padding: 0; list-style: none; }
body.docs .dc :where(h2, h3) { font-family: 'Poppins', sans-serif; color: #2d3127; text-transform: none; letter-spacing: 0; }
body.docs .dc img { max-width: 100%; height: auto; }
body.docs .dc a { text-decoration: none; }
body.docs .dc a:focus-visible { outline: 3px solid var(--apap-ink); outline-offset: 3px; }

/* botones (sombra desplazada) */
body.docs .dc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.3em; border: 2px solid var(--apap-ink); border-radius: 999px; font: 600 .92rem/1.1 'Poppins', sans-serif; white-space: nowrap; transition: transform .15s, box-shadow .15s, background-color .15s, color .15s; }
body.docs .dc-btn i { font-size: 1.15em; }
body.docs .dc-btn-yellow { background: var(--apap-yellow); color: var(--apap-ink); box-shadow: 4px 4px 0 var(--apap-ink); }
body.docs .dc-btn-yellow:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--apap-ink); color: var(--apap-ink); }

/* antetítulo, marcador y titulares */
body.docs .dc-eyebrow { display: inline-flex; align-items: center; gap: .55em; margin-bottom: 18px; padding: .5em 1em; border: 1px solid #c9dc8e; border-radius: 999px; background: #fff; font: 700 .72rem/1 'Poppins', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--apap-ink); }
body.docs .dc-eyebrow i { color: var(--apap-green-deep); font-size: 1.15em; }
body.docs .dc .dc-mark { color: inherit; padding: 0 .06em; background: linear-gradient(transparent 62%, var(--apap-yellow) 62% 92%, transparent 92%) no-repeat 0 0 / 100% 100%; }
body.docs .dc-h { text-wrap: balance; font-size: clamp(2rem, 1.1rem + 2.7vw, 3.1rem); font-weight: 700; line-height: 1.1; }
body.docs .dc-lede { max-width: 33em; margin: 18px 0 0; font-size: 1.15rem; line-height: 1.6; color: #3f443a; }
body.docs .dc-sec-h { margin: 52px 0 26px; }
body.docs .dc-sec-h .dc-eyebrow { margin-bottom: 12px; }
body.docs .dc-sec-h h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 700; line-height: 1.15; }
body.docs .dc-sec-h h2::after { content: ""; display: block; width: 120px; height: 4px; margin-top: 14px; background: linear-gradient(90deg, var(--apap-green) 0 25%, var(--apap-yellow) 25% 50%, var(--apap-red) 50% 75%, var(--apap-purple) 75% 100%); }
@media (prefers-reduced-motion: no-preference) {
	body.docs .dc .dc-mark { animation: dc-hl 1s .3s ease-out both; }
	body.docs .dc-ball { animation: dc-float 7s ease-in-out infinite; }
	body.docs .dc-ball-2 { animation-delay: -2s; } body.docs .dc-ball-3 { animation-delay: -4s; } body.docs .dc-ball-4 { animation-delay: -1s; }
	@keyframes dc-hl { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
	@keyframes dc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
}

/* franja de entrada */
body.docs .dc-hero { position: relative; overflow: clip; padding: 52px 0 60px; background: linear-gradient(174deg, var(--apap-green-light) 0 62%, var(--apap-green-soft) 62% 100%); }
body.docs .dc-hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
body.docs .dc-hero--center .dc-hero-grid { grid-template-columns: 1fr; text-align: center; }
body.docs .dc-hero--center .dc-lede { margin-inline: auto; }
body.docs .dc-frame { margin: 0; padding: 22px 26px; overflow: hidden; border: 6px solid #fff; border-radius: 14px; background: #fff; box-shadow: 10px 10px 0 rgba(25, 25, 23, .12), 0 22px 40px rgba(25, 25, 23, .16); transform: rotate(-1.4deg); }
body.docs .dc-frame img { display: block; width: 100%; }
body.docs .dc-ball { position: absolute; border-radius: 50%; }
body.docs .dc-ball-1 { left: 1.2%; top: 44%; width: 22px; height: 22px; background: var(--apap-purple); }
body.docs .dc-ball-2 { left: 47%; top: 9%; width: 34px; height: 34px; background: var(--apap-yellow); }
body.docs .dc-ball-3 { left: 43%; bottom: 17%; width: 16px; height: 16px; background: var(--apap-red); }
body.docs .dc-ball-4 { right: 3%; bottom: 14%; width: 28px; height: 28px; background: var(--apap-green); }

/* documentos */
body.docs .dc-band { padding: 52px 0 8px; }
body.docs .dc-docs { display: grid; gap: 20px; max-width: 860px; margin: 0 auto; }
body.docs .dc-doc { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 18px; padding: 18px 22px; border: 1px solid var(--c); border-radius: var(--dc-r); background: #fff; box-shadow: 6px 6px 0 color-mix(in srgb, var(--c) 22%, #fff); transition: transform .15s, box-shadow .15s; }
body.docs .dc-doc:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 color-mix(in srgb, var(--c) 42%, #fff); }
body.docs .dc-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c); color: var(--ct, var(--apap-ink)); font-size: 1.25rem; }
body.docs .dc-doc-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
body.docs .dc-doc-t b { font: 600 1.05rem/1.35 'Poppins', sans-serif; color: var(--apap-ink); overflow-wrap: anywhere; }
body.docs .dc-chip { display: inline-block; padding: .35em .8em; border-radius: 999px; background: var(--c); color: var(--ct, var(--apap-ink)); font: 700 .68rem/1.2 'Poppins', sans-serif; letter-spacing: .08em; text-transform: uppercase; }


/* compartir (se conserva el bloque original) */
body.docs .dc-band .si-share { max-width: 860px; margin: 40px auto 0; }

/* ---- tableta y móvil ---- */
@media (max-width: 991.98px) {
	body.docs .dc-hero { padding: 40px 0 48px; }
	body.docs .dc-hero-grid { grid-template-columns: 1fr; gap: 32px; }
	body.docs .dc-hero-art { max-width: 420px; }
	body.docs .dc-ball-1, body.docs .dc-ball-3 { display: none; }
	body.docs .dc-ball-2 { left: auto; right: 7%; top: 22px; }
	body.docs .dc-ball-4 { right: 5%; bottom: 8%; }
}
@media (max-width: 575.98px) {
	body.docs .dc-lede { font-size: 1.05rem; }
	body.docs .dc-band { padding-top: 40px; }
	body.docs .dc-doc { grid-template-columns: auto 1fr; padding: 16px 16px 18px; }
	body.docs .dc-doc .dc-btn { grid-column: 1 / -1; }
}

/* enlaces: una placa por entidad (logo sobre fondo de color, nombre, dominio y botón) */
body.docs .dc-ents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; }
body.docs .dc-ents > li:nth-child(3n+1) { --tilt: -.8deg; }
body.docs .dc-ents > li:nth-child(3n+2) { --tilt: .6deg; }
body.docs .dc-ents > li:nth-child(3n) { --tilt: -.4deg; }
body.docs .dc-ent { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--c); border-radius: var(--dc-r); background: #fff; color: var(--apap-ink); box-shadow: 7px 7px 0 color-mix(in srgb, var(--c) 24%, #fff); transform: rotate(var(--tilt, 0deg)); transition: transform .2s, box-shadow .2s; }
body.docs .dc-ent:hover { transform: rotate(0deg) translate(-3px, -4px); box-shadow: 11px 11px 0 color-mix(in srgb, var(--c) 45%, #fff); color: var(--apap-ink); }
body.docs .dc-ent-logo { padding: 16px; border-bottom: 1px solid var(--c); background: color-mix(in srgb, var(--c) 20%, #fff); }
body.docs .dc-ent-logo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: #fff; box-shadow: 0 6px 14px rgba(25, 25, 23, .12); }
body.docs .dc-ent-body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px 20px 20px; }
body.docs .dc-ent-body b { font: 700 1.08rem/1.3 'Poppins', sans-serif; }
body.docs .dc-dom { margin-bottom: 14px; font-size: .92rem; line-height: 1.4; color: var(--apap-grey-text); overflow-wrap: anywhere; }
body.docs .dc-ent-body .dc-btn { margin-top: auto; padding: .6em 1.1em; font-size: .85rem; box-shadow: 3px 3px 0 var(--apap-ink); }
body.docs .dc-ent:hover .dc-btn { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--apap-ink); }

/* collage de placas en la entrada de enlaces */
body.docs .dc-collage { position: relative; height: 340px; }
body.docs .dc-plate { position: absolute; width: 56%; aspect-ratio: 4 / 3; overflow: hidden; border: 6px solid #fff; border-radius: 14px; background: #fff; box-shadow: 10px 10px 0 rgba(25, 25, 23, .12), 0 18px 34px rgba(25, 25, 23, .16); }
body.docs .dc-plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.docs .dc-plate-1 { left: 0; top: 6px; transform: rotate(-5deg); }
body.docs .dc-plate-2 { right: 0; top: 70px; z-index: 1; transform: rotate(4deg); }
body.docs .dc-plate-3 { left: 16%; bottom: 0; z-index: 2; transform: rotate(-1.5deg); }
@media (max-width: 991.98px) {
	body.docs .dc-ents { grid-template-columns: repeat(2, 1fr); }
	body.docs .dc-collage { height: 290px; }
}
@media (max-width: 575.98px) {
	body.docs .dc-ents { grid-template-columns: 1fr; gap: 20px; }
	body.docs .dc-ent { display: grid; grid-template-columns: 40% 1fr; }
	body.docs .dc-ent-logo { display: grid; align-items: center; padding: 10px; border-right: 1px solid var(--c); border-bottom: 0; }
	body.docs .dc-ent-logo img { aspect-ratio: 4 / 3; }
	body.docs .dc-ent-body { justify-content: center; padding: 14px; }
	body.docs .dc-dom { margin-bottom: 10px; }
	body.docs .dc-ent-body .dc-btn { margin-top: 0; }
	body.docs .dc-collage { height: 230px; }
	body.docs .dc-plate-1 { left: 8px; }
	body.docs .dc-plate-2 { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { body.docs .dc-ent, body.docs .dc-ent-body .dc-btn { transition: none; } }
