/* Command Pro — sitio público v0.5 — hero single summit */
:root {
  --bg: #0c0e12;
  --text: #e8eaef;
  --muted: #9aa3b2;
  --teal: #2dd4bf;
  --teal-dim: #14b8a6;
  --border: rgba(255, 255, 255, 0.08);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.35rem 0;
  background: linear-gradient(to bottom, rgba(12, 14, 18, 0.92) 0%, rgba(12, 14, 18, 0.4) 70%, transparent 100%);
  backdrop-filter: blur(12px);
  animation: navIn 0.8s ease both;
}

.header-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3rem);
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a {
  padding: 0.45rem 0.25rem;
  white-space: nowrap;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, color 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(45, 212, 191, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: #041210;
  box-shadow: 0 4px 24px rgba(45, 212, 191, 0.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.nav-cta {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    gap: clamp(2rem, 4vw, 3.25rem);
  }

  .nav-cta {
    margin-left: clamp(1.25rem, 3vw, 2.5rem);
    padding-left: clamp(1.25rem, 3vw, 2.5rem);
    border-left: 1px solid var(--border);
  }
}

.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88dvh;
  display: flex;
  align-items: flex-start;
  padding-top: 10vh;
  overflow: hidden;
  background: var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 6;
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-single {
  position: absolute;
  inset: 0;
}

.hero-single-wrap {
  position: absolute;
  inset: -5%;
  animation: kenBurns 32s ease-in-out infinite alternate;
}

.hero-single-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.9) saturate(0.96);
}

@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -0.6%); }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 18% 75%, rgba(12, 14, 18, 0.55), transparent 55%),
    linear-gradient(to right, rgba(12, 14, 18, 0.94) 0%, rgba(12, 14, 18, 0.52) 40%, rgba(12, 14, 18, 0.15) 72%, rgba(12, 14, 18, 0.3) 100%),
    linear-gradient(to top, rgba(12, 14, 18, 0.9) 0%, transparent 46%);
}

.hero-teal-mist {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.06) 0%, transparent 50%, rgba(251, 191, 36, 0.05) 100%);
  animation: mistDrift 24s ease-in-out infinite alternate;
}

@keyframes mistDrift {
  0% { opacity: 0.55; }
  100% { opacity: 1; }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.028;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.6) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black 5%, transparent 78%);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 720px;
  padding: 4.5rem 1.5rem 0;
  margin-top: 0;
}

@media (min-width: 900px) {
  .hero {
    padding-top: 11vh;
    min-height: 86vh;
    min-height: 86dvh;
  }
  .hero-content {
    padding-left: clamp(2rem, 6vw, 5rem);
    padding-top: 5rem;
  }
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1rem;
  animation: fadeUp 0.9s 0.15s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  animation: fadeUp 0.9s 0.3s ease both;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 32rem;
  animation: fadeUp 0.9s 0.45s ease both;
}

.hero-caption {
  font-size: 0.9rem;
  color: rgba(45, 212, 191, 0.85);
  margin: 0 0 1.75rem;
  font-style: italic;
  animation: fadeUp 0.9s 0.55s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.9s 0.65s ease both;
}


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-single-wrap, .hero-teal-mist {
    animation: none !important;
  }
}

/* —— Layout secciones —— */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap--narrow { max-width: 720px; }

.section {
  padding: 4rem 0;
}

.section--first {
  padding-top: 2.5rem;
}

