/* ============================================================
   CM Pagos — main.css
   Estilos base reutilizables de todo el sitio, basados en
   DESIGN_SYSTEM.md. Bootstrap resuelve grid/spacing/flex;
   aquí solo van tokens de marca y componentes del design system
   (botones, chips, tabs, iconos, tipografía).
   ============================================================ */

/* -------- Fuente -------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* -------- Tokens (roots) -------- */
:root {
  /* Primary */
  --cm-blue-200: #066FF9;
  --cm-blue-100: #00A3FF;
  --cm-black-200: #1E1E1E;
  --cm-black-100: #646464;

  /* Secondary */
  --cm-sec-100: #FFFFFF;
  --cm-sec-200: #FAFAFA;
  --cm-sec-300: #EEEEEE;
  --cm-sec-400: #E6E6E6;
  --cm-sec-500: #C3C3C3;

  /* Blue ramp */
  --cm-blue-wash: oklch(98.2% .005 240);
  --cm-chip-wash: oklch(94% .03 250);
  --cm-blue-50: #F3FAFF;
  --cm-blue-900: #0062FF;

  /* Status */
  --cm-green: #10B759;
  --cm-orange: #FF9900;
  --cm-red: #E1306C;

  /* Gradiente de marca */
  --cm-gradient: linear-gradient(90deg, var(--cm-blue-200) 0%, var(--cm-blue-100) 100%);

  /* Sombra insignia */
  --cm-shadow: 0 3px 50px rgba(0, 0, 0, 0.07);

  /* Radios */
  --cm-radius-sm: 8px;
  --cm-radius-md: 12px;
  --cm-radius-lg: 20px;
  --cm-radius-pill: 9999px;

  /* Tipografía */
  --cm-font: 'Poppins', sans-serif;
}

/* -------- Reset base -------- */
html {
  overflow-x: hidden;
}
body {
  font-family: var(--cm-font);
  color: var(--cm-black-200);
  background-color: #fff !important;
  padding-top: 80px; /* offset del navbar fijo */
  overflow-x: hidden;
}

a {
  color: var(--cm-blue-200);
  text-decoration: none;
  transition: color 150ms ease-out;
}
a:hover {
  color: var(--cm-blue-100);
}

noscript {
  display: none;
}

/* -------- Tipografía -------- */
.fs-72 { font-size: 72px; line-height: 80px; }
.fs-40 { font-size: 40px; line-height: 48px; }
.fs-18 { font-size: 18px; line-height: 27px; }
.fs-16 { font-size: 16px; line-height: 24px; }
.fs-14 { font-size: 14px; line-height: 19px; }
.fs-12 { font-size: 12px; line-height: 20px; }

.fw-regular { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-extrabold { font-weight: 800; }

.text-gray { color: var(--cm-black-100); }
.text-primary { color: var(--cm-blue-200) !important; }

@media (max-width: 767.98px) {
  .fs-72 { font-size: 40px; line-height: 48px; }
  .fs-40 { font-size: 28px; line-height: 36px; }
}

/* -------- Responsive global -------- */
img, video {
  max-width: 100%;
}
img:not([height]), video {
  height: auto;
}
@media (max-width: 575.98px) {
  body {
    padding-top: 68px;
  }
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* -------- Botones de marca -------- */
.btn-gradiente,
.btn-azul,
.btn-blanco {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--cm-font);
  font-weight: 500;
  font-size: 14px;
  border: none;
  border-radius: var(--cm-radius-sm);
  padding: 12px 24px;
  cursor: pointer;
  transition: opacity 150ms ease-out, transform 150ms ease-out, background-color 150ms ease-out;
}

.btn-gradiente {
  background: var(--cm-gradient);
  color: #fff;
}
.btn-gradiente:hover {
  opacity: 0.9;
  transform: scale(1.03);
  color: #fff;
}

.btn-azul {
  background: var(--cm-blue-200);
  color: #fff;
}
.btn-azul:hover {
  background: var(--cm-blue-100);
  color: #fff;
}

.btn-blanco {
  background: #fff;
  color: var(--cm-blue-200);
}
.btn-blanco:hover {
  background: var(--cm-blue-100);
  color: #fff;
}

.btn-oscuro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--cm-font);
  font-weight: 500;
  font-size: 14px;
  border: none;
  border-radius: var(--cm-radius-sm);
  padding: 12px 24px;
  cursor: pointer;
  background: var(--cm-black-200);
  color: #fff;
  transition: background-color 150ms ease-out;
}
.btn-oscuro:hover {
  background: var(--cm-blue-200);
  color: #fff;
}

