/* ==========================================================================
   Bello Conecta — estilos compartidos de las páginas internas.
   Reutiliza exactamente los tokens y el shell (nav + footer) de la landing;
   solo añade lo propio de una página de texto largo.
   ========================================================================== */

:root {
  --ink: #0a1628;
  --ink-soft: #1b2a41;
  --paper: #f7f5f0;
  --paper-warm: #efebe2;
  --blue: #1e3a8a;
  --blue-bright: #2547d0;
  --blue-light: #dde5ff;
  --accent: #f97316;
  --accent-soft: #fed7aa;
  --green: #10b981;
  --red: #dc2626;
  --line: rgba(10, 22, 40, 0.08);
  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Salta al contenido: visible solo cuando recibe foco por teclado. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 12px 0;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === NAV === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(247, 245, 240, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--blue-bright);
}

.nav-cta {
  background: var(--ink);
  color: #ffffff !important;
  padding: 0.65rem 1.4rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    transform 0.2s,
    background 0.2s;
  text-decoration: none !important;
}

.nav-cta:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .nav-links li:not(:last-child) {
    display: none;
  }
}

/* === CABECERA DE PÁGINA === */
.page-head {
  padding: 9rem 2rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-head-inner {
  max-width: 68ch;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--blue-bright);
}

.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}

.page-head h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--blue-bright);
}

.page-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.page-meta {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* === CONTENIDO === */
.prose {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem 6rem;
  position: relative;
  z-index: 2;
}

.prose-inner {
  max-width: 68ch;
}

.prose h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 3.5rem 0 1rem;
  text-wrap: balance;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.6rem;
}

.prose p {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  text-wrap: pretty;
}

.prose ul,
.prose ol {
  margin: 0 0 1.4rem 1.2rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.55rem;
  padding-left: 0.3rem;
}

.prose a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* Bloque destacado: fondo tintado, sin barras laterales de color. */
.callout {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.6rem 1.8rem;
  margin: 2rem 0;
}

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

.callout-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

/* Datos de contacto y tablas de fuentes */
.data-list {
  list-style: none;
  margin: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.data-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: baseline;
}

.data-list dt,
.data-list .k {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.92rem;
}

.data-list .v {
  color: var(--ink-soft);
  word-break: break-word;
}

@media (max-width: 640px) {
  .data-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* === FOOTER === */
footer {
  padding: 4rem 2rem 2rem;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: var(--paper);
  margin-bottom: 1rem;
}

.footer-brand p {
  opacity: 0.6;
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--paper);
  opacity: 0.6;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-bottom a {
  color: var(--paper);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* === 404 === */
.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 2rem 5rem;
  position: relative;
  z-index: 2;
}

.notfound-inner {
  max-width: 540px;
}

.notfound h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.notfound h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--blue-bright);
}

.notfound p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  text-wrap: pretty;
}

.btn-back {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 4px 0 rgba(10, 22, 40, 0.2);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(10, 22, 40, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