.section--alt {
  background: linear-gradient(180deg, rgba(20, 24, 32, 0.5) 0%, rgba(12, 14, 18, 0) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--tight { padding: 3rem 0; }

.section-head { margin-bottom: 2.5rem; max-width: 640px; }

.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.section-lead {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Main pegado al hero — no “corte” tras la foto */
main {
  position: relative;
  z-index: 12;
  margin-top: -5rem;
}

/* Strip */
.strip {
  background: rgba(45, 212, 191, 0.06);
  border-bottom: 1px solid rgba(45, 212, 191, 0.12);
  padding: 1.25rem 0;
  text-align: center;
  position: relative;
}

.strip-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.strip-inner strong { color: var(--text); font-weight: 500; }

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid--2 { grid-template-columns: 1fr; }
.card-grid--3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: rgba(20, 24, 32, 0.65);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(45, 212, 191, 0.25);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.card-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.card--feature { padding: 1.35rem 1.5rem; }

.card--bot { position: relative; padding-top: 2.25rem; }

.bot-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.25);
}

.bot-tag--free {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border-color: var(--border);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
  background: rgba(20, 24, 32, 0.8);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: #041210;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Compare */
.compare {
  display: grid;
  gap: 1.25rem;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .compare { grid-template-columns: 1fr 1fr; }
}

.compare-col {
  border-radius: 14px;
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.compare-col--old {
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.85;
}

.compare-col--new {
  background: rgba(45, 212, 191, 0.06);
  border-color: rgba(45, 212, 191, 0.2);
}

.compare-col h3 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.compare-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-col li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.compare-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.compare-col--new li::before { background: var(--teal); }

/* Firms */
.firms-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 1.5rem;
}

.firms-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.75rem 2.25rem;
  opacity: 0.75;
  filter: grayscale(1) brightness(1.2);
}

.firms-row img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.firms-note {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(154, 163, 178, 0.7);
  margin: 1.5rem 0 0;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: rgba(20, 24, 32, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--teal);
  font-weight: 600;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* CTA */
.cta-section { padding-bottom: 6rem; }

.cta-box {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.1), rgba(20, 24, 32, 0.9));
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.cta-box p {
  color: var(--muted);
  max-width: 28rem;
  margin: 0 auto 1.75rem;
}

.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: rgba(8, 10, 14, 0.6);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  flex: 1;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-nav a:hover { color: var(--teal); }

/* —— Portal login / app (Fase 2) —— */
.portal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.portal-page--auth {
  overflow-x: hidden;
}

/* Foto de fondo discreta (móvil + desktop) */
.portal-auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.portal-auth-bg img {
  position: absolute;
  right: -8%;
  top: 52%;
  transform: translateY(-50%);
  width: min(72vw, 640px);
  height: min(58vh, 520px);
  object-fit: cover;
  object-position: center 38%;
  border-radius: 20px;
  opacity: 0.22;
  filter: brightness(0.75) saturate(0.85) blur(1px);
  mask-image: radial-gradient(ellipse 85% 75% at 72% 48%, #000 15%, transparent 72%);
}

.portal-auth-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, var(--bg) 0%, rgba(12, 14, 18, 0.97) 42%, rgba(12, 14, 18, 0.55) 68%, transparent 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 38%);
}

.site-header--portal {
  padding: 1.25rem 0;
  background: linear-gradient(to bottom, rgba(12, 14, 18, 0.96) 0%, rgba(12, 14, 18, 0.72) 100%);
}

.header-inner--portal {
  justify-content: space-between;
  max-width: 1080px;
  padding: 0 clamp(1.5rem, 5vw, 2.75rem);
  gap: 1.5rem;
}