/* -------- Chips -------- */
.cm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cm-font);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--cm-radius-pill);
  padding: 10px 20px;
  background: #fff;
  color: var(--cm-blue-200);
  border: 1px solid transparent;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.cm-chip.is-selected {
  background: #B8E0FF;
  border-color: var(--cm-blue-100);
  color: var(--cm-blue-100);
}

/* -------- Tabs -------- */
.cm-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F3F5F7;
  border-radius: var(--cm-radius-md);
  padding: 6px;
}
.cm-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--cm-font);
  font-weight: 600;
  font-size: 14px;
  color: #8a8a8a;
  border-radius: var(--cm-radius-sm);
  padding: 12px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.cm-tab.is-active {
  background: var(--cm-gradient);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(6, 111, 249, 0.1), 0 4px 6px -4px rgba(6, 111, 249, 0.1);
}

/* -------- Navbar -------- */
.cm-nav-link {
  font-family: var(--cm-font);
  font-weight: 500;
  font-size: 14px;
  color: var(--cm-black-100);
  text-decoration: none;
}
.cm-nav-link:hover {
  color: var(--cm-blue-200);
}

/* -------- Contenedores de ícono -------- */
.cm-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}
.cm-icon-box.is-round { border-radius: 50%; }
.cm-icon-box.is-square { border-radius: 16px; }
.cm-icon-box.is-solid {
  background: var(--cm-blue-200);
  color: #fff;
}
.cm-icon-box.is-solid-gradient {
  background: var(--cm-gradient);
  color: #fff;
}
.cm-icon-box.is-soft {
  background: var(--cm-chip-wash);
  color: var(--cm-blue-200);
}
.cm-icon-box.is-sm { width: 44px; height: 44px; aspect-ratio: 1 / 1; }
.cm-icon-box i { font-size: 22px; }

/* -------- Cards con sombra insignia -------- */
.cm-card {
  background: #fff;
  border-radius: var(--cm-radius-lg);
  box-shadow: var(--cm-shadow);
}

/* -------- WhatsApp widget flotante -------- */
.wa-widget-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999;
}
.wa-widget-badge {
  background: #fff;
  box-shadow: var(--cm-shadow);
  border-radius: var(--cm-radius-pill);
  padding: 12px 20px;
  font-family: var(--cm-font);
  font-weight: 500;
  font-size: 14px;
  color: var(--cm-black-200);
  white-space: nowrap;
}
.wa-widget {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  flex-shrink: 0;
}
.wa-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: cm-wa-pulse 2s ease-out infinite;
}
@keyframes cm-wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 767.98px) {
  .wa-widget-badge {
    display: none;
  }
  .wa-widget-wrap {
    right: 16px;
    bottom: 16px;
  }
  .wa-widget {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
  [class*="-hero"] .btn-gradiente,
  [class*="-hero"] .btn-blanco,
  [class*="-hero"] .btn-azul,
  [class*="-hero"] .btn-oscuro {
    width: 100%;
  }
}

/* ============================================================
   Navbar (utilidades/header.html)
   ============================================================ */
.cm-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--cm-sec-400);
  transition: background-color 200ms ease-out, backdrop-filter 200ms ease-out, box-shadow 200ms ease-out;
}
.cm-navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.05);
}
.cm-navbar-logo {
  display: inline-flex;
  align-items: center;
}
.cm-navbar-toggle {
  border: 1px solid var(--cm-sec-400);
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--cm-black-200);
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.cm-nav-item {
  position: relative;
}
.cm-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  font-family: var(--cm-font);
  font-weight: 500;
  font-size: 16px;
  color: var(--cm-black-100);
  padding: 8px 0;
  cursor: pointer;
}
.cm-nav-trigger i {
  font-size: 12px;
  transition: transform 150ms ease-out;
}
.cm-nav-item.is-open .cm-nav-trigger {
  color: var(--cm-blue-200);
}
.cm-nav-item.is-open .cm-nav-trigger i {
  transform: rotate(180deg);
}

