/* Sistema Landing — IA Futura × Ferga Services
   Custom layout encima de iaf-components.css */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--iaf-font-sans);
  background: var(--iaf-bone);
  color: var(--iaf-midnight);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(61, 90, 128, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.brand-logo--iaf { height: 32px; }
.brand-logo--ferga { height: 36px; }

/* Wrappers — aquí van animation + box-shadow (más visible en mobile que filter drop-shadow) */
.brand-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  will-change: transform, opacity, box-shadow;
}
.brand-wrap--iaf {
  animation: brandLeadIaf 7s ease-in-out infinite;
  transform-origin: left center;
}
.brand-wrap--ferga {
  background: var(--iaf-bone);
  padding: 5px 9px;
  animation: brandLeadFerga 7s ease-in-out infinite;
  transform-origin: center;
}
.brand-cross {
  color: var(--iaf-amber);
  font-family: var(--iaf-font-mono);
  font-weight: 600;
  font-size: 20px;
  opacity: 0.85;
  display: inline-block;
  animation: crossSpin 5s linear infinite;
  transform-origin: center;
}

/* Animación líder alternante MÁS VISIBLE: scale 0.82↔1.0, opacity 0.35↔1, box-shadow glow */
@keyframes brandLeadIaf {
  0%, 35% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 18px 4px rgba(0, 229, 255, 0.55), 0 0 36px 8px rgba(0, 229, 255, 0.25);
  }
  50%, 85% {
    transform: scale(0.82);
    opacity: 0.4;
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 18px 4px rgba(0, 229, 255, 0.55), 0 0 36px 8px rgba(0, 229, 255, 0.25);
  }
}
@keyframes brandLeadFerga {
  0%, 35% {
    transform: scale(0.82);
    opacity: 0.4;
    box-shadow: 0 0 0 0 rgba(255, 182, 39, 0);
  }
  50%, 85% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 20px 4px rgba(255, 182, 39, 0.7), 0 0 40px 10px rgba(255, 182, 39, 0.35);
  }
  100% {
    transform: scale(0.82);
    opacity: 0.4;
    box-shadow: 0 0 0 0 rgba(255, 182, 39, 0);
  }
}
@keyframes crossSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Accessibility: usuarios con preferencia de reduced motion */
@media (prefers-reduced-motion: reduce) {
  .brand-wrap--iaf,
  .brand-wrap--ferga,
  .brand-cross {
    animation: none !important;
  }
  .brand-wrap--iaf, .brand-wrap--ferga {
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
  }
}
.header-cta { flex-shrink: 0; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  background: var(--iaf-midnight);
  color: var(--iaf-bone);
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 182, 39, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, var(--iaf-midnight) 0%, var(--iaf-g900) 100%);
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("patterns/cuna-slash.svg");
  background-size: 600px;
  background-position: 110% -10%;
  background-repeat: no-repeat;
  opacity: 0.08;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  text-align: left;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--iaf-font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--iaf-cyan);
  margin-bottom: 32px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.05);
}
.hero-title {
  font-family: var(--iaf-font-sans);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
}
.hero-accent { color: var(--iaf-cyan); }
.hero-sub {
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--iaf-g300);
  margin: 0 0 48px;
  max-width: 720px;
  line-height: 1.5;
}
.hero-sub strong { color: var(--iaf-bone); font-weight: 600; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-guarantee {
  font-family: var(--iaf-font-mono);
  font-size: 13px;
  color: var(--iaf-g500);
  margin: 24px 0 0;
  letter-spacing: 0.02em;
}
.cta-icon--dark { filter: brightness(0); }

/* Unifica altura entre buttons primary/amber (sin border) y secondary (border 2px) */
.iaf-btn--primary,
.iaf-btn--amber {
  border: 2px solid transparent;
}

/* ========== BORDER GLOW PULSE — CTAs principales ========== */
/* Pulse glow tipo "respiración luminosa" alrededor del borde */
.iaf-btn--lg,
.header-cta {
  animation: btnGlowPulseCyan 2.8s ease-in-out infinite;
}
.iaf-btn--amber.iaf-btn--lg {
  animation: btnGlowPulseAmber 2.8s ease-in-out infinite;
}

@keyframes btnGlowPulseCyan {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(0, 229, 255, 0),
      0 0 0 0 rgba(0, 229, 255, 0);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(0, 229, 255, 0.35),
      0 0 28px 6px rgba(0, 229, 255, 0.45);
  }
}
@keyframes btnGlowPulseAmber {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(255, 182, 39, 0),
      0 0 0 0 rgba(255, 182, 39, 0);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(255, 182, 39, 0.4),
      0 0 32px 8px rgba(255, 182, 39, 0.5);
  }
}

