:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --ink: #0f1b2d;
  --muted: #4d5f79;
  --line: #d3dbe8;
  --line-strong: #c4d1e4;
  --accent: #0f4c81;
  --accent-strong: #0b355a;
  --warm: #315f97;
  --shadow: 0 16px 40px rgba(15, 27, 45, 0.12);
  --shadow-soft: 0 8px 24px rgba(15, 27, 45, 0.09);
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 5% 10%, #dbe8f8 0%, rgba(219, 232, 248, 0) 35%),
              radial-gradient(circle at 95% 15%, #e8eef8 0%, rgba(232, 238, 248, 0) 35%),
              linear-gradient(180deg, #f7faff 0%, #f1f5fc 100%),
              var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.35;
}

.orb-a {
  top: -120px;
  left: -80px;
  background: #a9c2e5;
}

.orb-b {
  right: -120px;
  bottom: -110px;
  background: #c7d4ea;
}

.container {
  width: min(1000px, 92%);
  margin-inline: auto;
}

main {
  padding-bottom: 1rem;
}

#inicio {
  scroll-margin-top: 12rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background-color: rgba(243, 246, 251, 0.86);
  border-bottom: 1px solid rgba(211, 219, 232, 0.72);
  padding: 0.45rem 0;
}

.site-header .container {
  width: min(1000px, 92%);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 76, 129, 0.25), transparent);
}

.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  align-items: center;
  min-height: 76px;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d8e2ef;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 27, 45, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: #f4f8ff;
  border: 1px solid #d7e2f1;
  justify-self: end;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  justify-self: start;
  text-decoration: none;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: 210px;
  height: 84px;
  display: block;
  object-fit: contain;
  transform: scale(1.22);
  transform-origin: left center;
  border-radius: 0;
  box-shadow: none;
}

.main-nav {
  display: flex;
  gap: 0.35rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: #f4f8ff;
  border: 1px solid #d7e2f1;
  justify-self: center;
}

.main-nav a {
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  color: #1a3b63;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  background: #e1ebf9;
  transform: translateY(-1px);
}

.main-nav a,
.site-footer a,
.text-link {
  text-decoration: none;
  color: var(--ink);
  transition: color 0.25s ease;
}

.main-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 27, 45, 0.12);
}

.nav-actions .btn {
  padding: 0.45rem 0.88rem;
  font-size: 0.92rem;
}

.btn:focus-visible,
.main-nav a:focus-visible,
.text-link:focus-visible,
.newsletter-form input:focus-visible {
  outline: 3px solid rgba(15, 76, 129, 0.28);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #ffffff;
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: #ffffff;
}

.btn-ghost {
  border-color: transparent;
  color: #1a3b63;
  background: transparent;
}

.hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  width: min(1000px, 92%);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3.7rem) 0 clamp(1.25rem, 2vw, 2.1rem);
  align-items: stretch;
  justify-items: center;
}

.hero-copy {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #d7e2f1;
  border-radius: var(--radius-lg);
  padding: 1.55rem;
  box-shadow: var(--shadow-soft);
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f74af, #0f4c81);
}

.eyebrow {
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm);
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  margin-bottom: 0.85rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.2rem;
}

.chip {
  display: inline-flex;
  margin: 0 0 0.8rem;
  background: #e8f0fa;
  color: #103f6a;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.quick-links {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff, #f6faff);
  border: 1px solid #d7e1f0;
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: 0 10px 24px rgba(15, 27, 45, 0.08);
}

.quick-card .text-link {
  margin-top: auto;
}

.quick-step {
  width: 36px;
  height: 36px;
  margin: 0 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e6effa;
  color: #0f4c81;
  font-size: 0.86rem;
  font-weight: 800;
}

.section-block {
  width: min(1000px, 92%);
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2rem) 0;
}

#articulos.section-block,
#tendencias.section-block {
  width: min(1000px, 92%);
}

.section-head {
  width: 100%;
  max-width: none;
}

.section-head h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2d6ca5, rgba(45, 108, 165, 0.1));
}

.section-head p {
  color: var(--muted);
}

.grid-posts {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card,
.panel,
.newsletter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 6px 20px rgba(25, 36, 56, 0.08);
}

.post-card h3 {
  font-size: 1.26rem;
  margin-bottom: 0.75rem;
}

.post-card p {
  margin-top: 0;
}

.post-card {
  display: flex;
  flex-direction: column;
  animation: rise 0.8s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card .text-link {
  margin-top: auto;
}

.post-card:hover,
.quick-card:hover,
.panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(15, 27, 45, 0.13);
  border-color: #b8cbe6;
}

.featured-post {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
  overflow: hidden;
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.featured-post img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 0;
  filter: saturate(1.08) contrast(1.02);
}

.featured-post-content {
  display: flex;
  flex-direction: column;
}

.featured-post-content .text-link {
  margin-top: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}

.text-link::after {
  content: "\2192";
  font-size: 0.9em;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(2px);
}

.post-card:nth-child(2) {
  animation-delay: 0.12s;
}

.post-card:nth-child(3) {
  animation-delay: 0.22s;
}

.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.panel ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #29405f;
}

.panel li + li {
  margin-top: 0.4rem;
}

.panel.accent {
  border-color: #b6c9e6;
  background: linear-gradient(135deg, #edf3fc, #f8fbff);
}

.cta-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.btn-youtube {
  background: linear-gradient(120deg, #ff3737, #d90f18);
  color: #ffffff;
  border-color: #b30f16;
  gap: 0.45rem;
}

.btn-youtube:hover {
  background: linear-gradient(120deg, #ff4a4a, #c90d16);
}

.youtube-icon {
  width: 1.05rem;
  height: 1.05rem;
  fill: #ffffff;
  flex-shrink: 0;
}

.youtube-play {
  fill: #d90f18;
}

.newsletter {
  text-align: center;
  padding: 2.2rem 1.2rem;
  background: linear-gradient(145deg, #f5f9ff, #ffffff);
  border-color: #cfdced;
}

.newsletter-form {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.newsletter-form input {
  min-width: min(340px, 90vw);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 0.95rem;
  font-size: 1rem;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.2);
}

.site-footer {
  border-top: 1px solid #cfd9e8;
  margin-top: 2rem;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.4), rgba(246, 250, 255, 0.85));
}

.footer-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0;
  text-align: center;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
  line-height: 1.25;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 960px) {
  .hero,
  .quick-links,
  .grid-posts,
  .split {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    border-radius: 14px;
  }

  .nav-wrap {
    display: flex;
    border-radius: 14px;
    justify-content: space-between;
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post img {
    min-height: 220px;
    border-radius: 0;
  }
}

@media (max-width: 540px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 0.65rem;
  }

  .brand {
    width: 100%;
    justify-content: center;
    font-size: 1.15rem;
  }

  .brand-logo {
    width: 176px;
    height: 70px;
    transform-origin: center;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 12px;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .hero {
    padding-top: 2rem;
  }

  .cta-links .btn {
    width: 100%;
  }

  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 1rem 0;
  }
}