.cm-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  background: #fff;
  border-radius: var(--cm-radius-lg);
  box-shadow: var(--cm-shadow);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 150ms ease-out, transform 150ms ease-out, visibility 150ms;
}
.cm-nav-item.is-open .cm-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cm-nav-item:last-of-type .cm-nav-dropdown {
  left: auto;
  right: 0;
}
@media (max-width: 1199.98px) {
  .cm-nav-dropdown {
    min-width: 280px;
  }
}
.cm-nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--cm-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--cm-black-200);
  padding: 8px;
  border-radius: var(--cm-radius-md);
}
.cm-nav-dropdown-link:hover {
  background: var(--cm-blue-wash);
  color: var(--cm-black-200);
}
.cm-nav-dropdown-link small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--cm-black-100);
  margin-top: 2px;
  white-space: normal;
}
.cm-nav-dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cm-chip-wash);
  color: var(--cm-blue-200);
  font-size: 18px;
}

/* -------- Menú mobile (panel lateral) -------- */
.cm-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 30, 0.4);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease-out, visibility 200ms;
}
.cm-mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.cm-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #fff;
  z-index: 1050;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  transition: transform 250ms ease-out;
  overflow-y: auto;
}
.cm-mobile-panel.is-open {
  transform: translateX(0);
}
.cm-mobile-close {
  border: none;
  background: var(--cm-sec-300);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--cm-black-200);
}
.cm-mobile-accordion {
  display: flex;
  flex-direction: column;
}
.cm-mobile-item {
  border-bottom: 1px solid var(--cm-sec-300);
}
.cm-mobile-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  background: transparent;
  font-family: var(--cm-font);
  font-weight: 600;
  font-size: 16px;
  color: var(--cm-black-200);
  padding: 16px 0;
}
.cm-mobile-item.is-open .cm-mobile-trigger i {
  transform: rotate(180deg);
}
.cm-mobile-submenu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 200ms ease-out;
}
.cm-mobile-item.is-open .cm-mobile-submenu {
  max-height: 340px;
  overflow-y: auto;
  padding-bottom: 12px;
}
.cm-mobile-submenu a {
  font-family: var(--cm-font);
  font-size: 14px;
  color: var(--cm-black-100);
  padding: 8px 12px;
  border-radius: var(--cm-radius-sm);
}
.cm-mobile-submenu a:hover {
  background: var(--cm-blue-wash);
  color: var(--cm-blue-200);
}
.cm-mobile-login {
  font-family: var(--cm-font);
  font-weight: 500;
  font-size: 14px;
  color: var(--cm-black-200);
  text-align: center;
  padding: 10px 0;
}

body.cm-no-scroll {
  overflow: hidden;
}

/* ============================================================
   Footer (utilidades/footer.html)
   ============================================================ */