.portal-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.portal-shell {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 5.5rem clamp(1.25rem, 4vw, 2.75rem) 3rem;
  display: grid;
  align-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 880px) {
  .portal-shell {
    grid-template-columns: minmax(240px, 0.95fr) minmax(320px, 1.05fr);
    padding-top: 6.25rem;
    min-height: calc(100vh - 5rem);
  }

  .portal-auth-bg img {
    right: 4%;
    width: min(42vw, 480px);
    height: min(52vh, 440px);
    opacity: 0.28;
    filter: brightness(0.82) saturate(0.9);
    mask-image: radial-gradient(ellipse 90% 80% at 58% 50%, #000 25%, transparent 78%);
  }
}

.portal-shell--narrow {
  max-width: 960px;
}

.portal-shell--form {
  max-width: 1080px;
}

@media (min-width: 880px) {
  .portal-shell--form {
    grid-template-columns: minmax(240px, 0.92fr) minmax(320px, 1.08fr);
    padding-top: 6.25rem;
    min-height: calc(100vh - 5rem);
  }

  .portal-shell--narrow {
    max-width: 920px;
    grid-template-columns: minmax(240px, 0.95fr) minmax(280px, 1fr);
  }

  .portal-shell--form.portal-shell--narrow {
    max-width: 920px;
  }
}

/* Hub único login + registro — fondo fijo, solo flota la tarjeta */
.portal-page--auth-hub {
  min-height: 100vh;
}

.portal-page--auth-hub .portal-auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.portal-page--auth-hub .site-header {
  position: fixed;
  z-index: 100;
}

.portal-shell--auth-hub {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 980px;
  padding-top: 6rem;
  padding-bottom: 3rem;
  align-items: center;
}

@media (min-width: 880px) {
  .portal-shell--auth-hub {
    grid-template-columns: minmax(240px, 0.88fr) minmax(300px, 1.12fr);
    padding-top: 6.5rem;
  }
}

.portal-aside--fixed {
  display: flex;
}

@media (max-width: 879px) {
  .portal-shell--auth-hub {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding-top: 5.5rem;
  }

  .portal-aside--fixed {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    align-items: center;
    text-align: center;
  }

  .portal-aside--fixed .portal-quote {
    max-width: none;
  }

  .portal-aside--fixed .portal-mindscape {
    max-width: 280px;
    width: 100%;
  }
}

.portal-card--float {
  width: min(100%, 26rem);
  max-width: 26rem;
  margin: 0 auto;
  padding: 1.85rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(14, 17, 24, 0.93);
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.48);
  transition: max-width 0.22s ease, width 0.22s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.portal-card--float.portal-card--wide {
  width: min(100%, 36rem);
  max-width: 36rem;
}

.auth-panel {
  min-width: 0;
  max-width: 100%;
}

.auth-panel[hidden] {
  display: none !important;
}

.auth-panel > h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  margin: 0 0 0.55rem;
  line-height: 1.2;
}

.auth-panel > .portal-lead {
  margin-bottom: 1.65rem;
}

.portal-card--float .portal-field input {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
}

.portal-page--auth-hub .portal-main--auth {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.portal-aside {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

@media (min-width: 880px) {
  .portal-aside { display: flex; }

  .portal-page--lux .portal-card-hero { display: none; }
  .portal-page--lux .portal-card-body { padding-top: 2rem; }
}

/* Tarjeta con strip visual arriba (móvil) */
.portal-card--split {
  padding: 0;
  overflow: hidden;
}

.portal-card--wide {
  max-width: none;
}

@media (min-width: 880px) {
  .portal-page--register .portal-main--auth {
    max-width: 36rem;
  }
}

@media (max-width: 879px) {
  .portal-main--auth {
    max-width: 28rem;
    margin: 0 auto;
  }

  .portal-page--register .portal-main--auth {
    max-width: min(28rem, 100%);
  }
}

.portal-card-hero {
  position: relative;
  height: clamp(158px, 34vw, 210px);
  overflow: hidden;
}

.portal-card-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: brightness(0.88) saturate(1.05) contrast(1.02);
}

.portal-card-hero--lux img {
  object-position: center 52%;
  filter: brightness(0.9) saturate(1.08) sepia(0.06);
}

.portal-card-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(16, 19, 26, 1) 0%, rgba(16, 19, 26, 0.4) 48%, rgba(12, 14, 18, 0.12) 100%),
    linear-gradient(135deg, rgba(180, 140, 90, 0.1) 0%, transparent 55%);
  pointer-events: none;
}

