/* Kit común de las páginas con diseño propio (includes/pages/). Estilo de referencia:
   plataforma/gestion-centralizada.php. Guía: docs/ESTILO-INTERIORES.md. Prefijo kx-. */
.interior-bespoke main { padding-top: 5rem; }
.interior-bespoke main section h2:not(.faq-title):not(.hotel-cta-title) { font-size: clamp(2rem, 3.6vw, 3.4rem) !important; line-height: 1.06 !important; letter-spacing: -.035em; font-weight: 600; }
.interior-bespoke .editorial-symbol svg { width: 22px; height: 22px; }

/* Secciones y encabezados */
.kx-section { padding: clamp(80px, 9vw, 120px) 0 !important; background: white; }
.kx-head { max-width: 720px; margin-bottom: 48px; }
.kx-head > p:not(.interior-kicker) { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.kx-head--split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; max-width: none; }
.kx-head--center { margin-inline: auto; text-align: center; }
.interior-bespoke main .kx-head--center h2 { margin-inline: auto !important; }
.kx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

/* Cabecera: texto a la izquierda, tarjeta de datos grande a la derecha */
.kx-hero { padding: 56px 0 96px !important; background: radial-gradient(ellipse at 85% 10%, #cfe5ff, transparent 55%), linear-gradient(180deg, #edf7ff, #ffffff 85%); }
.kx-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.kx-hero h1 { margin: 0 0 22px; font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1.03; letter-spacing: -.045em; }
.kx-lead { max-width: 520px; margin: 0 0 32px; color: var(--muted); font-size: 1.18rem; line-height: 1.7; }
.kx-stage { position: relative; }
.kx-stage::before { content: ''; position: absolute; inset: 40px -24px -24px 40px; border-radius: 36px; background: linear-gradient(150deg, #0d6efd, #5bb7ff); opacity: .16; z-index: 0; }
.kx-stage > * { position: relative; z-index: 1; }

/* Ventana de producto */
.kx-window { overflow: hidden; border-radius: 28px; background: white; box-shadow: 0 50px 100px -50px rgb(8 66 152 / 55%), 0 0 0 1px rgb(13 110 253 / 10%); }
.kx-window-bar { display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px 24px; background: #f6faff; border-bottom: 1px solid #e3eefb; font-size: 1rem; }
.kx-window-bar b { font-weight: 600; }
.kx-window-bar > :last-child:not(:first-child) { margin-left: auto; }
.kx-dots { display: inline-flex; gap: 6px; }
.kx-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff8a80; }
.kx-dots i:nth-child(2) { background: #ffd180; } .kx-dots i:nth-child(3) { background: #a5d6a7; }
.kx-window-body { padding: 24px; }

/* Tarjetas blancas sin borde, sombra de la portada, enlace al pie */
.kx-tile { display: flex; flex-direction: column; min-width: 0; padding: 28px; border-radius: 28px; background: white; border: 0; box-shadow: 0 21.6px 54.4px rgb(15 42 79 / 16%); transition: transform .25s ease, box-shadow .25s ease; }
.kx-tile:hover { transform: translateY(-4px); box-shadow: 0 28px 64px rgb(15 42 79 / 20%); }
.kx-tile h3 { margin: 0 0 12px; font-size: 1.35rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
.kx-tile > p { margin: 0 0 18px; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.kx-link { margin-top: auto; padding-top: 16px; color: var(--brand); font-weight: 600; text-decoration: none; }
.kx-link:hover { text-decoration: underline; }
.kx-tag { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin: 0 0 18px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #eef5ff; color: var(--brand-dark); font-weight: 600; font-size: .92rem; }
.kx-tag .editorial-symbol { width: 30px; height: 30px; flex-basis: 30px; border-radius: 50%; background: var(--brand); color: white; }
.kx-tag .editorial-symbol svg { width: 16px; height: 16px; }
.kx-icon .editorial-symbol, .editorial-symbol.kx-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; background: var(--brand); color: white; }

/* Recuadros interiores, cifras y estados */
.kx-mini { padding: 16px; border-radius: 18px; background: #f6faff; border: 1px solid #e3eefb; }
.kx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 0; }
.kx-kpis > div { padding: 14px 16px; border-radius: 16px; background: #f6faff; border: 1px solid #e3eefb; }
.kx-kpis dt { color: var(--muted); font-size: .85rem; font-weight: 400; }
.kx-kpis dd { margin: 2px 0 0; color: var(--ink); font-size: 1.7rem; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.kx-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-style: normal; font-weight: 600; font-size: .8rem; white-space: nowrap; }
.kx-pill--ok { background: #e3f6ec; color: #11704a; } .kx-pill--info { background: #e3efff; color: #0a58ca; } .kx-pill--warn { background: #fff3dc; color: #9a5b00; } .kx-pill--bad { background: #fde8e8; color: #b42318; } .kx-pill--mute { background: #eef2f7; color: #5b6b80; }
.kx-rows { list-style: none; margin: 0; padding: 0; }
.kx-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #edf2f8; }
.kx-rows li:first-child { border-top: 0; }
.kx-rows li > span:first-child { color: var(--muted); }
.kx-float { position: absolute; z-index: 2; display: grid; gap: 2px; padding: 16px 18px; border-radius: 18px; background: white; color: var(--ink); box-shadow: 0 24px 50px -20px rgb(0 0 0 / 45%); }
.kx-float small { color: var(--muted); font-size: .82rem; }
.kx-float b { font-size: 1.3rem; font-weight: 600; }

/* Panel oscuro (como el bloque «Deja atrás hojas Excel» de la portada) */
.kx-dark { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 72px); border-radius: 32px; color: white; background: radial-gradient(circle at 12% 18%, rgb(13 110 253 / 36%), transparent 29rem), radial-gradient(circle at 88% 8%, rgb(56 189 248 / 18%), transparent 34rem), linear-gradient(135deg, #07111f, #0b1424 54%, #07101d); box-shadow: 0 32px 88px rgb(6 22 51 / 22%); }
.kx-dark::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px), linear-gradient(180deg, rgb(255 255 255 / 3%) 1px, transparent 1px); background-size: 5rem 5rem; pointer-events: none; }
.kx-dark > * { position: relative; }
.kx-dark .interior-kicker { color: #61a5ff !important; }
.interior-bespoke main .kx-dark h2, .kx-dark h3 { color: white; }
.kx-dark p { color: #b9cce4; }
.kx-dark .interior-highlight { background-image: linear-gradient(90deg, rgb(13 110 253 / 60%), rgb(91 183 255 / 45%)); }

/* Las páginas de Empresa reservan las imágenes a su contenido editorial. */
[class*="interior-page--empresa-"] .footer-newsletter { grid-template-columns: minmax(0, 1fr); }
[class*="interior-page--empresa-"] .footer-newsletter-media { display: none; }

@media (max-width: 991.98px) {
  .kx-hero-grid, .kx-head--split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .interior-bespoke main { padding-top: 4.5rem; }
  .kx-hero { padding: 32px 0 64px !important; }
  .kx-stage::before { inset: 24px -8px -8px 24px; }
  .kx-window-bar { padding: 14px 16px; font-size: .9rem; }
  .kx-window-bar .kx-dots { display: none; }
  .kx-window-body { padding: 16px; }
  .kx-tile { padding: 22px; border-radius: 22px; }
  .kx-dark { padding: 28px 20px; border-radius: 24px; }
  .kx-kpis dd { font-size: 1.4rem; }
  .kx-float { position: relative; inset: auto; margin-top: 12px; }
}
/* Bloques de la portada (FAQ y «Solicitar demo») en pantallas estrechas */
@media (max-width: 991.98px) {
  .interior-bespoke .faq-panel { grid-template-columns: minmax(0, 1fr); }
  .interior-bespoke .faq-accordion .accordion-button { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 379.98px) {
  .interior-bespoke .faq-title { font-size: 2.6rem !important; }
  .interior-bespoke .hotel-cta-copy { grid-template-columns: minmax(0, 1fr); padding: 1.75rem 1.1rem; }
  .interior-bespoke .hotel-cta-title { font-size: 2.4rem !important; }
  .interior-bespoke .hotel-cta-badge { max-width: 100%; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .kx-tile { transition: none; }
  .kx-tile:hover { transform: none; }
}
@media (forced-colors: active) {
  .kx-tile, .kx-window, .kx-dark, .kx-float { border: 1px solid CanvasText; }
}