.cm-footer {
  border-top: 1px solid var(--cm-sec-400);
  padding: 64px 0 32px;
}
.cm-footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.cm-footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cm-footer-brand img {
  margin-bottom: 20px;
}
.cm-footer-desc {
  font-family: var(--cm-font);
  font-size: 14px;
  line-height: 22px;
  color: var(--cm-black-100);
  max-width: 320px;
  margin-bottom: 20px;
}
.cm-footer-social {
  display: flex;
  gap: 12px;
}
.cm-footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--cm-sec-400);
  color: var(--cm-black-100);
  font-size: 16px;
}
.cm-footer-social-icon:hover {
  color: var(--cm-blue-200);
  border-color: var(--cm-blue-200);
}
.cm-footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cm-footer-heading {
  font-family: var(--cm-font);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cm-black-200);
  margin-bottom: 4px;
}
.cm-footer-col a {
  font-family: var(--cm-font);
  font-size: 14px;
  color: var(--cm-black-100);
}
.cm-footer-col a:hover {
  color: var(--cm-blue-200);
}
.cm-footer-certs {
  border-top: 1px solid var(--cm-sec-400);
  padding: 32px 0;
  text-align: center;
}
.cm-footer-certs-title {
  display: block;
  font-family: var(--cm-font);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cm-black-100);
  margin-bottom: 24px;
}
.cm-footer-certs-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.cm-footer-cert-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.cm-footer-bottom {
  border-top: 1px solid var(--cm-sec-400);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--cm-font);
  font-size: 13px;
  color: var(--cm-black-100);
}

@media (max-width: 991.98px) {
  .cm-footer-top {
    grid-template-columns: 1fr;
  }
  .cm-footer-links {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }
}
@media (max-width: 575.98px) {
  .cm-footer {
    padding: 48px 0 24px;
  }
  .cm-footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .cm-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}


/* ============================================================
   Componentes reutilizables (migrados desde index.html)
   Cards, FAQ, stat ring, testimonios, CTA, carrusel, placeholders
   y reveal de scroll — usar estas clases en páginas nuevas en vez
   de recrearlas.
   ============================================================ */
/* -------- Genéricos de sección -------- */
.cm-section {
  padding: 100px 0;
}
.cm-section-wash {
  background: var(--cm-blue-wash);
}
.cm-section-dark {
  background: var(--cm-black-200);
}
.cm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cm-font);
  font-weight: 500;
  font-size: 14px;
  color: var(--cm-blue-200);
  background: var(--cm-chip-wash);
  border: 1px solid var(--cm-blue-100);
  border-radius: var(--cm-radius-pill);
  padding: 8px 18px;
  margin-bottom: 16px;
}
.cm-eyebrow-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}
.cm-h2 {
  font-family: var(--cm-font);
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  color: var(--cm-black-200);
  margin-bottom: 16px;
}
.cm-h2-light {
  color: #fff;
}
.cm-section-desc {
  font-family: var(--cm-font);
  font-size: 16px;
  line-height: 24px;
  color: var(--cm-black-100);
}
.cm-section-desc-light {
  color: var(--cm-sec-500);
}
@media (max-width: 767.98px) {
  .cm-section { padding: 64px 0; }
  .cm-h2 { font-size: 28px; line-height: 36px; }
}
@media (max-width: 575.98px) {
  .cm-hero-title.reveal-up ~ * { }
  .cm-eyebrow { font-size: 12px; padding: 6px 14px; }
  .cm-carousel-dots { margin-top: 16px; }
}


/* -------- Soluciones -------- */
.cm-solution-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: var(--cm-radius-lg);
  box-shadow: var(--cm-shadow);
  overflow: hidden;
  text-decoration: none;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.cm-solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.cm-solution-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
}
.cm-solution-body {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cm-solution-desc {
  flex: 1;
}
.cm-solution-link {
  margin-top: 12px;
}
.cm-solution-title {
  font-family: var(--cm-font);
  font-weight: 700;
  font-size: 20px;
  color: var(--cm-black-200);
  margin-bottom: 8px;
}
.cm-solution-desc {
  font-family: var(--cm-font);
  font-size: 14px;
  line-height: 21px;
  color: var(--cm-black-100);
  margin-bottom: 16px;
}
.cm-solution-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--cm-font);
  font-weight: 600;
  font-size: 14px;
  color: var(--cm-blue-200);
}


/* -------- Check list -------- */
.cm-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cm-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cm-font);
  font-size: 15px;
  color: var(--cm-black-200);
}
.cm-check-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cm-blue-200);
  color: #fff;
}
.cm-check-dot i {
  font-size: 12px;
  color: #fff;
}
.cm-check-list-light li {
  color: var(--cm-sec-300);
}


