/* ============================================================
   SURE — Página SurefinanceAPP (derivada de los frames
   "02 — SurefinanceAPP v2 (Color)" 1440 y "(Mobile 390)")
   Requiere sure.css y home.css (header, footer, menú móvil, CTA flotante).
   ============================================================ */

/* ---------- Hero con degradado + header sobre oscuro ---------- */
.app-hero { background: linear-gradient(155deg, #0B1118 23.9%, #00D4FF 88.4%); color: var(--white); }
.app-hero .site-header { background: transparent; }
.app-hero .site-header .nav { color: var(--white); }
.app-hero .site-header .nav a:hover { color: var(--cyan); }
.app-hero .btn-outline-ink { border-color: rgba(255,255,255,.35); color: var(--white); }
.app-hero .btn-outline-ink img { filter: invert(1); }
.app-hero .btn-outline-ink:hover { background: var(--white); color: var(--navy); }
.app-hero .btn-outline-ink:hover img { filter: none; }
.app-hero .menu-btn { background: var(--panel-dark); }
.app-hero .mobile-menu { background: var(--navy); border-bottom-color: var(--line-dark); }
.app-hero .mobile-menu > a { color: var(--white); border-bottom-color: var(--line-dark); }

.app-hero .content { display: flex; align-items: center; gap: 64px; padding: 56px 80px 88px; }
.app-hero .text { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; width: 600px; flex: none; }
.app-hero .badge-outline { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 20px; border: 1px solid rgba(255,255,255,.32); font-size: 12px; font-weight: 600; color: var(--white); }
.app-hero h1 { margin: 0; font-size: 62px; font-weight: 700; line-height: 1.08; color: var(--white); }
.app-hero .lead { font-size: 15px; line-height: 1.7; color: var(--muted-dark); }
.app-hero .ctas { display: flex; align-items: center; gap: 14px; }
.btn-white { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 30px; background: var(--white); color: var(--navy); font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn-white img { width: 15px; height: 15px; }
.btn-white:hover { background: var(--cyan); }
.btn-circle-outline { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 40px; border: 1px solid rgba(255,255,255,.32); }
.btn-circle-outline img { width: 20px; height: 20px; }
.btn-circle-outline:hover { background: rgba(255,255,255,.12); }
.social-proof { display: flex; align-items: center; gap: 48px; padding-top: 10px; width: 100%; }
.social-proof .exp { display: flex; align-items: center; gap: 10px; }
.social-proof .exp b { font-size: 40px; font-weight: 700; line-height: 1; color: var(--white); }
.social-proof .exp span { font-size: 12px; line-height: 1.45; color: var(--muted-dark); }
.social-proof .clients { display: flex; flex-direction: column; gap: 10px; }
.social-proof .clients span { font-size: 12px; font-weight: 600; color: var(--muted-dark); }
.social-proof .avatars { display: flex; align-items: center; }
.social-proof .avatars img { width: 38px; height: 38px; margin-right: -10px; }
.social-proof .avatars .more { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 40px; background: var(--cyan); }
.social-proof .avatars .more img { width: 18px; height: 18px; margin: 0; }
.social-proof .logos { display: flex; align-items: center; }
.logo-chip { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-right: -10px; border-radius: 40px; background: var(--white); border: 2px solid #0E3A40; }
.logo-chip img { width: 28px; height: 28px; object-fit: contain; }
.logo-chip.more { background: var(--cyan); margin-right: 0; }
.logo-chip.more img { width: 18px; height: 18px; }

.app-hero .visual { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.app-hero .note { display: flex; gap: 12px; }
.app-hero .note img { width: 20px; height: 20px; flex: none; }
.app-hero .note p { font-size: 13px; line-height: 1.58; color: var(--muted-dark); }
.app-hero .mockup { position: relative; }
.app-hero .mockup .frame { height: 460px; border-radius: 18px; overflow: hidden; padding: 2.4% 1.7%; }
.app-hero .mockup .frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.app-hero .mockup .floating { position: absolute; left: 417px; top: 336px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 20px 28px; border-radius: 18px; background: var(--cyan); box-shadow: 0 4px 12px rgba(0,0,0,.25); color: var(--navy); }
.app-hero .mockup .floating b { font-size: 34px; font-weight: 700; line-height: 1; }
.app-hero .mockup .floating span { font-size: 12px; font-weight: 600; color: var(--panel-dark); }

/* Franja — Cómo funciona (sigue dentro del degradado) */
.how { display: flex; gap: 20px; padding: 0 80px 80px; }
.how .photo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; width: 320px; height: 300px; flex: none; padding: 24px; border-radius: 18px; overflow: hidden; background: url('../assets/app/como_funciona_foto.jpg') center / cover no-repeat; }
.how .photo::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.2); }
.how .photo > * { position: relative; }
.how .photo h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.26; color: var(--white); }
.how .photo a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--white); }
.how .photo a img { width: 14px; height: 14px; }
.how .steps { flex: 1 1 0; min-width: 0; display: flex; gap: 40px; height: 300px; padding: 40px; border-radius: 18px; background: var(--hero-bg); }
.how .step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.how .step .circle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 40px; background: var(--cyan); }
.how .step .circle img { width: 22px; height: 22px; }
.how .step h4 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--white); }
.how .step p { font-size: 13px; line-height: 1.6; color: var(--muted-dark); }

