﻿/* Slides de inversión — una idea por pantalla */
.commercial-slide--full .slide-inner {
  padding: 0.85em 1.45em 0.75em;
  justify-content: flex-start;
  overflow: hidden;
  gap: 0.35em;
}

.commercial-slide--full .eyebrow {
  margin-bottom: 0.15em;
  flex-shrink: 0;
}

.commercial-slide--full h2 {
  margin-bottom: 0.25em;
  flex-shrink: 0;
  font-size: 1.35em;
}

.commercial-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100% - 4.2em);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.55em 0.75em 0.5em;
  border-radius: 14px;
  border: 1px solid rgba(45, 111, 217, 0.35);
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 48px rgba(0, 71, 186, 0.2);
  overflow: hidden;
}

.commercial-subtitle {
  font-family: "Syne", sans-serif;
  font-size: 0.5em;
  color: var(--senati-blue-light);
  margin: 0 0 0.35em;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.commercial-body--table {
  justify-content: space-between;
  padding: 0.5em 0.7em 0.45em;
  gap: 0.35em;
}

.commercial-body--table .invest-split-table {
  flex-shrink: 1;
  min-height: 0;
}

.commercial-body--table .invest-split-summary {
  flex-shrink: 0;
  margin-top: 0;
}

.commercial-body--opex {
  align-items: center;
  text-align: center;
}

.commercial-slide--full .invest-split-table {
  width: 100%;
  font-size: 0.42em;
  line-height: 1.32;
  border-collapse: collapse;
  table-layout: fixed;
}

.commercial-slide--full .invest-split-table th {
  background: rgba(0, 71, 186, 0.28);
  color: var(--senati-blue-light);
  font-weight: 600;
  padding: 0.32em 0.4em;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.commercial-slide--full .invest-split-table th:first-child,
.commercial-slide--full .invest-split-table td:first-child {
  width: 52%;
}

.commercial-slide--full .invest-split-table td {
  padding: 0.28em 0.4em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  vertical-align: middle;
  word-wrap: break-word;
}

.commercial-slide--full .invest-split-table .col-buy {
  color: #b8e0ff;
  text-align: right;
  white-space: nowrap;
}

.commercial-slide--full .invest-split-table .col-dev {
  color: #d4ff8a;
  text-align: right;
  white-space: nowrap;
}

.commercial-slide--full .invest-split-table tr.section td {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  color: var(--muted);
}

.commercial-slide--full .invest-split-table tr.total td {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.05em;
  border-top: 2px solid rgba(45, 111, 217, 0.5);
}

.commercial-slide--full .invest-split-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35em;
  font-size: 0.36em;
}

.commercial-slide--full .invest-split-summary div {
  text-align: center;
  padding: 0.45em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.commercial-slide--full .invest-split-summary strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1.4em;
  color: var(--senati-blue-light);
}

.commercial-stat-grid--large {
  gap: 0.75em;
}

.commercial-stat-grid--large .commercial-stat {
  padding: 0.85em 0.55em;
}

.commercial-stat-grid--large .commercial-stat .v {
  font-size: 0.95em;
}

.commercial-stat-grid--large .commercial-stat .l {
  font-size: 0.44em;
}

.invest-foot--large {
  font-size: 0.44em;
  text-align: center;
  margin-top: 0.85em;
  color: var(--muted);
}

.commercial-slide--full .opex-big {
  font-size: 2.6em;
}

.commercial-slide--full .opex-sub {
  font-size: 0.5em;
}

.opex-list--large {
  font-size: 0.48em;
  max-width: 16em;
}

.scenario-cards--deck {
  gap: 0.75em;
}

.scenario-cards--deck .scenario-card {
  font-size: 0.52em;
  padding: 0.85em;
  min-height: 5.5em;
}

.scenario-cards--deck .scenario-card h4 {
  font-size: 1.2em;
}

.commercial-slide--full .commercial-note {
  font-size: 0.42em;
  color: var(--muted);
  text-align: center;
  margin-top: 0.35em;
  flex-shrink: 0;
}

/* Legacy slider (build_deck.py) */
.commercial-slide .slide-inner {
  padding: 0.55em 1.25em 0.45em !important;
  justify-content: flex-start;
  overflow: hidden;
  max-height: 100%;
  height: 100%;
  box-sizing: border-box;
}

.commercial-slide .eyebrow {
  margin-bottom: 0.1em;
}

.commercial-slide h2 {
  font-size: 1.05em;
  margin-bottom: 0.1em;
  flex-shrink: 0;
}

.commercial-slider {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(45, 111, 217, 0.35);
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 48px rgba(0, 71, 186, 0.2);
  min-height: 0;
  flex: 1;
  height: 100%;
}

.commercial-slide .slide-inner {
  display: flex;
  flex-direction: column;
}

.commercial-slider-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100% - 5.5em);
  display: flex;
  flex-direction: column;
}

.commercial-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.commercial-panel {
  flex: 0 0 100%;
  padding: 1em 1.3em;
  box-sizing: border-box;
}

.commercial-panel h3 {
  font-family: "Syne", sans-serif;
  font-size: 0.75em;
  color: #2d6fd9;
  margin: 0 0 0.6em;
  letter-spacing: 0.05em;
}

.commercial-panel table {
  width: 100%;
  font-size: 0.52em;
  border-collapse: collapse;
  color: #f4f4f8;
}

.commercial-panel th {
  background: rgba(0, 71, 186, 0.2);
  color: #2d6fd9;
  font-weight: 600;
}

.commercial-panel th,
.commercial-panel td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4em 0.55em;
}

.commercial-panel tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

.scenario-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55em;
}

