/* ===================================================================
   VELIORA — Sistema de diseño compartido
   Usado por: index.html, biblioteca.html, articulo-*.html
=================================================================== */

:root {
  --vel-night: #07131f;
  --vel-night-2: #0b1d2d;
  --vel-ink: #03070b;
  --vel-gold: #d7ad43;
  --vel-gold-soft: #f2da94;
  --vel-emerald: #20a879;
  --vel-violet: #7450b8;
  --vel-ivory: #f2ede1;
  --vel-muted: #a7b2ba;
  --vel-line: rgba(215, 173, 67, .25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--vel-ivory);
  background: var(--vel-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

/* ---------- Ventana / fondo general ---------- */
.vel-window {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(116, 80, 184, .18), transparent 26%),
    radial-gradient(circle at 18% 72%, rgba(32, 168, 121, .12), transparent 28%),
    linear-gradient(150deg, var(--vel-night-2), var(--vel-ink) 64%);
  min-height: 100vh;
}

/* ---------- Header / navegación ---------- */
.vel-header {
  min-height: 76px;
  display: grid;
  grid-template-columns: 178px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 34px;
  border-bottom: 1px solid rgba(242, 218, 148, .09);
  background: rgba(3, 7, 11, .55);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
}
.vel-logo { width: 168px; height: 48px; object-fit: contain; object-position: left center; }
.vel-logo-link { display: flex; align-items: center; text-decoration: none; }
.vel-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; }
.vel-nav a {
  color: #d3d8db;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
}
.vel-nav a:hover, .vel-nav a[aria-current="page"] { color: var(--vel-gold-soft); }
.vel-nav a[aria-current="page"] { border-bottom-color: var(--vel-gold); }

.vel-header-cta, .vel-primary, .vel-secondary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  border: 0;
}
.vel-header-cta, .vel-primary {
  color: #101010;
  background: linear-gradient(135deg, var(--vel-gold-soft), var(--vel-gold));
  font-weight: 700;
}
.vel-header-cta:hover, .vel-primary:hover { filter: brightness(1.06); }
.vel-secondary {
  color: var(--vel-ivory);
  border: 1px solid rgba(242, 237, 225, .24);
  background: rgba(255, 255, 255, .03);
}
.vel-secondary:hover { background: rgba(255, 255, 255, .06); }

