@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #eef3fb;
  --paper: #fffdf7;
  --paper-soft: #f7f2e7;
  --ink: #1e2a36;
  --ink-soft: #5b6978;
  --line: #d4dbe3;

  --brand: #1463c9;
  --brand-strong: #0f3f8f;
  --brand-soft: #d7e7ff;

  --accent: #2b7be8;
  --accent-soft: #e6f0ff;

  --ok: #11895a;
  --warn: #af7800;
  --danger: #bb3f2d;

  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;

  --shadow-lg: 0 24px 40px rgba(18, 29, 43, 0.12);
  --shadow-md: 0 12px 24px rgba(18, 29, 43, 0.09);
  --shadow-sm: 0 6px 14px rgba(18, 29, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(20, 99, 201, 0.03) 0,
      rgba(20, 99, 201, 0.03) 1px,
      transparent 1px,
      transparent 18px
    ),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 100%);
}

header {
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.97), rgba(237, 245, 255, 0.96)) !important;
  border-bottom: 2px solid #b9cbed !important;
  backdrop-filter: blur(7px);
}

.logo-header-main {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #1f2b37;
  box-shadow: 6px 6px 0 rgba(31, 43, 55, 0.14);
}

header .fw-bold {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: #17212c !important;
}

.hero {
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(700px 260px at 85% 15%, rgba(43, 123, 232, 0.18), transparent 65%),
    radial-gradient(900px 280px at 15% 35%, rgba(20, 99, 201, 0.16), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.hero .container,
main .container,
#contacto .container {
  position: relative;
  z-index: 1;
}

.display-6,
.h3,
.h4,
h5,
h6 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.01em;
}

/* Mantiene titulos grandes consistentes */
.display-6 {
  line-height: 1.32;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
}

.hero .badge {
  border-radius: 8px !important;
  background: var(--accent-soft) !important;
  border: 1px solid #75a7ef !important;
  color: #174a98 !important;
  font-weight: 800;
}

.text-secondary,
.form-text,
small,
small.text-secondary {
  color: var(--ink-soft) !important;
}

.card {
  border: 2px solid #1f2b37;
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(31, 43, 55, 0.1);
}

.hero .card,
.hero-card {
  border-radius: var(--radius-lg);
}

.icon-bubble {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.35rem;
  background: linear-gradient(145deg, var(--brand), #2f8bff);
  border: 2px solid #0f3f8f;
  box-shadow: 0 10px 20px rgba(20, 99, 201, 0.26);
}

.btn {
  border-radius: 10px;
  font-weight: 800;
  border-width: 2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand) !important;
  border-color: #0f3f8f !important;
  color: #fff !important;
  box-shadow: 4px 4px 0 rgba(15, 63, 143, 0.28);
}

.btn-primary:hover {
  background: var(--brand-strong) !important;
}

.btn-dark {
  background: #1f2b37 !important;
  border-color: #0f151c !important;
  box-shadow: 4px 4px 0 rgba(15, 21, 28, 0.24);
}

.btn-outline-dark {
  background: #ffffff !important;
  border-color: #1f2b37 !important;
  color: #1f2b37 !important;
}

.btn-outline-primary {
  background: #ffffff !important;
  border-color: var(--brand) !important;
  color: var(--brand-strong) !important;
}

.btn-outline-primary:hover {
  background: var(--brand-soft) !important;
}

.tag-btn {
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 1px dashed #6f9be2 !important;
  color: #2454a0 !important;
}

.tag-btn:hover {
  background: #edf4ff !important;
}

.form-control,
.form-select,
.input-group-text {
  border-radius: 10px !important;
  border: 2px solid #bec9d4 !important;
  background: #fff !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #2b7be8 !important;
  box-shadow: 0 0 0 0.24rem rgba(43, 123, 232, 0.18) !important;
}

.input-group-text {
  color: #2b3948;
}

/* Separa visualmente icono y campo de busqueda */
#faqSearch {
  margin-left: 8px;
  border-radius: 12px !important;
}

#faqSearch + .input-group-text,
#faqSearch ~ .input-group-text {
  margin-left: 0;
}

#btnClearSearch {
  height: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
  line-height: 1;
}

