:root {
  --azul: #1565c0;
  --azul-oscuro: #0d47a1;
  --azul-suave: #e8f1fc;
  --naranja: #ff8a00;
  --naranja-suave: #fff1de;
  --tinta: #1a2b4a;
  --gris: #5b6b82;
  --linea: #d5deea;
  --fondo: #f6f8fc;
  --blanco: #fff;
  --radio: 16px;
  --sombra: 0 10px 30px rgba(21, 101, 192, .08);
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  color: var(--tinta);
  background: var(--fondo);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--azul); text-decoration: none; }
a:hover { color: var(--azul-oscuro); }

/* Header / rótulo */
.topbar {
  background: linear-gradient(90deg, var(--azul) 0%, #1e88e5 48%, var(--naranja) 100%);
  color: #fff;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand:hover { color: #fff; }
.logo-mark {
  width: 52px; height: 52px;
  background: #fff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--azul);
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong {
  font-size: 1.55rem;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.brand-text span { font-size: .88rem; opacity: .95; }
.abc {
  display: flex; gap: 8px; font-weight: 800; font-size: 1.6rem;
}
.abc b { background: #fff; color: var(--azul); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.abc b:nth-child(2) { color: var(--naranja); }
.abc b:nth-child(3) { color: #2e7d32; }

.navwrap {
  background: #fff;
  border-bottom: 1px solid var(--linea);
  position: sticky; top: 0; z-index: 20;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
nav a {
  color: var(--tinta);
  padding: 12px 10px;
  font-weight: 700;
  font-size: .92rem;
  border-bottom: 3px solid transparent;
  flex: 0 0 auto;
  white-space: nowrap;
}
nav a:hover, nav a.active { color: var(--azul); border-bottom-color: var(--naranja); }
.nav-cta {
  margin-left: auto;
  background: var(--naranja);
  color: #fff !important;
  border-radius: 999px;
  padding: 8px 14px !important;
  border-bottom: 0 !important;
  margin-top: 6px;
  margin-bottom: 6px;
}
.nav-cta:hover { background: #e07800; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 28px 20px 64px; }

.hero {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--sombra);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
.hero h1 { margin: 0 0 10px; font-size: 2.15rem; line-height: 1.15; letter-spacing: -.03em; }
.hero p.lead { margin: 0 0 18px; color: var(--gris); font-size: 1.08rem; }
.search {
  display: flex; gap: 8px; margin: 16px 0 10px;
}
.search input {
  flex: 1; border: 2px solid var(--linea); border-radius: 12px;
  padding: 12px 14px; font: inherit;
}
.search button, .btn {
  background: var(--azul); color: #fff; border: 0; border-radius: 12px;
  padding: 12px 18px; font: inherit; font-weight: 800; cursor: pointer;
}
.btn.naranja { background: var(--naranja); }
.btn.ghost { background: var(--azul-suave); color: var(--azul); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  background: var(--azul-suave); color: var(--azul-oscuro);
  padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .86rem;
}

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
.section-title h2 { margin: 0; font-size: 1.4rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: #fff; border-radius: var(--radio); box-shadow: var(--sombra);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
  border: 1px solid transparent;
}
.card:hover { border-color: #bbd4f5; }
.tag {
  align-self: flex-start; font-size: .75rem; font-weight: 800;
  padding: 4px 8px; border-radius: 999px; background: var(--naranja-suave); color: #b35f00;
}
.tag.azul { background: var(--azul-suave); color: var(--azul-oscuro); }
.tag.verde { background: #e7f6ea; color: #1b5e20; }
.card h3 { margin: 4px 0; font-size: 1.08rem; }
.card p { margin: 0; color: var(--gris); font-size: .94rem; flex: 1; }
.meta { font-size: .8rem; color: var(--gris); }
.card .actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.card .actions a { font-weight: 800; font-size: .9rem; }

.quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 28px;
}
.quick a {
  background: #fff; border-radius: 14px; padding: 16px 14px;
  box-shadow: var(--sombra); color: var(--tinta); font-weight: 800;
  display: flex; flex-direction: column; gap: 4px;
}
.quick a small { font-weight: 600; color: var(--gris); }

.article { background: #fff; border-radius: 20px; box-shadow: var(--sombra); padding: 32px 36px; }
.article h1 { margin-top: 0; }
.article h2 { margin-top: 1.4em; }
.article ul { padding-left: 1.2em; }
.article .meta { margin-bottom: 18px; }
.prose p { max-width: 68ch; }

footer.site {
  background: var(--azul-oscuro); color: #d7e6fb; padding: 36px 20px 24px;
}
.foot-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
footer.site a { color: #fff; }
.legal { max-width: var(--max); margin: 18px auto 0; font-size: .8rem; opacity: .8; }

.breadcrumb { font-size: .88rem; color: var(--gris); margin-bottom: 14px; }
.ficha-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.note { background: var(--naranja-suave); border-left: 4px solid var(--naranja); padding: 12px 14px; border-radius: 8px; }

.bien-vuela {
  position: fixed;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: 2rem;
  color: #2e7d32;
  pointer-events: none;
  z-index: 80;
  animation: bienvuela .95s ease-out forwards;
  text-shadow: 0 2px 0 #fff;
}
@keyframes bienvuela {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.8); }
  100% { opacity: 0; transform: translate(-50%, -130%) scale(1.4); }
}
@media (max-width: 860px) {
  .hero, .ficha-hero, .grid, .quick, .foot-inner { grid-template-columns: 1fr; }
  .abc { display: none; }
  nav .nav-cta { margin-left: 0; }
  .brand-text span { display: none; }
  .brand-text strong { font-size: 1.2rem; }
  .logo-mark { width: 40px; height: 40px; font-size: 18px; }
  .topbar-inner { padding: 12px 14px; }
  body { overflow-x: hidden; }
}
