/* Landing clara Ancora — petróleo + crema/dorado (Inicio + páginas internas) */

.site-ancora {
  --home-ink: #0a1b2e;
  --home-ink-mid: #14304f;
  --home-cream: #d4b76a;
  --home-cream-light: #f0e6d2;
  --home-turquoise: #0284c7;
}

.site-ancora .eyebrow,
.site-ancora:not(.page-home) .eyebrow {
  color: var(--home-cream);
}

/* Caja clara con acento dorado (borde) — fondo blanco/crema suave */
.site-ancora .card,
.site-ancora .case-block,
.site-ancora .metric,
.site-ancora .lines-table,
.site-ancora .product-spotlight {
  border: 1px solid rgba(10, 27, 46, 0.08);
  border-top: 4px solid var(--home-cream);
  border-left: 1px solid rgba(10, 27, 46, 0.08);
  background: linear-gradient(
    155deg,
    rgba(212, 183, 106, 0.16) 0%,
    #ffffff 50%,
    rgba(240, 230, 210, 0.34) 100%
  );
  box-shadow: 0 10px 32px rgba(10, 27, 46, 0.08);
}

.site-ancora .card:hover,
.site-ancora .case-block:hover {
  border-top-color: #c9a85a;
  border-color: rgba(10, 27, 46, 0.1);
  transform: translateY(-3px);
}

.site-ancora .card h3 {
  color: var(--home-ink);
}

.site-ancora .card-icon {
  color: var(--home-ink);
  background: linear-gradient(145deg, rgba(212, 183, 106, 0.35) 0%, rgba(240, 230, 210, 0.5) 100%);
  border: 1px solid rgba(212, 183, 106, 0.45);
}

.site-ancora .card-link {
  color: var(--home-ink-mid);
}

.site-ancora .card-link:hover {
  color: var(--home-cream);
}

.site-ancora .btn-primary {
  background: linear-gradient(135deg, var(--home-cream) 0%, var(--home-cream-light) 100%);
  color: var(--home-ink);
  box-shadow: 0 8px 24px rgba(10, 27, 46, 0.16);
}

