/* /assets/css/comprar.css */
.pagina-compra { min-height: 100vh; padding-bottom: 90px; }
.compra-contenedor { margin: 0 auto; max-width: 820px; padding: 22px 15px 55px; }
.compra-pasos { display: grid; grid-template-columns: repeat(4,1fr); list-style: none; margin: 6px 0 30px; padding: 0; }
.compra-pasos li { align-items: center; color: #8a8490; display: flex; flex-direction: column; gap: 6px; position: relative; }
.compra-pasos li:not(:last-child)::after { background: #e5e1e8; content: ''; height: 1px; left: calc(50% + 22px); position: absolute; top: 15px; width: calc(100% - 44px); }
.compra-pasos span { align-items: center; background: #f4f2f6; border: 1px solid #ddd8e1; border-radius: 50%; display: flex; font-size: 11px; font-weight: 800; height: 31px; justify-content: center; width: 31px; }
.compra-pasos small { font-size: 8px; }
.compra-pasos .activo { color: var(--violeta); }
.compra-pasos .activo span { background: var(--violeta); border-color: var(--violeta); color: #fff; }
.compra-seccion { margin-bottom: 27px; }
.compra-seccion h1, .compra-seccion h2, .resumen-compra h2 { font-size: 20px; letter-spacing: -.55px; margin: 0 0 13px; }
.explicacion-sorteos { color: #6f6974; font-size: 11px; line-height: 1.5; margin: -5px 0 13px; }
.curso-elegido { align-items: center; border: 1px solid #e9e5ec; border-radius: 14px; display: grid; gap: 11px; grid-template-columns: 24px 61px minmax(0,1fr); padding: 11px; }
.curso-elegido-check { align-items: center; background: #23aa83; border-radius: 50%; color: #fff; display: flex; font-size: 11px; height: 21px; justify-content: center; width: 21px; }
.curso-elegido-imagen { align-items: center; aspect-ratio: 1; background: #f7f5f8; border-radius: 11px; display: flex; justify-content: center; overflow: hidden; padding: 5px; }
.curso-elegido-imagen img { height: 100%; object-fit: contain; width: 100%; }
.curso-elegido-imagen span { color: #8a8490; font-size: 8px; font-weight: 800; }
.curso-elegido-texto { min-width: 0; }
.curso-elegido-texto strong, .curso-elegido-texto p, .curso-elegido-texto small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.curso-elegido-texto strong { font-size: 12px; }
.curso-elegido-texto p { color: #69636e; font-size: 10px; margin: 3px 0 7px; }
.curso-elegido-texto small { color: #77717d; font-size: 7px; }
.curso-elegido-precio { font-size: 16px; grid-column: 3; }
.sorteos-compra { display: grid; gap: 12px; }
.sorteo-opcion { background: #fff; border: 1px solid #e7e3ea; border-radius: 15px; display: grid; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sorteo-opcion.activa { border-color: var(--violeta); box-shadow: 0 0 0 1px var(--violeta); }
.sorteo-opcion.chance-incluida { box-shadow: 0 0 0 1px var(--violeta), 0 8px 22px rgba(99,41,220,.1); }
.sorteo-seleccionar { align-items: center; background: #fff; border: 0; cursor: pointer; display: grid; gap: 12px; grid-template-columns: 82px minmax(0,1fr); min-height: 104px; padding: 10px; text-align: left; width: 100%; }
.sorteo-seleccionar:hover { background: #fdfcff; }
.sorteo-opcion-imagen { align-items: center; align-self: stretch; background: #f7f6f8; border: 1px solid #f0eef2; border-radius: 10px; display: flex; justify-content: center; overflow: hidden; padding: 5px; }
.sorteo-opcion-imagen img { height: 100%; object-fit: contain; width: 100%; }
.sorteo-opcion-info { min-width: 0; }
.sorteo-opcion-info > small { color: var(--violeta); display: block; font-size: 7px; font-weight: 850; letter-spacing: .45px; margin-bottom: 5px; }
.sorteo-opcion-info > strong { display: block; font-size: 13px; line-height: 1.2; }
.sorteo-fecha { display: block; margin-top: 7px; min-height: 13px; }
.sorteo-fecha-normal { color: #756f79; display: block; font-size: 9px; }
.sorteo-fecha-urgente { color: #e62222; display: block; font-size: 10px; line-height: 1.25; }
.sorteo-fecha-normal[hidden], .sorteo-fecha-urgente[hidden] { display: none; }
.sorteo-cantidad { align-items: stretch; background: #f8f6fb; border-top: 1px solid #ece8ef; display: grid; grid-template-columns: 52px minmax(0,1fr) 52px; min-height: 60px; }
.sorteo-cantidad button { background: transparent; border: 0; color: var(--violeta); cursor: pointer; font-size: 24px; font-weight: 600; }
.sorteo-cantidad button:active { background: #eee7ff; }
.sorteo-cantidad > span { align-items: center; display: flex; flex-direction: column; justify-content: center; min-width: 0; text-align: center; }
.sorteo-cantidad strong { color: #27222b; font-size: 19px; line-height: 1; }
.sorteo-cantidad small { color: #77717d; font-size: 8px; font-weight: 700; margin-top: 5px; }
.sorteo-opcion.chance-incluida .sorteo-cantidad small { color: var(--violeta); }
.error-eleccion { color: #d3344d; font-size: 10px; font-weight: 700; margin: 9px 0 0; }
.sin-sorteos { background: #fff4f5; border-radius: 11px; color: #9f2940; font-size: 11px; padding: 14px; }
.resumen-compra { border: 1px solid #e8e4eb; border-radius: 14px; margin-top: 3px; padding: 14px; }
.resumen-distribucion { background: #f7f4fd; border-radius: 10px; margin-bottom: 15px; padding: 10px 11px; }
.resumen-distribucion p { color: #77717d; font-size: 9px; margin: 0; text-align: center; }
.resumen-distribucion > div { align-items: flex-start; border-bottom: 1px solid #e8e1f4; display: flex; flex-direction: column; gap: 3px; padding: 8px 0; }
.resumen-distribucion > div:first-child { padding-top: 0; }
.resumen-distribucion > div:last-child { border-bottom: 0; padding-bottom: 0; }
.resumen-distribucion span { color: #312b37; font-size: 10px; font-weight: 750; }
.resumen-distribucion strong { color: var(--violeta); font-size: 9px; }
.resumen-compra > div:not(.resumen-distribucion) { align-items: center; display: flex; font-size: 10px; justify-content: space-between; margin: 0 0 10px; }
.resumen-compra > div:not(.resumen-distribucion) > span { color: #68626d; }
.resumen-compra > div:not(.resumen-distribucion) > strong { color: #29242d; }
.resumen-compra .resumen-total { border-top: 1px solid #ece8ef; font-size: 17px; margin: 13px 0 0; padding-top: 13px; }
.resumen-compra .resumen-total > span { color: #29242d; font-weight: 750; }
.resumen-compra .resumen-total > strong { color: var(--violeta); font-size: 24px; }
.aviso-chances { background: #f2ecff; border-radius: 10px; color: #6540ac; font-size: 9px; margin: 12px 0; padding: 11px; text-align: center; }
.boton-continuar { align-items: center; background: linear-gradient(135deg,var(--violeta),#7432e5); border: 0; border-radius: 12px; color: #fff; cursor: pointer; display: flex; font-size: 14px; font-weight: 800; height: 52px; justify-content: space-between; padding: 0 18px; width: 100%; }
.boton-continuar:disabled { cursor: not-allowed; opacity: .45; }
.boton-continuar span { font-size: 20px; }
.paso-siguiente { background: #edf9f4; border: 1px solid #bee8d8; border-radius: 10px; color: #28745c; font-size: 10px; line-height: 1.45; margin: 10px 0 0; padding: 11px; text-align: center; }
.compra-estado { margin: 80px auto; max-width: 500px; text-align: center; }
.compra-estado p { color: #716b76; }
.compra-estado a { color: var(--violeta); font-weight: 800; }

@media (min-width: 700px) {
    .pagina-compra { padding-bottom: 30px; }
    .compra-contenedor { padding-top: 32px; }
    .compra-pasos { margin-bottom: 42px; }
    .compra-pasos small { font-size: 10px; }
    .compra-seccion { margin-bottom: 34px; }
    .compra-seccion h1, .compra-seccion h2, .resumen-compra h2 { font-size: 24px; }
    .explicacion-sorteos { font-size: 12px; }
    .curso-elegido { grid-template-columns: 27px 86px minmax(0,1fr) auto; padding: 14px; }
    .curso-elegido-precio { font-size: 18px; grid-column: 4; }
    .curso-elegido-texto strong { font-size: 14px; }
    .sorteos-compra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sorteo-seleccionar { grid-template-columns: 105px minmax(0,1fr); min-height: 126px; padding: 12px; }
    .sorteo-opcion-info > strong { font-size: 16px; }
    .sorteo-fecha-normal { font-size: 10px; }
    .sorteo-cantidad { grid-template-columns: 58px minmax(0,1fr) 58px; }
    .resumen-compra { padding: 18px; }
    .resumen-distribucion > div { align-items: center; flex-direction: row; justify-content: space-between; }
}