/* ========== PULSE GLOW — Block Badges (01/02/03/04/05) ========== */
.block-badge {
  animation: badgePulseCyan 3s ease-in-out infinite;
}
.block--dark .block-badge {
  animation: badgePulseAmber 3s ease-in-out infinite;
}
@keyframes badgePulseCyan {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
  50% { box-shadow: 0 0 20px 2px rgba(0, 229, 255, 0.5); }
}
@keyframes badgePulseAmber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 182, 39, 0); }
  50% { box-shadow: 0 0 20px 2px rgba(255, 182, 39, 0.5); }
}

/* Reduced motion: desactiva todas las animaciones decorativas */
@media (prefers-reduced-motion: reduce) {
  .iaf-btn--lg,
  .iaf-btn--amber.iaf-btn--lg,
  .header-cta,
  .block-badge {
    animation: none !important;
    box-shadow: none !important;
  }
}

/* Botón Amber (Diego/Ferga) — mismo nivel visual que primary cyan */
.iaf-btn--amber {
  background: var(--iaf-amber);
  color: var(--iaf-midnight);
  font-family: var(--iaf-font-sans);
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: var(--iaf-radius-md);
  transition: all var(--iaf-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255, 182, 39, 0.35);
}
.iaf-btn--amber:hover {
  background: #FFC547;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 182, 39, 0.5);
}
.iaf-btn--amber:active { transform: translateY(0); }

/* ========== LOGO BAR / CLIENTES ========== */
.logo-bar {
  background: linear-gradient(180deg, var(--iaf-g900) 0%, var(--iaf-midnight) 100%);
  border-bottom: 1px solid rgba(0,229,255,0.12);
  padding: 40px 0 48px;
  color: var(--iaf-bone);
  text-align: center;
}
.logo-bar-eyebrow {
  font-family: var(--iaf-font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--iaf-steel);
  text-transform: uppercase;
  margin: 0 0 20px;
}
.logo-bar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 899px) {
  .logo-bar-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 4px 24px 12px;
    margin-left: -24px;
    margin-right: -24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 48px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 48px), transparent 100%);
  }
  .logo-bar-row::-webkit-scrollbar { display: none; }
  .logo-bar-row .client-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}