.site-ancora .btn-primary:hover {
  background: linear-gradient(135deg, #c9a85a 0%, var(--home-cream-light) 100%);
  color: var(--home-ink);
}

.site-ancora .btn-outline {
  background: linear-gradient(135deg, var(--home-cream) 0%, var(--home-cream-light) 100%);
  color: var(--home-ink);
  border: 1px solid rgba(201, 168, 90, 0.85);
  box-shadow: 0 8px 24px rgba(10, 27, 46, 0.14);
}

.site-ancora .btn-outline:hover {
  background: linear-gradient(135deg, #c9a85a 0%, var(--home-cream-light) 100%);
  border-color: #b8954a;
  color: var(--home-ink);
}

.site-ancora .metric strong {
  color: var(--home-ink);
}

.site-ancora .lines-table th {
  background: linear-gradient(180deg, rgba(212, 183, 106, 0.38) 0%, rgba(240, 230, 210, 0.55) 100%);
  color: var(--home-ink);
}

.site-ancora .product-spotlight h3 {
  color: var(--home-ink);
}

.site-ancora .product-spotlight p,
.site-ancora .product-spotlight .eyebrow {
  color: #5f6d81;
}

.site-ancora .product-spotlight .tag {
  background: rgba(212, 183, 106, 0.24);
  color: #8a6d2e;
}


.site-ancora .product-spotlight-aside .eyebrow {
  margin-bottom: 8px;
}

.site-ancora .product-spotlight-aside p:last-child {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.site-ancora .case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  max-width: 56rem;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .site-ancora .case-grid {
    grid-template-columns: 1fr;
    max-width: 40rem;
  }
}

.site-ancora .case-block {
  margin-bottom: 0;
}

.site-ancora .case-block h3 {
  color: var(--home-ink, #0a1b2e);
}

.site-ancora .case-meta {
  color: #8a6d2e;
}

.site-ancora .case-btn {
  margin-top: 16px;
}

/* Subtítulos landings — mismo tamaño que el lead de Inicio */
.site-ancora .page-hero .prose-lead,
.site-ancora .section .prose-lead-disclaimer,
.page-home .hero-lead.prose-lead,
.page-home .hero-lead-full {
  font-size: 17px;
  line-height: 1.65;
  color: #5f6d81;
}

.site-ancora .page-hero .prose-lead {
  margin-top: 20px;
  margin-bottom: 0;
}

.site-ancora .section .prose-lead-disclaimer {
  margin-top: 32px;
  max-width: none;
}

@media (min-width: 1080px) {
  .site-ancora .page-hero .prose-lead,
  .site-ancora .page-hero .prose-lead-one-line,
  .site-ancora .section .prose-lead-disclaimer,
  .site-ancora .section .prose-lead.prose-lead-one-line,
  .page-home .hero-lead-one-line,
  .page-home .hero-lead-full.hero-lead-one-line {
    white-space: nowrap;
    max-width: none;
    font-size: clamp(15px, 1.05vw, 17px);
  }
}

@media (max-width: 1079px) {
  .site-ancora .page-hero .prose-lead {
    white-space: normal;
  }
}

.page-home .site-header--light .brand-text small {
  color: var(--home-cream);
}

.page-home .eyebrow {
  color: var(--home-cream);
}

.page-home .hero {
  padding: 72px 24px 56px;
  gap: 32px 48px;
  grid-template-rows: auto auto;
  align-items: start;
}

.page-home .hero-copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  max-width: none;
}

.page-home .hero-visual {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 20px 22px 18px;
}

.page-home .hero-lead-full {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 4px 0 0;
  max-width: none;
  text-align: left;
  text-align-last: left;
}

.page-home .hero-lead-one-line {
  max-width: none;
}

.page-home .hero .actions {
  margin-top: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-home .hero h1 {
  color: var(--home-ink);
  line-height: 1.1;
}

.page-home .hero h1 span {
  color: var(--home-cream);
}

.page-home .tag {
  background: rgba(212, 183, 106, 0.22);
  color: var(--home-cream-light);
}

.page-home .strip {
  background: linear-gradient(120deg, var(--home-ink) 0%, #14304f 100%);
}

.page-home .strip .eyebrow {
  color: var(--home-cream-light);
}

.page-home .strip .btn-primary {
  background: linear-gradient(135deg, var(--home-cream) 0%, var(--home-cream-light) 100%);
  color: var(--home-ink);
}

.page-home .hero-visual {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 8px 0 0;
}

.page-home .hero-flow {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(212, 183, 106, 0.22);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 28px rgba(10, 27, 46, 0.06);
}

.page-home .hero-flow-svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .hero-flow-canvas {
  fill: url(#hero-flow-bg);
}

.page-home .hero-flow-canvas-dots {
  opacity: 0.65;
}

.page-home .hero-flow-path {
  fill: none;
  stroke: #b8954a;
  stroke-width: 2.75;
  stroke-linecap: round;
  opacity: 0.95;
  stroke-dasharray: 7 7;
  animation: hero-flow-dash 0.55s linear infinite;
}

.page-home .hero-flow-path--2 {
  animation-delay: 0.12s;
}

.page-home .hero-flow-path--3 {
  animation-delay: 0.24s;
}

.page-home .hero-flow-trigger {
  fill: #ffffff;
  stroke: rgba(212, 183, 106, 0.55);
  stroke-width: 1.25;
}

.page-home .hero-flow-logo-bg {
  fill: #000000;
  stroke: none;
}

.page-home .hero-flow-logo-wrap {
  pointer-events: none;
}

.page-home .hero-flow-logo {
  animation: none;
}

.page-home .hero-flow-bolt {
  fill: #e07a5a;
  stroke: none;
  opacity: 0.9;
}

.page-home .hero-flow-step {
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-flow-breathe 1.85s ease-in-out infinite;
}

.page-home .hero-flow-step--0 {
  animation-delay: 0s;
}

.page-home .hero-flow-step--1 {
  animation-delay: 0.3s;
}

.page-home .hero-flow-step--2 {
  animation-delay: 0.6s;
}

.page-home .hero-flow-step--3 {
  animation-delay: 0.9s;
}

.page-home .hero-flow-step--4 {
  animation-delay: 1.2s;
}

.page-home .hero-flow-node {
  fill: #ffffff;
  stroke: rgba(212, 183, 106, 0.5);
  stroke-width: 1.25;
}

.page-home .hero-flow-node-icon {
  fill: #faf6ed;
  stroke: #d4b76a;
  stroke-width: 1.3;
}

.page-home .hero-flow-node-icon--gear {
  fill: none;
  stroke: #8a6d2e;
  stroke-width: 1.6;
}

.page-home .hero-flow-node-icon--ai {
  fill: none;
  stroke: #0284c7;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.page-home .hero-flow-port {
  fill: #ffffff;
  stroke: #c9a85a;
  stroke-width: 1.5;
  animation: hero-flow-port-flow 0.55s ease-in-out infinite;
}

.page-home .hero-flow-port:nth-of-type(odd) {
  animation-delay: 0.1s;
}

.page-home .hero-flow-add {
  fill: #ffffff;
  stroke: rgba(10, 27, 46, 0.12);
  stroke-width: 1.25;
}

.page-home .hero-flow-add-label {
  fill: #5f6d81;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
}

.page-home .hero-flow-title {
  fill: #0a1b2e;
  font-family: 'Barlow Semi Condensed', system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-anchor: middle;
}

.page-home .hero-flow-sub {
  fill: #5f6d81;
  font-family: system-ui, sans-serif;
  font-size: 7.5px;
  text-anchor: middle;
}

@keyframes hero-logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes hero-flow-dash {
  to {
    stroke-dashoffset: -28;
  }
}

@keyframes hero-flow-port-flow {
  0%,
  100% {
    fill: #ffffff;
    stroke: #c9a85a;
  }
  50% {
    fill: #f0e6d2;
    stroke: #0284c7;
  }
}

@keyframes hero-flow-breathe {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 6px rgba(10, 27, 46, 0.05));
  }
  50% {
    transform: scale(1.07);
    filter: drop-shadow(0 5px 16px rgba(201, 168, 90, 0.38));
  }
}

@media (max-width: 900px) {
  .page-home .hero-copy,
  .page-home .hero-visual,
  .page-home .hero-lead-full {
    grid-column: 1;
    grid-row: auto;
  }

  .page-home .hero-lead-one-line {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-flow-step,
  .page-home .hero-flow-path,
  .page-home .hero-flow-port {
    animation: none;
  }

  .page-home .hero-flow-path {
    stroke-dasharray: none;
  }
}