#noResults {
  border: 2px solid #76a2e8;
  border-radius: 10px;
  background: #eef4ff;
  color: #2454a0;
}

.faq-accordion {
  --bs-accordion-border-color: transparent;
  --bs-accordion-bg: transparent;
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
}

.faq-accordion .accordion-item.faq-item {
  margin-bottom: 14px;
  border: 2px solid #1f2b37 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #fff;
  box-shadow: none;
}

.faq-item:hover {
  box-shadow: none;
}

.faq-featured {
  border-left: 2px solid #1f2b37 !important;
}

.accordion-button {
  background: linear-gradient(90deg, #f5f9ff, #eaf2ff) !important;
  color: var(--ink) !important;
  font-weight: 800;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1rem 1.1rem;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(90deg, #e4eeff, #f6fbff) !important;
}

.accordion-button::after {
  opacity: 0.85;
}

.accordion-collapse {
  border: none !important;
}

.accordion-body {
  background: #fff;
  border-top: 2px solid #1f2b37;
}

/* Paneles internos del FAQ con el mismo filo gris de bancos */
.faq-accordion .accordion-body .card,
.faq-accordion .accordion-body .activacion-box {
  border: 2px solid #d6dee7 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.faq-accordion .accordion-body .card {
  background: #f8fbff !important;
}

.estado-form .form-control,
.estado-form .form-select,
.estado-form #btnEstado {
  min-height: 48px;
}

.pdf-link {
  border-radius: 10px !important;
}

.ratio {
  border: 2px solid #bec9d4 !important;
  border-radius: 12px !important;
}

#linkPortalCarga {
  color: var(--brand-strong);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 99, 201, 0.45);
}

#linkPortalCarga:hover {
  color: #0d3475;
}

#estadoMsg,
#saldosMsg,
#codDisMsg,
#caducaFirmaMsg,
#facturadorFirmasMsg,
#facturadorImprentaMsg,
#reporteMsg {
  color: var(--ink-soft);
}

.activacion-info .activacion-box {
  border: 2px solid #c3d1dd;
  border-radius: 12px;
  background: #fbfdff;
  padding: 14px;
}

.activacion-info h6 {
  color: #1b2733;
}

.activacion-list li {
  margin-bottom: 6px;
}

.activacion-link,
.activacion-link:visited {
  color: var(--brand-strong);
  font-weight: 700;
}

.activacion-alert {
  border: 2px solid #d8b151;
  background: #fff8da !important;
  color: #78590c;
}

.activacion-soporte-link,
.activacion-soporte-link:visited {
  color: #0f3f8f;
  font-weight: 800;
}

#contacto {
  background: linear-gradient(180deg, #f0f6fb, #f8fbff) !important;
  border-top: 2px solid #d0dae5 !important;
}

.asesor-modal {
  border: 2px solid #a9c3ea;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(15, 63, 143, 0.22);
}

.asesor-modal .modal-header {
  background: #1463c9;
  color: #ffffff;
  border-bottom: 1px solid #1f62bd;
}

.asesor-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.asesor-modal .btn-close:hover {
  opacity: 1;
}

.logo-modal {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: #fff;
}

.asesor-modal .modal-body {
  background: linear-gradient(180deg, #f8fbff, #f3f7ff);
}

.asesor-list {
  display: grid;
  gap: 10px;
}

.asesor-list li {
  border: 1px solid #bfd2ee;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.asesor-list li:hover {
  background: #f1f6ff;
  border-color: #8fb1e4;
  transform: translateY(-1px);
}

.asesor-tag {
  color: #36557f;
  font-size: 0.83rem;
  font-weight: 700;
}

.asesor-list a,
.asesor-list a:visited {
  color: #0f3f8f;
  font-weight: 800;
  text-decoration: none;
}

footer {
  border-top: 2px solid #cad4de !important;
  background: #fbfdff !important;
}

.footer-wrap {
  display: flex;
  justify-content: center;
}

.footer-note {
  color: #516377;
}

.footer-brand,
.footer-brand:visited {
  color: #1b2a3a;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 99, 201, 0.45);
}

.footer-brand:hover {
  color: var(--brand-strong);
}

@media (max-width: 991.98px) {
  .display-6 {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .accordion-button {
    font-size: 0.95rem;
  }

  .asesor-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