/* ---------- Títulos con palabra destacada ---------- */
.headline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 44px; font-weight: 700; line-height: 1.12; color: var(--navy); margin: 0; }
.headline .pill { display: inline-flex; align-items: center; padding: 2px 18px; border-radius: 14px; background: var(--cyan); color: var(--navy); }
.headline.on-dark { color: var(--white); }

/* ---------- Beneficios — Bento ---------- */
.benefits { display: flex; flex-direction: column; gap: 44px; padding: 96px 80px; background: var(--white); }
.bento { display: flex; gap: 20px; }
.bento > * { flex: 1 1 0; min-width: 0; }
.tile { position: relative; display: flex; flex-direction: column; border-radius: 20px; background: var(--panel); }
.tile .ibadge { position: absolute; top: 24px; right: 24px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 40px; background: var(--white); }
.tile .ibadge img { width: 18px; height: 18px; }
.tile.is-dark { background: var(--navy); }
.tile.is-dark .ibadge { background: var(--panel-dark); }
.tile.is-accent { background: var(--cyan); }
.tile h3 { margin: 0; color: var(--navy); }
.tile p { color: var(--ink-soft); }
.tile.is-dark h3, .tile.is-dark .big { color: var(--white); }
.tile.is-dark p { color: var(--muted-dark); }
.tile.is-accent p { color: var(--panel-dark); }
.tile .bottom { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; flex: 1; }
.tile .big { font-size: 40px; font-weight: 700; line-height: 1.06; }

.bento .t-digit { gap: 20px; padding: 24px 24px 28px; }
.bento .t-digit .img { height: 150px; border-radius: 14px; background: url('../assets/app/bento_cero_digitacion.jpg') center 40% / cover no-repeat; }
.bento .t-digit p, .bento .t-errors p { font-size: 14px; line-height: 1.58; }
.bento .t-errors { gap: 24px; padding: 28px; }
.bento .t-errors .top { display: flex; align-items: center; justify-content: space-between; }
.steps-avatars { display: flex; align-items: center; }
.steps-avatars span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -8px; border-radius: 40px; border: 3px solid var(--cyan); background: var(--navy); }
.steps-avatars span:last-child { margin-right: 0; }
.steps-avatars span.is-white { background: var(--white); }
.steps-avatars span.is-teal { background: var(--cyan-deep); }
.steps-avatars img { width: 17px; height: 17px; }
.bento .t-errors .action { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 40px; background: var(--white); }
.bento .t-errors .action img { width: 18px; height: 18px; }
.bento .col { display: flex; flex-direction: column; gap: 20px; }
.bento .col > * { flex: none; }
.bento .t-products { flex: 1 1 auto !important; justify-content: center; gap: 8px; padding: 24px 28px; }
.bento .t-products h3 { font-size: 28px; line-height: 1.1; padding-right: 48px; }
.bento .t-products p { font-size: 14px; line-height: 1.58; }
.bento .t-free { flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 28px; }
.bento .t-free .big { line-height: 1; padding-right: 56px; }
.bento .t-free .txt { display: flex; flex-direction: column; gap: 4px; }
.bento .t-free .txt b { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--white); }
.bento .t-free .txt p { font-size: 13px; line-height: 1.55; }