.client-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(0,229,255,0.05);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--iaf-bone);
  transition: all var(--iaf-transition);
}
.client-pill:hover {
  border-color: var(--iaf-cyan);
  background: rgba(0,229,255,0.1);
}
.client-pill small {
  font-family: var(--iaf-font-mono);
  font-size: 11px;
  color: var(--iaf-steel);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.logo-bar-anchor {
  font-size: 16px;
  color: var(--iaf-g300);
  margin: 0;
  max-width: 720px;
  margin-inline: auto;
  line-height: 1.5;
}
.logo-bar-anchor strong {
  color: var(--iaf-cyan);
  font-weight: 600;
}

/* ========== PROBLEMA · AGITAR · SOLUCIÓN ========== */
.pas-section {
  background: var(--iaf-bone);
  padding: 96px 0;
}
.pas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1100px;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .pas-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.pas-card {
  background: white;
  border: 1px solid var(--iaf-g300);
  border-radius: var(--iaf-radius-lg);
  padding: 32px 28px;
  transition: all var(--iaf-transition);
  position: relative;
  overflow: hidden;
}
.pas-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--iaf-g300);
  transition: background var(--iaf-transition);
}
.pas-card--problem::before { background: var(--iaf-steel); }
.pas-card--agitate::before { background: var(--iaf-amber); }
.pas-card--solution::before { background: var(--iaf-cyan); }
.pas-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.08);
}
.pas-tag {
  display: inline-block;
  font-family: var(--iaf-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--iaf-steel);
  margin-bottom: 12px;
}
.pas-tag--amber { color: var(--iaf-amber); }
.pas-tag--cyan { color: var(--iaf-cyan-dark); }
.pas-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--iaf-midnight);
}
.pas-accent { color: var(--iaf-cyan-dark); }
.pas-card--agitate .pas-accent { color: var(--iaf-amber); }
.pas-text {
  font-size: 15px;
  color: var(--iaf-steel);
  line-height: 1.6;
  margin: 0;
}
.pas-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pas-list li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 15px;
  color: var(--iaf-steel);
  line-height: 1.5;
  border-bottom: 1px solid var(--iaf-g100);
}
.pas-list li:last-child { border-bottom: none; }
.pas-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--iaf-amber);
  font-size: 14px;
}
.pas-list strong { color: var(--iaf-midnight); font-weight: 700; }

/* ========== CÓMO TRABAJAMOS ========== */
.how {
  background: var(--iaf-midnight);
  color: var(--iaf-bone);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.how::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,229,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.how-head {
  position: relative;
  text-align: center;
  margin-bottom: 64px;
}
.how-eyebrow {
  font-family: var(--iaf-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--iaf-cyan);
  font-weight: 700;
}
.how-title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 12px 0 0;
  max-width: 760px;
  margin-inline: auto;
}
.how-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 0;
  }
}
.how-step {
  background: var(--iaf-g900);
  border: 1px solid var(--iaf-g700);
  border-radius: var(--iaf-radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: all var(--iaf-transition);
}
.how-step:hover {
  border-color: var(--iaf-cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,229,255,0.12);
}
.how-num {
  display: inline-block;
  font-family: var(--iaf-font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--iaf-cyan);
  line-height: 1;
  margin-bottom: 12px;
}
.how-step h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--iaf-bone);
}
.how-step p {
  font-size: 14px;
  color: var(--iaf-g300);
  line-height: 1.55;
  margin: 0;
}
.how-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--iaf-cyan);
  font-family: var(--iaf-font-mono);
  font-size: 22px;
  opacity: 0.5;
  padding: 0 4px;
}
@media (max-width: 899px) {
  .how-arrow { transform: rotate(90deg); padding: 8px 0; }
}

/* ========== FAQ ========== */
.faq {
  background: var(--iaf-bone);
  padding: 96px 0;
}
.faq-head {
  text-align: center;
  margin-bottom: 48px;
}
.faq-eyebrow {
  font-family: var(--iaf-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--iaf-cyan-dark);
  font-weight: 700;
}
.faq-title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 12px 0 0;
}
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: white;
  border: 1px solid var(--iaf-g300);
  border-radius: var(--iaf-radius-lg);
  overflow: hidden;
  transition: all var(--iaf-transition);
}
.faq-item:hover { border-color: var(--iaf-cyan); }
.faq-item[open] {
  border-color: var(--iaf-cyan);
  box-shadow: 0 8px 24px rgba(0,229,255,0.1);
}
.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--iaf-midnight);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--iaf-transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--iaf-font-mono);
  font-size: 24px;
  font-weight: 400;
  color: var(--iaf-cyan-dark);
  line-height: 1;
  transition: transform var(--iaf-transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover { color: var(--iaf-cyan-dark); }
.faq-item p {
  padding: 0 24px 24px;
  margin: 0;
  font-size: 15px;
  color: var(--iaf-steel);
  line-height: 1.7;
}

/* ========== CTA FINAL EXTRAS ========== */
.final-cta-guarantee {
  font-family: var(--iaf-font-mono);
  font-size: 13px;
  color: var(--iaf-g300);
  margin: 24px 0 0;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

/* ========== BANDA PROMESA ========== */
.promise-band {
  background: var(--iaf-g900);
  color: var(--iaf-bone);
  padding: 32px 0;
  border-top: 1px solid rgba(0, 229, 255, 0.15);
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}
.promise-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
}
.promise-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.promise-number {
  font-family: var(--iaf-font-mono);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--iaf-cyan);
  line-height: 1;
}
.promise-label {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--iaf-g300);
  text-transform: lowercase;
}
.promise-divider {
  width: 1px;
  height: 40px;
  background: rgba(61, 90, 128, 0.4);
}

