/* CheckTomate / Módulo Pagos — extends styles.css */

.page-modulo-pagos {
  overflow-x: clip;
}

.btn-label--short {
  display: none;
}

/* ——— Header móvil (CTA largo + logo) ——— */
@media (max-width: 767px) {
  .page-modulo-pagos .site-header {
    height: auto;
    min-height: var(--header-h);
    padding-block: 0.6rem;
  }

  .page-modulo-pagos .site-header .container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.5rem 0.65rem;
  }

  .page-modulo-pagos .site-header-actions {
    display: contents;
  }

  .page-modulo-pagos .brand--header {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .page-modulo-pagos .brand-wordmark {
    font-size: 1.05rem;
  }

  .page-modulo-pagos .theme-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .page-modulo-pagos #open-trial {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    font-size: 0.8rem;
    padding: 0.62rem 0.85rem;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
  }

  .page-modulo-pagos #open-trial .btn-label--short {
    display: inline;
  }

  .page-modulo-pagos #open-trial .btn-label--long {
    display: none;
  }
}

@media (max-width: 380px) {
  .page-modulo-pagos .brand-wordmark {
    display: none;
  }
}

.ct-hero-logo {
  height: clamp(56px, 10vw, 96px);
  width: auto;
  margin: 0 auto 1.25rem;
}

.ct-hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--silver-muted);
}

.ct-hero-checks span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ct-accent {
  color: #3dd68c;
  font-weight: 600;
}

.ct-video-shell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: min(640px, 100%);
  margin-inline: auto;
}

.ct-video-shell video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.ct-step-grid {
  display: grid;
  gap: 1rem;
}

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

.ct-step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  background: rgba(226, 61, 40, 0.2);
  color: #ffb4a8;
  border: 1px solid rgba(226, 61, 40, 0.35);
  margin: 0 auto 1rem;
}

.ct-placeholder {
  min-height: 120px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--silver-muted);
  margin-bottom: 1rem;
}

.ct-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: var(--midnight-card);
  backdrop-filter: blur(12px);
}

.ct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.ct-table th,
.ct-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}

.ct-table th {
  font-weight: 700;
  color: var(--silver);
  background: rgba(0, 0, 0, 0.2);
}

.ct-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ct-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.ct-conf-high {
  color: #3dd68c;
}
.ct-conf-med {
  color: #f5b041;
}
.ct-conf-low {
  color: #ff6b6b;
}

.ct-callout {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-glass);
  margin-bottom: 1rem;
}

.ct-callout--warn {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.25);
}

.ct-callout--ok {
  background: rgba(61, 214, 140, 0.08);
  border-color: rgba(61, 214, 140, 0.22);
}

.ct-callout--dark {
  background: rgba(0, 0, 0, 0.35);
}

.ct-callout p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--silver-muted);
  line-height: 1.55;
}

.ct-callout h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--silver);
}

.ct-metric-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ct-metric-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  color: var(--silver-muted);
}

.ct-metric-list li:last-child {
  margin-bottom: 0;
}

.ct-metric-list strong {
  color: var(--silver);
}

.ct-pricing-box {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: rgba(61, 214, 140, 0.08);
  border: 1px solid rgba(61, 214, 140, 0.22);
  margin-bottom: 1.5rem;
  text-align: left;
}

.ct-pricing-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ct-pricing-box li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: var(--silver-muted);
}

.ct-pricing-box li:last-child {
  margin-bottom: 0;
}

.ct-faq details {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-glass);
  background: rgba(34, 40, 54, 0.45);
  margin-bottom: 0.65rem;
}

.ct-faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--silver);
}

.ct-faq p {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--silver-muted);
  line-height: 1.5;
}

.ct-faq code {
  font-size: 0.8em;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
}

/* Modal */
.ct-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 1.25rem;
  padding-top: max(1.25rem, 8vh);
}

.ct-modal.is-open {
  display: flex;
}

.ct-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.ct-modal-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--midnight-elevated);
  border: 1px solid var(--border-glass);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.ct-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--silver);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.ct-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ct-modal-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ct-modal-panel .ct-modal-lead {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--silver-muted);
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ct-form input {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.2);
  color: var(--silver);
  font-family: var(--font);
  font-size: 0.9rem;
}

.ct-form input::placeholder {
  color: rgba(241, 244, 249, 0.45);
}

.ct-form input:focus {
  outline: none;
  border-color: rgba(226, 61, 40, 0.5);
  box-shadow: 0 0 0 3px rgba(226, 61, 40, 0.12);
}

.ct-form-status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.25em;
}

.ct-form-hint {
  margin: 0.75rem 0 0;
  font-size: 0.7rem;
  color: var(--silver-muted);
  text-align: center;
}

.ct-cta-final {
  text-align: center;
  padding: clamp(3rem, 8vw, 4.5rem) 0;
  background: var(--cta-final-gradient);
  border-top: 1px solid var(--border-glass);
}

.ct-cta-final h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--silver);
}