/* ---------- Bloques de texto de sección ---------- */
.vel-eyebrow {
  margin: 0 0 18px;
  color: var(--vel-gold-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.vel-section { padding: 66px 7%; border-top: 1px solid rgba(242, 218, 148, .08); }
.vel-section-heading { max-width: 700px; margin-bottom: 30px; }
.vel-section-heading h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.06; }
.vel-section-heading p { margin: 14px 0 0; color: var(--vel-muted); line-height: 1.65; }

/* ---------- Tabs de tema ---------- */
.vel-topic-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.vel-topic-tab {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(242, 237, 225, .18);
  color: #d2d9dc;
  background: rgba(255, 255, 255, .03);
  padding: 0 18px;
  font: inherit;
  cursor: pointer;
}
.vel-topic-tab[aria-pressed="true"] { color: #07131f; background: var(--vel-gold-soft); border-color: var(--vel-gold-soft); }

/* ---------- Tarjetas de artículo (biblioteca) ---------- */
.vel-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vel-article-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 30px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(12, 32, 45, .96), rgba(4, 10, 15, .98));
  border: 1px solid rgba(242, 218, 148, .12);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.vel-article-card:hover { border-color: rgba(242, 218, 148, .4); transform: translateY(-2px); }
.vel-article-card.vel-card-soon { opacity: .55; cursor: default; }
.vel-article-card.vel-card-soon:hover { border-color: rgba(242, 218, 148, .12); transform: none; }
.vel-card-kicker { color: var(--vel-emerald); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.vel-article-card h3 { margin-top: 14px; font-size: 23px; line-height: 1.15; }
.vel-article-card p { flex: 1; margin: 14px 0 0; color: var(--vel-muted); font-size: 14px; line-height: 1.6; }
.vel-card-meta { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #8f9ba3; }
.vel-card-arrow { color: var(--vel-gold-soft); }

/* ---------- Feature (artículo destacado en home) ---------- */
.vel-feature {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  min-height: 320px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14, 39, 57, .92), rgba(6, 13, 20, .96));
  border: 1px solid rgba(242, 218, 148, .13);
}
.vel-feature-copy { padding: 44px; }
.vel-feature-kicker { color: var(--vel-emerald); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.vel-feature h3 { margin-top: 13px; font-size: clamp(28px, 3vw, 40px); }
.vel-feature p { margin: 18px 0 0; color: #bcc7cd; line-height: 1.7; }
.vel-feature-link { display: inline-flex; margin-top: 25px; color: var(--vel-gold-soft); text-decoration: none; border-bottom: 1px solid var(--vel-gold); padding-bottom: 4px; }
.vel-feature-visual {
  display: grid;
  place-items: center;
  padding: 30px;
  background: radial-gradient(circle, rgba(116, 80, 184, .28), transparent 60%);
}
.vel-evidence-ring {
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(242, 218, 148, .28);
  box-shadow: inset 0 0 0 28px rgba(215, 173, 67, .03), 0 0 0 22px rgba(116, 80, 184, .05);
  text-align: center;
}
.vel-evidence-ring strong { display: block; color: var(--vel-gold-soft); font-family: Georgia, serif; font-size: 54px; font-weight: 400; }
.vel-evidence-ring span { display: block; max-width: 130px; color: var(--vel-muted); font-size: 12px; line-height: 1.4; }

/* ---------- Pilares de marca ---------- */
.vel-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vel-pillar { min-height: 235px; padding: 28px; border-radius: 16px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(242, 218, 148, .11); }
.vel-pillar:nth-child(2) { border-color: rgba(116, 80, 184, .32); }
.vel-pillar:nth-child(3) { border-color: rgba(32, 168, 121, .30); }
.vel-pillar-index { color: var(--vel-gold); font-size: 12px; letter-spacing: .1em; }
.vel-pillar h3 { margin-top: 52px; font-size: 27px; }
.vel-pillar p { color: var(--vel-muted); line-height: 1.55; }

/* ---------- Goals (peso / fuerza) ---------- */
.vel-goal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.vel-goal {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  padding: 36px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(12, 32, 45, .96), rgba(4, 10, 15, .98));
  border: 1px solid rgba(242, 218, 148, .12);
}
.vel-goal::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -74px;
  bottom: -82px;
  border-radius: 50%;
  opacity: .58;
}
.vel-goal-weight { border-color: rgba(32, 168, 121, .30); }
.vel-goal-weight::after { background: radial-gradient(circle, rgba(32, 168, 121, .50), transparent 68%); }
.vel-goal-strength { border-color: rgba(116, 80, 184, .34); }
.vel-goal-strength::after { background: radial-gradient(circle, rgba(116, 80, 184, .55), transparent 68%); }
.vel-goal-label { color: var(--vel-gold-soft); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.vel-goal h3 { max-width: 430px; margin-top: 34px; font-size: clamp(29px, 3vw, 39px); line-height: 1.08; }
.vel-goal p { position: relative; z-index: 2; max-width: 500px; margin: 18px 0 0; color: #b8c3c9; line-height: 1.65; }
.vel-goal-points { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.vel-goal-points span { padding: 8px 11px; border-radius: 999px; color: #d9dfe2; background: rgba(255, 255, 255, .045); font-size: 11px; }

/* ---------- Breadcrumb (artículo) ---------- */
.vel-breadcrumb { display: flex; align-items: center; gap: 8px; padding: 22px 7% 0; font-size: 12px; color: #8f9ba3; }
.vel-breadcrumb a { color: #b7c0c5; text-decoration: none; }
.vel-breadcrumb a:hover { color: var(--vel-gold-soft); }

/* ---------- Footer ---------- */
.vel-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  padding: 46px 7%;
  border-top: 1px solid rgba(242, 218, 148, .10);
  background: rgba(0, 0, 0, .28);
}
.vel-footer img { width: 170px; height: 54px; object-fit: contain; object-position: left center; }
.vel-footer p { max-width: 650px; margin: 12px 0 0; color: #8f9ba3; font-size: 12px; line-height: 1.55; }
.vel-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.vel-footer-links a { color: #b7c0c5; font-size: 12px; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 840px) {
  .vel-header { grid-template-columns: 1fr auto; padding: 13px 22px; }
  .vel-nav { display: none; }
  .vel-feature { grid-template-columns: 1fr; }
  .vel-feature-visual { min-height: 280px; }
  .vel-goal-grid { grid-template-columns: 1fr; }
  .vel-pillars { grid-template-columns: 1fr; }
  .vel-pillar { min-height: 190px; }
  .vel-pillar h3 { margin-top: 30px; }
  .vel-article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .vel-header { grid-template-columns: 1fr; justify-items: center; }
  .vel-logo { object-position: center; }
  .vel-header-cta { width: 100%; }
  .vel-feature-copy { padding: 30px 24px; }
  .vel-section { padding: 50px 6%; }
  .vel-footer { grid-template-columns: 1fr; }
  .vel-footer-links { justify-content: flex-start; }
  .vel-article-grid { grid-template-columns: 1fr; }
}
