/* RYSTEN SAB · landing-refresh.css — Ajustes visuales SOLO para la página pública de ventas. Cargar DESPUÉS de marketing-polish.css. */

:root {
  --lp-navy: #0b2a46;
  --lp-navy-2: #10365a;
  --lp-green: #0d9b73;
  --lp-green-dark: #0a7d5d;
  --lp-green-soft: #e8f8f1;
  --lp-text: #33495f;
  --lp-text-soft: #4a627a;
  --lp-line: #dde6ee;
}

/* 1. Barra superior: logo más legible */
.topbar .topbar-brand img { height: 50px !important; width: auto !important; max-width: none !important; }

/* Logo oficial: únicamente encabezado y pie de la página pública. El PNG
   transparente sustituye el símbolo anterior; el texto se conserva como texto
   para mantener su tamaño, alineación y legibilidad sin cambiar la altura. */
.topbar-brand.official-public-brand { display: inline-flex !important; align-items: center !important; gap: 8px; height: 50px; letter-spacing: 0; }
.topbar .topbar-brand.official-public-brand > .official-public-brand-symbol,
.site-footer .topbar-brand.official-public-brand > .official-public-brand-symbol { display: block !important; width: 42px !important; height: 42px !important; max-width: 42px !important; object-fit: contain !important; object-position: center !important; flex: 0 0 42px; }
.official-public-brand-copy { display: grid; gap: 3px; min-width: 0; line-height: 1; }
.official-public-brand-copy b { color: #102f53; font-size: 21px; font-weight: 900; letter-spacing: .09em; white-space: nowrap; }
.official-public-brand-copy b em { color: #0d9b73; font-style: normal; }
.official-public-brand-copy small { color: #64748b; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 600px) {
  .topbar-brand.official-public-brand { height: 42px; gap: 6px; }
  .topbar .topbar-brand.official-public-brand > .official-public-brand-symbol { width: 36px !important; height: 36px !important; max-width: 36px !important; flex-basis: 36px; }
  .official-public-brand-copy b { font-size: 17px; }
  .official-public-brand-copy small { display: none; }
  .site-footer .topbar-brand.official-public-brand > .official-public-brand-symbol { width: 42px !important; height: 42px !important; max-width: 42px !important; flex-basis: 42px; }
  .site-footer .official-public-brand-copy small { display: block; }
}

/* 2. Portada */
#inicio.intro .hero-copy h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.04; }
#inicio.intro .hero-copy h1 .lp-accent { color: var(--lp-green); }
#inicio.intro .lead { color: #2f465c !important; font-size: 1.14rem; font-weight: 500 !important; max-width: 34rem; }
#inicio.intro .hero-trust { gap: .5rem .75rem; flex-wrap: wrap; }
#inicio.intro .hero-trust span { font-size: .86rem; font-weight: 600; color: var(--lp-navy); background: #fff; border: 1px solid var(--lp-line); border-radius: 999px; padding: .35rem .8rem .35rem .7rem; }
#inicio.intro .hero-primary { box-shadow: 0 10px 24px -10px rgba(13,155,115,.6); }

/* 3. Tarjetas de valor: sin numeración duplicada, más compactas */
.commercial-value-cards article > span { display: none; }
.commercial-value-cards article { min-height: 0 !important; padding-bottom: 1.4rem !important; border-color: var(--lp-line) !important; }
.commercial-value-cards article.remote-benefit { border-color: var(--lp-line) !important; }
.commercial-value-cards article h2 { margin-top: 0; }
.commercial-value-cards p { color: var(--lp-text) !important; font-size: .95rem !important; line-height: 1.55; }

/* 4. Smart Vision */
.smart-vision-home .smart-vision-marketing-copy h2 { font-size: clamp(1.8rem, 2.6vw, 2.2rem) !important; line-height: 1.15; }
.smart-vision-home .smart-vision-marketing-copy p,
.smart-vision-home .smart-vision-marketing-copy li { color: var(--lp-text) !important; }
.smart-vision-home .smart-vision-marketing-copy [class*="chip"],
.smart-vision-home .smart-vision-marketing-copy [class*="tag"] { cursor: default; background: var(--lp-green-soft) !important; border-color: transparent !important; color: var(--lp-green-dark) !important; box-shadow: none !important; }

/* 5. Logos de bancos: mismo peso visual */
.entities-strip .entity-logos figure { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 72px; margin: 0; background: #fff; border: 1px solid var(--lp-line); border-radius: 14px; padding: .6rem 1rem; }
.entities-strip .entity-logos img { max-height: 30px !important; max-width: 120px !important; width: auto !important; height: auto !important; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .8; transition: filter .2s, opacity .2s; }
.entities-strip .entity-logos figure:hover img { filter: none; opacity: 1; }
.entities-strip .entity-logos figcaption { font-size: .7rem; font-weight: 700; color: var(--lp-text-soft); margin-top: .2rem; }
.entities-strip p { color: var(--lp-text) !important; }
.entities-strip .lp-disclaimer { grid-column: 1 / -1; font-size: .82rem !important; color: #56708a !important; margin-top: .75rem; }

/* 6. Funciones: un icono distinto por tarjeta */
#funciones .feature-icon { width: 42px !important; height: 42px !important; border-radius: 12px !important; background: var(--lp-green-soft) !important; border: 0 !important; position: relative; }
#funciones .feature-icon::before,
#funciones .feature-icon::after { content: none !important; }
#funciones .feature-icon::before { content: "" !important; position: absolute; inset: 9px; background: var(--lp-green) !important; -webkit-mask: var(--lp-icon) center / contain no-repeat; mask: var(--lp-icon) center / contain no-repeat; border-radius: 0 !important; width: auto !important; height: auto !important; }
#funciones .feature-grid article:nth-child(1) { --lp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
#funciones .feature-grid article:nth-child(2) { --lp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M7 21h10M5 7h14M5 7l-3 7a3 3 0 0 0 6 0L5 7zM19 7l-3 7a3 3 0 0 0 6 0l-3-7z'/%3E%3C/svg%3E"); }
#funciones .feature-grid article:nth-child(3) { --lp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M2 21v-1a6 6 0 0 1 9-5.2'/%3E%3Ccircle cx='17' cy='17' r='5'/%3E%3Cpath d='M17 15v2l1.5 1.5'/%3E%3C/svg%3E"); }
#funciones .feature-grid article:nth-child(4) { --lp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h18L12 4 3 10zM5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 21h18'/%3E%3C/svg%3E"); }
#funciones .feature-grid article:nth-child(5) { --lp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='10' cy='6' rx='7' ry='3'/%3E%3Cpath d='M3 6v5c0 1.7 3.1 3 7 3M3 11v5c0 1.7 3.1 3 7 3'/%3E%3Cpath d='M18 13v8M14 17h8'/%3E%3C/svg%3E"); }
#funciones .feature-grid article:nth-child(6) { --lp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h12M3 10h7M3 15h5'/%3E%3Ccircle cx='16' cy='15' r='4'/%3E%3Cpath d='M19 18l3 3'/%3E%3C/svg%3E"); }
#funciones .feature-grid h3 { font-size: 1.02rem; }
#funciones .feature-grid p { color: var(--lp-text) !important; font-size: .92rem !important; line-height: 1.55; }

/* 7. Texto descriptivo con más contraste */
.process-section p:not(.eyebrow),
.partial-check-section p:not(.eyebrow),
.platform-section p:not(.eyebrow),
.pricing-section p:not(.eyebrow),
.remote-marketing p:not(.eyebrow) { color: var(--lp-text); }

/* 8. Ritmo visual: bandas alternas */
#como-funciona.process-section { background: #fff; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); }
.partial-check-section { background: var(--lp-navy); box-shadow: 0 0 0 100vmax var(--lp-navy); clip-path: inset(0 -100vmax); color: #fff; padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
.partial-check-section h2,
.partial-check-section h3 { color: #fff !important; }
.partial-check-section > div:first-child p { color: #c9d7e4 !important; }
.partial-check-section .eyebrow { color: #4fd1a5 !important; }

/* Sección duplicada (la fórmula ya está en "Cómo funciona", paso 05) */
.reconciliation-section { display: none !important; }

/* 9. Precios */
.pricing-section > p:last-child,
.pricing-section .pricing-note { font-size: .85rem !important; color: var(--lp-text-soft) !important; }

/* 10. Preguntas frecuentes */
.lp-faq { max-width: 860px; margin: 5rem auto 3rem; padding: 0 1rem; }
.lp-faq .eyebrow { text-align: center; }
.lp-faq h2 { text-align: center; font-size: clamp(1.8rem, 3vw, 2.4rem); margin: .3rem 0 2rem; color: var(--lp-navy); letter-spacing: -.02em; }
.lp-faq details { background: #fff; border: 1px solid var(--lp-line); border-radius: 14px; padding: 1.05rem 1.3rem; margin-bottom: .7rem; }
.lp-faq summary { cursor: pointer; font-weight: 700; color: var(--lp-navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--lp-green); font-size: 1.3rem; line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { color: var(--lp-text); margin: .7rem 0 0; line-height: 1.6; }

/* 11. Botón flotante de WhatsApp */
.lp-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: .55rem; background: #25d366; color: #fff !important; font-weight: 700; font-size: .95rem; text-decoration: none !important; padding: .8rem 1.1rem .8rem .9rem; border-radius: 999px; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); }
.lp-whatsapp svg { width: 22px; height: 22px; fill: currentColor; }
.lp-whatsapp:hover { background: #1ebe5b; }
@media (max-width: 640px) { .lp-whatsapp span { display: none; } .lp-whatsapp { padding: .85rem; } }

/* Igual que marketing-contact: no aparece en la aplicación autenticada. */
body.authenticated-app .lp-whatsapp { display: none !important; }

/* El asistente ya ocupa la esquina inferior derecha de la landing. */
body:not(.authenticated-app) .lp-whatsapp { right: 160px; }
@media (max-width: 640px) { body:not(.authenticated-app) .lp-whatsapp { left: 16px; right: auto; } }

body.authenticated-app .lp-mobile-cta { display: none !important; }

/* RYSTEN SAB · Ajustes móviles de la landing. Solo pantallas de hasta 720px y solo clases de la página de ventas. */
@media (max-width: 720px) {

  /* Portada */
  #inicio.intro .hero-trust { gap: .4rem; }
  #inicio.intro .hero-trust span { white-space: nowrap; font-size: .78rem; padding: .3rem .65rem; }

  /* Tarjetas de valor: carrusel horizontal deslizable (antes 6 tarjetas apiladas) */
  .commercial-value-cards {
    display: flex !important;
    grid-template-columns: none !important;
    gap: .75rem !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: .25rem 1rem 1rem !important;
    margin-left: -1rem; margin-right: -1rem;
    scrollbar-width: none;
  }
  .commercial-value-cards::-webkit-scrollbar { display: none; }
  .commercial-value-cards article { flex: 0 0 78%; scroll-snap-align: start; margin: 0 !important; }
  .commercial-value-cards article h2 { font-size: 1.08rem !important; }

  /* Secciones con caja (Smart Vision y Remote): sin doble margen */
  .smart-vision-home,
  .remote-marketing { border: 0 !important; background: transparent !important; box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important; }
  .smart-vision-home .smart-vision-marketing-copy h2 { font-size: 1.7rem !important; }
  .remote-marketing-copy > p:last-of-type { font-size: .78rem !important; color: #6a7f93 !important; }

  /* Bancos: 3 columnas compactas */
  .entities-strip .entity-logos { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: .5rem !important; }
  .entities-strip .entity-logos figure { height: 56px; padding: .4rem; border-radius: 10px; }
  .entities-strip .entity-logos img { max-height: 22px !important; max-width: 84px !important; }

  /* Cómo funciona: pasos solo con texto (las ilustraciones alargaban 3.200px) */
  #como-funciona .workflow-step .workflow-visual { display: none !important; }
  #como-funciona .workflow-step { padding-top: 1rem !important; padding-bottom: 1rem !important; gap: .5rem !important; }
  #como-funciona .workflow-list { gap: .25rem !important; }

  /* Funciones: una columna, icono a la izquierda */
  #funciones .feature-grid { grid-template-columns: 1fr !important; }
  #funciones .feature-grid article { display: grid !important; grid-template-columns: 42px 1fr; column-gap: .9rem; row-gap: 0 !important; grid-template-rows: auto 1fr; align-items: start; padding: 1rem 0 !important; min-height: 0 !important; border-left: 0 !important; border-right: 0 !important; }
  #funciones .feature-grid article .feature-icon { grid-row: 1 / span 2; margin: 0 !important; }
  #funciones .feature-grid article h3 { margin: 0 0 .25rem !important; }
  #funciones .feature-grid article p { margin: 0 !important; }

  /* ¿Cómo voy? */
  .partial-check-section { padding-top: 3rem !important; padding-bottom: 3rem !important; }

  /* Plataforma: el tablero de demostración no cabe en móvil */
  .platform-section .marketing-dashboard { display: none !important; }

  /* Precios: la lista es idéntica en los 3 planes; se muestra solo en la prueba */
  .pricing-grid { gap: .75rem !important; }
  .pricing-plan:not(.trial-plan) ul { display: none !important; }
  .pricing-plan:not(.trial-plan) { padding-top: 1.1rem !important; padding-bottom: 1.1rem !important; }
  .pricing-plan.trial-plan ul { margin-bottom: 1rem !important; }

  /* Cierre: un solo párrafo */
  #contacto.final-cta > div > p:not(.eyebrow) + p { display: none; }
  #contacto.final-cta h2 { font-size: 1.8rem !important; }

  /* Barra fija inferior con la llamada a la acción */
  .lp-whatsapp { display: none !important; }
  .lp-mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: .6rem; align-items: center; padding: .65rem .9rem calc(.65rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--lp-line, #dde6ee); box-shadow: 0 -8px 24px -12px rgba(11,42,70,.25); }
  .lp-mobile-cta .lp-mobile-cta-main { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; background: var(--lp-green, #0d9b73); color: #fff !important; font-weight: 700; font-size: 1rem; text-decoration: none !important; border-radius: 12px; }
  .lp-mobile-cta .lp-mobile-cta-wa { flex: 0 0 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #25d366; color: #fff !important; border-radius: 12px; }
  .lp-mobile-cta .lp-mobile-cta-wa svg { width: 24px; height: 24px; fill: currentColor; }
  .site-footer { padding-bottom: 96px !important; }
}
@media (min-width: 721px) { .lp-mobile-cta { display: none !important; } }