.portal-card-hero--lux::after {
  background:
    linear-gradient(to top, rgba(16, 19, 26, 0.98) 0%, rgba(16, 19, 26, 0.35) 50%, transparent 100%),
    linear-gradient(120deg, rgba(251, 191, 36, 0.07) 0%, transparent 45%, rgba(45, 212, 191, 0.04) 100%);
}

.portal-card-hero-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1rem 1.5rem 1.15rem;
}

.portal-card-hero-line {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(232, 234, 239, 0.9);
  max-width: 20rem;
}

.portal-card-body {
  padding: 1.35rem 1.75rem 2rem;
}

@media (min-width: 540px) {
  .portal-card-body { padding: 1.5rem 2rem 2.15rem; }
}

/* Portal lux — pareja / lifestyle discreto (login + registro) */
.portal-page--lux .portal-auth-bg--lux img {
  left: 0;
  right: 0;
  top: 0;
  transform: none;
  width: 100%;
  height: min(44vh, 340px);
  object-position: center 50%;
  opacity: 0.42;
  border-radius: 0;
  filter: brightness(0.8) saturate(1.06) sepia(0.08);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
}

@media (min-width: 880px) {
  .portal-page--lux .portal-auth-bg--lux img {
    left: auto;
    right: 1%;
    top: 50%;
    transform: translateY(-50%);
    width: min(46vw, 520px);
    height: min(56vh, 480px);
    opacity: 0.34;
    border-radius: 20px;
    object-position: center 48%;
    mask-image: radial-gradient(ellipse 90% 84% at 56% 50%, #000 24%, transparent 78%);
  }
}

.portal-page--lux .portal-auth-bg--lux::before {
  background:
    linear-gradient(105deg, var(--bg) 0%, rgba(12, 14, 18, 0.9) 36%, rgba(12, 14, 18, 0.42) 62%, transparent 100%),
    linear-gradient(to top, var(--bg) 6%, transparent 48%),
    linear-gradient(135deg, rgba(180, 140, 90, 0.06) 0%, transparent 42%, rgba(45, 212, 191, 0.04) 100%);
}

.portal-aside-frame--lux img {
  object-position: center 50%;
  filter: brightness(0.92) saturate(1.06) sepia(0.05);
}

.portal-page--lux .portal-quote {
  color: rgba(232, 234, 239, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  font-weight: 500;
  max-width: 19rem;
}

/* Login — mentalidad → progreso (sin foto) */
.portal-auth-bg--mind {
  background:
    radial-gradient(ellipse 70% 50% at 78% 40%, rgba(45, 212, 191, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(251, 191, 36, 0.04) 0%, transparent 60%),
    var(--bg);
}

.portal-auth-bg--mind::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.8) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000, transparent);
}

.portal-mindscape {
  margin-top: 0.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(45, 212, 191, 0.15);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(45, 212, 191, 0.06);
  max-width: 300px;
}

.portal-mindscape img {
  display: block;
  width: 100%;
  height: auto;
}

.portal-aside--mind .portal-quote {
  max-width: 17rem;
}

.portal-card-hero--mind {
  height: auto;
  min-height: 0;
  background: #0f1218;
  padding: 0.75rem 0.75rem 0;
}

.portal-card-hero--mind::after {
  background: linear-gradient(to top, rgba(16, 19, 26, 1) 0%, rgba(16, 19, 26, 0.2) 55%, transparent 100%);
}

.portal-mindscape--compact {
  max-width: none;
  margin: 0;
  border: none;
  box-shadow: none;
  border-radius: 12px;
}

.portal-mindscape--compact img {
  border-radius: 12px;
}

.portal-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.portal-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.35;
  color: rgba(232, 234, 239, 0.92);
  max-width: 18rem;
}

.portal-aside-frame {
  margin: 0.75rem 0 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-width: 320px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(45, 212, 191, 0.08) inset;
}

.portal-aside-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  filter: brightness(0.9) saturate(0.92);
}

