/* Canal Quantica S.L. — Arquitectura de Portal Corporativo Estructurado (v2) */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --cq-green: #68a62e;
  --cq-green-dark: #4f831d;
  --cq-green-soft: #f2f8ec;
  --cq-amber: #f59b1a;
  --cq-sun: #ffc815;
  --cq-blue: #5d9ce0;
  --cq-blue-soft: #eef5fc;
  --cq-charcoal: #1e2329;
  --dark: #0b1623;
  --slate: #374151;
  --muted: #64748b;
  --bg: #f4f6f8;
  --white: #ffffff;
  --line: #dce3e8;
  --radius: 12px;
  --shadow: 0 12px 30px -12px rgba(11, 22, 35, 0.12);
  --font-display: 'Marcellus', Optima, Candara, 'Segoe UI', serif;
  --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.52;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; color: var(--cq-charcoal); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 22px; }

/* Topbar Ejecutiva */
.topbar {
  background: var(--cq-charcoal);
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 7px 0;
  border-bottom: 2px solid var(--cq-green);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.topbar-links { display: flex; align-items: center; gap: 18px; font-weight: 600; }
.topbar-links a:hover { color: #ffffff; }
.pill-tag {
  background: rgba(104, 166, 46, 0.25);
  color: #a9e36d;
  border: 1px solid rgba(132, 204, 22, 0.45);
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  margin-right: 6px;
}

/* Cabecera Corporativa con Pestañas de Portal */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 16px;
}
.logo-official { display: flex; align-items: center; flex-shrink: 0; }
.logo-official img { height: 50px; width: auto; }

.portal-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}
.portal-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 78px;
  padding: 0 13px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--cq-charcoal);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.portal-nav a:hover {
  color: var(--cq-green-dark);
  background: #f8faf9;
}
.portal-nav a.active {
  color: var(--cq-green-dark);
  border-bottom-color: var(--cq-green);
  font-weight: 700;
}
.portal-nav a.nav-partner {
  color: #1d4ed8;
  background: #f0f7ff;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  margin-left: 6px;
  padding: 0 13px;
}
.portal-nav a.nav-partner:hover,
.portal-nav a.nav-partner.active {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #1e3a8a;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  padding: 11px 20px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-emerald {
  background: var(--cq-green);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(104, 166, 46, 0.35);
}
.btn-emerald:hover { background: var(--cq-green-dark); }
.btn-dark { background: var(--cq-charcoal); color: #ffffff; }
.btn-dark:hover { background: #323a45; }
.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }

.kicker {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--cq-green);
  display: block;
  margin-bottom: 6px;
}

/* HERO EJECUTIVO COMPACTO (NO BLOG) */
.corp-hero {
  background: linear-gradient(125deg, #091422 0%, #132942 100%);
  color: #ffffff;
  padding: 42px 0;
  border-bottom: 4px solid var(--cq-amber);
}
.corp-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
}
.corp-hero h1 {
  color: #ffffff;
  font-size: clamp(1.85rem, 3.1vw, 2.55rem);
  line-height: 1.16;
  margin: 8px 0 14px;
}
.corp-hero h1 span { color: var(--cq-sun); }
.corp-hero p {
  color: #cbd5e1;
  font-size: 0.96rem;
  margin: 0 0 22px;
  max-width: 620px;
}
/* Acceso rápido estructurado de 4 cajas en Hero */
.quick-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.qm-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-left: 3px solid var(--cq-green);
  border-radius: 8px;
  padding: 10px 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.qm-item:hover { background: rgba(255,255,255,0.12); }
.qm-item strong { display: block; font-size: 0.86rem; color: #ffffff; }
.qm-item span { font-size: 0.76rem; color: #94a3b8; }

.hero-panel-right {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-panel-right img {
  width: 100%;
  height: 225px;
  object-fit: cover;
}
.hero-metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
  background: rgba(7, 15, 26, 0.85);
}
.hm-cell {
  padding: 14px 12px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.hm-cell:last-child { border-right: none; }
.hm-cell strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--cq-sun); }
.hm-cell span { font-size: 0.72rem; color: #cbd5e1; }

/* SECCIONES ESTRUCTURADAS COMPACTAS */
.corp-section { padding: 48px 0; }
.corp-section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}
.sec-header-row h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.sec-header-row p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; max-width: 650px; }