.scenario-card {
  padding: 0.65em;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.5em;
  line-height: 1.4;
  transition: transform 0.2s, border-color 0.2s;
}

.scenario-card:hover {
  transform: translateY(-3px);
  border-color: #2d6fd9;
}

.scenario-card h4 {
  font-family: "Syne", sans-serif;
  margin: 0 0 0.35em;
  font-size: 1.15em;
}

.scenario-card:nth-child(1) h4 { color: #2d6fd9; }
.scenario-card:nth-child(2) h4 { color: #b8ff3c; }
.scenario-card:nth-child(3) h4 { color: #ffb020; }

.commercial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  margin-top: 0.3em;
  flex-shrink: 0;
}

.commercial-note {
  flex-shrink: 0;
  margin-top: 0.2em;
}

.commercial-prev,
.commercial-next {
  display: none !important;
}

.commercial-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  padding: 0;
  cursor: pointer;
}

.commercial-dots button.active {
  background: #2d6fd9;
  box-shadow: 0 0 12px #2d6fd9;
}

.commercial-counter {
  font-size: 0.5em;
  color: #9ca3b8;
}

.commercial-note {
  font-size: 0.45em;
  color: #9ca3b8;
  text-align: center;
  margin-top: 0.35em;
}

/* Panel inversión total — barras */
.commercial-panel--hero {
  padding: 1.1em 1.4em;
}

.invest-bars {
  display: flex;
  flex-direction: column;
  gap: 0.65em;
  margin-top: 0.5em;
}

.invest-row {
  display: grid;
  grid-template-columns: 5.5em 1fr 4.5em;
  align-items: center;
  gap: 0.5em;
  font-size: 0.48em;
}

.invest-label {
  font-weight: 600;
  color: #f4f4f8;
}

.invest-bar-wrap {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.invest-bar {
  height: 100%;
  width: var(--w, 50%);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.invest-bar--min {
  background: linear-gradient(90deg, #0047ba, #2d6fd9);
}

.invest-bar--rec {
  background: linear-gradient(90deg, #2d6fd9, #b8ff3c);
}

.invest-bar--full {
  background: linear-gradient(90deg, #b8ff3c, #ffb020);
}

.invest-val {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.1em;
  color: #2d6fd9;
  text-align: right;
}

.invest-foot,
.commercial-panel .invest-foot {
  font-size: 0.42em;
  color: #9ca3b8;
  margin: 0.65em 0 0;
  text-align: center;
}

/* Grid de cifras Capex / NONHUMAN */
.commercial-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5em;
  margin-top: 0.35em;
}

.commercial-stat-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.commercial-stat {
  padding: 0.55em 0.4em;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.commercial-stat .v {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 0.72em;
  font-weight: 800;
  color: #2d6fd9;
  line-height: 1.1;
}

.commercial-stat .l {
  display: block;
  font-size: 0.38em;
  color: #9ca3b8;
  margin-top: 0.25em;
  line-height: 1.3;
}

.commercial-stat--phase .v {
  font-size: 0.55em;
}

/* OpEx destacado */
.commercial-panel--opex {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 36vh;
}

.opex-hero {
  margin: 0.2em 0 0;
}

.opex-big {
  font-family: "Syne", sans-serif;
  font-size: 2.2em;
  font-weight: 800;
  color: #b8ff3c;
  text-shadow: 0 0 32px rgba(184, 255, 60, 0.35);
}

.opex-sub {
  font-size: 0.45em;
  color: #9ca3b8;
  margin: 0 0 0.8em;
}

.opex-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 14em;
  font-size: 0.42em;
  color: #f4f4f8;
  text-align: left;
}

.opex-list li {
  padding: 0.25em 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.opex-list li::before {
  content: "→ ";
  color: #2d6fd9;
}

.scenario-cards--tall .scenario-card {
  min-height: 4.5em;
}

/* Tabla compra vs desarrollo */
.commercial-panel--table {
  padding: 0.55em 0.7em 0.45em;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.commercial-panel--table h3 {
  font-size: 0.68em;
  margin-bottom: 0.35em;
}

.invest-split-table {
  width: 100%;
  font-size: 0.5em;
  line-height: 1.35;
  border-collapse: collapse;
  margin-top: 0.15em;
}

.invest-split-table th {
  background: rgba(0, 71, 186, 0.28);
  color: var(--senati-blue-light);
  font-weight: 600;
  padding: 0.38em 0.45em;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.invest-split-table td {
  padding: 0.32em 0.45em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  vertical-align: middle;
}

.invest-split-table .col-buy {
  color: #b8e0ff;
  text-align: right;
  white-space: nowrap;
}

.invest-split-table .col-dev {
  color: #d4ff8a;
  text-align: right;
  white-space: nowrap;
}

.invest-split-table tr.section td {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.92em;
}

.invest-split-table tr.total td {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.05em;
  border-top: 2px solid rgba(45, 111, 217, 0.5);
}

.invest-split-table tr.total .col-buy { color: var(--senati-blue-light); }
.invest-split-table tr.total .col-dev { color: var(--lime); }

.invest-split-table tr.grand-total td {
  text-align: center;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.08em;
  padding: 0.55em 0.4em;
  border-top: 2px solid rgba(184, 255, 60, 0.35);
  background: rgba(184, 255, 60, 0.08);
  color: var(--text);
}

.invest-split-table tr.grand-total strong {
  color: var(--lime);
  font-size: 1.15em;
  margin-left: 0.35em;
}

.invest-split-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35em;
  margin-top: 0.35em;
  font-size: 0.42em;
  flex-shrink: 0;
}

.invest-split-summary div {
  text-align: center;
  padding: 0.35em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.invest-split-summary strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1.35em;
  color: var(--senati-blue-light);
}