.portal-aside-frame--lux {
  position: relative;
  max-width: 300px;
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(180, 140, 90, 0.12) inset;
}

.portal-aside-frame--lux::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(12, 14, 18, 0.55) 0%,
    transparent 42%,
    rgba(251, 191, 36, 0.06) 100%
  );
  mix-blend-mode: soft-light;
}

.portal-main {
  max-width: 26rem;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

.portal-main--auth {
  max-width: none;
  margin: 0;
}

.portal-main--app {
  max-width: 880px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 3rem;
}

.portal-card {
  padding: 2.15rem 2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 19, 26, 0.92);
  backdrop-filter: blur(16px);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(45, 212, 191, 0.06) inset;
}

.portal-card h1,
.portal-app-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  margin: 0 0 0.55rem;
  line-height: 1.2;
}

.portal-lead {
  color: var(--muted);
  margin: 0 0 1.85rem;
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 36rem;
}

.portal-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
  max-width: 100%;
}

.portal-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .portal-card--wide .portal-row {
    grid-template-columns: 1fr 1fr;
  }
}

.portal-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(154, 163, 178, 0.95);
}

.portal-field input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(8, 10, 14, 0.75);
  color: var(--text);
  font: inherit;
  font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.portal-field input::placeholder {
  color: rgba(154, 163, 178, 0.45);
}

.portal-field input:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14);
}

.btn-block {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 0.35rem;
}

.portal-msg {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.portal-msg--bad {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.portal-msg--ok {
  background: rgba(45, 212, 191, 0.1);
  color: #99f6e4;
  border: 1px solid rgba(45, 212, 191, 0.25);
}

.portal-foot {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.portal-foot a { color: var(--teal); }

.portal-app-head { margin-bottom: 1.75rem; }

.portal-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .portal-grid { grid-template-columns: 1fr 1fr; }
}

.portal-grid .portal-panel {
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(20, 24, 32, 0.6);
}

.portal-grid .portal-panel--full { grid-column: 1 / -1; }

.portal-grid .portal-panel h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.65rem;
}

.portal-grid .portal-panel p { margin: 0 0 1rem; color: var(--muted); font-size: 0.92rem; }

.portal-hint {
  font-size: 0.82rem !important;
  margin-top: 0.75rem !important;
  opacity: 0.85;
}

.portal-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.portal-steps li { margin-bottom: 0.35rem; }

.bot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(8, 10, 14, 0.5);
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

.bot-row--on { border-color: rgba(45, 212, 191, 0.25); }

.bot-name { font-weight: 500; color: var(--text); }

.bot-state { color: var(--muted); font-size: 0.8rem; text-align: right; }

.portal-grid .portal-panel code {
  font-size: 0.85em;
  color: var(--teal);
}

/* —— Dashboard piloto `/app` (adaptado, no copia) —— */
.dash-page {
  min-height: 100vh;
  background: #080a0e;
  color: var(--text);
}

.dash-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.dash {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

@media (min-width: 960px) {
  .dash {
    grid-template-columns: 240px 1fr;
  }
}

.dash-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1rem 1rem;
  background: #0c0f14;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 960px) {
  .dash-side {
    position: sticky;
    top: 0;
    height: 100vh;
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
  }
}

.dash-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  padding: 0.25rem 0.5rem;
}

.dash-logo span { color: var(--teal); }

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.dash-nav-label {
  margin: 1rem 0 0.35rem;
  padding: 0 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(154, 163, 178, 0.7);
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.dash-nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.dash-nav-item.is-active {
  color: var(--text);
  background: rgba(45, 212, 191, 0.1);
  box-shadow: inset 3px 0 0 var(--teal);
}

.dash-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.15);
  color: var(--teal);
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.5rem 0.25rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.35), rgba(20, 184, 166, 0.15));
  color: #e8fffa;
  flex-shrink: 0;
}

