@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700&family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f2ebff;
  --surface: #ffffff;
  --surface-muted: #ede4ff;
  --surface-tinted: #f7f2ff;
  --text: #160d35;
  --text-body: #2d1f5e;
  --muted: #6b5b94;
  --muted-light: #9b8bc0;
  --primary: #5a25ff;
  --primary-strong: #2d1bd6;
  --primary-pale: #ede9ff;
  --secondary: #f04bc9;
  --secondary-soft: #fdf0fb;
  --border: rgba(90, 37, 255, 0.14);
  --border-hard: rgba(90, 37, 255, 0.22);
  --shadow-xs: 0 1px 4px rgba(45, 27, 180, 0.08);
  --shadow-sm: 0 4px 16px rgba(45, 27, 180, 0.10);
  --shadow: 0 8px 32px rgba(45, 27, 180, 0.12);
  --shadow-lg: 0 20px 56px rgba(45, 27, 180, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --container: min(1180px, calc(100vw - 2rem));
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background: linear-gradient(160deg, #f5eeff 0%, #e9dfff 45%, #f2ebff 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

.container {
  width: var(--container);
  margin: 0 auto;
}

/* ── HEADER ──────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.brand__mark img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.brand__text {
  display: grid;
  line-height: 1.2;
}

.brand__text strong {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand__text small {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  transition: color 0.15s, background 0.15s;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--primary);
  background: var(--primary-pale);
}

.nav-cta {
  min-height: 38px;
  padding: 0.5rem 1.25rem;
  margin-left: 0.75rem;
  border-radius: 999px;
  border: none;
  color: #fff !important;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: opacity 0.18s, box-shadow 0.18s, transform 0.18s;
  box-shadow: 0 3px 12px rgba(90, 37, 255, 0.32);
}

.nav-cta:hover {
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(90, 37, 255, 0.42);
  transform: translateY(-1px);
}

.nav-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.24rem 0.8rem 0.24rem 0.55rem;
  background: var(--primary-pale);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border-hard);
  margin-right: 0.25rem;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s;
}

/* ── BOTONES ─────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: all 0.18s;
  cursor: pointer;
  white-space: nowrap;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); }

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(90, 37, 255, 0.32);
}

.button--primary:hover {
  box-shadow: 0 8px 28px rgba(90, 37, 255, 0.42);
}

.button--ghost {
  color: var(--primary);
  background: transparent;
  border-color: var(--primary);
}

.button--ghost:hover {
  background: var(--primary-pale);
}

.button--full { width: 100%; }

.button--small {
  min-height: 34px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
}

/* ── EYEBROW ─────────────────────────────────────────────── */

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.22rem 0.75rem;
  background: var(--primary-pale);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── TIPOGRAFÍA BASE ─────────────────────────────────────── */

.hero h1,
.portal-hero__intro h1 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero h1 {
  font-size: clamp(2.6rem, 4.5vw, 5rem);
  max-width: 14ch;
}

.section__heading h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin-bottom: 0.6rem;
}

.auth-panel h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  font-size: 1.6rem;
  color: var(--text);
  margin: 0;
}

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text);
}

