/* ==========================================================================
   Modi — páginas interiores (funcionalidades, privacidad, RGPD)
   Se carga DESPUÉS de home.css y reutiliza sus variables, cabecera,
   botones y pie de página.
   ========================================================================== */
:root { --hi: var(--foreground); --lo: oklch(0.82 0.008 170); --dim: var(--muted-foreground); }

.header-nav a[aria-current="page"] { color: var(--foreground); }

/* ---------- Cabecera de página ---------- */
.page-head { position: relative; overflow: hidden; padding: 76px 0 60px; border-bottom: 1px solid var(--border);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 68px 68px; }
.page-head::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, var(--background), transparent 40%, var(--background) 100%); }
.page-head-inner { position: relative; z-index: 1; width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.eyebrow .tag { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 30px; background: var(--secondary); padding: 6px 12px; font: 400 10px/1.2 var(--font-mono); color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .04em; }
.eyebrow .tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.eyebrow .plain { font: 400 10px/1.2 var(--font-mono); color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .04em; }
.h-display { font-size: clamp(38px, 5.2vw, 60px); font-weight: 550; line-height: 1.08; }
.h-display em { font-family: var(--font-serif); font-weight: 400; color: var(--primary); }
h2.h-display { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.15; font-weight: 500; }
.h-sub { color: var(--muted-foreground); font-size: 15px; line-height: 1.8; max-width: 720px; margin-top: 22px; }

/* ---------- Documentos legales ---------- */
.doc { width: min(1160px, calc(100% - 80px)); margin: 0 auto; padding: 56px 0 96px; }
.doc > * { max-width: 780px; }
.doc-meta { display: flex; align-items: center; gap: 9px; font: 400 10px/1 var(--font-mono); color: var(--primary); letter-spacing: .04em; margin-bottom: 18px; }
.doc-meta::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.doc h2 { font-size: 24px; font-weight: 550; line-height: 1.25; margin: 48px 0 16px; padding-top: 30px; border-top: 1px solid var(--border); }
.doc h3 { font-size: 16px; font-weight: 550; margin: 28px 0 8px; color: var(--foreground); }
.doc p { color: var(--lo); font-size: 14.5px; line-height: 1.85; margin: 0 0 14px; }
.doc ul { margin: 0 0 18px; display: flex; flex-direction: column; gap: 9px; }
.doc li { position: relative; padding-left: 20px; color: var(--lo); font-size: 14.5px; line-height: 1.75; }
.doc li::before { content: ''; position: absolute; left: 4px; top: .8em; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.doc a { color: var(--primary); text-underline-offset: 4px; }
.doc a:hover { text-decoration: underline; }
.doc strong { color: var(--foreground); font-weight: 600; }

/* ---------- Funcionalidades ---------- */
.section { padding: 72px 0; }
.page-head + .section { padding-top: 40px !important; }
.section-inner { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.redaction { height: 1px; background: var(--border); }
.cat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-top: 8px; }
.cat-cell { background: var(--card); padding: 22px 24px; }
.cat-cell .n { font: 400 10px/1 var(--font-mono); color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }
.cat-cell h4 { font-size: 16px; font-weight: 500; margin: 12px 0 6px; }
.cat-cell .c { font-size: 11px; color: var(--muted-foreground); }
.cat-heading { margin: 64px 0 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cat-heading .tag { display: inline-flex; align-items: center; gap: 9px; font: 400 10px/1 var(--font-mono); color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }
.cat-heading .tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.cat-heading h3 { font-size: 28px; font-weight: 500; line-height: 1.2; }
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mod-card { padding: 24px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); transition: border-color .2s, transform .2s; scroll-margin-top: 100px; }
.mod-card:hover, .mod-card:target { border-color: color-mix(in oklch, var(--primary) 50%, var(--border)); }
.mod-card:hover { transform: translateY(-3px); }
.mod-top { display: flex; justify-content: space-between; align-items: center; }
.mod-icon { width: 36px; height: 36px; display: grid; place-items: center; font-size: 17px; background: color-mix(in oklch, var(--primary) 9%, var(--card)); border: 1px solid color-mix(in oklch, var(--primary) 20%, var(--border)); border-radius: 6px; }
.mod-num { font: 400 10px/1 var(--font-mono); color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .04em; }
.mod-card h3 { font-size: 16px; font-weight: 500; margin: 22px 0 10px; }
.mod-card p { color: var(--muted-foreground); font-size: 12px; line-height: 1.8; margin: 0 0 20px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-chip { font: 400 9px/1.2 var(--font-mono); color: var(--muted-foreground); padding: 4px 6px; border: 1px solid var(--border); border-radius: 3px; }

.feat-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.feat-item { padding: 24px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); }
.feat-item .ic { width: 36px; height: 36px; display: grid; place-items: center; font-size: 17px; background: color-mix(in oklch, var(--primary) 9%, var(--card)); border: 1px solid color-mix(in oklch, var(--primary) 20%, var(--border)); border-radius: 6px; }
.feat-item h4 { font-size: 15px; font-weight: 500; margin: 18px 0 8px; }
.feat-item p { color: var(--muted-foreground); font-size: 12px; line-height: 1.8; }

.cta-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--card); padding: 72px 0; }
.cta-band-inner { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 500; line-height: 1.2; }
.cta-band p { color: var(--muted-foreground); font-size: 14px; line-height: 1.8; max-width: 560px; margin-top: 16px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-ctas a { height: 43px; font-size: 12px; padding-inline: 20px; }

/* ---------- Pie de página ---------- */
.footer-brand p { max-width: 440px; line-height: 1.75; }
.footer-brand p.long { font-size: 11px; margin-top: 14px; }
.site-footer .footer-bottom { font-size: 10px; gap: 16px; flex-wrap: wrap; }
.site-footer .footer-bottom p { margin: 0; }
.site-footer .footer-bottom a { color: var(--muted-foreground); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-bottom a:hover { color: var(--primary); }

@media (max-width: 1050px) {
  .page-head-inner, .section-inner, .cta-band-inner, .doc { width: calc(100% - 48px); }
  .mod-grid, .feat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .page-head { padding: 48px 0 40px; }
  .page-head-inner, .section-inner, .cta-band-inner { width: calc(100% - 36px); }
  .doc { width: calc(100% - 36px); padding: 36px 0 64px; }
  .doc h2 { font-size: 21px; margin-top: 36px; }
  .section { padding: 48px 0; }
  .mod-grid, .feat-list { grid-template-columns: 1fr; }
  .cat-strip { grid-template-columns: 1fr; }
  .cat-heading { margin-top: 44px; }
  .cat-heading h3 { font-size: 23px; }
  .mod-card p { font-size: 12px; }
  .cta-band { padding: 48px 0; }
  .site-footer .footer-bottom { flex-direction: column; }
}