.dash-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.dash-user-meta strong {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-user-meta span {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-logout {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
}

.dash-logout:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.dash-main {
  padding: 1.25rem clamp(1rem, 3vw, 2rem) 2.5rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.is-view-mando .dash-main {
  padding: 0.75rem clamp(0.75rem, 2vw, 1.25rem) 0.75rem;
  height: 100vh;
  overflow: hidden;
}

@media (min-width: 960px) {
  body.is-view-mando .dash-main {
    height: 100vh;
  }
}

.dash-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.dash-view[hidden] {
  display: none !important;
}

.dash-view--mando {
  flex: 1;
  min-height: 0;
}

.dash-mando-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  flex-shrink: 0;
}

.dash-mando-bar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.dash-iframe-wrap {
  flex: 1;
  min-height: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #08090b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.dash-iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 7.5rem);
  border: 0;
  background: #08090b;
}

@media (min-width: 960px) {
  .dash-iframe {
    min-height: calc(100vh - 5.5rem);
  }
}

.dash-nav-item--cta {
  background: rgba(45, 212, 191, 0.12);
  color: var(--text);
  font-weight: 600;
}

.dash-nav-item--cta:hover {
  background: rgba(45, 212, 191, 0.2);
}

.dash-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(45, 212, 191, 0.25);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(16, 20, 28, 0.9));
}

.dash-banner strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.dash-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 36rem;
  line-height: 1.45;
}

.dash-banner code {
  color: var(--teal);
  font-size: 0.85em;
}

.dash-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

@media (min-width: 640px) {
  .dash-actions { grid-template-columns: repeat(3, 1fr); }
}

.dash-action-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(16, 20, 28, 0.9);
  color: var(--text);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.dash-action-card:hover {
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(20, 26, 36, 0.95);
  transform: translateY(-1px);
}

.dash-action-card--primary {
  border-color: rgba(45, 212, 191, 0.35);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(16, 20, 28, 0.95));
}

.dash-action-card--primary:hover {
  border-color: rgba(45, 212, 191, 0.55);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(16, 20, 28, 0.98));
}

.dash-action-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.dash-action-card > span:last-child {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.dash-action-icon {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 0.15rem;
}

.dash-msg { margin-bottom: 1rem; }

.dash-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.dash-top h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 600;
}

.dash-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dash-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 800px) {
  .dash-kpis { grid-template-columns: repeat(4, 1fr); }
}

.dash-kpi {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(16, 20, 28, 0.9);
}

.dash-kpi-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.dash-kpi-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.15;
}

.dash-kpi-value--sm {
  font-size: 1.1rem;
  color: var(--text);
  word-break: break-word;
}

.dash-kpi-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: rgba(154, 163, 178, 0.85);
}

.dash-card {
  padding: 1.25rem 1.25rem 1.35rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(16, 20, 28, 0.85);
  margin-bottom: 1rem;
}

.dash-card-head {
  margin-bottom: 1rem;
}

.dash-card-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.dash-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.dash-card-head code {
  color: var(--teal);
  font-size: 0.85em;
}

.dash-table {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dash-tr {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.4fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(8, 10, 14, 0.45);
  font-size: 0.88rem;
}

.dash-tr--head {
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
}

.dash-tr.is-on {
  border-color: rgba(45, 212, 191, 0.18);
}

.dash-bot-name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}

.dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b5563;
  flex-shrink: 0;
}

.dash-tr.is-on .dash-dot {
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

.dash-bot-state { color: var(--muted); }

.dash-tr.is-on .dash-bot-state { color: #99f6e4; }

.dash-bot-note {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .dash-tr--head { display: none; }
  .dash-tr {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.dash-split {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .dash-split { grid-template-columns: 1fr 1fr; }
}

.dash-split .dash-card { margin-bottom: 0; }

/* Reveal al scroll — ponytail: IntersectionObserver mínimo en site.js */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}