/* ========== CABECERA SERVICIOS ========== */
.services-intro {
  background: var(--iaf-bone);
  padding: 80px 0 32px;
  text-align: center;
}
.services-eyebrow {
  font-family: var(--iaf-font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--iaf-cyan-dark);
  font-weight: 700;
}
.services-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 14px 0 16px;
  color: var(--iaf-midnight);
  max-width: 920px;
  margin-inline: auto;
}
.services-title-accent { color: var(--iaf-cyan-dark); }
.services-sub {
  font-size: 17px;
  color: var(--iaf-steel);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========== BLOQUES (genéricos) ========== */
.block {
  padding: 96px 0;
  position: relative;
}
.block--light { background: var(--iaf-bone); color: var(--iaf-midnight); }
.block--dark { background: var(--iaf-midnight); color: var(--iaf-bone); }
.block-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 960px) {
  .block-grid {
    grid-template-columns: 380px 1fr;
    gap: 80px;
    align-items: start;
  }
}
.block-head { position: sticky; top: 96px; }
@media (max-width: 959px) { .block-head { position: static; } }

.block-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  margin-bottom: 24px;
}
.block--dark .block-badge {
  background: rgba(255, 182, 39, 0.08);
  border-color: rgba(255, 182, 39, 0.3);
}
.block-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(72%) sepia(81%) saturate(2476%) hue-rotate(141deg) brightness(102%) contrast(101%);
}
.block--dark .block-icon {
  filter: brightness(0) saturate(100%) invert(74%) sepia(58%) saturate(1056%) hue-rotate(346deg) brightness(101%) contrast(101%);
}
.block-tag {
  font-family: var(--iaf-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--iaf-cyan);
}
.block-tag--amber { color: var(--iaf-amber); }
.block-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 16px;
}
.block-lead {
  font-size: 17px;
  color: var(--iaf-steel);
  margin: 0;
  line-height: 1.6;
}
.block--dark .block-lead { color: var(--iaf-g300); }

/* ========== FEATURE LIST (Bloque 01) ========== */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}
.feature-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--iaf-g300);
  border-radius: var(--iaf-radius-lg);
  background: white;
  transition: all var(--iaf-transition);
}
.feature-row:hover {
  border-color: var(--iaf-cyan);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 229, 255, 0.08);
}
.feature-num {
  font-family: var(--iaf-font-mono);
  font-weight: 700;
  font-size: 32px;
  color: var(--iaf-cyan);
  line-height: 1;
  text-align: center;
  padding-top: 4px;
}
.feature-row h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}
.feature-row p {
  margin: 0;
  font-size: 14px;
  color: var(--iaf-steel);
  line-height: 1.55;
}
.sub-card {
  background: var(--iaf-midnight);
  color: var(--iaf-bone);
  border-radius: var(--iaf-radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.sub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0,229,255,0.06) 100%);
  pointer-events: none;
}
.sub-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  margin: 0 0 18px;
  color: var(--iaf-cyan);
  font-weight: 600;
}
.sub-icon {
  width: 22px;
  height: 22px;
  filter: brightness(0) saturate(100%) invert(72%) sepia(81%) saturate(2476%) hue-rotate(141deg) brightness(102%) contrast(101%);
}
.sub-list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--iaf-g300);
}
.sub-list li { margin-bottom: 8px; }

