/* Ensutex home · encuadre de slices y ayudas flotantes · 15-nov-2026 */

/* Escritorio: el encabezado, la lámina y el contenido comparten el alto útil real.
   El pin y el ritmo de pasos siguen a cargo de home-refresh.js. */
@media (min-width: 900px) {
  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-escena {
    padding: 10px 24px !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-cab {
    margin-bottom: 8px !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-cab .seo-tema {
    margin-bottom: 5px !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-cab h2 {
    max-width: 24ch;
    font-size: clamp(28px, min(3.2vw, 5.6svh), 40px) !important;
    line-height: 1.02 !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-cuerpo {
    box-sizing: border-box;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    --p-renglon: clamp(22px, 3.2svh, 29px);
    --p-subida: 6px;
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    column-gap: clamp(20px, 3vw, 40px) !important;
    row-gap: 0 !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-lamina {
    grid-column: 1 !important;
    grid-row: 1 / -1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    align-self: stretch !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-lamina img {
    width: 94% !important;
    height: 94% !important;
    object-fit: contain !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-titulo {
    grid-column: 2 !important;
    font-size: clamp(23px, min(2.15vw, 4.2svh), 32px) !important;
    line-height: 1.02 !important;
    margin-bottom: 4px !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-paso[data-estado="activo"] .proceso-titulo {
    font-size: clamp(23px, min(2.15vw, 4.2svh), 32px) !important;
    line-height: 1.02 !important;
    margin-bottom: 4px !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-detalle {
    box-sizing: border-box;
    grid-column: 2 !important;
    grid-row: 3 !important;
    display: grid !important;
    min-width: 0;
    min-height: 0 !important;
    align-content: start !important;
    justify-items: stretch !important;
    gap: clamp(5px, .8svh, 8px) !important;
    padding: clamp(12px, 1.25vw, 18px) !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-detalle > .proceso-bajada {
    max-width: 44ch;
    font-size: clamp(15px, 1.2vw, 18px) !important;
    line-height: 1.28 !important;
    text-align: left !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-detalle > .proceso-puntos {
    width: 100%;
    max-width: none;
    align-self: start;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-detalle > .proceso-puntos li {
    font-size: clamp(14px, 1.03vw, 16px) !important;
    line-height: 1.28 !important;
    padding-left: 17px;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-detalle > .proceso-cta {
    justify-self: start !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding-inline: 16px !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-detalle > .proceso-visual--estimacion {
    grid-column: 1 !important;
    margin: 0 !important;
    padding: 8px !important;
    gap: 4px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-visual--estimacion > b,
  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-visual--estimacion > small {
    grid-column: 1 / -1;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso .proceso-visual--estimacion > div {
    min-width: 0;
    padding: 5px 7px !important;
  }
}

/* En celular la prenda conserva presencia y deja sitio al copy activo. En el paso
   de pago se muestra la lista completa dentro de la caja fijada. */
@media (max-width: 899px) {
  /* El último tramo también termina completo antes de que la escena suelte el pin. */
  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso .proceso-escena::after {
    height: 150svh !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso .proceso-cuerpo {
    grid-template-rows: clamp(190px, 29svh, 260px) auto calc(4 * var(--p-renglon) + var(--p-subida)) minmax(0, 1fr) auto !important;
    row-gap: clamp(4px, .8svh, 8px) !important;
  }

  html.proceso-js body.ensutex-home.ens-process-inview:not(.mf):not(.rx) #proceso.proceso {
    --p-cab: 0px;
  }

  html.proceso-js body.ensutex-home.ens-process-inview:not(.mf):not(.rx) #proceso.proceso .proceso-cuerpo {
    top: 0 !important;
    height: 100svh !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso .proceso-lamina {
    max-height: 285px !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso .proceso-titulo {
    font-size: clamp(24px, 6.7vw, 28px) !important;
    line-height: 1.02 !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso .proceso-paso[data-estado="activo"] .proceso-titulo {
    font-size: clamp(22px, 6vw, 26px) !important;
    line-height: 1.02 !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso .proceso-resumen-movil {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso .proceso-paso:not([data-estado="activo"]) .proceso-detalle {
    display: none !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso .proceso-paso[data-estado="activo"] .proceso-detalle {
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 4 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    align-content: start !important;
    gap: 4px !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso .proceso-resumen-movil {
    grid-row: 1 !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso .proceso-puntos {
    display: none !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso[data-paso="4"] .proceso-puntos {
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-content: start !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso[data-paso="4"] .proceso-puntos > li {
    font-size: 13.5px !important;
    line-height: 1.22 !important;
    padding-left: 15px !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso[data-paso="4"] .proceso-puntos > li::before {
    width: 5px;
    height: 5px;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso[data-paso="4"] .proceso-bajada {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: start !important;
    margin: 0 0 4px !important;
    font-size: 14px !important;
    line-height: 1.24 !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso[data-paso="4"] .proceso-resumen-movil {
    display: none !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso[data-paso="4"] .proceso-puntos {
    margin-top: 0 !important;
  }

  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso[data-paso="4"] .proceso-cta {
    grid-column: 1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 899px) and (max-height: 680px) {
  html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso .proceso-cuerpo {
    grid-template-rows: clamp(190px, 29svh, 220px) auto calc(4 * var(--p-renglon) + var(--p-subida)) minmax(0, 1fr) auto !important;
  }
}

/* Dudas queda en una etiqueta corta sobre el asistente. Mientras la escena está
   fijada, el conjunto flotante se oculta para que no cubra el copy ni su CTA. */
html body.ensutex-home #chatbot-cta.chatbot-cta-fixed {
  top: auto !important;
  right: 0 !important;
  bottom: calc(100% + .35rem) !important;
  transform: none !important;
  max-width: none !important;
  padding: .34rem .52rem !important;
  font-size: .58rem !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
}

html body.ensutex-home #chatbot-cta.chatbot-cta-fixed::after {
  right: 1rem !important;
  top: auto !important;
  bottom: -.28rem !important;
  width: .56rem !important;
  height: .56rem !important;
  transform: rotate(45deg) !important;
}

html body.ensutex-home #chatbot-cta .chatbot-cta-full { display: none !important; }
html body.ensutex-home #chatbot-cta .chatbot-cta-short { display: inline !important; }
html body.ensutex-home.ens-process-inview .floating-widgets { display: none !important; }

/* El pago conserva todas las reglas y queda escaneable en las condiciones. */
html body.ensutex-home #proceso .proceso-pago-puntos,
html body.ensutex-home #proceso-condiciones .proceso-condiciones__pago {
  display: grid;
  gap: 4px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

html body.ensutex-home #proceso .proceso-pago-puntos > li,
html body.ensutex-home #proceso-condiciones .proceso-condiciones__pago > li {
  position: relative;
  margin: 0;
  padding-left: 17px;
  color: inherit;
}

html body.ensutex-home #proceso .proceso-pago-puntos > li::before,
html body.ensutex-home #proceso-condiciones .proceso-condiciones__pago > li::before {
  content: '–';
  position: absolute;
  left: 2px;
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #b4000b;
  font-weight: 800;
}

html body.ensutex-home #proceso-condiciones .proceso-condiciones__pago {
  font: inherit;
  line-height: 1.38;
}

@media (prefers-reduced-motion: reduce) {
  html body.ensutex-home #proceso .proceso-lamina,
  html body.ensutex-home #proceso .proceso-lamina img,
  html body.ensutex-home #proceso .proceso-titulo,
  html body.ensutex-home #proceso .proceso-puntos,
  html body.ensutex-home #proceso .proceso-cta {
    transition: none !important;
  }
}


/* 15-nov · composición: el paso final muestra el resumen y deja los términos completos a demanda. */
html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso[data-paso="4"] .proceso-resumen-movil { display:none !important; }
html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso[data-paso="4"] details.proceso-puntos-detalle { grid-column:1; grid-row:2; align-self:start; min-width:0; }
html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso[data-paso="4"] details.proceso-puntos-detalle > summary,
html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid article details > summary { display:flex; align-items:center; gap:10px; min-height:44px; padding:9px 12px; border:1px solid rgba(33,31,29,.16); border-radius:10px; background:#fff; color:#211f1d; cursor:pointer; font-weight:700; line-height:1.25; list-style:none; }
html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso[data-paso="4"] details.proceso-puntos-detalle > summary::-webkit-details-marker,
html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid article details > summary::-webkit-details-marker { display:none; }
html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso[data-paso="4"] details.proceso-puntos-detalle > summary::after,
html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid article details > summary::after { content:'+'; margin-left:auto; color:#b4000b; font-size:1.15rem; line-height:1; }
html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso[data-paso="4"] details.proceso-puntos-detalle[open] > summary::after,
html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid article details[open] > summary::after { content:'−'; }
html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso[data-paso="4"] details.proceso-puntos-detalle:not([open]) > .proceso-puntos,
html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid article details:not([open]) > :not(summary) { display:none !important; }
html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso[data-paso="4"] details.proceso-puntos-detalle[open] > .proceso-puntos { display:grid !important; gap:5px !important; max-height:min(40svh,260px); overflow:auto; overscroll-behavior:contain; margin:8px 0 0 !important; padding:0 8px 0 18px !important; }
html body.ensutex-home #proceso-condiciones { padding:clamp(1.5rem,3.5vh,2.75rem) 1rem; }
html body.ensutex-home #proceso-condiciones header { margin-bottom:1rem; }
html body.ensutex-home #proceso-condiciones header h2 { font-size:clamp(1.55rem,2.5vw,2.15rem); }
html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid { gap:.75rem; }
html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid article { display:flex; flex-direction:column; gap:.2rem; padding:1rem; }
html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid article h3 { margin:0; font-size:1rem; }
html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid article p { margin:0 0 .35rem; font-size:.9rem; line-height:1.4; }
html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid article details { margin-top:auto; }
html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid article details > summary { min-height:42px; padding:8px 10px; font-size:.88rem; }
html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid article details ul { display:grid; gap:6px; margin:10px 0 0; padding-left:1.1rem; color:#4c4945; font-size:.9rem; line-height:1.42; }
html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid article details ul.proceso-condiciones__pago { padding-left:0; }
@media (max-width:900px) {
 html body.ensutex-home #proceso-condiciones { padding-block:1.5rem; }
 html body.ensutex-home #proceso-condiciones header { margin-bottom:.85rem; }
 html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
 html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid { grid-template-columns:minmax(0,1fr); gap:.6rem; }
 html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid article { padding:.85rem; }
 html body.ensutex-home #proceso-condiciones .proceso-condiciones__grid article p { font-size:.88rem; }
 html.proceso-js body.ensutex-home:not(.mf):not(.rx) #proceso.proceso[data-paso="4"] details.proceso-puntos-detalle[open] > .proceso-puntos { max-height:34svh; }
}
