/* ============================================================
   PORTAL HIDRONOR — basado en el design system IntegralFlex
   Tema: Azul corporativo Hidronor
   ============================================================ */

* { box-sizing: border-box; }

:root {
  --bg: #041124;
  --bg-2: #0a2345;
  --panel: rgba(10, 23, 46, 0.72);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef6ff;
  --muted: #a8bbd9;
  --primary: #2d74ff;
  --primary-2: #53a0ff;
  --accent: #19d97c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: radial-gradient(circle at top, #0a2345 0%, #041124 55%);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.container { width: min(1280px, 94%); margin: 0 auto; }

/* ---------- fondo animado ---------- */
.network-canvas {
  position: fixed; inset: 0; z-index: -4;
  pointer-events: none; opacity: 0.55;
}

.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 85%);
  pointer-events: none; z-index: -3;
}

.bg-glow {
  position: fixed; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
  pointer-events: none; z-index: -2;
}
.glow-1 { width: 380px; height: 380px; background: #2d74ff; top: 90px; left: -60px; }
.glow-2 { width: 420px; height: 420px; background: #15b7d9; top: 220px; right: -120px; }
.glow-3 { width: 320px; height: 320px; background: #19d97c; bottom: 120px; left: 20%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: #fff;
  border-bottom: 1px solid rgba(16, 33, 62, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.site-header .container { width: min(1420px, 97%); }

.nav {
  min-height: 84px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  position: relative;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 18px;
  padding: 6px 8px; flex-shrink: 0;
  text-decoration: none;
}
.brand-logo { height: 38px; width: auto; }
.brand-sep {
  width: 1px; height: 36px;
  background: rgba(16, 33, 62, 0.18);
}
.brand-seche { height: 32px; width: auto; }

.footer-seche { height: 40px; width: auto; margin: 6px 0 12px; }
.side-seche { height: 30px; width: auto; align-self: flex-start; margin: 0 0 2px; }

.main-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 2px; flex: 1; flex-wrap: nowrap;
}

.main-nav a {
  position: relative; display: inline-flex; align-items: center;
  text-decoration: none; color: #10213e;
  font-weight: 700; font-size: 0.9rem;
  padding: 12px 9px; border-radius: 12px;
  transition: 0.25s ease; overflow: hidden;
  white-space: nowrap; line-height: 1;
  flex-shrink: 0;
}
.main-nav a::before {
  content: ""; position: absolute;
  inset: auto 12px 8px 12px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: 0.25s ease;
}
.main-nav a:hover {
  color: #0d3d95;
  background: linear-gradient(180deg, #f6faff, #eef5ff);
  box-shadow: 0 10px 22px rgba(45, 116, 255, 0.12);
  transform: translateY(-1px);
}
.main-nav a:hover::before { transform: scaleX(1); }

.nav-actions { display: flex; gap: 8px; flex-shrink: 0; }
.nav-actions .btn { padding: 11px 16px; font-size: 0.88rem; }

.mobile-toggle {
  display: none; background: none; border: none;
  color: #10213e; font-size: 1.8rem; cursor: pointer;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px;
  text-decoration: none; font-weight: 800;
  border: 1px solid transparent;
  transition: 0.25s ease; white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 30px rgba(45, 116, 255, 0.28);
}
.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-ghost {
  color: #10213e; background: #fff;
  border-color: rgba(16, 33, 62, 0.12);
  box-shadow: 0 8px 18px rgba(16, 33, 62, 0.06);
}
.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, #13c86b, var(--accent));
  box-shadow: 0 14px 30px rgba(25, 217, 124, 0.24);
}

/* ---------- secciones ---------- */
.hero, .apps, .services, .traceability, .sustain, .branches {
  padding: 52px 0 28px;
}

.eyebrow, .section-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dfeaff;
}

.hero-copy h1, .section-head h2, .cta-box h2 {
  margin: 18px 0 12px;
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  line-height: 1.05; letter-spacing: -0.04em;
}

.hero-copy h1 .grad,
.section-head h2 .grad {
  background: linear-gradient(90deg, #53a0ff, #37e1a1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p, .section-head p, .cta-box p {
  color: var(--muted); font-size: 1.05rem;
  line-height: 1.8; max-width: 780px;
}

/* ---------- hero central ---------- */
.hero { padding-bottom: 8px; }
.hero-copy {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero-copy p { margin-left: auto; margin-right: auto; }

.hero-mini-stats {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
  margin-top: 26px;
}
.hero-mini-stats > div {
  min-width: 170px; padding: 14px 18px; border-radius: 18px;
  background: var(--panel-2); border: 1px solid var(--line);
}
.hero-mini-stats strong { display: block; font-size: 1.15rem; }
.hero-mini-stats span { color: var(--muted); font-size: 0.9rem; }

/* ---------- selector de perfil ---------- */
.role-switch {
  display: flex; justify-content: center; gap: 12px;
  margin: 34px 0 26px;
}
.role-tab {
  padding: 14px 34px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted); font-weight: 800; text-align: center;
  cursor: pointer; transition: 0.25s ease; font-size: 1.02rem;
}
.role-tab:hover { transform: translateY(-2px); }
.role-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 30px rgba(45, 116, 255, 0.3);
}

/* ---------- tarjetas de aplicaciones (primer plano) ---------- */
.apps { padding-top: 0; }

.app-cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.app-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px; overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: 0.28s ease;
  display: flex; flex-direction: column;
  color: #e8eefb;
  position: relative;
}
.app-card:hover {
  transform: translateY(-8px);
  border-color: rgba(122, 162, 255, 0.4);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
}

.app-top { position: relative; padding: 24px 22px 12px; }

.app-icon {
  width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center;
  margin-bottom: 12px;
  font-size: 1.8rem; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}
.ai-blue   { background: linear-gradient(135deg, #167dff, #1d61e0); }
.ai-green  { background: linear-gradient(135deg, #17b978, #0a8f56); }
.ai-teal   { background: linear-gradient(135deg, #0fa48f, #0d8e8a); }
.ai-indigo { background: linear-gradient(135deg, #5c6cff, #4338ca); }
.ai-purple { background: linear-gradient(135deg, #8758ff, #6d44e6); }
.ai-cyan   { background: linear-gradient(135deg, #15b7d9, #0d9cae); }

.app-top h3 { margin: 0 0 4px; font-size: 1.2rem; line-height: 1.2; }
.app-top .app-sub { margin: 0; color: #b9c9e6; font-weight: 700; font-size: 0.92rem; }

.app-body {
  padding: 12px 22px 22px;
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
}
.app-desc { margin: 0; color: #c7d3e8; font-size: 0.93rem; line-height: 1.65; flex: 1; }
.app-tags { color: #8fa7cc; font-weight: 700; font-size: 0.85rem; text-align: center; }

.enter-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  text-decoration: none; font-weight: 800;
  transition: 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.enter-btn span { transition: 0.25s ease; }
.enter-btn:hover span { transform: translateX(3px); }
.enter-blue   { background: rgba(36, 130, 255, 0.16); color: #8ab4ff; }
.enter-green  { background: rgba(24, 197, 111, 0.16); color: #6fe3a5; }
.enter-teal   { background: rgba(16, 180, 140, 0.16); color: #5fe0bd; }
.enter-indigo { background: rgba(92, 108, 255, 0.18); color: #a5aeff; }
.enter-purple { background: rgba(135, 88, 255, 0.18); color: #b39bff; }
.enter-cyan   { background: rgba(21, 183, 217, 0.16); color: #6fd8ec; }

.app-url {
  display: block; text-align: center;
  color: #8ab4ff; font-size: 0.8rem; font-weight: 700;
  text-decoration: none;
}
.app-url:hover { text-decoration: underline; }

.new-badge, .soon-badge {
  position: absolute; top: 18px; right: 16px; z-index: 1;
  padding: 5px 10px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
}
.new-badge {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.soon-badge {
  background: rgba(245, 166, 35, 0.18);
  border: 1px solid rgba(245, 166, 35, 0.45);
  color: #ffcd7a;
}

/* tarjeta deshabilitada (próximamente) */
.app-card.disabled { opacity: 0.62; }
.app-card.disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.app-card.disabled .enter-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #7d8db0;
  cursor: not-allowed;
  pointer-events: none;
}
.app-card.disabled .app-url { color: #6e7fa3; pointer-events: none; }

.section-head { text-align: center; margin-bottom: 26px; }

/* ---------- cards de servicios ---------- */
.modern-cards { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }

.product-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px; overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: 0.28s ease;
  display: flex; flex-direction: column;
  color: #e8eefb;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(122, 162, 255, 0.35);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
}

.product-top { position: relative; padding: 24px 22px 14px; color: #fff; }

.product-icon {
  width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center;
  margin-bottom: 12px; position: relative; z-index: 1;
  font-size: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.pi-green  { background: linear-gradient(135deg, #17b978, #0a8f56); }
.pi-blue   { background: linear-gradient(135deg, #167dff, #1d61e0); }
.pi-lime   { background: linear-gradient(135deg, #84cc16, #4d9e06); }
.pi-teal   { background: linear-gradient(135deg, #0fa48f, #0d8e8a); }
.pi-orange { background: linear-gradient(135deg, #ff8d21, #f97316); }
.pi-purple { background: linear-gradient(135deg, #8758ff, #6d44e6); }
.pi-cyan   { background: linear-gradient(135deg, #15b7d9, #0d9cae); }
.pi-amber  { background: linear-gradient(135deg, #f5a623, #d97b06); }

.product-top h3 { margin: 0 0 6px; font-size: 1.12rem; line-height: 1.2; }
.product-top p { margin: 0; color: rgba(255, 255, 255, 0.85); font-weight: 600; font-size: 0.9rem; }

.product-body {
  padding: 14px 20px 20px; text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; justify-content: space-between; flex: 1;
}
.card-desc { margin: 0 0 12px; color: #c7d3e8; font-size: 0.92rem; line-height: 1.65; }
.product-tags { color: #8fa7cc; font-weight: 700; font-size: 0.85rem; }

/* ---------- trazabilidad (demo shell) ---------- */
.story-layout {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: 22px; align-items: start;
}

.story-timeline, .demo-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow); border-radius: 28px;
}
.story-timeline { padding: 20px; }

.story-step {
  display: grid; grid-template-columns: 74px 1fr;
  gap: 16px; padding: 16px; border-radius: 18px;
}
.story-step.active {
  background: rgba(45, 116, 255, 0.12);
  border: 1px solid rgba(45, 116, 255, 0.22);
}
.step-badge {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center; font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.story-step strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.story-step p { margin: 0; color: var(--muted); line-height: 1.75; }

.demo-shell { padding: 20px; }

.demo-topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 16px;
}
.demo-title { font-weight: 800; }
.demo-chip {
  padding: 8px 12px; border-radius: 999px;
  background: rgba(25, 217, 124, 0.16);
  border: 1px solid rgba(25, 217, 124, 0.28);
  color: #b8ffd9; font-weight: 800; font-size: 0.8rem;
}
.demo-chip .pulse-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #19d97c; margin-right: 6px;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 217, 124, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(25, 217, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 217, 124, 0); }
}

.demo-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 14px;
}
.demo-kpi { padding: 16px; border-radius: 18px; color: #fff; }
.demo-kpi strong { display: block; font-size: 1.5rem; }
.demo-kpi span { font-size: 0.85rem; }
.demo-kpi.green  { background: linear-gradient(135deg, #1bbf69, #118e4b); }
.demo-kpi.blue   { background: linear-gradient(135deg, #2482ff, #1d61e0); }
.demo-kpi.orange { background: linear-gradient(135deg, #ff8d21, #f97316); }
.demo-kpi.teal   { background: linear-gradient(135deg, #12b79c, #0d8e8a); }

.demo-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px; padding: 18px;
}
.demo-panel h3 { margin-top: 0; font-size: 1.02rem; }
.demo-panel ul { padding-left: 18px; color: var(--muted); line-height: 1.8; margin: 0; }
.flow-links { display: grid; gap: 10px; }
.flow-links span {
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06); color: #dfeaff;
  font-size: 0.92rem;
}

/* ---------- sustentabilidad / certificaciones ---------- */
.benefit-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }

.benefit-card {
  padding: 26px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: 0.28s ease;
}
.benefit-card:hover { transform: translateY(-6px); border-color: rgba(122, 162, 255, 0.3); }
.benefit-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: rgba(122, 162, 255, 0.14);
  border: 1px solid rgba(122, 162, 255, 0.24);
  margin-bottom: 14px;
}
.benefit-card h3 { margin: 0 0 10px; font-size: 1.08rem; }
.benefit-card p { margin: 0; line-height: 1.7; font-size: 0.94rem; color: var(--muted); }

.cert-strip {
  margin-top: 26px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.chip {
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #dbe5f5; font-weight: 600; font-size: 0.88rem;
}

/* ---------- contadores ---------- */
.counter-band {
  margin: 40px 0 8px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.counter-item {
  text-align: center; padding: 26px 16px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.counter-item strong {
  display: block; font-size: 2.4rem; font-weight: 900;
  background: linear-gradient(90deg, #53a0ff, #37e1a1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.counter-item span { color: var(--muted); font-size: 0.92rem; }

/* ---------- sucursales ---------- */
.branch-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }

.branch-card {
  padding: 24px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.28s ease;
}
.branch-card:hover { transform: translateY(-6px); border-color: rgba(122, 162, 255, 0.3); }
.branch-zone {
  display: inline-flex; padding: 6px 12px; border-radius: 999px;
  background: rgba(45, 116, 255, 0.16);
  border: 1px solid rgba(45, 116, 255, 0.3);
  color: #a9c8ff; font-weight: 800; font-size: 0.75rem;
  letter-spacing: 0.06em; margin-bottom: 12px;
}
.branch-card h3 { margin: 0 0 4px; font-size: 1.15rem; }
.branch-card .branch-type { color: #8fa7cc; font-weight: 700; font-size: 0.82rem; margin: 0 0 10px; }
.branch-card p { margin: 0 0 6px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.branch-card a { color: #8ab4ff; text-decoration: none; font-weight: 700; font-size: 0.9rem; }

/* ---------- formulario de cotización ---------- */
.quote-sec { padding: 52px 0 28px; }

.contact-form-wrap { max-width: 860px; margin: 0 auto; }

.contact-form {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px; padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.contact-form h3 { margin: 0 0 6px; font-size: 1.4rem; }
.form-sub { margin: 0 0 20px; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label {
  display: flex; flex-direction: column; gap: 7px;
  font-weight: 700; font-size: 0.9rem;
}
.form-full { grid-column: 1 / -1; }

.form-grid input, .form-grid select, .form-grid textarea {
  padding: 13px 15px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 23, 46, 0.55); color: #fff;
  font: inherit; font-weight: 500;
  resize: vertical;
}
.form-grid select option { color: #10213e; background: #fff; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: 2px solid rgba(45, 116, 255, 0.55); border-color: transparent;
}

.hp-field { position: absolute; left: -9999px; height: 0; opacity: 0; }

.form-submit { margin-top: 20px; border: none; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-status { margin-top: 12px; font-weight: 700; min-height: 22px; }
.form-status.ok { color: #2be37d; }
.form-status.err { color: #ff8d8d; }

/* ---------- CTA / contacto ---------- */
.cta { padding: 38px 0 60px; }
.cta-box {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 34px; border-radius: 30px;
  background: linear-gradient(90deg, rgba(47, 84, 175, 0.52), rgba(5, 55, 88, 0.62) 45%, rgba(5, 88, 68, 0.48));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}
.cta-actions {
  display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
}
.cta-contact { color: var(--muted); font-size: 0.95rem; text-align: right; line-height: 1.8; }
.cta-contact a { color: #a9c8ff; text-decoration: none; font-weight: 700; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 17, 36, 0.85);
  backdrop-filter: blur(10px);
}
.footer-layout {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 22px; padding: 34px 0;
}
.footer-logo {
  height: 64px; margin-bottom: 12px;
  background: #fff; border-radius: 14px; padding: 8px 12px;
  width: fit-content;
}
.footer-logo img { height: 100%; width: auto; }
.footer-brand p { color: var(--muted); max-width: 420px; line-height: 1.7; }
.site-footer h4 { margin: 0 0 12px; }
.site-footer a { display: block; text-decoration: none; color: #d9e7ff; margin: 8px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 18px 0 26px; color: #9fb2d1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- página de acceso ---------- */
.login-wrap {
  min-height: calc(100vh - 92px);
  display: grid; place-items: center;
  padding: 50px 0;
}
.login-card {
  width: min(1020px, 94vw);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0;
  border-radius: 34px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(16px);
}
.login-side {
  padding: 44px 38px;
  background: linear-gradient(160deg, rgba(29, 97, 224, 0.35), rgba(4, 17, 36, 0.6));
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.login-side .hero-brand-mini {
  margin: 0 0 6px; width: 150px; padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: none;
}
.login-side h1 { margin: 0; font-size: 1.9rem; letter-spacing: -0.02em; }
.login-side p { margin: 0; color: var(--muted); line-height: 1.75; }
.login-main { padding: 44px 38px; }
.login-main h2 { margin: 0 0 6px; font-size: 1.3rem; }
.login-main .form-sub { margin: 0 0 20px; color: var(--muted); font-size: 0.95rem; }

.hero-brand-mini {
  width: 230px; margin: 0 auto 18px;
  background: #fff; border-radius: 16px; padding: 12px 16px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.22));
}

.role-tabs { display: flex; gap: 10px; margin-bottom: 22px; }
.role-tabs .role-tab { flex: 1; padding: 12px; border-radius: 14px; font-size: 0.95rem; }

.access-links { display: grid; gap: 10px; }

.access-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  text-decoration: none; transition: 0.25s ease;
}
.access-link:hover {
  background: rgba(45, 116, 255, 0.12);
  border-color: rgba(45, 116, 255, 0.35);
  transform: translateX(4px);
}
.access-link .al-txt strong { display: block; font-size: 1rem; }
.access-link .al-txt span { color: var(--muted); font-size: 0.85rem; }
.access-link .al-arrow {
  font-size: 1.2rem; color: var(--primary-2);
  transition: 0.25s ease;
}
.access-link:hover .al-arrow { transform: translateX(4px); }

.access-link.disabled { opacity: 0.55; pointer-events: none; }
.access-link.disabled .al-arrow { color: #6e7fa3; }
.soon-pill {
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(245, 166, 35, 0.18);
  border: 1px solid rgba(245, 166, 35, 0.45);
  color: #ffcd7a; font-weight: 800; font-size: 0.68rem; letter-spacing: 0.06em;
}

/* compactar antes de colapsar */
@media (max-width: 1460px) {
  .main-nav a { font-size: 0.84rem; padding: 11px 7px; }
  .nav-actions .btn { padding: 10px 13px; font-size: 0.83rem; }
  .brand-seche { height: 28px; }
  .brand-logo { height: 34px; }
}

@media (max-width: 1200px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .main-nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 12px;
    box-shadow: 0 24px 40px rgba(0,0,0,0.16);
    z-index: 90;
  }
  .story-layout { grid-template-columns: 1fr; }
  .app-cards { grid-template-columns: repeat(2, 1fr); }
  .modern-cards, .demo-kpis, .demo-panels, .counter-band, .branch-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: 1fr; }
  .footer-layout { grid-template-columns: repeat(2, 1fr); }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .cta-actions { align-items: flex-start; }
  .login-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .app-cards, .modern-cards, .demo-kpis, .demo-panels,
  .footer-layout, .counter-band, .branch-grid { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; justify-content: center; padding: 14px 0; }
  .nav-actions { width: 100%; justify-content: center; }
  .story-step { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .brand-logo { height: 32px; }
  .brand-seche { height: 26px; }
  .brand-sep { height: 30px; }
  .role-switch { flex-direction: column; }
}