.ct-cta-final > .container > p {
  margin: 0 0 1.5rem;
  color: var(--silver-muted);
  max-width: 42ch;
  margin-inline: auto;
}

.ct-footer-mini {
  padding: 2rem 0;
  border-top: 1px solid var(--border-glass);
  font-size: 0.8rem;
  color: var(--silver-muted);
}

.ct-footer-mini .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .ct-footer-mini .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.ct-footer-mini a:hover {
  color: var(--tomato-hover);
}

/* Modo claro — componentes específicos del módulo */
[data-theme="light"] .ct-video-shell {
  background: #fff;
  box-shadow: 0 12px 40px rgba(26, 31, 44, 0.1);
}

[data-theme="light"] .ct-placeholder {
  border-color: rgba(26, 31, 44, 0.15);
  background: rgba(26, 31, 44, 0.04);
  color: var(--text-secondary);
}

[data-theme="light"] .ct-table-wrap {
  background: #fff;
}

[data-theme="light"] .ct-table th {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

[data-theme="light"] .ct-table td {
  color: var(--text-secondary);
}

[data-theme="light"] .ct-faq details {
  background: #fff;
  border-color: var(--border-default);
}

[data-theme="light"] .ct-faq summary {
  color: var(--text-primary);
}

[data-theme="light"] .ct-modal-panel {
  background: #fff;
  border-color: var(--border-default);
  box-shadow: 0 24px 60px rgba(26, 31, 44, 0.15);
}

[data-theme="light"] .ct-modal-close {
  background: rgba(26, 31, 44, 0.08);
  color: var(--text-primary);
}

[data-theme="light"] .ct-modal-close:hover {
  background: rgba(26, 31, 44, 0.12);
}

[data-theme="light"] .ct-form input {
  background: var(--input-bg);
  color: var(--text-primary);
  border-color: var(--border-default);
}

[data-theme="light"] .ct-form input::placeholder {
  color: var(--input-placeholder);
}

[data-theme="light"] .ct-callout--dark {
  background: var(--bg-elevated);
  border-color: var(--border-default);
}

[data-theme="light"] .ct-callout--dark h3 {
  color: var(--text-primary);
}

[data-theme="light"] .ct-callout--dark p,
[data-theme="light"] .ct-callout--dark .ct-metric-list {
  color: var(--text-secondary);
}

[data-theme="light"] .ct-callout--dark .ct-metric-list strong {
  color: var(--text-primary);
}

[data-theme="light"] .ct-cta-final h2,
[data-theme="light"] .ct-cta-final > .container > p {
  color: var(--text-primary);
}

[data-theme="light"] .ct-cta-final > .container > p {
  color: var(--text-secondary);
}

/* ——— Móvil: hero, secciones, tablas, CTAs ——— */
@media (max-width: 767px) {
  .page-modulo-pagos .container {
    width: min(1120px, 100% - 1.25rem);
  }

  .page-modulo-pagos .hero {
    padding-top: 1.75rem;
  }

  .page-modulo-pagos .hero h1 {
    font-size: clamp(1.65rem, 7.5vw, 2.1rem);
    line-height: 1.12;
  }

  .page-modulo-pagos .hero .lead {
    max-width: none;
    font-size: 0.95rem;
  }

  .page-modulo-pagos .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .page-modulo-pagos .hero-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
  }

  .page-modulo-pagos .ct-hero-checks {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .page-modulo-pagos .chat-mock {
    max-width: 100%;
  }

  .page-modulo-pagos .section-title {
    font-size: clamp(1.25rem, 5.5vw, 1.5rem);
  }

  .page-modulo-pagos .section-intro {
    margin-bottom: 1.35rem;
    font-size: 0.92rem;
  }

  .page-modulo-pagos .ct-video-shell {
    max-width: 100%;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  }

  .page-modulo-pagos .ct-table {
    font-size: 0.78rem;
  }

  .page-modulo-pagos .ct-table th,
  .page-modulo-pagos .ct-table td {
    padding: 0.65rem 0.75rem;
  }

  .page-modulo-pagos .ct-callout {
    padding: 1rem 1.05rem;
  }

  .page-modulo-pagos .section-warm .btn-primary,
  .page-modulo-pagos .ct-cta-final .btn-primary {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
  }

  .page-modulo-pagos .footer-grid {
    gap: 2rem;
  }

  .page-modulo-pagos .lead-box .btn-primary {
    width: 100%;
    white-space: normal;
    line-height: 1.3;
  }

  .page-modulo-pagos .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }
}

@media (max-width: 479px) {
  .page-modulo-pagos .brand-mark-wrap {
    width: 40px;
    height: 40px;
  }

  .page-modulo-pagos .brand-isotype-header {
    width: 34px;
    height: 34px;
  }

  .page-modulo-pagos .ct-step-num {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.9rem;
  }

  .page-modulo-pagos .ct-placeholder {
    min-height: 88px;
    font-size: 0.7rem;
  }
}
