:root {
  --azul: #0d1b2a;
  --azul-medio: #2b4c6f;
  --azul-profundo: #060b11;
  --amarillo: #e8c547;
  --amarillo-oscuro: #c9a830;
  --texto: #e2e8f0;
  --texto-oscuro: #16202d;
  --muted: #94a3b8;
  --fondo: #060b11;
  --panel: #f5f4ee;
  --linea: rgba(255, 255, 255, 0.08);
  --blanco: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.75;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header {
  background: rgba(6, 11, 17, 0.92);
  color: var(--blanco);
  border-bottom: 1px solid var(--linea);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 128px;
  max-height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 0.88rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amarillo) 0%, var(--amarillo-oscuro) 100%);
  color: var(--azul-profundo);
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(232, 197, 71, 0.2);
}

.nav-links .nav-cta:hover {
  color: var(--azul-profundo);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 197, 71, 0.35);
}

.article-hero {
  background:
    radial-gradient(circle at 78% 8%, rgba(232, 197, 71, 0.13), transparent 32%),
    radial-gradient(circle at 8% 52%, rgba(43, 76, 111, 0.42), transparent 34%),
    linear-gradient(135deg, var(--azul-profundo) 0%, var(--azul) 100%);
  color: var(--blanco);
  padding: 88px 0 68px;
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  margin: 0 0 18px;
  border: 1px solid rgba(232, 197, 71, 0.25);
  border-radius: 999px;
  color: var(--amarillo);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.08;
}

.hero-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-media {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  background: #0f172a;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.n8n-hero {
  min-height: 330px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  background:
    radial-gradient(circle at 78% 18%, rgba(234, 75, 113, 0.28), transparent 34%),
    linear-gradient(145deg, #0f172a 0%, #111827 100%);
}

.n8n-logo-wrap {
  width: min(260px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.n8n-logo-wrap img {
  width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.workflow-preview {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr;
  gap: 10px;
  align-items: center;
}

.workflow-preview span {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--blanco);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
}

.workflow-preview i {
  height: 2px;
  background: var(--amarillo);
  position: relative;
}

.workflow-preview i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 8px solid var(--amarillo);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.n8n-caption {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: center;
}

.article-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.article-body {
  background: var(--panel);
  color: var(--texto-oscuro);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 54px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.article-body h2 {
  margin: 42px 0 14px;
  color: var(--azul);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.25;
}

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

.article-body h3 {
  margin: 30px 0 10px;
  color: var(--azul-medio);
  font-size: 1.22rem;
  line-height: 1.35;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
  padding-left: 1.35rem;
  margin: 0 0 22px;
}

.article-body li {
  margin: 0 0 10px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.95rem;
  overflow: hidden;
  border-radius: 8px;
}

.article-body th,
.article-body td {
  border: 1px solid #d9d2bd;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--azul);
  color: var(--blanco);
}

.article-body tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.54);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.mini-card {
  border: 1px solid #d9d2bd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  padding: 18px;
}

.mini-card strong {
  display: block;
  color: var(--azul);
  margin-bottom: 8px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.pill-list li {
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--azul);
  color: var(--blanco);
  font-size: 0.9rem;
  font-weight: 700;
}

.examples-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 44px;
}

.example-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid #e5deca;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 26px rgba(13, 27, 42, 0.06);
}

.example-card h3 {
  margin: 0;
  color: var(--azul);
  font-size: 1rem;
}

.example-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.example-topline {
  min-height: 42px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.example-topline img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.example-topline span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #bdebcf;
  color: #118042;
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.example-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  align-self: center;
  margin-bottom: 6px;
}

.example-logo.wide {
  width: 130px;
  height: 58px;
}

.example-btn {
  margin-top: auto;
  align-self: center;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 4px;
  background: #ff8700;
  color: var(--blanco);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}

.example-btn:hover {
  background: var(--azul-medio);
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.figure-card,
.wide-figure {
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--linea);
  border-radius: 8px;
  background: #f9fbfd;
}

.figure-card img,
.wide-figure img {
  width: 100%;
  object-fit: cover;
}

.wide-figure img {
  max-height: 420px;
}

.caption {
  margin: 0;
  padding: 12px 14px;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.highlight {
  border-left: 4px solid var(--amarillo);
  background: #fff8dd;
  padding: 18px 20px;
  margin: 26px 0;
  border-radius: 0 8px 8px 0;
}

.offer {
  border: 1px solid rgba(232, 197, 71, 0.45);
  border-radius: 8px;
  background: #fff9e7;
  padding: 24px;
  margin: 34px 0;
}

.offer-price {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  margin: 8px 0 18px;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 1.35rem;
  font-weight: 700;
}

.new-price {
  color: var(--azul);
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 800;
}

.cta {
  margin-top: 46px;
  padding: 30px;
  border-radius: 8px;
  background: var(--azul);
  color: var(--blanco);
}

.cta h2 {
  margin-top: 0;
  color: var(--blanco);
}

.cta p {
  color: rgba(255, 255, 255, 0.84);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amarillo) 0%, var(--amarillo-oscuro) 100%);
  color: var(--azul-profundo);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(232, 197, 71, 0.18);
}

.btn:hover {
  background: linear-gradient(135deg, #f0d56b 0%, var(--amarillo) 100%);
}

.article-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-footer a {
  color: var(--amarillo);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 780px) {
  .nav {
    min-height: auto;
    padding: 18px 0;
    align-items: center;
    flex-direction: row;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-links .nav-cta {
    min-height: 38px;
    padding: 9px 16px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .article-hero {
    padding: 48px 0 36px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .figure-grid {
    grid-template-columns: 1fr;
  }

  .workflow-preview {
    grid-template-columns: 1fr;
  }

  .workflow-preview i {
    width: 2px;
    height: 18px;
    justify-self: center;
  }

  .workflow-preview i::after {
    right: -4px;
    top: auto;
    bottom: -2px;
    border-top: 8px solid var(--amarillo);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 0;
  }

  .examples-showcase {
    grid-template-columns: 1fr;
  }

  .article-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .cta {
    padding: 24px;
  }
}

@media (min-width: 781px) and (max-width: 1060px) {
  .examples-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
