/* ============================================================
   INTELECTA — Sections
   ============================================================ */

/* Trust strip (hero video) */
.trust-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-fg-muted); margin-bottom: 1.2rem; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; opacity: 0.72; }

@media (min-width: 640px) {
  .trust-logos { gap: 14px 40px; }
}

.trust-logos span {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-trust-logo);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: -0.01em;
}

/* Section base */
.section { position: relative; padding: 72px 0; overflow: hidden; z-index: 3; }

.section.process,
.section.testimonials {
  background: var(--color-bg);
}
@media (min-width: 640px) { .section { padding: 96px 0; } }
@media (min-width: 1024px) { .section { padding: 112px 0; } }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
@media (min-width: 640px) { .section-head { margin-bottom: 64px; } }

.section-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  margin-top: 1rem;
  text-transform: none;
}

.section-head p { margin-top: 1.1rem; font-size: 1.05rem; color: var(--text-lead); line-height: 1.65; }
.section-head .pill { margin-bottom: 0; }

/* Stats */
.stats { padding: 56px 0; }
@media (min-width: 640px) { .stats { padding: 80px 0; } }

.stats-card {
  padding: 32px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
}

@media (min-width: 640px) {
  .stats-card { padding: 40px 28px; gap: 32px; }
}

@media (min-width: 900px) {
  .stats-card { grid-template-columns: repeat(4, 1fr); padding: 56px 48px; }
}

.stat { text-align: center; }
@media (min-width: 900px) { .stat { text-align: left; } }

.stat-val { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 3.6vw, 3rem); color: var(--color-primary); letter-spacing: -0.03em; }
.stat-label { font-size: 0.88rem; color: var(--color-fg-muted); margin-top: 0.4rem; }
.stat-glow { position: absolute; width: 280px; height: 280px; border-radius: 9999px; filter: blur(80px); pointer-events: none; }
.stat-glow-1 { top: -100px; right: -100px; background: rgba(var(--color-primary-rgb), 0.11); }
.stat-glow-2 { bottom: -100px; left: -100px; background: rgba(var(--color-primary-rgb), 0.18); }

.stats-card--lined {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
}

.stats-card--lined .stat {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  text-align: left;
  padding: clamp(1.1rem, 3vw, 1.5rem) clamp(0.85rem, 2.5vw, 1.35rem);
  border: none;
}

.stats-card--lined .stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 2.5px;
  height: 38%;
  max-height: 2rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--color-fg) 22%, transparent);
}

.stats-card--lined .stat:nth-child(2n)::after {
  display: none;
}

.stats-card--lined .stat:nth-child(-n+2) {
  border-bottom: none;
}

.stats-card--lined .stat:nth-child(-n+2)::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 2.5px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--color-fg) 22%, transparent);
}

.stats-card--lined .stat-val {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #000000;
}

.stats-card--lined .stat-label {
  margin: 0;
  max-width: 7.5rem;
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-fg-muted);
}

[data-theme="dark"] .stats-card--lined .stat-val {
  color: #ffffff;
}

[data-theme="dark"] .stats-card--lined .stat:not(:last-child)::after,
[data-theme="dark"] .stats-card--lined .stat:nth-child(-n+2)::before {
  background: color-mix(in srgb, #ffffff 28%, transparent);
}

@media (min-width: 900px) {
  .stats-card--lined {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stats-card--lined .stat {
    padding: 1.35rem clamp(1rem, 2vw, 1.75rem);
  }

  .stats-card--lined .stat:nth-child(-n+2)::before {
    display: none;
  }

  .stats-card--lined .stat:nth-child(2n)::after {
    display: block;
  }

  .stats-card--lined .stat:not(:last-child)::after {
    display: block;
    height: 42%;
    max-height: 2.25rem;
  }

  .stats-card--lined .stat:last-child::after {
    display: none;
  }

  .stats-card--lined .stat-label {
    max-width: 8.5rem;
  }
}

/* Process */
.process-card { padding: 28px 20px; }
@media (min-width: 720px) { .process-card { padding: 48px; } }

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 720px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); }
}

.step {
  padding: 1.6rem 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--glass-border-subtle);
  transition: background var(--transition-base);
}

.process-grid .step:last-child { border-bottom: none; }

@media (min-width: 720px) {
  .step {
    border-right: 1px solid var(--glass-border-subtle);
    border-bottom: 1px solid var(--glass-border-subtle);
  }

  .process-grid .step:last-child { border-bottom: 1px solid var(--glass-border-subtle); }
  .process-grid .step:nth-child(2n) { border-right: none; }
  .process-grid .step:nth-last-child(-n+2) { border-bottom: none; }
}