/* ========== CHANNELS ROW (Bloque 02) ========== */
.channels-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 999px;
  font-family: var(--iaf-font-mono);
  font-size: 13px;
  color: var(--iaf-cyan);
  font-weight: 500;
}
.channel-chip img {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(72%) sepia(81%) saturate(2476%) hue-rotate(141deg) brightness(102%) contrast(101%);
}

/* ========== MINI CARDS GRID ========== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
.mini-card {
  padding: 22px;
  background: var(--iaf-g900);
  border: 1px solid var(--iaf-g700);
  border-radius: var(--iaf-radius-lg);
  transition: all var(--iaf-transition);
}
.mini-card:hover {
  border-color: var(--iaf-cyan);
  transform: translateY(-2px);
}
.mini-card h5 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--iaf-cyan);
}
.mini-card p {
  margin: 0;
  font-size: 14px;
  color: var(--iaf-g300);
  line-height: 1.55;
}
.mini-card--light {
  background: white;
  border-color: var(--iaf-g300);
}
.mini-card--light:hover { border-color: var(--iaf-cyan); }
.mini-card--light h5 { color: var(--iaf-midnight); }
.mini-card--light p { color: var(--iaf-steel); }

/* ========== PIPELINE VISUAL (Bloque 03) ========== */
.pipeline-visual {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px;
  background: var(--iaf-midnight);
  border-radius: var(--iaf-radius-lg);
  margin-bottom: 32px;
  justify-content: center;
}
.pipe-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--iaf-bone);
}
.pipe-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--iaf-cyan);
  box-shadow: 0 0 12px rgba(0,229,255,0.6);
}
.pipe-step--win .pipe-dot { background: var(--iaf-amber); box-shadow: 0 0 12px rgba(255,182,39,0.6); }
.pipe-label {
  font-family: var(--iaf-font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.pipe-arrow {
  color: var(--iaf-steel);
  font-family: var(--iaf-font-mono);
  font-size: 18px;
}

/* ========== CIERRE DECLARATIVO ========== */
.closer {
  position: relative;
  padding: 96px 0;
  background: var(--iaf-midnight);
  color: var(--iaf-bone);
  overflow: hidden;
  text-align: center;
}
.closer-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,229,255,0.15) 0%, transparent 60%);
  z-index: 0;
}
.closer-inner {
  position: relative;
  z-index: 1;
}
.closer-text {
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 920px;
  margin-inline: auto;
}
.closer-accent { color: var(--iaf-cyan); }

/* ========== CASOS DE ÉXITO ========== */
.cases {
  padding: 96px 0;
  background: var(--iaf-bone);
}
.cases-head {
  text-align: center;
  margin-bottom: 56px;
}
.cases-eyebrow {
  font-family: var(--iaf-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--iaf-cyan);
  font-weight: 700;
}
.cases-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 12px 0 12px;
}
.cases-sub {
  font-size: 17px;
  color: var(--iaf-steel);
  max-width: 640px;
  margin: 0 auto;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.case-card {
  position: relative;
  border-radius: var(--iaf-radius-lg);
  overflow: hidden;
  background: var(--iaf-midnight);
  aspect-ratio: 9 / 16;
  transition: all var(--iaf-transition);
  display: block;
  text-decoration: none;
  color: var(--iaf-bone);
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.case-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, transparent 50%, rgba(10,14,26,0.85) 100%);
}
.case-platform {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.case-platform svg { width: 100%; height: 100%; }
.case-views {
  font-family: var(--iaf-font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--iaf-cyan);
  line-height: 1;
}
.case-niche {
  font-size: 13px;
  color: var(--iaf-g300);
  margin-top: 4px;
  text-transform: capitalize;
}
.case-card.placeholder .case-thumb {
  background: linear-gradient(135deg, var(--iaf-g900), var(--iaf-midnight));
  display: flex;
  align-items: center;
  justify-content: center;
}
.cases-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--iaf-steel);
  font-family: var(--iaf-font-mono);
  font-size: 14px;
}
.cases-cta { text-align: center; }
.cases-fallback {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--iaf-steel);
}