/* -------- Datos duros -------- */
.cm-stat-card {
  background: var(--cm-blue-200);
  border-radius: var(--cm-radius-lg);
  box-shadow: var(--cm-shadow);
  padding: 32px;
  height: 100%;
  text-align: left;
}
.cm-stat-ring {
  margin: 0 0 16px;
  display: block;
}
.cm-stat-number {
  display: block;
  font-family: var(--cm-font);
  font-weight: 800;
  font-size: 56px;
  color: #fff;
}
.cm-stat-title {
  font-family: var(--cm-font);
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  margin-top: 16px;
  margin-bottom: 10px;
}
.cm-stat-desc {
  font-family: var(--cm-font);
  font-size: 14px;
  line-height: 21px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}
.cm-stat-source {
  font-family: var(--cm-font);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 575.98px) {
  .cm-stat-card { padding: 24px 20px; }
  .cm-stat-number { font-size: 40px; }
}


/* -------- Testimonios -------- */
.cm-testimonial-card {
  background: #fff;
  border-radius: var(--cm-radius-lg);
  box-shadow: var(--cm-shadow);
  overflow: hidden;
  height: 100%;
}
.cm-testimonial-img-frame {
  padding: 0;
}
.cm-testimonial-img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 0;
}
.cm-testimonial-body {
  padding: 24px;
}
.cm-testimonial-stars {
  color: var(--cm-blue-200);
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  gap: 2px;
}
.cm-testimonial-quote {
  font-family: var(--cm-font);
  font-size: 15px;
  line-height: 23px;
  color: var(--cm-black-200);
  margin-bottom: 20px;
}
.cm-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--cm-sec-400);
  padding-top: 16px;
}
.cm-testimonial-author strong {
  display: block;
  font-family: var(--cm-font);
  font-size: 14px;
  color: var(--cm-black-200);
}
.cm-testimonial-author span {
  font-family: var(--cm-font);
  font-size: 13px;
  color: var(--cm-black-100);
}


/* -------- FAQ -------- */
.cm-faq-col {
  background: #fff;
  border: 1px solid var(--cm-sec-400);
  border-radius: var(--cm-radius-lg);
  overflow: hidden;
  height: 100%;
}
.cm-faq-item {
  border-bottom: 1px solid var(--cm-sec-400);
  transition: background-color 150ms ease-out;
}
.cm-faq-col .cm-faq-item:last-child {
  border-bottom: none;
}
.cm-faq-item.is-open {
  background: var(--cm-chip-wash);
}
.cm-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: none;
  background: transparent;
  text-align: left;
  font-family: var(--cm-font);
  font-weight: 600;
  font-size: 16px;
  color: var(--cm-black-200);
  padding: 20px 24px;
}
.cm-faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cm-chip-wash);
  color: var(--cm-blue-200);
  font-size: 13px;
}
.cm-faq-item.is-open .cm-faq-icon {
  background: #fff;
}
.cm-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms ease-out;
}
.cm-faq-item.is-open .cm-faq-answer {
  max-height: 300px;
}
.cm-faq-answer p {
  font-family: var(--cm-font);
  font-size: 14px;
  line-height: 22px;
  color: var(--cm-black-100);
  padding: 0 24px 20px;
  margin: 0;
}
@media (max-width: 575.98px) {
  .cm-faq-trigger { padding: 16px 18px; font-size: 15px; }
  .cm-faq-answer p { padding: 0 18px 16px; }
}