@media (min-width: 1024px) {
  .process-grid .step:nth-child(2n) { border-right: 1px solid var(--glass-border-subtle); }
  .process-grid .step:nth-child(3n) { border-right: none; }
  .process-grid .step:nth-last-child(-n+2) { border-bottom: 1px solid var(--glass-border-subtle); }
  .process-grid .step:nth-last-child(-n+3) { border-bottom: none; }
}

.step:hover { background: var(--glass-bg-subtle); }
.step-num { position: absolute; top: 18px; right: 22px; font-family: var(--font-display); font-size: 3.2rem; font-weight: 800; color: var(--color-step-num); line-height: 1; }
.step-icon {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
  color: var(--color-primary);
  line-height: 0;
}

.step-icon svg { width: 1.5rem; height: 1.5rem; }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text-heading); margin: 0 0 0.35rem; }
.step p { margin: 0; font-size: 0.88rem; color: var(--text-body); line-height: 1.65; }

/* Testimonials — casos de éxito + marquee vertical */
.section.testimonials {
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: clamp(48px, 8vw, 88px);
}

.testimonials-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .testimonials-showcase {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(1.75rem, 3.5vw, 3rem);
  }
}

.testimonials-showcase__media {
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 20% 10%, rgba(var(--color-accent-rgb), 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(var(--color-primary-rgb), 0.08), transparent 50%),
    var(--color-bg-elevated);
}

.testimonials-showcase__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

.testimonials-marquee {
  width: 100%;
  min-width: 0;
}

.testimonials-marquee__viewport {
  height: min(520px, 68vh);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 7%,
    #000 93%,
    transparent 100%
  );
}

@media (min-width: 960px) {
  .testimonials-marquee__viewport {
    height: min(640px, 78vh);
  }
}

.testimonials-marquee__track {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  will-change: transform;
  animation: testimonials-marquee-scroll 48s linear infinite;
}

@media (hover: hover) and (pointer: fine) {
  .testimonials-marquee:hover .testimonials-marquee__track {
    animation-play-state: paused;
  }
}

.testimonials-marquee.is-paused .testimonials-marquee__track {
  animation-play-state: paused;
}

@keyframes testimonials-marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}

.t-chat {
  --t-chat-muted: rgba(255, 255, 255, 0.62);
  --t-chat-text: #ffffff;
  --t-chat-name: #ffffff;
  --t-chat-avatar-bg: rgba(255, 255, 255, 0.18);
  --t-chat-avatar-fg: #ffffff;
  --t-chat-dot: #4ade80;
  --t-chat-dot-glow: rgba(74, 222, 128, 0.28);
  --t-chat-tray: rgba(12, 16, 28, 0.45);
  --t-chat-tray-ink: #ffffff;
  --t-chat-reply-label: #f5c84a;
  --t-chat-reply-text: rgba(255, 255, 255, 0.92);
  --t-chat-reply-meta: rgba(255, 255, 255, 0.58);
  --t-chat-checks: #9ae6ff;
  --t-chat-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-radius: 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--t-chat-shadow);
}

.t-chat__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--t-chat-bg-image);
  background-position: var(--t-chat-bg-pos, 50% 50%);
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.08);
  filter: saturate(1.05) brightness(0.85);
}

.t-chat__glass {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      160deg,
      rgba(28, 32, 40, 0.58) 0%,
      rgba(18, 20, 28, 0.48) 48%,
      rgba(24, 28, 36, 0.62) 100%
    );
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.t-chat__shell {
  position: relative;
  z-index: 2;
  background: transparent;
  border-radius: 0;
  padding: 1rem 1.1rem 1.05rem;
  box-shadow: none;
  margin-bottom: 0;
}

.t-chat__tray {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.95rem 0.85rem 0.55rem;
  border-radius: 0;
  background: var(--t-chat-tray);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  color: var(--t-chat-tray-ink);
  cursor: pointer;
  outline: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  transition: padding 0.25s ease;
}

.t-chat__tray-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 1.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  user-select: none;
}

.t-chat__tray-icon {
  flex-shrink: 0;
}

.t-chat__tray-reply {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.28s ease, opacity 0.22s ease, margin 0.22s ease;
  margin-top: 0;
}

.t-chat__tray-reply-inner {
  overflow: hidden;
  min-height: 0;
}

.t-chat__tray:hover,
.t-chat__tray:focus-visible {
  padding-bottom: 0.75rem;
}

.t-chat__tray:hover .t-chat__tray-reply,
.t-chat__tray:focus-visible .t-chat__tray-reply {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0.55rem;
}