/* ========== CTA FINAL ========== */
.final-cta {
  position: relative;
  padding: 96px 0;
  background: var(--iaf-midnight);
  color: var(--iaf-bone);
  overflow: hidden;
  text-align: center;
}
.final-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(0,229,255,0.25) 0%, transparent 60%),
    radial-gradient(circle at 20% 0%, rgba(255,182,39,0.10) 0%, transparent 50%);
}
.final-cta-inner { position: relative; z-index: 1; }
.final-cta-title {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 820px;
  margin-inline: auto;
}
.final-cta-sub {
  font-size: 18px;
  color: var(--iaf-g300);
  margin: 0 0 40px;
  max-width: 580px;
  margin-inline: auto;
}
.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
}
.final-cta-buttons .iaf-btn { flex: 0 1 auto; }
.cta-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(72%) sepia(81%) saturate(2476%) hue-rotate(141deg) brightness(102%) contrast(101%);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--iaf-g900);
  color: var(--iaf-g300);
  padding: 56px 0 32px;
  border-top: 1px solid var(--iaf-g700);
}
.footer-inner {
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}
.footer-logo-iaf { height: 28px; }
.footer-logo-ferga {
  height: 36px;
  background: var(--iaf-bone);
  padding: 3px 6px;
  border-radius: 5px;
}
.footer-cross {
  color: var(--iaf-amber);
  font-family: var(--iaf-font-mono);
  opacity: 0.5;
}
.footer-tag {
  font-family: var(--iaf-font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--iaf-cyan);
  margin: 0 0 24px;
  text-transform: uppercase;
}
.footer-contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto 32px;
}
@media (min-width: 640px) {
  .footer-contacts-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.footer-contact-card {
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: var(--iaf-radius-lg);
  padding: 20px 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--iaf-transition);
}
.footer-contact-card:hover {
  border-color: var(--iaf-cyan);
  background: rgba(0, 229, 255, 0.07);
}
.footer-contact-card:nth-child(2) {
  background: rgba(255, 182, 39, 0.04);
  border-color: rgba(255, 182, 39, 0.15);
}
.footer-contact-card:nth-child(2):hover {
  border-color: var(--iaf-amber);
  background: rgba(255, 182, 39, 0.08);
}
.footer-contact-name {
  font-family: var(--iaf-font-sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--iaf-bone);
  margin: 0;
  letter-spacing: -0.01em;
}
.footer-contact-role {
  font-family: var(--iaf-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--iaf-steel);
  margin: 0 0 6px;
  text-transform: uppercase;
}
.footer-link {
  color: var(--iaf-g300);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--iaf-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  word-break: break-word;
}
.footer-link:hover { color: var(--iaf-cyan); }
.footer-link--wa {
  font-family: var(--iaf-font-mono);
  font-weight: 500;
  color: var(--iaf-cyan);
}
.footer-contact-card:nth-child(2) .footer-link--wa { color: var(--iaf-amber); }
.footer-contact-card:nth-child(2) .footer-link:hover { color: var(--iaf-amber); }
.footer-link-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.footer-copyright {
  font-size: 12px;
  color: var(--iaf-steel);
  margin: 0;
  text-align: center;
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 640px) {
  .header-cta { display: none; }
  .brand-logo--iaf { height: 26px; }
  .brand-logo--ferga { height: 34px; }
  .hero { padding: 80px 0 56px; min-height: auto; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .iaf-btn { width: 100%; }
  .block { padding: 64px 0; }
  .promise-grid { gap: 16px; }
  .promise-divider { display: none; }
  .closer, .final-cta, .cases { padding: 64px 0; }
  .final-cta-buttons { flex-direction: column; align-items: stretch; }
  .final-cta-buttons .iaf-btn { width: 100%; }
}

