/* Andrezia Digital · subpáginas (WEB-01B). Se carga después de styles.css.
   Piezas comunes: cabecera de página, bloques, tarjetas y listas de enlaces. Cada subpágina grande
   puede añadir su hoja propia (academy.css, kit.css) con prefijo de clase propio. */

.sub-page main { display: block; }
.page-hero { position: relative; isolation: isolate; padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(720px 360px at 88% 0%, rgba(188, 0, 255, .13), transparent 70%), radial-gradient(620px 320px at 0% 100%, rgba(0, 240, 255, .08), transparent 70%); }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 76px); max-width: 17ch; }
.page-hero .lead { margin-top: 24px; color: var(--ink-dim); max-width: 60ch; }
.page-hero .hero-actions { margin-top: 32px; }

.sub-section { padding-block: clamp(56px, 8vw, 112px); }
.sub-section + .sub-section { border-top: 1px solid var(--line); }
.sub-section.light + .sub-section, .sub-section + .sub-section.light { border-top: 0; }
.sub-section h2 { font-size: clamp(28px, 3.6vw, 48px); max-width: 22ch; }
.sub-section h2 + p, .sub-section h2 + .lead { margin-top: 20px; }
.sub-section p { color: var(--ink-dim); }
.sub-section.light p { color: var(--paper-dim); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.card { position: relative; padding: 28px; border-radius: 16px; background: var(--graphite-2); border: 1px solid var(--line); }
.card h3 { font-size: clamp(20px, 1.7vw, 24px); }
.card p { margin-top: 12px; font-size: 16px; }
.card .number { display: block; margin-bottom: 18px; }
.light .card { background: #fbfaf6; border-color: var(--line-light); }

/* Lista de enlaces (/links) */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.link-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; align-items: center; gap: 16px; min-height: 72px; padding: 14px 18px; border-radius: 14px; background: var(--graphite-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
.link-card:hover { border-color: rgba(0, 240, 255, .55); background: #20221f; transform: translateY(-1px); }
.link-card .lc-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #2a2b27; color: var(--cyan); }
.link-card .lc-icon svg { width: 22px; height: 22px; }
.link-card .lc-icon img { width: 30px; height: 30px; object-fit: contain; }
.link-card strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; line-height: 1.3; }
.link-card small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 14px; line-height: 1.4; }
.link-card .i-arrow { color: var(--ink-soft); }
.link-card:hover .i-arrow { color: var(--cyan); transform: translate(2px, -2px); }
.link-group + .link-group { margin-top: 40px; }
.link-group > .eyebrow { margin-bottom: 16px; }
.link-more { border-radius: 14px; background: var(--graphite-2); border: 1px solid var(--line); }
.link-more > summary { list-style: none; cursor: pointer; }
.link-more > summary::-webkit-details-marker { display: none; }
.link-more > summary.link-card { border: 0; background: transparent; }
.link-more > summary .i-arrow { transform: rotate(135deg); }
.link-more[open] > summary .i-arrow { transform: rotate(-45deg); }
.link-more .link-list { padding: 0 10px 10px; }
.link-more .link-card { min-height: 60px; grid-template-columns: minmax(0, 1fr) 20px; background: #1a1b19; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-row a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--graphite-2); color: var(--ink); text-decoration: none; font-size: 15px; transition: border-color .25s, color .25s; }
.social-row a:hover { border-color: var(--cyan); color: var(--cyan); }
.social-row svg { width: 18px; height: 18px; flex-shrink: 0; }

/* /links: columna estrecha tipo «link in bio» */
.links-main { position: relative; isolation: isolate; padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.links-main::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 320px at 50% 0%, rgba(0, 240, 255, .09), transparent 70%), radial-gradient(520px 420px at 50% 100%, rgba(188, 0, 255, .08), transparent 70%); }
.links-wrap { max-width: 600px; }
.links-head { text-align: center; margin-bottom: 40px; }
.links-head .eyebrow { justify-content: center; margin-bottom: 16px; }
.links-head h1 { font-size: clamp(26px, 4.4vw, 36px); line-height: 1.15; max-width: 22ch; margin-inline: auto; }
.links-iso { width: 72px; height: 72px; margin: 0 auto 22px; filter: drop-shadow(0 0 22px rgba(0, 240, 255, .25)); }
.link-card--accent { border-color: rgba(0, 240, 255, .45); background: linear-gradient(120deg, rgba(0, 240, 255, .08), rgba(188, 0, 255, .06)), var(--graphite-2); }
.lc-icon.lc-wa { color: #25d366; }
.lc-icon.lc-magenta { color: var(--magenta-soft); }
.lc-icon.lc-grad { color: var(--cyan); background: linear-gradient(135deg, rgba(0, 240, 255, .16), rgba(188, 0, 255, .18)); }
.social-row { list-style: none; margin: 0; padding: 0; }
.links-foot { margin: 48px auto 0; text-align: center; font-size: 14px; color: var(--ink-soft); }
.links-foot a { color: var(--ink-dim); text-underline-offset: 4px; }
.links-foot a:hover { color: var(--cyan); }

@media (max-width: 800px) {
  .page-hero .hero-actions .btn { width: 100%; }
  .card { padding: 22px; }
}