.t-chat__tray .t-chat__pill-label {
  color: var(--t-chat-reply-label);
}

.t-chat__tray .t-chat__pill-text {
  color: var(--t-chat-reply-text);
  font-size: 0.8rem;
  line-height: 1.45;
}

.t-chat__tray .t-chat__pill-foot {
  color: var(--t-chat-reply-meta);
}

.t-chat__tray .t-chat__checks {
  color: var(--t-chat-checks);
}

.t-chat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.t-chat__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(12, 14, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.t-chat__status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: var(--t-chat-dot);
  box-shadow: 0 0 0 3px var(--t-chat-dot-glow);
}

.t-chat__clock {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--t-chat-muted);
  white-space: nowrap;
}

.t-chat__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.t-chat__avatar {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--t-chat-avatar-fg);
  background: var(--t-chat-avatar-bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.t-chat__meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.t-chat__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--t-chat-name);
  line-height: 1.2;
}

.t-chat__role {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--t-chat-muted);
}

.t-chat__bubble {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.t-chat__text {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--t-chat-text);
}

.t-chat__pill-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.t-chat__pill-text {
  margin: 0;
}

.t-chat__pill-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.68rem;
}

.t-chat__checks {
  letter-spacing: -0.08em;
  line-height: 1;
}

@media (hover: none) {
  .t-chat__tray:focus .t-chat__tray-reply,
  .t-chat.is-open .t-chat__tray-reply {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 0.55rem;
  }

  .t-chat__tray:focus,
  .t-chat.is-open .t-chat__tray {
    padding-bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-marquee__track {
    animation: none;
  }

  .testimonials-marquee__viewport {
    overflow-y: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .t-chat__tray,
  .t-chat__tray-reply {
    transition: none;
  }
}

/* FAQ — layout dos columnas + acordeón (estilo tarjetas) */
.faq {
  background: var(--color-bg);
}

.faq-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

@media (min-width: 960px) {
  .faq-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

.faq-intro {
  max-width: 34rem;
}

.faq-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #000;
}

.faq-lead {
  margin: 1.1rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-lead);
  max-width: 32rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.faq-item {
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
  background: var(--color-bg-elevated);
  box-shadow:
    0 1px 2px rgba(var(--color-primary-rgb), 0.04),
    0 8px 24px -12px rgba(var(--color-primary-rgb), 0.12);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

[data-theme="dark"] .faq-item {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px -14px rgba(0, 0, 0, 0.45);
}

.faq-item.open {
  border-color: rgba(var(--color-primary-rgb), 0.18);
  box-shadow:
    0 2px 4px rgba(var(--color-primary-rgb), 0.06),
    0 12px 32px -14px rgba(var(--color-primary-rgb), 0.18);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.15rem 1.15rem 1.35rem;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  line-height: 1.4;
  color: var(--text-heading);
  background: transparent;
  cursor: pointer;
}

.faq-q-text {
  flex: 1;
  min-width: 0;
}

.faq-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--color-primary-soft) 0%, var(--color-primary) 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 14px -4px rgba(var(--color-primary-rgb), 0.55);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.faq-toggle-icon {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform var(--transition-base);
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-q:hover .faq-toggle {
  box-shadow: 0 6px 18px -4px rgba(var(--color-primary-rgb), 0.65);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}

.faq-item.open .faq-body {
  grid-template-rows: 1fr;
}

.faq-body-inner {
  overflow: hidden;
}

.faq-body-inner p {
  margin: 0;
  padding: 0 1.35rem 1.25rem;
  padding-right: calc(1.35rem + 2.5rem + 1rem);
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.65;
}

@media (max-width: 639px) {
  .faq-body-inner p {
    padding-right: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-body,
  .faq-toggle-icon {
    transition: none;
  }
}

/* Footer */
.footer {
  padding: 0;
}

.footer-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: clamp(1.25rem, 3vw, 1.75rem) 0;
  border-radius: 0;
  border-inline: none;
  --footer-ink: #000000;
  --footer-ink-muted: rgba(0, 0, 0, 0.72);
  --footer-ink-subtle: rgba(0, 0, 0, 0.5);
  --footer-border: rgba(0, 0, 0, 0.14);
}

[data-theme="dark"] .footer-card {
  --footer-ink: #ffffff;
  --footer-ink-muted: rgba(255, 255, 255, 0.82);
  --footer-ink-subtle: rgba(255, 255, 255, 0.58);
  --footer-border: rgba(255, 255, 255, 0.16);
}

.footer-orb {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: min(420px, 48vw);
  height: min(420px, 48vw);
  background: rgba(108, 116, 132, 0.18);
  transform: translate(-50%, -50%);
  filter: blur(72px);
  opacity: 0.75;
  animation: pulseGlow 6s ease-in-out infinite;
}

[data-theme="dark"] .footer-orb {
  background: rgba(148, 156, 172, 0.16);
}

.footer-container {
  position: relative;
  z-index: 1;
}

.footer-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .footer-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem 1.5rem;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .footer-layout {
    grid-template-columns: 1.15fr repeat(3, 1fr) 0.8fr;
    gap: clamp(0.85rem, 2vw, 1.35rem);
    align-items: start;
  }

  .footer-col--brand {
    grid-column: auto;
  }
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-section-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--footer-ink);
}

.footer-claims-btn--prominent {
  align-self: flex-start;
  padding: 0.45rem 0.8rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-payments {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-payments--bar {
  position: relative;
  z-index: 1;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  margin-top: clamp(0.85rem, 2.5vw, 1.25rem);
  padding-top: clamp(0.75rem, 2vw, 1rem);
  border-top: 1px solid var(--footer-border);
}

.footer-payments-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--footer-ink-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: clamp(0.85rem, 2.5vw, 1.25rem);
  padding-top: clamp(0.75rem, 2vw, 1rem);
  border-top: 1px solid var(--footer-border);
  text-align: center;
}

.footer-copyright {
  margin: 0;
  font-size: 0.78rem;
  color: var(--footer-ink-muted);
}

.footer-payments-logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.15rem);
  min-width: 0;
  flex: 1 1 auto;
}

