/* Páginas de acceso y de registro de Braine Chat: panel de presentación + formulario */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(400px, .8fr); background: #f3f6fc; }
.auth.hidden { display: none !important; }

/* ── Panel de presentación ── */
.auth-hero { position: relative; overflow: hidden; color: #fff; padding: 34px clamp(24px, 4vw, 64px) 40px; display: flex; flex-direction: column; gap: 26px;
  background: radial-gradient(900px 520px at 8% -8%, rgba(40, 104, 255, .55), transparent 62%), radial-gradient(760px 480px at 100% 100%, rgba(18, 82, 214, .5), transparent 60%), linear-gradient(160deg, #070e1f 0%, #0b1a3d 55%, #081230 100%); }
.auth-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 70%); pointer-events: none; }
.auth-hero > * { position: relative; }
.hero-brand { display: flex; align-items: center; gap: 13px; }
.hero-brand img { width: 54px; height: 54px; border-radius: 15px; background: #fff; box-shadow: 0 8px 26px rgba(10, 60, 180, .55), 0 0 0 1px rgba(255, 255, 255, .25); object-fit: cover; }
.hero-brand strong { font-size: 24px; letter-spacing: -.3px; }
.hero-brand span { display: block; font-size: 12.5px; color: #9db4e8; font-weight: 500; margin-top: 1px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 13px; border-radius: 99px; background: rgba(76, 134, 255, .16); border: 1px solid rgba(120, 170, 255, .35); color: #cfe0ff; font-size: 13px; font-weight: 600; }
.hero-badge svg.i { width: 15px; height: 15px; color: #8db6ff; }
.auth-hero h1 { margin: 0; font-size: clamp(28px, 3.1vw, 46px); line-height: 1.1; letter-spacing: -.8px; max-width: 760px; }
.auth-hero h1 em { font-style: normal; background: linear-gradient(90deg, #7db2ff, #4f8dff 45%, #9fd0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin: 0; color: #b8c8ea; font-size: 16.5px; line-height: 1.55; max-width: 640px; }

/* captura de la plataforma dentro de una ventana */
.showcase { display: grid; gap: 12px; max-width: 980px; }
.shot-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.shot-tabs button { width: auto; margin: 0; padding: 7px 15px; border-radius: 99px; font-size: 13.5px; font-weight: 600; background: rgba(255, 255, 255, .08); color: #c5d4f2; border: 1px solid rgba(255, 255, 255, .14); }
.shot-tabs button:hover:not(:disabled) { background: rgba(255, 255, 255, .15); filter: none; }
.shot-tabs button.active { background: #2f6bff; color: #fff; border-color: #2f6bff; box-shadow: 0 6px 20px rgba(47, 107, 255, .45); }
.frame { border-radius: 14px; overflow: hidden; background: #0c1630; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 34px 80px rgba(0, 0, 0, .5), 0 0 0 6px rgba(255, 255, 255, .04); }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: linear-gradient(180deg, #1a2748, #131f3b); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.frame-bar i:nth-child(2) { background: #febc2e; }
.frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar span { margin-left: 12px; flex: 0 1 280px; padding: 3px 12px; border-radius: 7px; background: rgba(255, 255, 255, .09); color: #9fb2da; font-size: 12px; }
.frame-screen { position: relative; aspect-ratio: 1100 / 690; background: #f4f6fb; }
.frame-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease; }
.frame-screen img.on { opacity: 1; }
.shot-caption { color: #a9bce4; font-size: 13.5px; min-height: 20px; }

/* beneficios */
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; max-width: 980px; }
.benefit { display: flex; gap: 13px; align-items: flex-start; }
.benefit .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, #2a63f2, #4a8bff); box-shadow: 0 8px 20px rgba(38, 100, 255, .38); }
.benefit .ico svg.i { width: 22px; height: 22px; color: #fff; margin: 0; }
.benefit h3 { margin: 0 0 3px; font-size: 15.5px; }
.benefit p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #aebcdc; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 980px; counter-reset: paso; }
.step { position: relative; padding: 16px 16px 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.step b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #2f6bff; font-size: 14px; margin-bottom: 8px; }
.step h3 { margin: 0 0 3px; font-size: 15px; }
.step p { margin: 0; font-size: 13px; color: #aebcdc; line-height: 1.45; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #8ea4d3; font-size: 12.8px; margin-top: auto; padding-top: 6px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg.i { width: 15px; height: 15px; color: #6fa0ff; }

/* ── Formulario ── */
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 32px 24px; background: linear-gradient(180deg, #f6f8fd, #eaf0fb); }
.auth-panel.top { align-items: flex-start; }
.auth-box { width: min(430px, 100%); }
.auth-box .card, .auth .card { border: 1px solid #e1e8f5; border-radius: 18px; padding: 26px 26px 22px; box-shadow: 0 20px 50px rgba(15, 40, 100, .12); }
.auth .logo { margin-bottom: 10px; }
.auth .logo img { width: 50px; height: 50px; border-radius: 14px; box-shadow: 0 6px 18px rgba(20, 60, 160, .22); }
.auth .logo strong { font-size: 22px; letter-spacing: -.3px; }
.auth h1 { letter-spacing: -.4px; }
.auth input:not([type=checkbox]) { border-radius: 10px; padding: 10px 12px; }
.auth input:focus { outline: 2px solid rgba(47, 107, 255, .35); border-color: #2f6bff; }
.auth button:not(.link):not(.shot-tabs button) { border-radius: 10px; padding: 11px 16px; font-size: 15px; box-shadow: 0 8px 20px rgba(31, 94, 255, .28); }
.auth .perks { list-style: none; padding: 0; display: grid; gap: 6px; }
.auth .perks li { position: relative; padding-left: 24px; }
.auth .perks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #e3f6ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a9d55' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.auth .signup { width: 100%; }
.auth-foot { text-align: center; color: #7b8aa8; font-size: 12.5px; margin-top: 16px; }

@media (max-width: 1040px) {
  .auth { grid-template-columns: 1fr; }
  .auth-panel { order: -1; padding: 22px 14px 8px; }
  .auth-hero { padding: 28px 20px 34px; }
  .benefits, .steps { grid-template-columns: 1fr; }
  .showcase { display: none; }
}
@media (max-width: 520px) {
  .auth .card { padding: 20px 16px 18px; }
  .hero-lead { font-size: 15px; }
}

/* el formulario queda centrado y fijo a la vista mientras se recorre el panel de presentación */
.auth-panel, .auth-panel.top { align-items: flex-start; }
.auth-box { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.auth form button:not(.link) { width: 100%; margin-top: 6px; }
@media (max-width: 1040px) { .auth-box { position: static; min-height: 0; padding: 0 0 12px; } }

/* ── Celulares: el servicio visto desde WhatsApp y desde la aplicación ── */
.phones { max-width: 1040px; display: grid; gap: 10px; }
.phones h2 { margin: 6px 0 0; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.4px; }
.phones > p { margin: 0 0 6px; color: #b8c8ea; font-size: 14.5px; max-width: 640px; }
.phone-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding-bottom: 24px; }
.phone { margin: 0; }
.phone:nth-child(even) { transform: translateY(20px); }
.phone-frame { position: relative; padding: 6px; border-radius: 30px; background: linear-gradient(160deg, #2e3a5c, #0a0f1f); box-shadow: 0 26px 52px rgba(0, 0, 0, .48), inset 0 0 0 1.5px rgba(255, 255, 255, .16); }
.phone-frame::before { content: ""; position: absolute; top: 13px; left: 50%; width: 9px; height: 9px; transform: translateX(-50%); background: #04070e; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255,255,255,.1); z-index: 2; }
.phone-frame img { display: block; width: 100%; aspect-ratio: 320 / 660; image-rendering: auto; object-fit: cover; border-radius: 24px; background: #fff; }
.phone figcaption { margin-top: 12px; }
.phone figcaption b { display: block; font-size: 14px; margin-bottom: 2px; }
.phone figcaption span { display: block; font-size: 12.5px; line-height: 1.45; color: #aebcdc; }
.phones-note { color: #7f93bf; font-size: 12px; margin-top: 18px; }
@media (max-width: 1040px) {
  .phone-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(180px, 38%); overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 2px 18px; scrollbar-width: none; }
  .phone-row::-webkit-scrollbar { display: none; }
  .phone { scroll-snap-align: start; }
  .phone:nth-child(even) { transform: none; }
  .phones-note { margin-top: 0; }
}
@media (max-width: 560px) { .phone-row { grid-auto-columns: 62%; } }

/* ── Capacitación y asesoría ── */
.hero-cta { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; padding: 12px 20px; border-radius: 12px; background: #fff; color: #0d2a6b; font-weight: 700; text-decoration: none; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.hero-cta:hover { background: #eef3ff; }
.hero-cta svg.i { width: 19px; height: 19px; color: #1f5eff; }
.training { max-width: 980px; scroll-margin-top: 20px; border-radius: 18px; background: #fff; color: #17233d; padding: 22px 24px 24px; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.training-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.training-head .ico { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(140deg, #2a63f2, #4a8bff); box-shadow: 0 8px 20px rgba(38, 100, 255, .35); }
.training-head .ico svg.i { width: 24px; height: 24px; color: #fff; margin: 0; }
.training h2 { margin: 0 0 3px; font-size: 21px; letter-spacing: -.3px; color: #0d1b3d; }
.training-head p { margin: 0; color: #5a6a88; font-size: 14px; line-height: 1.5; }
.training form { display: grid; gap: 12px; }
.training .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.training label { color: #4a5a78; font-size: 13.5px; }
.training input:not([type=checkbox]), .training select, .training textarea { width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #cfd8ea; border-radius: 10px; background: #fff; color: #17233d; font: inherit; }
.training input:focus, .training select:focus, .training textarea:focus { outline: 2px solid rgba(47, 107, 255, .35); border-color: #2f6bff; }
.training select:disabled { background: #f1f4fa; color: #8795b1; }
.training fieldset { border: 1px solid #dde5f4; border-radius: 12px; padding: 12px 14px 12px; display: grid; gap: 8px; margin: 0; }
.training legend { padding: 0 6px; font-weight: 700; color: #0d1b3d; font-size: 14px; }
.training .hint { margin: 0; color: #6b7a99; font-size: 12.8px; }
.training details summary { cursor: pointer; color: #1f5eff; font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.training .check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.training .check input { margin-top: 3px; width: auto; }
.training button[type=submit] { width: 100%; padding: 12px 16px; border: 0; border-radius: 11px; background: #1f5eff; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 8px 20px rgba(31, 94, 255, .3); }
.training button[type=submit]:disabled { opacity: .6; cursor: wait; }
.training .error { margin: 0; padding: 9px 12px; border-radius: 9px; background: #fde8e8; border: 1px solid #f7c6c6; color: #a4282a; font-size: 13.5px; }
.training .trap { position: absolute; left: -10000px; height: 0; overflow: hidden; }
.training-done { text-align: center; padding: 14px 6px 6px; }
.training-done .ok-ico svg.i { width: 54px; height: 54px; color: #1a9d55; margin: 0; }
.training-done h3 { margin: 6px 0; font-size: 21px; color: #0d1b3d; }
.training-done p { margin: 6px auto; max-width: 520px; color: #33435f; }
.auth-panel .train-link { text-align: center; }
@media (max-width: 640px) { .training { padding: 18px 16px 20px; } .training .grid2 { grid-template-columns: 1fr; } }