/* ---------- Módulos — Showcase ---------- */
.showcase { display: flex; flex-direction: column; gap: 48px; padding: 96px 80px; background: var(--hero-bg); color: var(--white); }
.showcase .trust { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--cyan); }
.showcase .trust img { width: 18px; height: 18px; }
.showcase .head { display: flex; align-items: flex-end; gap: 64px; }
.showcase .head .headline { width: 720px; flex: none; }
.showcase .support { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.showcase .support p { font-size: 15px; line-height: 1.68; color: var(--muted-dark); }
.showcase .actions { display: flex; align-items: center; gap: 22px; }
.btn-outline-white { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 30px; border: 1px solid rgba(255,255,255,.45); color: var(--white); font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn-outline-white img { width: 15px; height: 15px; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }
.captures { display: flex; gap: 20px; }
.captures .cap { flex: 1 1 0; min-width: 0; }
.captures .cap.is-mid { padding-top: 60px; }
.captures .card { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; height: 420px; padding: 22px; border-radius: 18px; background-size: cover; background-position: center; }
.captures .label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 20px; background: var(--white); color: var(--navy); font-size: 13px; font-weight: 600; }
.captures .label img { width: 14px; height: 14px; }
.figures { display: flex; gap: 24px; padding-top: 16px; }
.figures .fig { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.figures .val { display: flex; align-items: baseline; gap: 8px; font-weight: 700; line-height: 1; }
.figures .val b { font-size: 40px; color: var(--white); }
.figures .val span { font-size: 20px; color: var(--cyan); }
.figures p { font-size: 13px; line-height: 1.6; color: var(--muted-dark); }

/* ---------- Integraciones ---------- */
.integrations { display: flex; flex-direction: column; gap: 56px; padding: 96px 80px; background: var(--white); }
.integrations .head { display: flex; gap: 64px; }
.integrations .eyebrow { display: flex; align-items: center; gap: 8px; width: 240px; flex: none; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; color: var(--navy); }
.integrations .eyebrow img { width: 6px; height: 6px; }
.integrations .headline { flex: 1 1 0; gap: 4px 12px; line-height: 1.16; }
.integrations .headline .icon-circle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 40px; background: var(--cyan); }
.integrations .headline .icon-circle img { width: 20px; height: 20px; }
.integrations .headline .muted { color: var(--muted); }
.tiles4 { display: flex; gap: 20px; }
.tiles4 .tile { flex: 1 1 0; min-width: 0; justify-content: space-between; gap: 20px; padding: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.chips span:nth-child(even) { background: var(--panel-soft); border-color: transparent; }
.tiles4 .val { display: flex; flex-direction: column; gap: 2px; }
.tiles4 .val span, .tiles4 .top span { font-size: 13px; color: var(--ink-soft); }
.tiles4 .val b, .tiles4 .top b, .tiles4 .big { font-size: 40px; font-weight: 700; line-height: 1; color: var(--navy); }
.tiles4 .top { display: flex; flex-direction: column; gap: 8px; }
.tiles4 .tile > p { font-size: 14px; line-height: 1.58; }
.tiles4 .is-accent .top span { color: var(--panel-dark); }
.tiles4 .t-modules { justify-content: flex-end; gap: 16px; }
.tiles4 .t-modules .img { height: 110px; border-radius: 14px; background: url('../assets/app/integ_modulos.jpg') center / cover no-repeat; }
.tiles4 .t-modules .txt { display: flex; flex-direction: column; gap: 6px; }
.tiles4 .t-modules .big { color: var(--white); }
.tiles4 .t-modules p { font-size: 13px; line-height: 1.55; }

/* ---------- CTA final ---------- */
.final { padding: 96px 80px; background: var(--cyan); }
.final .box { display: flex; align-items: center; gap: 56px; padding: 48px; border-radius: 28px; background: var(--white); }
.final .text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 520px; flex: none; }
.final .tag { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.final .tag span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 40px; background: var(--panel); }
.final .tag img { width: 16px; height: 16px; }
.final h2 { margin: 0; font-size: 44px; font-weight: 700; line-height: 1.12; color: var(--navy); }
.final .text p { font-size: 15px; line-height: 1.68; color: var(--ink-soft); }
.quick-modules { display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.quick-modules span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 40px; background: var(--panel); }
.quick-modules img { width: 18px; height: 18px; }
.final .grid { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.final .grid .row { display: flex; gap: 16px; }
.final .grid .row > * { flex: 1 1 0; min-width: 0; height: 170px; border-radius: 18px; }
.final .grid .img { background-size: cover; background-position: center; }
.final .grid .tile { justify-content: space-between; padding: 24px; }
.final .grid .tile h3 { font-size: 20px; line-height: 1.24; padding-right: 48px; }
.final .grid .tile p { font-size: 13px; line-height: 1.55; }

/* ============================================================
   Rango intermedio (tabletas)
   ============================================================ */
@media (max-width: 1100px) {
  .app-hero .content, .how, .benefits, .showcase, .integrations, .final { padding-left: 32px; padding-right: 32px; }
  .app-hero .content, .how, .showcase .head, .integrations .head, .final .box { flex-direction: column; align-items: stretch; }
  .app-hero .text, .how .photo, .showcase .head .headline, .final .text { width: 100%; }
  .app-hero .mockup .floating { left: auto; right: 16px; top: auto; bottom: 16px; }
  .bento, .tiles4, .captures { flex-wrap: wrap; }
  .bento > *, .tiles4 .tile, .captures .cap { flex: 1 1 280px; }
  .captures .cap.is-mid { padding-top: 0; }
  .figures { flex-wrap: wrap; }
  .figures .fig { flex: 1 1 200px; }
  .app-hero h1 { font-size: 44px; }
}

/* ============================================================
   MÓVIL (≤ 767px) — frame "02 — SurefinanceAPP v2 (Mobile 390)"
   ============================================================ */
@media (max-width: 767px) {
  .app-hero { background: linear-gradient(109deg, #0B1118 23.9%, #00D4FF 88.4%); }
  .app-hero .content { flex-direction: column; align-items: stretch; gap: 40px; padding: 40px 20px 56px; }
  .app-hero .text { width: 100%; }
  .app-hero h1 { font-size: 34px; line-height: 1.15; }
  .app-hero .lead { font-size: 14px; }
  .btn-white { padding: 14px 26px; }
  .btn-circle-outline { width: 44px; height: 44px; }
  .social-proof { flex-direction: column; align-items: flex-start; gap: 22px; }
  .social-proof .exp b { font-size: 30px; line-height: 1.15; }
  .app-hero .mockup .frame { height: 279px; }
  .app-hero .mockup .floating { left: auto; right: 16px; top: 165px; padding: 14px 20px; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
  .app-hero .mockup .floating b { font-size: 26px; line-height: 1.15; }
  .how { flex-direction: column; gap: 16px; padding: 0 20px 56px; }
  .how .photo { width: 100%; height: 200px; }
  .how .photo h3 { font-size: 18px; }
  .how .steps { flex-direction: column; height: auto; gap: 28px; padding: 28px 24px; }

  .headline { font-size: 28px; line-height: 1.15; gap: 0; display: block; }
  .headline .pill { padding: 0; background: transparent; color: var(--cyan-deep); }
  .headline.on-dark .pill { color: var(--cyan); }
  .integrations .headline .icon-circle { display: none; }

  .benefits { gap: 32px; padding: 56px 20px; }
  .bento { flex-direction: column; gap: 16px; }
  .bento > *, .bento .col > * { flex: none; }
  .bento .t-errors .bottom { flex: none; }
  .tile .ibadge { position: static; }
  .bento .t-digit .img { height: 170px; }
  .tile .big { font-size: 30px; line-height: 1.15; }
  .bento .col { gap: 16px; }
  .bento .t-products h3 { font-size: 24px; line-height: 1.15; padding-right: 0; }
  .bento .t-free { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bento .t-free .txt { padding-right: 0; }
  .bento .t-free .txt b { font-size: 14px; }

  .showcase { gap: 32px; padding: 56px 20px; }
  .showcase .trust { align-items: flex-start; }
  .showcase .head { flex-direction: column; align-items: stretch; gap: 24px; }
  .showcase .head .headline { width: 100%; }
  .showcase .support p { font-size: 14px; }
  .showcase .actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .showcase .actions .btn, .btn-outline-white { padding-top: 14px; padding-bottom: 14px; width: 100%; }
  .captures { flex-direction: column; gap: 16px; }
  .captures .cap.is-mid { padding-top: 0; }
  .captures .card { height: 240px; }
  .figures { flex-wrap: wrap; gap: 28px 16px; }
  .figures .fig { flex: 0 0 calc(50% - 8px); }
  .figures .val b { font-size: 30px; line-height: 1.15; }
  .figures .val span { font-size: 18px; }

  .integrations { gap: 32px; padding: 56px 20px; }
  .integrations .head { flex-direction: column; gap: 20px; }
  .tiles4 { flex-direction: column; gap: 16px; }
  .tiles4 .tile { height: auto; gap: 8px; }
  .tiles4 .t-platforms { gap: 20px; }
  .tiles4 .val b, .tiles4 .top b, .tiles4 .big { font-size: 30px; line-height: 1.15; }
  .tiles4 .t-modules { gap: 16px; }
  .tiles4 .t-modules .img { height: 140px; }

  .final { padding: 56px 20px; }
  .final .box { flex-direction: column; align-items: stretch; gap: 32px; padding: 32px 24px; }
  .final .text { width: 100%; }
  .final h2 { font-size: 28px; line-height: 1.15; }
  .final .text p { font-size: 14px; }
  .final .text .btn { width: 100%; padding-top: 14px; padding-bottom: 14px; }
  .quick-modules { gap: 8px; }
  .final .grid { gap: 12px; }
  .final .grid .row { gap: 12px; }
  .final .grid .row.is-tiles { flex-direction: column; }
  .final .grid .row > * { height: auto; }
  .final .grid .row .img { height: 130px; }
  .final .grid .tile { gap: 12px; padding: 20px; }
  .final .grid .tile h3 { font-size: 18px; padding-right: 0; }
}