.hero__lead {
  margin: 1.3rem 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.hero__actions,
.auth-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.hero__highlights {
  display: grid;
  gap: 0.5rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__highlights li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.hero__highlights li::before,
.product-card li::before,
.price-card li::before,
.contact-card li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
}

/* ── CARD BASE (solo portal y auth) ─────────────────────── */

.auth-panel,
.portal-card,
.portal-product,
.portal-message {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ── HERO ────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
  gap: 2.5rem;
  padding: 5rem 0 4rem;
  align-items: start;
}

.hero__content {
  /* Sin card — texto libre sobre el fondo */
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.hero__professional-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  position: sticky;
  top: 82px;
}

.hero__professional-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.hero__professional-card > p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.hero__professional-points {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.hero__professional-points article {
  display: grid;
  gap: 0.18rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  border-left: 3px solid var(--primary);
  transition: background 0.18s;
}

.hero__professional-points article:hover {
  background: var(--primary-pale);
}

.hero__professional-points strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.hero__professional-points span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── AUTH MODAL ──────────────────────────────────────────── */

.auth-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: 200ms ease;
  z-index: 200;
}

.auth-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 13, 53, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.auth-modal__panel {
  position: relative;
  width: min(100%, 500px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.auth-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.auth-modal__close:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.auth-panel { padding: 2rem; }

.auth-panel__header p:last-child {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.4rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.3rem;
  padding: 0.25rem;
  margin: 1.4rem 0 1rem;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.auth-tab {
  min-height: 40px;
  border: 0;
  border-radius: calc(var(--radius-sm) - 2px);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.auth-tab.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.auth-form {
  display: none;
  gap: 0.85rem;
}

.auth-form.is-active { display: grid; }

.auth-form label,
.contact-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.auth-form input,
.contact-form input,
.contact-form select,
.contact-form textarea {
  min-height: 46px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.auth-form input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(90, 37, 255, 0.12);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.auth-feedback {
  min-height: 22px;
  margin-top: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-strong);
}

/* ── MFA ─────────────────────────────────────────────────── */

.mfa-setup {
  margin-top: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.mfa-setup__header { display: grid; gap: 0.25rem; }
.mfa-setup__header h3, .mfa-setup__header p { margin: 0; }

.mfa-setup__content {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.mfa-setup__qr-wrap {
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.mfa-setup__qr-wrap img { display: block; width: 100%; max-width: 160px; height: auto; }

.mfa-setup__details { display: grid; gap: 0.6rem; }
.mfa-setup__details p, .mfa-setup__details small { margin: 0; font-size: 0.86rem; }

.mfa-setup__manual-code {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--primary-pale);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: var(--primary-strong);
}

.mfa-setup__actions { display: flex; gap: 0.75rem; }

.auth-panel__footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.auth-panel__footer div {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.auth-panel__footer strong {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-panel__footer span { font-size: 0.84rem; color: var(--text-body); }

/* ── MÉTRICAS ────────────────────────────────────────────── */

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 0 0 3rem;
}

.metrics article {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.8rem 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.metrics article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.metrics article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.metrics span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ── SECCIONES ───────────────────────────────────────────── */

.section { padding: 5rem 0; }

.section--tinted {
  background: rgba(233, 223, 255, 0.5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--contrast {
  background: linear-gradient(135deg, #120840 0%, #2a1080 50%, #120840 100%);
  color: #fff;
}

.section__heading {
  max-width: 680px;
  margin-bottom: 2.8rem;
}

.section__heading p:last-child {
  color: var(--muted);
  font-size: 1.02rem;
  margin-top: 0.5rem;
}

.section__heading--light .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(220, 200, 255, 0.95);
}

.section__heading--light h2 { color: #fff; }

.section__heading--light p:last-child {
  color: rgba(200, 180, 255, 0.78);
}

/* ── ABOUT ───────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.info-card:hover::after { transform: scaleX(1); }

.info-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.info-card p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.68;
}

/* ── WHO WE ARE ──────────────────────────────────────────── */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.story-grid > div:first-child h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 1rem;
  line-height: 1.12;
  color: var(--text);
}

.story-grid > div:first-child > p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

.story-points { display: grid; gap: 0.75rem; }

.story-point {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  padding: 1.3rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.story-point::before {
  content: "";
  display: block;
  width: 3px;
  min-height: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--secondary), var(--primary));
  flex-shrink: 0;
  align-self: stretch;
}

.story-point:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-hard);
}

.story-point h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.story-point p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

/* ── PRODUCTOS (layout horizontal) ──────────────────────── */

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hard);
}

.product-card__logo {
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(160deg, var(--surface-muted) 0%, var(--primary-pale) 100%);
  border-right: 1px solid var(--border);
  min-height: 180px;
}

.product-card__logo img {
  width: 100%;
  max-width: 200px;
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(90, 37, 255, 0.18));
  transition: transform 0.3s, filter 0.3s;
}

.product-card:hover .product-card__logo img {
  transform: scale(1.06);
  filter: drop-shadow(0 10px 24px rgba(90, 37, 255, 0.28));
}

.product-card__body {
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-card__body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.product-card__body p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.product-card ul,
.price-card ul,
.contact-card ul {
  margin: 0.8rem 0 1.3rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.product-card li,
.price-card li,
.contact-card li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── PRECIOS ─────────────────────────────────────────────── */

.pricing-layout { display: grid; gap: 2.5rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  align-items: end;
}

.price-card {
  position: relative;
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: #fff;
  transition: transform 0.22s, box-shadow 0.22s;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}

.price-card__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 1.2rem;
  min-height: 88px;
  margin-bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.93);
  border-radius: var(--radius-sm);
}

.price-card__logo img {
  width: auto;
  max-width: 130px;
  max-height: 62px;
  object-fit: contain;
}

.price-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.4rem;
}

.price-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.price-card p, .price-card li { color: rgba(200, 185, 255, 0.82) !important; }

.price-card li::before { background: rgba(240, 75, 201, 0.8) !important; }

.price-card--featured {
  background: rgba(240, 75, 201, 0.2);
  border-color: rgba(240, 75, 201, 0.5);
  transform: translateY(-8px);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.32);
}

.price-card--featured::before {
  content: "Destacado";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: var(--secondary);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-card--featured .button--primary {
  background: var(--secondary);
  border-color: var(--secondary);
}

/* ── CONTACTO ────────────────────────────────────────────── */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 1.4rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 2rem;
}

.contact-form__full { grid-column: 1 / -1; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.contact-feedback {
  min-height: 22px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-strong);
}

/* ── FOOTER ──────────────────────────────────────────────── */

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.site-footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.site-footer p, .footer-clock span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer strong { font-weight: 800; color: var(--text); }
.footer-clock { text-align: right; }

/* ── PORTAL TOGGLE ───────────────────────────────────────── */

.portal-view[hidden],
.public-view[hidden],
.nav-portal-trigger[hidden],
.nav-logout-trigger[hidden] {
  display: none !important;
}

/* ── PORTAL HERO ─────────────────────────────────────────── */

.portal-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.portal-hero__intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.portal-hero__intro p:last-child {
  max-width: 62ch;
  color: var(--muted);
  margin-top: 0.45rem;
  font-size: 0.93rem;
}

/* ── PORTAL GRID ─────────────────────────────────────────── */

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  padding-bottom: 3rem;
}

.portal-card { padding: 1.5rem; }
.portal-card--summary { grid-column: 1 / -1; }
.portal-card--wide { grid-column: 1 / -1; }

.portal-card .eyebrow { font-size: 0.68rem; padding: 0.18rem 0.65rem; }

.portal-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.portal-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.portal-kpis div,
.portal-product__meta span {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.portal-kpis span,
.portal-product p,
.portal-message p,
.portal-feedback {
  color: var(--muted);
  font-size: 0.84rem;
}

.portal-kpis strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.portal-notice {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  color: #7c4a00;
  background: rgba(255, 207, 92, 0.15);
  border: 1px solid rgba(255, 180, 30, 0.35);
  font-weight: 600;
  font-size: 0.88rem;
}

.portal-table-wrap { overflow-x: auto; }

.portal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.88rem;
}

.portal-table th,
.portal-table td {
  padding: 0.8rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.portal-table th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--surface-muted);
}

.portal-table tr:last-child td { border-bottom: none; }

.portal-table a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.portal-table__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.portal-table .button { white-space: nowrap; }

.portal-products,
.portal-messages {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.portal-product,
.portal-message { padding: 1rem 1.2rem; }

.portal-product h3,
.portal-message strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.portal-product__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}

/* ── PORTAL FORMS ────────────────────────────────────────── */

.portal-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.portal-form--two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-form label {
  display: grid;
  gap: 0.28rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.portal-form input,
.portal-form select,
.portal-form textarea {
  min-height: 44px;
  padding: 0.72rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(90, 37, 255, 0.1);
}

.portal-form textarea { min-height: 120px; resize: vertical; }

.portal-form input[readonly] {
  background: var(--surface-muted);
  border-color: var(--border);
  color: var(--muted);
  cursor: default;
}

.portal-form input[type="date"][readonly]::-webkit-calendar-picker-indicator {
  display: none;
}

.portal-form__checkbox {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.portal-form__checkbox input {
  min-height: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.portal-card--admin { grid-column: 1 / -1; }

/* ── CONTRACT WIZARD ─────────────────────────────────────── */

.contract-wizard {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.contract-wizard__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.contract-wizard__steps span {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.contract-wizard__steps .is-active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.contract-step { display: none; }
.contract-step.is-active { display: block; }

.contract-step h3 { margin-bottom: 0.75rem; font-size: 1rem; font-weight: 700; }

.contract-wizard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contract-preview,
.contract-payment {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.contract-preview {
  max-height: 400px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 0.88rem;
  line-height: 1.62;
  color: var(--text-body);
}

.contract-payment { display: grid; gap: 0.55rem; font-size: 0.9rem; }

.portal-feedback {
  min-height: 22px;
  margin-top: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
}

/* ── STATUS BADGES ───────────────────────────────────────── */

.portal-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.24rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.portal-status--paid, .portal-status--active {
  color: #15803d; background: #dcfce7; border: 1px solid #bbf7d0;
}

.portal-status--pending {
  color: #92400e; background: #fef3c7; border: 1px solid #fde68a;
}

.portal-status--overdue {
  color: #991b1b; background: #fee2e2; border: 1px solid #fecaca;
}

.portal-payment-pending {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.32rem 0.75rem;
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* ── CATÁLOGO ────────────────────────────────────────────── */

.catalog-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.catalog-product-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.catalog-product-item:hover {
  border-color: var(--border-hard);
  box-shadow: var(--shadow-sm);
}

.catalog-product-item h3 { margin: 0; font-size: 0.93rem; font-weight: 700; }
.catalog-product-item .catalog-product-item__plan { font-size: 0.78rem; color: var(--primary); font-weight: 600; }
.catalog-product-item p { flex: 1; margin: 0; font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.catalog-product-item .button { align-self: flex-start; margin-top: 0.2rem; }

.catalog-plans__back { margin-bottom: 1rem; }
.catalog-plans__header { margin-bottom: 1rem; }
.catalog-plans__header h3 { margin: 0 0 0.2rem; font-weight: 700; }
.catalog-plans__header p { margin: 0; font-size: 0.86rem; color: var(--muted); }

.catalog-plans__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.catalog-plan-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1.2rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.catalog-plan-card:hover {
  border-color: var(--border-hard);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.catalog-plan-card h4 {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.catalog-plan-card .plan-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-strong);
  line-height: 1.1;
}

.catalog-plan-card .plan-discount {
  font-size: 0.74rem;
  color: var(--secondary);
  font-weight: 700;
}

.catalog-plan-card .button { margin-top: auto; width: 100%; }

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */

@supports (animation-timeline: view()) {
  @keyframes reveal-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
  }

  .info-card,
  .story-point,
  .product-card,
  .price-card,
  .metrics article {
    animation: reveal-up 0.4s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 26%;
  }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card--featured { transform: none; }
  .product-card { grid-template-columns: 220px 1fr; }
}

@media (max-width: 980px) {
  .hero,
  .story-grid,
  .contact-layout,
  .about-grid,
  .metrics,
  .auth-panel__footer,
  .portal-grid,
  .portal-kpis,
  .portal-product__meta {
    grid-template-columns: 1fr;
  }

  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { max-width: none; }
  .hero__professional-card { position: static; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form__full { grid-column: auto; }
  .portal-card--summary { grid-column: auto; }
  .portal-form--two-columns { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .nav { min-height: 62px; }
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 50;
  }

  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); }
  .nav-cta { border-radius: var(--radius-sm); text-align: center; margin-left: 0; }
  .brand__text small { display: none; }
  .auth-panel { padding: 1.5rem; }
  .mfa-setup__content { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 1fr; }
  .product-card__logo { border-right: none; border-bottom: 1px solid var(--border); min-height: 160px; }

  .site-footer__content {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 1.4rem;
  }

  .footer-clock { text-align: left; }
  .portal-hero { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  .brand__mark { width: 40px; height: 40px; }
  .metrics { grid-template-columns: 1fr; }
  .portal-kpis { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

.site-version {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