/* CONSOLA DE SOLUCIONES POR PESTAÑAS (CERO ASPECTO DE BLOG) */
.console-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.console-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #eef2f5;
  border-bottom: 1px solid var(--line);
}
.c-tab {
  padding: 14px 10px;
  border: none;
  border-right: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.c-tab:last-child { border-right: none; }
.c-tab:hover { background: #e2e8f0; color: var(--cq-charcoal); }
.c-tab.active {
  background: var(--white);
  color: var(--cq-green-dark);
  box-shadow: inset 0 3px 0 var(--cq-green);
}
.c-pane { display: none; padding: 28px; }
.c-pane.active { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: center; }

.pane-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--cq-green-soft);
  color: var(--cq-green-dark);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.pane-badge.amber { background: #fff8eb; color: #b45309; }
.pane-badge.blue { background: var(--cq-blue-soft); color: #1e40af; }

.c-pane h3 { font-size: 1.5rem; margin-bottom: 10px; }
.c-pane p { margin: 0 0 16px; font-size: 0.92rem; color: var(--slate); }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 0.85rem;
}
.spec-table th, .spec-table td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
}
.spec-table th { background: #f8fafc; color: var(--cq-charcoal); width: 36%; font-weight: 700; }
.spec-table td { color: var(--slate); font-weight: 500; }

.pane-visual {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.pane-visual img { width: 100%; height: 280px; object-fit: cover; }
.pane-visual-foot {
  background: var(--cq-charcoal);
  color: #f8fafc;
  padding: 10px 14px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
}
.pane-visual-foot strong { color: var(--cq-sun); }

/* TABLA MATRIZ COMPARATIVA EJECUTIVA */
.table-responsive { overflow-x: auto; }
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.85rem;
}
.matrix-table thead th {
  background: var(--cq-charcoal);
  color: #ffffff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
}
.matrix-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.matrix-table tbody tr:nth-child(even) { background: #f9fbfc; }
.matrix-table tbody tr:hover { background: var(--cq-green-soft); }
.ok-pill { color: var(--cq-green-dark); font-weight: 700; }

/* BLOQUE UNIFICADO EN PARALELO: SIMULADOR (IZQ) + FORMULARIO EJECUTIVO (DCHA) */
.workstation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}
.calc-card {
  background: linear-gradient(150deg, #0b1726 0%, #152c46 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 26px;
  border-top: 4px solid var(--cq-amber);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calc-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 18px;
}
.calc-tab {
  background: rgba(255,255,255,0.07);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.16);
  padding: 9px 10px;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.calc-tab.active { background: var(--cq-green); color: #ffffff; border-color: var(--cq-green); }
.calc-panel { display: none; }
.calc-panel.active { display: block; }
.slider-group { margin-bottom: 14px; }
.slider-label { display: flex; justify-content: space-between; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; }
.slider-label strong { color: var(--cq-sun); font-size: 1.05rem; }
input[type="range"] { width: 100%; accent-color: var(--cq-green); cursor: pointer; }
.calc-select { width: 100%; padding: 9px 11px; border-radius: 7px; background: #08121f; color: #fff; border: 1px solid rgba(255,255,255,0.22); font-family: var(--font-sans); font-size: 0.85rem; }
.calc-results {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(104, 166, 46, 0.45);
  border-radius: 10px;
  padding: 18px;
  margin-top: 12px;
}
.res-main { font-family: var(--font-display); font-size: 1.9rem; color: var(--cq-sun); margin: 3px 0 10px; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.12); }
.res-grid div span { display: block; font-size: 0.72rem; color: #9fb0c4; }
.res-grid div strong { font-size: 0.9rem; color: #ffffff; }

/* Formulario Corporativo */
.form-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cq-green);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.f-group { margin-bottom: 11px; }
.f-group label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--cq-charcoal); margin-bottom: 3px; }
.f-group input, .f-group select, .f-group textarea {
  width: 100%; padding: 9px 11px; border: 1.5px solid #cbd5e1; border-radius: 7px; font-size: 0.88rem; font-family: var(--font-sans); color: var(--cq-charcoal);
}
.f-group input:focus, .f-group select:focus, .f-group textarea:focus {
  outline: none; border-color: var(--cq-green); box-shadow: 0 0 0 3px rgba(104, 166, 46, 0.14);
}
.upload-box { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1.5px dashed #94a3b8; border-radius: 7px; background: var(--bg); cursor: pointer; font-size: 0.8rem; color: var(--slate); }
.upload-box:hover { border-color: var(--cq-green); background: var(--cq-green-soft); }
.upload-box input { display: none; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.msg-status { display: none; margin-top: 10px; padding: 10px 12px; border-radius: 7px; font-weight: 600; font-size: 0.85rem; }
.msg-status.ok { display: block; background: var(--cq-green-soft); color: #2e5910; border: 1px solid #9be15d; }
.msg-status.err { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* BANDA CALLOUT CANAL COLABORADORES */
.partner-banner {
  background: linear-gradient(120deg, #10243e 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.partner-banner h3 { color: #ffffff; font-size: 1.5rem; margin-bottom: 6px; }
.partner-banner p { margin: 0; color: #dbeafe; font-size: 0.92rem; max-width: 680px; }

/* PÁGINA ESPECÍFICA DE COLABORADORES */
.partner-profiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.prof-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cq-blue);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.prof-card h3 { font-size: 1.12rem; margin: 8px 0; }
.prof-card p { font-size: 0.85rem; color: var(--slate); margin: 0 0 10px; }
.prof-card ul { margin: 0; padding-left: 16px; font-size: 0.81rem; color: var(--cq-charcoal); }
.prof-card li { margin-bottom: 4px; }

/* Footer */
.footer {
  background: #08121e;
  color: #94a3b8;
  padding: 38px 0 85px;
  font-size: 0.84rem;
  border-top: 3px solid var(--cq-green);
}
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); align-items: center; }
.footer-logo { height: 46px; width: auto; margin-bottom: 10px; }
.footer strong { color: #f8fafc; }

.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  background: var(--white); padding: 9px 12px; border-top: 1px solid var(--line); gap: 8px;
  box-shadow: 0 -6px 18px rgba(0,0,0,0.08);
}
.mobile-bar .btn { flex: 1; padding: 11px 8px; font-size: 0.82rem; }

@media (max-width: 1024px) {
  .console-tabs { grid-template-columns: repeat(3, 1fr); }
  .c-pane.active, .workstation-grid, .corp-hero-grid { grid-template-columns: 1fr; }
  .partner-profiles { grid-template-columns: repeat(2, 1fr); }
  .portal-nav { display: none; }
}
@media (max-width: 640px) {
  .console-tabs { grid-template-columns: repeat(2, 1fr); }
  .quick-matrix, .partner-profiles, .f-row, .hero-metrics-bar { grid-template-columns: 1fr; }
  .logo-official img { height: 42px; }
  .header-inner { height: 68px; }
  .mobile-bar { display: flex; }
}