/* -------- CTA final -------- */
.cm-cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--cm-sec-400);
  border-radius: var(--cm-radius-lg);
  padding: 80px 40px;
  background:
    radial-gradient(60% 80% at 90% 100%, rgba(6, 111, 249, 0.35) 0%, rgba(6, 111, 249, 0) 100%),
    radial-gradient(50% 70% at 75% 20%, rgba(0, 163, 255, 0.25) 0%, rgba(0, 163, 255, 0) 100%),
    #fff;
}
.cm-cta-card .cm-h2 {
  position: relative;
  z-index: 1;
}
@media (max-width: 575.98px) {
  .cm-cta-card { padding: 40px 20px; }
  .cm-cta-btn-primary, .cm-cta-btn-secondary { width: 100%; justify-content: center; }
}
.cm-cta-card .cm-section-desc {
  position: relative;
  z-index: 1;
}
.cm-cta-btn-primary {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cm-font);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: var(--cm-blue-200);
  border-radius: var(--cm-radius-sm);
  padding: 14px 28px;
  transition: background-color 150ms ease-out;
}
.cm-cta-btn-primary:hover {
  background: var(--cm-blue-100);
  color: #fff;
}
.cm-cta-btn-secondary {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cm-font);
  font-weight: 600;
  font-size: 14px;
  color: var(--cm-black-200);
  background: #fff;
  border: 1px solid var(--cm-sec-400);
  border-radius: var(--cm-radius-sm);
  padding: 14px 28px;
  transition: border-color 150ms ease-out, color 150ms ease-out;
}
.cm-cta-btn-secondary:hover {
  border-color: var(--cm-blue-200);
  color: var(--cm-blue-200);
}
@media (max-width: 767.98px) {
  .cm-cta-card {
    padding: 56px 24px;
  }
}


/* -------- Carrusel (Plataforma) -------- */
.cm-carousel {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: var(--cm-radius-lg);
  overflow: hidden;
}
.cm-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.cm-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 300ms ease-out;
}
.cm-carousel-slide.is-active {
  opacity: 1;
}
.cm-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.cm-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--cm-sec-500);
  padding: 0;
  cursor: pointer;
  transition: width 200ms ease-out, background-color 200ms ease-out;
}
.cm-carousel-dots button.is-active {
  width: 24px;
  border-radius: var(--cm-radius-pill);
  background: var(--cm-blue-200);
}


/* -------- Placeholder de imagen (sin drag&drop; el usuario indica qué va aquí) -------- */
.cm-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cm-sec-200);
  border: 1px dashed var(--cm-sec-500);
  color: var(--cm-black-100);
  font-family: var(--cm-font);
  font-size: 13px;
  text-align: center;
  padding: 12px;
  box-sizing: border-box;
}
.cm-img-placeholder i {
  font-size: 22px;
  opacity: 0.6;
}


/* -------- Blog: hero, imagen de nota, tarjetas sociales (compartido) -------- */
.cm-blog-hero {
  margin-top: -80px;
  padding: 190px 0 80px;
  background: url('../img/soluciones/hero-back-cmpagos.jpg') center center / cover no-repeat;
}
.cm-blog-hero-title {
  font-family: var(--cm-font);
  font-weight: 700;
  font-size: 56px;
  line-height: 64px;
  color: #0B1B33;
  margin-bottom: 20px;
}
.cm-blog-hero-desc {
  font-family: var(--cm-font);
  font-size: 18px;
  line-height: 27px;
  color: var(--cm-black-100);
  margin: 0;
}
@media (max-width: 767.98px) {
  .cm-blog-hero { padding: 120px 0 56px; }
  .cm-blog-hero-title { font-size: 36px; line-height: 44px; }
}
.cm-blog-post-img {
  flex: 0 0 220px;
  aspect-ratio: 4 / 3;
  border-radius: var(--cm-radius-md);
  overflow: hidden;
}
@media (max-width: 575.98px) {
  .cm-blog-post-img { flex: none; width: 100%; }
}
.cm-blog-social-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--cm-sec-400);
  border-radius: var(--cm-radius-lg);
  padding: 24px;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.cm-blog-social-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cm-shadow);
}
.cm-blog-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  margin-bottom: 16px;
}
.cm-blog-social-icon-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.cm-blog-social-icon-fb {
  background: #1877F2;
}
.cm-blog-social-title {
  font-family: var(--cm-font);
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
  color: var(--cm-black-200);
  margin-bottom: 6px;
}
.cm-blog-social-text {
  font-family: var(--cm-font);
  font-size: 14px;
  line-height: 21px;
  color: var(--cm-black-100);
  margin-bottom: 16px;
}

/* -------- Scroll reveal (GSAP) -------- */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
}