.footer-payment-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex: 0 0 auto;
}

.footer-payment-logo img {
  display: block;
  width: auto;
  height: 1.45rem;
  max-height: 1.45rem;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.88;
}

.footer-payment-logo--interbank img {
  height: 1.35rem;
  max-height: 1.35rem;
}

.footer-payment-logo--yape img {
  height: 2.75rem;
  max-height: 2.75rem;
  filter: none;
  opacity: 1;
}

[data-theme="dark"] .footer-payment-logo:not(.footer-payment-logo--yape) img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

[data-theme="dark"] .footer-payment-logo--yape img {
  filter: invert(1);
  opacity: 0.92;
}

@media (max-width: 520px) {
  .footer-payments--bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-payments-logos {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .footer-payment-logo img {
    height: 1.25rem;
    max-height: 1.25rem;
  }

  .footer-payment-logo--interbank img {
    height: 1.15rem;
    max-height: 1.15rem;
  }

  .footer-payment-logo--yape img {
    height: 2.25rem;
    max-height: 2.25rem;
  }
}

.footer-logo {
  display: inline-block;
  color: var(--footer-ink);
  text-decoration: none;
  width: fit-content;
}

.footer-logo-wrap {
  display: block;
  width: clamp(6rem, 13vw, 8.5rem);
  line-height: 0;
}

.footer-logo-wrap .brand-wordmark,
.footer-logo-wrap .footer-logo-wordmark {
  width: 100%;
  height: auto;
  display: block;
  color: inherit;
}

.footer-legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.footer-legal p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--footer-ink-muted);
}

.footer-claims-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--footer-border);
  border-radius: 0.5rem;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--footer-ink-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.footer-claims-btn:hover {
  color: var(--footer-ink);
  border-color: var(--footer-ink-subtle);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .footer-claims-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.footer-claims-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  color: currentColor;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col--section .footer-link-item a {
  font-size: 0.76rem;
}

.footer-link-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--footer-ink-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link-item a:hover {
  color: var(--footer-ink);
}

.footer-link-arrow {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  color: var(--footer-ink-subtle);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.footer-link-item a:hover .footer-link-arrow {
  color: var(--footer-ink);
  transform: translateX(3px);
}

.footer-social-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--footer-ink-muted);
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 0.35rem;
  background: transparent;
  border: 1px solid var(--footer-border);
  color: var(--footer-ink);
  text-decoration: none;
  transition: background var(--transition-fast), transform 0.15s ease, border-color var(--transition-fast);
}

.footer-social-icon svg {
  width: 0.9rem;
  height: 0.9rem;
}

.footer-social-icon:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--footer-ink-subtle);
  color: var(--footer-ink);
}

[data-theme="dark"] .footer-social-icon:hover {
  background: rgba(255, 255, 255, 0.08);
}

.footer-social-icon:active {
  transform: scale(0.96);
}

@media (max-width: 1023px) {
  .footer-col--section,
  .footer-col--social {
    padding-top: 0.15rem;
  }
}

@media (max-width: 640px) {
  .brand-sub { display: none; }
  .nav-cta .btn-sm { display: none; }
}
