/* Web pública 2026: precio visible, secciones fusionadas y widgets que no tapan contenido. */

/* Portada: precio y demo como acción secundaria del hero. */
.hero-secondary { margin: 18px 0 0; color: #43536a; font-size: 15px; }
.hero-secondary strong { color: var(--ink); }
.hero-secondary a { color: var(--blue); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }

/* Franja de cifras bajo el hero. */
.proof-strip--numbers strong { color: var(--blue); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -.5px; }
.proof-strip--numbers span { font-size: 13px; }
.proof-strip--numbers > div:last-child strong { font-size: clamp(18px, 1.8vw, 22px); }

/* Antigüedad en la sección de cumplimiento. */
.compliance-since { margin: 16px 0 0; padding: 12px 16px; border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; background: #eef6ff; color: #2c4663; font-size: 15px; line-height: 1.5; }
.compliance-since strong { color: var(--blue); }

/* Precio "desde". */
.price-from { margin: 12px 0 18px; display: flex; align-items: baseline; gap: 6px; }
.price-from strong { color: var(--ink); font-size: clamp(40px, 5vw, 56px); line-height: 1; letter-spacing: -1.5px; }
.price-from small { color: #60738a; font-size: 15px; font-weight: 700; }
.pricing-preview__intro > p.price-from { margin: 0 0 18px; }
.price-formula .price-from { margin: 12px 0 4px; }

/* Funciones integradas en la sección de roles (antes "Todo conectado"). */
.intro-section .feature-grid { margin-top: 64px; }
@media (max-width: 760px) { .intro-section .feature-grid { margin-top: 40px; } }

/* El asistente flotante no debe tapar los enlaces legales ni el texto de las tarjetas. */
.public-body .footer-legal { padding-bottom: 88px; }
@media (max-width: 1180px) {
    .public-body .fn-chat__launcher { padding: 8px; }
    .public-body .fn-chat__launcher-copy { display: none; }
}

/* Botón de ayuda de la cabecera con texto visible cuando hay hueco a la derecha del contenido (1320px + margen).
   context-help.css se carga después (desde el widget), por eso se sube la especificidad con .public-body. */
@media (min-width: 1580px) {
    .public-body .public-header.fn-help-anchor > .fn-help__launcher { top: 24px; right: 20px; width: auto; padding: 0 12px 0 8px; grid-auto-flow: column; gap: 4px; }
    .public-body .public-header.fn-help-anchor > .fn-help__launcher span { width: 20px; }
    .public-body .public-header.fn-help-anchor > .fn-help__launcher::after { content: "Ayuda"; font: 750 13px/1 inherit; }
}

/* Páginas por sector y programas de colaboración. */
.sector-breadcrumb { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; color: #6a7d94; font-size: 13px; }
.sector-breadcrumb a { color: var(--blue); font-weight: 700; }
.security-hero.sector-hero { grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); }
.sector-hero h1 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -1.5px; }
@media (max-width: 1100px) { .security-hero.sector-hero { grid-template-columns: 1fr; } }
.sector-hero__panel { padding: 30px 32px; border: 1px solid #cfe1ef; border-radius: 22px; background: rgba(255, 255, 255, .94); box-shadow: 0 26px 70px rgba(14, 55, 90, .13); }
.sector-hero__panel > span { color: #0870d3; font-size: 11px; font-weight: 950; letter-spacing: 1px; }
.sector-hero__panel ul { margin: 16px 0 14px; padding: 0; list-style: none; display: grid; gap: 12px; }
.sector-hero__panel li { position: relative; padding: 14px 16px 14px 46px; border: 1px solid #d7e4ef; border-radius: 14px; background: #f7fbff; color: #173552; font-weight: 700; line-height: 1.4; }
.sector-hero__panel li::before { content: "✓"; position: absolute; left: 16px; top: 13px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #1f9a6a; color: #fff; font-size: 12px; }
.sector-hero__panel li strong { color: var(--blue); }
.sector-hero__panel small { color: #61758c; font-size: 13px; }
.sector-hero__panel--money { border-color: #bfe3d2; background: linear-gradient(180deg, #ffffff, #f1fbf6); }
.sector-hero__panel--money > span { color: #0d8d5b; }
.sector-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sector-note { max-width: 900px; margin: 28px auto 0; padding: 14px 18px; border-left: 4px solid #e0a13a; border-radius: 0 12px 12px 0; background: #fff8ec; color: #6b4a12; font-size: 15px; }
.sector-more { text-align: center; }
.sector-more h2 { margin: 0 0 22px; color: var(--ink); font-size: 26px; }
.sector-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sector-chips a { padding: 10px 16px; border: 1px solid #cfe0f1; border-radius: 999px; background: #fff; color: #0862b8; font-weight: 750; font-size: 14px; }
.sector-chips a:hover { border-color: var(--blue); background: #f2f8ff; }
.sector-index-hero { padding-bottom: 10px; }
.sector-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.sector-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; border: 1px solid #d5e2ef; border-radius: 17px; background: #fff; box-shadow: 0 16px 38px rgba(18, 56, 92, .07); color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.sector-card:hover { transform: translateY(-2px); border-color: #9fc5e8; }
.sector-card > span { width: 45px; height: 45px; display: grid; place-items: center; color: #0767c4; border-radius: 13px; background: #eaf4ff; font-size: 12px; font-weight: 950; }
.sector-card h2 { margin: 6px 0 0; color: var(--ink); font-size: 21px; line-height: 1.2; }
.sector-card p { margin: 0; color: #63768d; line-height: 1.55; flex: 1; }
.sector-card b { color: var(--blue); font-size: 14px; }
.sector-card--partner > span { color: #0d8d5b; background: #e5f7ee; }
.partner-teaser-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.partner-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partner-steps li { padding: 24px; display: flex; gap: 14px; border: 1px solid #d5e2ef; border-radius: 17px; background: #fff; }
.partner-steps li > span { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; }
.partner-steps h3 { margin: 4px 0 6px; color: var(--ink); font-size: 18px; }
.partner-steps p { margin: 0; color: #63768d; line-height: 1.5; font-size: 15px; }
.home-sectors { text-align: center; }
.home-sectors .sector-chips { margin-top: 8px; }
.home-sectors__partners { margin: 22px 0 0; color: #5d7088; }
.home-sectors__partners a { color: var(--blue); font-weight: 750; }
/* Ancho de lectura: las páginas de sector no se estiran en pantallas grandes. */
.sector-page .security-hero, .sector-page .section, .sector-index-page .section, .sector-index-page .legal-hero { padding-left: max(24px, calc((100vw - 1200px) / 2)); padding-right: max(24px, calc((100vw - 1200px) / 2)); }
.sector-page .cta-section, .sector-index-page .cta-section { max-width: 1200px; }
.security-hero.sector-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); }
.sector-hero__visual { position: relative; }
.sector-hero__visual > img { width: 100%; height: auto; display: block; border-radius: 28px; box-shadow: 0 30px 80px rgba(17, 55, 91, .16); }
.sector-hero__visual { display: flex; flex-direction: column; gap: 18px; }
.sector-hero__visual .sector-hero__panel { position: relative; margin: 0; padding: 18px 22px; box-shadow: 0 16px 40px rgba(14, 55, 90, .09); }
.sector-hero__visual .sector-hero__panel ul { margin: 12px 0 10px; gap: 8px; }
.sector-hero__visual .sector-hero__panel li { padding: 10px 12px 10px 42px; font-size: 14px; }
.sector-hero__visual .sector-hero__panel li::before { left: 13px; top: 10px; }

/* Funciones con captura real del producto. */
.sector-features { display: grid; align-items: center; gap: 40px; }
.sector-features--phone { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.sector-features--phone .sector-features__grid { grid-template-columns: repeat(2, 1fr); }
.sector-features--wide .sector-features__grid { grid-template-columns: repeat(4, 1fr); }
.sector-features--wide .sector-shot { max-width: 980px; width: 100%; margin: 0 auto; }
.sector-features__grid { margin-top: 0; }
.sector-shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sector-shot figcaption { color: #6a7d94; font-size: 13px; }
.sector-shot .real-browser { width: 100%; }
.sector-shot--phone .real-phone { width: min(250px, 80%); transform: rotate(2deg); }
.sector-shot--wide { max-width: 980px; margin: 40px auto 0; }

/* Tarjetas con ilustración. */
.sector-card--image { padding-top: 14px; }
.sector-card--image > img { width: 100%; height: auto; margin-bottom: 6px; border-radius: 14px; }
.sector-card--image > span { margin-top: -38px; margin-left: 12px; position: relative; box-shadow: 0 8px 20px rgba(18, 56, 92, .15); background: #fff; }

/* Hardware para distribuidores. */
.partner-hardware { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 56px; }
.partner-hardware h2 { margin: 8px 0 14px; color: var(--ink); font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
.partner-hardware > div > p:not(.eyebrow) { color: #5d7088; font-size: 17px; line-height: 1.6; }
.partner-hardware__visual { margin: 0; padding: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; border-radius: 28px; background: radial-gradient(circle at 50% 40%, #ffffff, #e3f0fd 70%); box-shadow: inset 0 0 0 1px #d5e5f5; }
.partner-hardware__visual img { width: min(260px, 80%); height: auto; filter: drop-shadow(0 24px 30px rgba(11, 53, 99, .22)); }
.partner-hardware__visual figcaption { color: #3c5673; font-weight: 800; }

@media (max-width: 1100px) {
    .partner-steps { grid-template-columns: 1fr 1fr; } .sector-grid-3 { grid-template-columns: 1fr; }
    .security-hero.sector-hero, .sector-features, .sector-features--phone, .partner-hardware { grid-template-columns: 1fr; }
    .sector-features--wide .sector-features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) { .sector-features .sector-features__grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .partner-steps, .partner-teaser-grid { grid-template-columns: 1fr; } .sector-hero__panel { padding: 22px; } }

/* Ancho de lectura común en las páginas secundarias (precios, seguridad, producto, apps). */
.pricing-page > section:not(.cta-section):not(.proof-strip),
.security-page > section:not(.cta-section):not(.proof-strip),
.public-product-page > section:not(.cta-section):not(.proof-strip),
.apps-page > section:not(.cta-section):not(.proof-strip) { max-width: none; padding-left: max(24px, calc((100vw - 1200px) / 2)); padding-right: max(24px, calc((100vw - 1200px) / 2)); }
.pricing-page .cta-section, .security-page .cta-section, .public-product-page .cta-section, .apps-page .cta-section { max-width: 1200px; }
.apps-page .proof-strip, .public-product-page .proof-strip { max-width: 1200px; }
.pricing-page .pricing-hero, .security-page .security-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.pricing-page .pricing-hero h1, .security-page .security-hero h1 { font-size: clamp(40px, 4.4vw, 60px); letter-spacing: -2px; }
.price-formula .price-from strong { min-height: 0; padding: 0; display: inline; border: 0; background: none; color: var(--ink); font-size: clamp(40px, 5vw, 56px); }
@media (max-width: 1100px) { .pricing-page .pricing-hero, .security-page .security-hero { grid-template-columns: 1fr; } }

/* Guías del blog en cada sector. */
.sector-guides__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sector-guide { overflow: hidden; display: flex; flex-direction: column; border: 1px solid #d5e2ef; border-radius: 17px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 16px 38px rgba(18, 56, 92, .07); transition: transform .15s ease, border-color .15s ease; }
.sector-guide:hover { transform: translateY(-2px); border-color: #9fc5e8; }
.sector-guide img { width: 100%; height: 170px; object-fit: cover; display: block; background: #eaf4ff; }
.sector-guide > div { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sector-guide small { color: #0870d3; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.sector-guide h3 { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.35; flex: 1; }
.sector-guide b { color: var(--blue); font-size: 14px; }

/* Formulario de colaboradores. */
.partner-form-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.partner-form-intro h2 { margin: 8px 0 14px; color: var(--ink); font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
.partner-form-intro > p:not(.eyebrow) { color: #5d7088; font-size: 17px; line-height: 1.6; }

/* Barra fija de acciones en móvil. */
.mobile-cta { display: none; }
@media (max-width: 760px) {
    .mobile-cta { position: fixed; z-index: 9000; left: 0; right: 0; bottom: 0; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: auto 1fr; gap: 10px; background: rgba(255, 255, 255, .96); border-top: 1px solid #d5e2ef; box-shadow: 0 -10px 30px rgba(11, 53, 99, .12); backdrop-filter: blur(8px); }
    .mobile-cta a { min-height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; font-weight: 800; text-decoration: none; }
    .mobile-cta__call { color: var(--blue); border: 1px solid #bfd2e8; background: #fff; }
    .mobile-cta__main { color: #fff; background: linear-gradient(135deg, #0a77d8, #0759a5); box-shadow: 0 8px 20px rgba(7, 89, 165, .28); }
    .public-body:has(.mobile-cta) { padding-bottom: 76px; }
}

@media (max-width: 1100px) { .sector-guides__grid { grid-template-columns: 1fr 1fr; } .partner-form-section { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .sector-guides__grid { grid-template-columns: 1fr; } }

/* Blog: entrada más reciente como noticia destacada. */
.blog-featured { max-width: 1200px; margin: 40px auto 48px; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.blog-featured__image { position: relative; display: block; overflow: hidden; border-radius: 22px; box-shadow: 0 26px 60px rgba(14, 55, 90, .16); }
.blog-featured__image img { width: 100%; height: auto; display: block; transition: transform .3s ease; }
.blog-featured__image:hover img { transform: scale(1.03); }
.blog-featured__image span { position: absolute; left: 18px; top: 18px; padding: 8px 14px; border-radius: 999px; background: #0759a5; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.blog-page .blog-featured__body h2 { margin: 12px 0 14px; font-size: clamp(28px, 2.8vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -1px; }
.blog-featured__body h2 a { color: var(--ink); text-decoration: none; }
.blog-featured__body h2 a:hover { color: var(--blue); }
.blog-featured__body > p { margin: 0 0 22px; color: #5d7088; font-size: 17px; line-height: 1.6; }
@media (max-width: 900px) { .blog-featured { grid-template-columns: 1fr; gap: 22px; } }

/* Vista previa de entradas del blog desde Admin. */
.blog-preview-banner { position: sticky; top: 0; z-index: 50; padding: 12px max(16px, calc((100vw - 1200px) / 2)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #12223b; color: #fff; font-weight: 700; font-size: 14px; }
.blog-preview-banner .button { min-height: 38px; padding: 0 16px; }

/* Página 404. */
.not-found-page .hero-actions { margin-top: 26px; justify-content: center; }

/* Manuales y guías rápidas (página pública /manuales-y-guias). */
.guides-page { max-width: 1200px; margin: 0 auto; padding: 48px 24px 72px; }
.guides-hero { max-width: 760px; margin-bottom: 34px; }
.guides-hero h1 { margin: 10px 0 12px; color: #0f2747; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.05; }
.guides-hero p { margin: 0; color: #4d5f78; font-size: 18px; line-height: 1.55; }
.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 22px; }
.guides-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: start; padding: 22px; border: 1px solid #dce5ef; border-radius: 20px; background: #fff; box-shadow: 0 16px 40px rgba(16, 45, 80, .06); }
.guides-card__cover img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid #dce5ef; box-shadow: 0 10px 24px rgba(16, 45, 80, .12); }
.guides-card__number { color: #14a45b; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.guides-card h2 { margin: 6px 0 8px; color: #0f2747; font-size: 22px; line-height: 1.2; }
.guides-card p { margin: 0 0 12px; color: #4d5f78; line-height: 1.55; }
.guides-card__meta { display: block; margin-bottom: 16px; color: #6c7d93; font-size: 13px; font-weight: 700; }
.guides-clients { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-top: 34px; padding: 30px; border-radius: 22px; background: linear-gradient(120deg, #0759a5, #073b7a); color: #fff; }
.guides-clients .eyebrow { color: #8fe0b5; }
.guides-clients h2 { margin: 6px 0 8px; color: #fff; font-size: 26px; }
.guides-clients p { max-width: 640px; margin: 0; color: #d6e6f7; line-height: 1.55; }
.guides-clients__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.guides-clients .button--secondary { background: #fff; color: #0759a5; }
@media (max-width: 560px) {
    .guides-page { padding: 32px 16px 56px; }
    .guides-card { grid-template-columns: 1fr; }
    .guides-card__cover { max-width: 220px; }
}
/* Portada: guía rápida de alta bajo «Tu empresa operativa en tres pasos». */
.steps-guide { display: flex; align-items: center; gap: 24px; max-width: 760px; margin: 56px auto 0; padding: 22px 26px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.07); }
.steps-guide img { flex: none; width: 96px; height: auto; border-radius: 6px; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.steps-guide strong { display: block; font-size: 1.15rem; color: #fff; }
.steps-guide p { margin: 6px 0 14px; color: rgba(255,255,255,.78); }
.steps-guide__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.steps-guide__link { color: #fff; font-weight: 600; text-decoration: none; }
.steps-guide__link:hover { text-decoration: underline; }
@media (max-width: 640px) { .steps-guide { flex-direction: column; text-align: center; } .steps-guide__actions { justify-content: center; } }
