/* Páginas legales de Kromanto — Diseño calibrado idéntico a styles.css */
:root {
  color-scheme: dark;
  --bg-base: #0c0d10;
  --bg-panel: #13151a;
  --bg-card: #191c23;
  --bg-inner: #0f1115;
  --text-main: #f3f4f6;
  --text-muted: #8e95a5;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.16);
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 9px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ================= SCROLLBARS OSCUROS ================= */
* {
  scrollbar-width: thin;
  scrollbar-color: #262a34 transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #262a34;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #353b49;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  background-image: radial-gradient(ellipse 80% 340px at 50% -40px, var(--accent-glow), transparent 72%);
  background-repeat: no-repeat;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 36px;
  -webkit-font-smoothing: antialiased;
  transition: background-image 0.4s ease;
}

/* ================= CABECERA MINIMALISTA DE ESTUDIO ================= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 13, 16, 0.68);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  padding: 10px 0;
}

.header-container,
main,
.studio-footer {
  max-width: 980px;
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(16px, 2.5vw, 32px);
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  user-select: none;
  flex-shrink: 0;
}

.brand-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.brand-icon svg {
  width: 19px;
  height: 19px;
  stroke: #38bdf8;
  transition: transform 0.4s ease, stroke 0.25s ease;
}

.brand:hover .brand-icon {
  border-color: rgba(56, 189, 248, 0.45);
}

.brand:hover .brand-icon svg {
  transform: rotate(14deg) scale(1.05);
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f4f4f6;
}

/* ================= PESTAÑAS DE NAVEGACIÓN (ESTILO NAV-GRID) ================= */
.nav-grid {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  background: var(--bg-inner);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: 11px;
  gap: 3px;
  margin-bottom: 18px;
}

.nav-pill {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.14s ease;
}

.nav-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0.75;
}

.nav-pill:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.03);
}

.nav-pill:active {
  transform: scale(0.98);
}

.nav-pill.active {
  background: var(--bg-card);
  color: #f4f4f6;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.11);
}

.nav-pill.active .dot {
  opacity: 1;
}

/* ================= BOTONES ================= */
.btn {
  background: var(--bg-card);
  color: #e5e7eb;
  border: 1px solid var(--border-subtle);
  padding: 7px 13px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.14s ease;
}

.btn:hover {
  border-color: var(--border-hover);
  background: #222630;
  color: #ffffff;
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  width: 14px;
  height: 14px;
  stroke: #38bdf8;
}

/* ================= CONTENEDOR PRINCIPAL Y SECCIONES ================= */
main {
  margin-block: 22px;
}

.section-title-block {
  margin-bottom: 16px;
}

.section-title-block h2 {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f4f4f6;
  margin-bottom: 4px;
}

.section-title-block .updated {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.studio-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  width: 100%;
  margin-bottom: 14px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.studio-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.09), 0 12px 28px rgba(0, 0, 0, 0.32);
}

.studio-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f4f4f6;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-card h3 .sec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  flex-shrink: 0;
}

p, li {
  font-size: 0.88rem;
  color: #d1d5db;
  line-height: 1.65;
}

p {
  margin-bottom: 10px;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 6px 0 10px;
  padding-left: 20px;
}

ul:last-child, ol:last-child {
  margin-bottom: 0;
}

li {
  margin-bottom: 7px;
}

li:last-child {
  margin-bottom: 0;
}

li::marker {
  color: #38bdf8;
  font-weight: 600;
}

strong {
  color: #f4f4f6;
  font-weight: 600;
}

.studio-card a {
  color: #38bdf8;
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.studio-card a:hover {
  color: #bae6fd;
  border-bottom-color: #bae6fd;
}

mark.ph {
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 1px 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8em;
  font-weight: 600;
}

/* ================= PIE DE PÁGINA (IDÉNTICO A STUDIO-FOOTER) ================= */
.studio-footer {
  margin-top: 28px;
  margin-bottom: 12px;
  padding-block: 18px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.studio-footer:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.09), 0 12px 28px rgba(0, 0, 0, 0.32);
}

.legal-row {
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legal-row a {
  color: var(--text-muted);
  text-decoration: none;
}

.legal-row a:hover,
.legal-row a.active {
  color: #f4f4f6;
  text-decoration: underline;
}

.legal-mor {
  margin-left: auto;
  opacity: 0.8;
}

@media (max-width: 640px) {
  .legal-mor {
    margin-left: 0;
  }

  .studio-card {
    padding: 16px;
  }
}