/* Mi HSC — portal de clientes de HSC TELECOM */
:root {
  --rojo: #d0261b;
  --rojo-osc: #9e1a12;
  --naranja: #f29a12;
  --marron: #3d2928;
  --texto: #2a1d1c;
  --suave: #6f5e5b;
  --linea: #eee3de;
  --fondo: #f6f1ee;
  --tarjeta: #ffffff;
  --verde: #16a34a;
  --ambar: #d97706;
  --wa: #1fa855;
  --radio: 22px;
  --sombra: 0 10px 30px rgba(61, 41, 40, .08), 0 2px 6px rgba(61, 41, 40, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font: 16px/1.55 "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--texto); background: var(--fondo);
}
img { display: block; max-width: 100%; }
a { color: var(--rojo); }
h1, h2, h3 { margin: 0; color: var(--marron); line-height: 1.2; }
[hidden] { display: none !important; }
.ancho { width: min(1100px, 100% - 32px); margin-inline: auto; }
button { font: inherit; cursor: pointer; }

/* ===== Barra ===== */
.barra { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--linea); }
.barra .ancho { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marca img { height: 36px; width: auto; }
.marca span { font-weight: 700; color: var(--rojo); font-size: 15px; padding-left: 10px; border-left: 2px solid var(--linea); }
.barra-acc { display: flex; gap: 8px; align-items: center; }
.chip-barra { border: 1px solid var(--linea); background: #fff; color: var(--marron); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip-barra:hover { border-color: var(--rojo); color: var(--rojo); }
@media (max-width: 560px) { #lnkWeb { display: none; } .marca img { height: 30px; } }

/* ===== Ingreso ===== */
.ingreso { position: relative; overflow: hidden; min-height: calc(100vh - 62px); display: flex; align-items: center; padding: 48px 0 64px;
  background: radial-gradient(1200px 600px at 85% -10%, #ff5a3c 0%, transparent 60%), linear-gradient(135deg, #b71c12 0%, var(--rojo) 45%, #e8551b 100%); color: #fff; }
.ingreso-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .ingreso-grid { grid-template-columns: 1fr; gap: 28px; } .ingreso { padding-top: 28px; } }
.pildora { display: inline-block; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.ingreso h1 { color: #fff; font-size: clamp(32px, 5.4vw, 54px); letter-spacing: -.02em; margin: 16px 0 14px; }
.ingreso h1 span { color: #ffd9a0; }
.ingreso-texto p { font-size: 17px; opacity: .92; max-width: 520px; margin: 0 0 22px; }
.ventajas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; }
.ventajas li { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 10px 12px; font-size: 14px; font-weight: 500; }
.ventajas b { margin-right: 6px; }
@media (max-width: 860px) { .ventajas { display: none; } .ingreso-texto p { font-size: 15px; margin-bottom: 0; } }

/* Fibras animadas de fondo */
.fibras i { position: absolute; height: 2px; width: 60%; left: -60%; background: linear-gradient(90deg, transparent, rgba(255, 230, 190, .75), transparent); border-radius: 2px; animation: fibra 7s linear infinite; }
.fibras i:nth-child(1) { top: 18%; animation-delay: 0s; }
.fibras i:nth-child(2) { top: 42%; animation-delay: 2.2s; animation-duration: 9s; }
.fibras i:nth-child(3) { top: 66%; animation-delay: 4.1s; }
.fibras i:nth-child(4) { top: 82%; animation-delay: 1.3s; animation-duration: 11s; }
.fibras i:nth-child(5) { top: 30%; animation-delay: 5.5s; animation-duration: 8s; }
@keyframes fibra { to { left: 110%; } }
@media (prefers-reduced-motion: reduce) { .fibras { display: none; } }

.tarjeta-ingreso { background: #fff; color: var(--texto); border-radius: 28px; padding: 30px 26px; box-shadow: 0 30px 60px rgba(60, 10, 5, .35); animation: subir .5s ease both; }
.tarjeta-ingreso h2 { font-size: 24px; margin-bottom: 4px; }
.suave { color: var(--suave); margin: 0 0 18px; font-size: 15px; }
.campo-grande { display: block; margin-bottom: 14px; }
.campo-grande span { display: block; font-size: 13px; font-weight: 600; color: var(--suave); margin-bottom: 6px; }
.campo-grande input { width: 100%; font: 600 26px/1.2 "Poppins", sans-serif; letter-spacing: .12em; padding: 16px 18px; border: 2px solid var(--linea); border-radius: 16px; outline: none; color: var(--marron); background: #fffdfc; transition: border-color .2s, box-shadow .2s; }
.campo-grande input:focus { border-color: var(--rojo); box-shadow: 0 0 0 4px rgba(208, 38, 27, .12); }
.boton { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 15px 18px; background: var(--rojo); color: #fff; font-weight: 700; font-size: 17px; transition: transform .15s, background .2s; text-decoration: none; }
.boton:hover { background: var(--rojo-osc); }
.boton:active { transform: scale(.98); }
.boton:disabled { opacity: .6; cursor: wait; }
.boton-wa { background: var(--wa); }
.boton-wa:hover { background: #178a45; }
.boton-claro { background: #fff; color: var(--rojo); border: 2px solid var(--rojo); }
.boton-claro:hover { background: #fff4f2; }
.ayuda { font-size: 14px; color: var(--suave); text-align: center; margin: 16px 0 0; }
.volver, .enlace { border: 0; background: none; color: var(--rojo); font-weight: 600; padding: 0; margin-bottom: 12px; font-size: 14px; }
.enlace { display: block; margin: 14px auto 0; }
.error { background: #fdecea; color: #a01d14; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 0 0 12px; }
.opciones { display: grid; gap: 10px; margin-bottom: 16px; }
.opcion { display: flex; align-items: center; gap: 12px; border: 2px solid var(--linea); border-radius: 16px; padding: 14px 16px; font-weight: 600; font-size: 18px; letter-spacing: .04em; background: #fff; text-align: left; }
.opcion::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbb9b4; flex: none; }
.opcion.activa { border-color: var(--wa); background: #f0fbf4; }
.opcion.activa::before { border: 6px solid var(--wa); }
.cajas { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.cajas input { width: 48px; height: 60px; text-align: center; font: 700 26px "Poppins", sans-serif; border: 2px solid var(--linea); border-radius: 14px; outline: none; color: var(--marron); }
.cajas input:focus { border-color: var(--rojo); box-shadow: 0 0 0 4px rgba(208, 38, 27, .12); }
@media (max-width: 380px) { .cajas input { width: 40px; height: 54px; } }

/* ===== Panel ===== */
.cabecera-panel { background: linear-gradient(135deg, #b71c12 0%, var(--rojo) 50%, #e8551b 100%); color: #fff; padding: 28px 0 86px; }
.cabecera-panel h1 { color: #fff; font-size: clamp(28px, 5vw, 40px); margin: 2px 0; }
.suave-claro { margin: 0; opacity: .85; font-size: 14px; }
.pestanas { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.pestanas button { border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.pestanas button.activa { background: #fff; color: var(--rojo); }
.tablero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: -64px; padding-bottom: 20px; }
.t { grid-column: span 6; background: var(--tarjeta); border-radius: var(--radio); box-shadow: var(--sombra); padding: 22px; animation: subir .45s ease both; position: relative; overflow: hidden; }
.t-ancho { grid-column: span 12; }
.t-4 { grid-column: span 4; }
.t-8 { grid-column: span 8; }
@media (max-width: 860px) { .t, .t-4, .t-8 { grid-column: span 12; } }
.t:nth-child(2) { animation-delay: .06s; } .t:nth-child(3) { animation-delay: .12s; } .t:nth-child(4) { animation-delay: .18s; } .t:nth-child(5) { animation-delay: .24s; }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.t-tit { font-size: 13px; font-weight: 600; color: var(--suave); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.t h3 { font-size: 22px; }
.t p { margin: 6px 0 0; color: var(--suave); font-size: 15px; }

/* Estado */
.estado { display: flex; gap: 16px; align-items: center; }
.punto { width: 54px; height: 54px; border-radius: 50%; flex: none; position: relative; display: grid; place-items: center; font-size: 24px; }
.punto::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: latido 2s ease-out infinite; }
.e-ok .punto { background: #dcfce7; } .e-ok .punto::after { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); }
.e-luz .punto, .e-apagado .punto { background: #fef3c7; } .e-luz .punto::after, .e-apagado .punto::after { box-shadow: 0 0 0 0 rgba(217, 119, 6, .5); }
.e-corte .punto { background: #fee2e2; } .e-corte .punto::after { box-shadow: 0 0 0 0 rgba(208, 38, 27, .5); }
.e-desconocido .punto { background: #eee; } .e-desconocido .punto::after { animation: none; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 16px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }
.e-ok { color: var(--verde); } .e-luz, .e-apagado { color: var(--ambar); } .e-corte { color: var(--rojo); }
.e-ok h3 { color: var(--verde); } .e-luz h3, .e-apagado h3 { color: var(--ambar); } .e-corte h3 { color: var(--rojo); }
.desde { display: inline-block; margin-top: 10px; background: var(--fondo); color: var(--marron); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }

/* Medidor de señal */
.medidor { display: flex; flex-direction: column; align-items: center; }
.medidor svg { width: 100%; max-width: 260px; height: auto; overflow: visible; }
.medidor .arco-fondo { fill: none; stroke: #f0e7e3; stroke-width: 18; stroke-linecap: round; }
.medidor .arco { fill: none; stroke-width: 18; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.medidor .aguja { transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); transform-origin: 130px 130px; }
.medidor-txt { text-align: center; margin-top: 6px; }
.medidor-txt b { display: block; font-size: 28px; color: var(--marron); line-height: 1.1; }
.medidor-txt small { color: var(--suave); font-size: 13px; }
.barras { display: flex; gap: 4px; align-items: flex-end; height: 22px; }
.barras i { width: 6px; border-radius: 2px; background: #e6dad5; }
.barras i:nth-child(1) { height: 25%; } .barras i:nth-child(2) { height: 50%; } .barras i:nth-child(3) { height: 75%; } .barras i:nth-child(4) { height: 100%; }
.barras i.on { background: currentColor; }
.nota-senal { font-size: 14px; text-align: center; margin-top: 12px !important; }

/* Plan */
.plan-vel { font-size: 44px; font-weight: 800; color: var(--rojo); line-height: 1; letter-spacing: -.02em; }
.plan-vel small { font-size: 18px; font-weight: 700; color: var(--marron); margin-left: 4px; }
.dato { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: var(--marron); }
.dato i { font-style: normal; width: 30px; height: 30px; border-radius: 10px; background: var(--fondo); display: grid; place-items: center; flex: none; }
.dato span { padding-top: 4px; }

/* Pagos */
.pago-monto { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.pago-ok { color: var(--verde); } .pago-debe { color: var(--rojo); }
.etiqueta-estado { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.etq-ok { background: #dcfce7; color: #166534; } .etq-debe { background: #fee2e2; color: #991b1b; } .etq-gris { background: var(--fondo); color: var(--suave); }
.botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
@media (max-width: 480px) { .botones { grid-template-columns: 1fr; } }
.botones .boton { font-size: 15px; padding: 13px 14px; }
.nota { font-size: 13px !important; margin-top: 12px !important; }

/* Avería */
.averia { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.averia .boton { width: auto; padding-inline: 26px; }
.averia-abierta { border-left: 5px solid var(--naranja); }

/* Hoja (diálogo) */
.hoja { border: 0; padding: 0; border-radius: 26px; width: min(520px, 100% - 24px); max-height: calc(100vh - 24px); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.hoja::backdrop { background: rgba(30, 15, 12, .5); backdrop-filter: blur(3px); }
.hoja form { padding: 22px; }
.hoja-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cerrar { border: 0; background: var(--fondo); width: 36px; height: 36px; border-radius: 50%; font-size: 16px; }
.consejo { background: #fff7e8; border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; color: #6b4a12; }
.etiqueta { font-size: 14px; font-weight: 600; margin: 0 0 8px; color: var(--marron); }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.chips button { border: 2px solid var(--linea); background: #fff; border-radius: 14px; padding: 11px 10px; font-size: 14px; font-weight: 600; color: var(--marron); text-align: left; }
.chips button.activa { border-color: var(--rojo); background: #fff4f2; color: var(--rojo); }
.campo { display: block; margin-bottom: 14px; }
.campo span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--marron); }
.campo em { font-style: normal; font-weight: 400; color: var(--suave); }
.campo input, .campo textarea { width: 100%; font: 16px "Poppins", sans-serif; padding: 12px 14px; border: 2px solid var(--linea); border-radius: 14px; outline: none; resize: vertical; }
.campo input:focus, .campo textarea:focus { border-color: var(--rojo); }

/* Cargando */
.cargando { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--suave); }
.giro { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #f0dcd7; border-top-color: var(--rojo); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.pie-datos { color: var(--suave); font-size: 13px; text-align: center; padding: 8px 0 40px; }
.listo { text-align: center; padding: 10px 0; }
.listo .icono { font-size: 54px; }
.aviso { position: fixed; left: 0; right: 0; margin-inline: auto; bottom: 24px; z-index: 50; background: var(--marron); color: #fff; padding: 14px 20px; border-radius: 16px; box-shadow: var(--sombra); font-weight: 600; font-size: 15px; width: min(460px, 100% - 32px); text-align: center; animation: subir .3s ease both; }
.marca .marca-icono { width: 40px; height: 40px; border-radius: 11px; }
@media (max-width: 560px) { .marca img:not(.marca-icono) { display: none; } }
.aviso-antena { margin-top: 14px; background: #fff7e8; border: 1px solid #f6d79b; border-radius: 16px; padding: 14px 16px; color: #6b4a12; }
.aviso-antena b { color: #8a5a00; }
.aviso-antena p { color: #6b4a12 !important; font-size: 14px !important; margin: 6px 0 12px !important; }
.aviso-antena .boton { font-size: 15px; padding: 12px 14px; }
.plan-precio { font-weight: 700; color: var(--marron) !important; font-size: 16px !important; margin-top: 4px !important; }
.turbo { background: linear-gradient(120deg, #2a1d1c 0%, #5a2a1f 55%, #b71c12 100%); color: #fff; }
.turbo .t-tit, .turbo p { color: rgba(255,255,255,.85) !important; }
.turbo h3 { color: #fff; font-size: 24px; }
.turbo h3 span { color: #ffcf3a; white-space: nowrap; }
.turbo .boton { background: #ffcf3a; color: #2a1d1c; }
.turbo .boton:hover { background: #ffd95e; }
.turbo::before { content: "⚡"; position: absolute; right: -10px; top: -24px; font-size: 140px; opacity: .08; transform: rotate(14deg); pointer-events: none; }

/* Mis pagos, mis meses y mi WiFi */
.lista-mov { list-style: none; margin: 0; padding: 0; }
.lista-mov li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eee; }
.lista-mov li:last-child { border-bottom: 0; }
.lista-mov small { display: block; color: var(--suave); font-size: 13px; }
.mini { border: 1px solid #ddd; background: #fff; border-radius: 10px; padding: 6px 10px; font-size: 14px; color: var(--rojo); text-decoration: none; white-space: nowrap; cursor: pointer; }
.etq-mes { font-size: 13px; font-weight: 700; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.etq-mes.ok { background: #e6f6ec; color: #1d7a3e; }
.etq-mes.debe { background: #fff1e0; color: #b05a00; }
.pagado-hasta { background: #e6f6ec; color: #1d7a3e; border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; }
.form-wifi { display: grid; gap: 10px; margin-top: 12px; }
.form-wifi label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.form-wifi input { font-size: 17px; padding: 12px; border: 1px solid #ddd; border-radius: 12px; }


/* Instalar Mi HSC como app */
.instalar-app { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: 10px 12px; max-width: 520px; margin: 0 auto; }
.instalar-app img { width: 40px; height: 40px; border-radius: 10px; }
.instalar-app div { flex: 1; line-height: 1.2; }
.instalar-app small { display: block; color: var(--suave); font-size: 12px; }
.instalar-app #btnInstalar { background: var(--rojo); color: #fff; border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 700; }
.instalar-app #btnInstalarCerrar { background: none; border: 0; font-size: 18px; color: #999; padding: 4px; }
/* 📱 ¿Quién está en mi WiFi? */
.lista-equipos{list-style:none;margin:8px 0 4px;padding:0;display:grid;gap:6px}
.lista-equipos li{display:flex;justify-content:space-between;gap:10px;background:rgba(0,0,0,.035);border-radius:10px;padding:8px 10px;font-size:15px}
.lista-equipos small{opacity:.7;white-space:nowrap}
.codigo-ref{letter-spacing:.06em;background:#fff1de;border:1.5px dashed #f29a12;border-radius:8px;padding:2px 8px}
