/* ============================================================
   Astra Telecom — Mi cuenta
   ============================================================ */
.cta-wrap { padding-block: 1.6rem 4rem; min-height: 60vh; }
#cta-root { color: #1c1b19; }
#cta-root h1, #cta-root h2, #cta-root h3 { color: #15202e; }
#cta-root label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 600; color: #2d3748; }
#cta-root label small { font-weight: 400; color: #8a94a3; }
#cta-root input:not([type=checkbox]), #cta-root select { font: inherit; font-weight: 400; font-size: .92rem; padding: .66rem .8rem; border: 1.5px solid #d8dee6; border-radius: 10px; background: #fff; color: #15202e; width: 100%; box-sizing: border-box; }
#cta-root input:disabled { background: #f3f5f8; color: #7b8493; }
#cta-root input:focus, #cta-root select:focus { outline: 0; border-color: #1f5fae; box-shadow: 0 0 0 4px rgba(31,95,174,.12); }

/* ── Botones ── */
.cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .72rem 1.5rem; border: 0; border-radius: 999px; background: #1f5fae; color: #fff !important; font: inherit; font-size: .92rem; font-weight: 650; cursor: pointer; text-decoration: none; }
.cta-btn:hover { background: #174a8a; } .cta-btn:disabled { opacity: .6; cursor: wait; }
.cta-btn--sm { padding: .5rem 1.1rem; font-size: .84rem; }
.cta-btn--sec { background: #fff; color: #1f5fae !important; border: 1.5px solid #cdd8e6; } .cta-btn--sec:hover { background: #eef4fc; }
.cta-link { border: 0; background: none; color: #1f5fae; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: .3rem 0; text-align: left; }
.cta-msg { margin: 0; padding: .6rem .8rem; border-radius: 10px; font-size: .86rem; font-weight: 600; } .cta-msg[hidden] { display: none; }
.cta-msg.err { background: #fde8e6; color: #b3261e; } .cta-msg.ok { background: #e5f5ec; color: #12804a; }
.cta-ayuda { margin: 0; color: #6f6a62; font-size: .88rem; line-height: 1.45; } .cta-nota { margin: 0; font-size: .75rem; color: #98a1ae; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; } .cta-full { grid-column: 1 / -1; }
.cta-pass { position: relative; display: block; } .cta-pass input { padding-right: 4.2rem !important; }
.cta-ver { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #1f5fae; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; padding: .3rem .4rem; }

/* ── Entrar / crear cuenta ── */
.cta-auth { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid #e6e9ee; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 40px rgba(17,22,29,.07); }
.cta-auth--solo { grid-template-columns: minmax(0, 480px); justify-content: center; }
.cta-auth__lado { background: linear-gradient(150deg, #11161d 0%, #1f5fae 130%); color: #fff; padding: 2.6rem 2.2rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.cta-auth__lado h1 { color: #fff; font-size: 1.7rem; margin: 0; letter-spacing: -.02em; } .cta-auth__lado p { margin: 0; opacity: .85; line-height: 1.5; }
.cta-auth__lado ul { margin: .4rem 0 0; padding: 0; list-style: none; display: grid; gap: .6rem; } .cta-auth__lado li { padding-left: 1.7rem; position: relative; font-size: .92rem; }
.cta-auth__lado li::before { content: "✓"; position: absolute; left: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: .72rem; }
.cta-auth__form { padding: 2rem 2.2rem; display: flex; flex-direction: column; gap: 1rem; } .cta-auth__form form { display: flex; flex-direction: column; gap: .85rem; } .cta-auth__form form[hidden] { display: none; }
.cta-auth__form h2 { margin: 0; font-size: 1.3rem; }
.cta-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f4f8; border-radius: 999px; padding: 4px; } .cta-tabs[hidden] { display: none; }
.cta-tabs button { border: 0; background: transparent; padding: .6rem; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 650; color: #5b6573; cursor: pointer; }
.cta-tabs button.on { background: #fff; color: #15202e; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* ── Cuenta ── */
.cta-app { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.cta-menu { background: #fff; border: 1px solid #e6e9ee; border-radius: 18px; padding: 1rem; position: sticky; top: 5rem; }
.cta-perfil { display: flex; align-items: center; gap: .7rem; padding: .3rem .3rem 1rem; border-bottom: 1px solid #eef0f3; margin-bottom: .6rem; }
.cta-perfil b { display: block; font-size: .92rem; } .cta-perfil small { display: block; color: #8a94a3; font-size: .76rem; word-break: break-all; }
.cta-av { width: 42px; height: 42px; border-radius: 50%; background: #1f5fae; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.cta-menu nav { display: flex; flex-direction: column; gap: 2px; }
.cta-menu nav button { text-align: left; border: 0; background: transparent; padding: .65rem .8rem; border-radius: 10px; font: inherit; font-size: .9rem; color: #2d3748; cursor: pointer; }
.cta-menu nav button:hover { background: #eef4fc; } .cta-menu nav button.on { background: #1f5fae; color: #fff; font-weight: 650; }
.cta-menu nav .cta-salir { margin-top: .6rem; border-top: 1px solid #eef0f3; border-radius: 0 0 10px 10px; color: #b3261e; }
.cta-panel { background: #fff; border: 1px solid #e6e9ee; border-radius: 18px; padding: 1.5rem; min-width: 0; }
.cta-panel h2 { margin: 0 0 1rem; font-size: 1.3rem; } .cta-panel h2 small { font-weight: 500; color: #8a94a3; font-size: .9rem; } .cta-panel h3 { margin: 1.4rem 0 .7rem; font-size: 1rem; }
.cta-aviso { background: #fdf1e1; color: #8a4b06; border: 1px solid #f0cf94; padding: .7rem .9rem; border-radius: 12px; font-size: .86rem; margin-bottom: 1rem; display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.cta-aviso button { border: 0; background: #8a4b06; color: #fff; border-radius: 999px; padding: .35rem .9rem; font: inherit; font-size: .8rem; font-weight: 650; cursor: pointer; }
.cta-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1rem; }
.cta-kpis button { border: 1px solid #e6e9ee; background: #f8fafc; border-radius: 14px; padding: 1rem; text-align: left; cursor: pointer; font: inherit; }
.cta-kpis button:hover { border-color: #1f5fae; } .cta-kpis b { display: block; font-size: 1.7rem; color: #15202e; } .cta-kpis span { font-size: .78rem; color: #6f6a62; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.cta-vacio { text-align: center; padding: 2.2rem 1rem; background: #f8fafc; border: 1px dashed #d3dae3; border-radius: 14px; color: #6f6a62; line-height: 1.7; } .cta-vacio .cta-btn { margin-top: .8rem; }

/* ── Pedidos ── */
.cta-pedido { border: 1px solid #e6e9ee; border-radius: 16px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.cta-pedido header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; } .cta-pedido header b { display: block; } .cta-pedido header small { color: #8a94a3; font-size: .8rem; }
.cta-pedido ul { list-style: none; margin: 0 0 .7rem; padding: 0; } .cta-pedido li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid #f0f2f5; font-size: .88rem; }
.cta-pedido li small { display: block; color: #8a94a3; font-size: .76rem; max-width: 46ch; } .cta-pedido li em { font-style: normal; font-weight: 600; white-space: nowrap; }
.cta-tot { display: flex; justify-content: space-between; font-size: .88rem; padding: .2rem 0; color: #4a5565; } .cta-tot--g { font-size: 1rem; color: #15202e; border-top: 1px solid #eef0f3; margin-top: .3rem; padding-top: .5rem; font-weight: 700; }
.cta-ent { font-size: .84rem; color: #4a5565; margin: .6rem 0 0; } .cta-pedido footer { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: .9rem; }
.cta-chip { display: inline-block; border-radius: 999px; padding: .25rem .75rem; font-size: .76rem; font-weight: 700; }
.cta-chip.azul { background: #e8f0fb; color: #174a8a; } .cta-chip.verde { background: #e5f5ec; color: #12804a; } .cta-chip.ambar { background: #fdf1e1; color: #a35a06; } .cta-chip.gris { background: #eceae5; color: #6f6a62; }

/* ── Cotizaciones / guardados ── */
.cta-fila { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: .9rem 0; border-top: 1px solid #f0f2f5; } .cta-fila:first-child { border-top: 0; }
.cta-fila small { display: block; color: #8a94a3; font-size: .78rem; }
.cta-guardados { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem; }
.cta-prod { border: 1px solid #e6e9ee; border-radius: 14px; padding: .8rem; display: flex; flex-direction: column; gap: .3rem; }
.cta-prod img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; } .cta-prod small { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #8a94a3; font-weight: 700; }
.cta-prod .n { font-size: .86rem; font-weight: 600; color: #15202e; text-decoration: none; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.cta-prod b { font-size: 1.1rem; } .cta-prod em { font-style: normal; font-weight: 400; font-size: .72rem; color: #98a1ae; } .cta-acc { display: flex; gap: .5rem; margin-top: .4rem; flex-wrap: wrap; }
.cta-det { margin: 1rem 0; border: 1px solid #e6e9ee; border-radius: 12px; padding: .7rem 1rem; } .cta-det summary { cursor: pointer; font-weight: 650; font-size: .9rem; } .cta-det .cta-grid { margin-top: .8rem; }
#f-datos { display: flex; flex-direction: column; gap: .5rem; } #f-datos .cta-btn { align-self: flex-start; margin-top: .4rem; }
.cta-check { flex-direction: row !important; align-items: center; gap: .5rem !important; font-weight: 500 !important; margin-top: .7rem; } .cta-check input { width: auto !important; }

/* ── Ventana y aviso ── */
.cta-modal { position: fixed; inset: 0; z-index: 200; background: rgba(10,14,20,.55); display: grid; place-items: center; padding: 1rem; overflow-y: auto; }
.cta-modal__card { position: relative; width: min(560px, 100%); background: #fff; border-radius: 18px; padding: 1.6rem 1.5rem 1.3rem; box-shadow: 0 24px 70px rgba(0,0,0,.3); } .cta-modal__card h2 { margin: 0 0 .4rem; }
.cta-modal__card form { display: flex; flex-direction: column; gap: .5rem; margin-top: .8rem; } .cta-modal .cta-acc { justify-content: flex-end; margin-top: .8rem; }
.cta-x { position: absolute; right: .7rem; top: .6rem; width: 36px; height: 36px; border: 0; background: transparent; font-size: 1.7rem; line-height: 1; color: #6f6a62; cursor: pointer; border-radius: 50%; } .cta-x:hover { background: #f0f2f5; }
.cta-toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 140%); background: #15202e; color: #fff; padding: .75rem 1.2rem; border-radius: 999px; font-size: .88rem; font-weight: 600; z-index: 300; transition: transform .25s ease; max-width: 92vw; text-align: center; }
.cta-toast.on { transform: translate(-50%, 0); } .cta-toast[data-t=err] { background: #b3261e; }

@media (max-width: 900px) {
  .cta-auth { grid-template-columns: 1fr; } .cta-auth__lado { padding: 1.6rem 1.4rem; } .cta-auth__form { padding: 1.4rem; }
  .cta-app { grid-template-columns: 1fr; } .cta-menu { position: static; } .cta-menu nav { flex-direction: row; overflow-x: auto; } .cta-menu nav button { white-space: nowrap; } .cta-menu nav .cta-salir { margin: 0; border: 0; }
}
@media (max-width: 560px) { .cta-grid { grid-template-columns: 1fr; } .cta-kpis { grid-template-columns: 1fr; } .cta-fila { grid-template-columns: 1fr auto; } .cta-fila .cta-btn { grid-column: 1 / -1; } .cta-panel { padding: 1rem; } }

#cta-root .cta-auth__lado h1 { color: #fff; }
