:root {
  --bg: #eef2f7;
  --card: #ffffff;
  --text: #434343;
  --gray: #434343;
  --muted: rgba(67, 67, 67, 0.78);
  --line: rgba(67, 67, 67, 0.14);
  --shadow: 0 14px 34px rgba(2, 6, 23, 0.1);
  --primary: #00a3d8;
  --secondary: #138297;
  --accent: #e8f7fc;
  --proyectado: #f59e0b;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: radial-gradient(900px 600px at 20% 5%, #ffffff 0%, var(--bg) 55%, #e8edf5 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

/* Gate de acceso */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg) 0%, #d4e4f0 100%);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gate.is-unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate__box {
  background: var(--card);
  padding: 2rem 2.5rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  text-align: center;
  min-width: 320px;
}

.gate__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--text);
}

.gate__text {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.gate__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gate__input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.gate__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 163, 216, 0.2);
}

.gate__btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.gate__btn:hover {
  opacity: 0.9;
}

.gate__error {
  margin: 1rem 0 0;
  color: #c53030;
  font-size: 0.9rem;
  display: none;
}

.gate__error.is-visible {
  display: block;
}

.deck {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.deck__topbar {
  height: 4px;
  background: rgba(67, 67, 67, 0.08);
  flex-shrink: 0;
}

.deck__progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.25s ease;
}

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 0;
}

.nav {
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 1rem 0.75rem;
  overflow-y: auto;
}

.nav__brand {
  padding: 0 0.5rem 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.75rem;
}

.nav__brandTitle {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}

.nav__brandSub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav__item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.nav__item:hover {
  background: var(--accent);
  color: var(--text);
}

.nav__item.is-active {
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
}

.nav__n {
  flex-shrink: 0;
  width: 1.1rem;
  font-weight: 700;
  opacity: 0.7;
}

.stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow-y: auto;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 2.5rem 5rem;
  min-height: 100%;
}

.slide__logo {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  height: 36px;
  width: auto;
  z-index: 2;
}

.slide__header {
  margin-bottom: 1.5rem;
  padding-right: 140px;
}

.slide__header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

.slide__subtitle {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.controls {
  position: fixed;
  bottom: 1.25rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 100;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.5rem;
  box-shadow: var(--shadow);
}

.controls__label {
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 3rem;
  text-align: center;
  padding: 0 0.25rem;
}

.controls__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--primary);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.controls__btn:hover:not(:disabled) {
  background: var(--accent);
}

.controls__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Slide 1 — Cover */
.slide--cover .slide__inner--fill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding-top: 1.25rem;
  padding-bottom: 5rem;
  max-width: 1280px;
}

.cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  width: 100%;
}

.cover__header {
  margin-bottom: 0;
  padding-right: 0;
  text-align: center;
  width: 100%;
}

.cover__brand {
  margin: 0;
  line-height: 0;
}

.cover__brand-img {
  display: block;
  margin: 0 auto;
  height: clamp(2.5rem, 5vw, 3.25rem);
  width: auto;
  max-width: min(420px, 88vw);
}

.cover__lead {
  font-size: clamp(1.25rem, 1.85vw, 1.5rem);
  color: var(--text);
  margin: 0;
  line-height: 1.55;
  max-width: 42rem;
  text-align: center;
  padding: 1.1rem 1.25rem;
  border-left: none;
  border-top: 4px solid var(--primary);
  background: linear-gradient(180deg, rgba(232, 247, 252, 0.95) 0%, transparent 100%);
  border-radius: 0 0 12px 12px;
}

.cover__lead strong {
  color: var(--primary);
  font-weight: 700;
}

.cover__team {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 980px;
  margin-top: 0.25rem;
}

.cover-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.65rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.cover-team__photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(0, 163, 216, 0.25);
  box-shadow: 0 6px 18px rgba(0, 60, 90, 0.12);
}

.cover-team__name {
  margin: 0.75rem 0 0.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.cover-team__role {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

/* Leyendas de fotos: cliente · provincia · potencia */
.img-caption {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin: 0;
}

.img-caption--cover {
  text-align: right;
  padding: 0 0.25rem;
}

.img-caption--cover .img-caption__client {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.img-caption--cover .img-caption__prov {
  font-size: 0.88rem;
  color: var(--muted);
}

.img-caption--cover .img-caption__kw {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.img-caption--overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.65rem 0.7rem 0.55rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #fff;
}

.img-caption__client {
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}

.img-caption__prov {
  font-size: 0.66rem;
  opacity: 0.92;
  line-height: 1.2;
}

.img-caption__kw {
  font-size: 0.7rem;
  font-weight: 800;
  color: #7ddfff;
  line-height: 1.2;
  margin-top: 0.1rem;
}

/* Slide historia — timeline vertical conceptual (estilo web) */
.slide--historia .slide__inner--fill {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: 4rem;
}

.slide__header--compact {
  margin-bottom: 0.75rem;
}

.slide__header--compact .slide__subtitle {
  margin-top: 0.25rem;
}

.historia-v {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
  padding-left: 4.25rem;
  min-height: 0;
}

.historia-v::before {
  content: "";
  position: absolute;
  left: 1.65rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, #18b7da 0%, #1095ce 58%, #1b3447 100%);
  border-radius: 2px;
}

.historia-v__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
}

.historia-v__year {
  position: absolute;
  left: -4.25rem;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(180deg, #18b7da 0%, #1095ce 100%);
  box-shadow: 0 10px 24px rgba(16, 149, 206, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.historia-v__card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.55rem 1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.historia-v__item--active .historia-v__card {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  box-shadow: 0 10px 28px rgba(0, 163, 216, 0.14);
}

.historia-v__item--active .historia-v__year {
  box-shadow: 0 12px 28px rgba(16, 149, 206, 0.35);
}

.historia-v__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.historia-v__hint {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.25;
}

/* Slide 3 — Segmentos (layout integración) */
.slide--segmentos .slide__inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem;
  min-height: calc(100vh - 5rem);
  padding-bottom: 4.5rem;
  align-content: stretch;
}

.segmentos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 1rem;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

.segmentos__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(67, 67, 67, 0.06);
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / -1;
  min-height: 0;
}

.segmentos__imgWrap {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: rgba(19, 130, 151, 0.08);
}

.segmentos__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.segmentos__title {
  margin: 0;
  padding: 0.75rem 1rem 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.segmentos__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0 1rem 0.85rem;
}

.segmentos__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(67, 67, 67, 0.9);
}

.segmentos__note {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.35;
}

/* Slide — En qué nos diferenciamos */
.slide--valor .slide__inner--fill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding-bottom: 4.5rem;
  gap: 1.5rem;
}

.slide--valor .slide__header--compact {
  margin-bottom: 0;
  flex-shrink: 0;
  text-align: center;
}

.slide--valor .slide__header--compact .slide__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.valor--visual {
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  align-items: stretch;
  align-content: center;
  justify-content: center;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
}

.valor__card-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.15rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 253, 0.95) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(67, 67, 67, 0.06);
}

.valor__icon-wrap {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 163, 216, 0.35);
  flex-shrink: 0;
}

.valor__icon-wrap i {
  font-size: 2rem;
}

.valor__card-title {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.valor__card-desc {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 22em;
}

/* Obras — 2 por slide (fotos grandes) */
.slide--obras .slide__inner--fill {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding-bottom: 5rem;
  gap: 0.85rem;
}

.slide--obras .slide__header--compact {
  margin-bottom: 0;
  flex-shrink: 0;
}

.obras-duo {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.obra-lg {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.obra-lg__img-wrap {
  flex: 1 1 auto;
  min-height: 0;
  background: rgba(67, 67, 67, 0.06);
}

.obra-lg__img-wrap img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 52vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

.obra-lg__meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.obra-lg__client {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.obra-lg__prov {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.obra-lg__kw {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0.15rem;
}

/* Slide con una sola obra: ocupa el ancho central */
.obras-duo:has(.obra-lg:only-child) {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.obras-duo:has(.obra-lg:only-child) .obra-lg__img-wrap img {
  max-height: 58vh;
}

/* Bullets */
.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bullets li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.45;
}

.bullets li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

/* Slides 7–9 — Modelos de venta (uno por slide) */
.slide--modelo-venta .slide__inner--fill {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: 4.5rem;
}

.modelo-venta__figure {
  flex: 1;
  margin: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
}

.modelo-venta__img {
  display: block;
  width: auto;
  height: auto;
  /* Por debajo del tamaño nativo (~1024–1248px) para evitar pixelado al escalar */
  max-width: min(820px, 88vw);
  max-height: min(460px, 48vh);
  object-fit: contain;
  margin: 0 auto;
}

.modelo-venta__hint {
  margin: 0.5rem auto 0;
  max-width: 720px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-shrink: 0;
}

.modelo-venta__note {
  margin: 0.5rem auto 0;
  max-width: 720px;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
  background: var(--accent);
  border-radius: 8px;
  flex-shrink: 0;
}

/* Roadmap (layout presentación extensa) */
.slide--roadmap .slide__inner {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.35rem;
  min-height: calc(100vh - 4rem);
  padding-bottom: 4.5rem;
}

.roadmap {
  min-height: 0;
  height: 100%;
  width: 100%;
}

.roadmap__board {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 420px;
  gap: 6px;
}

.roadmap__cols {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
  align-items: end;
  align-content: end;
  min-height: 0;
  padding: 4px 10px 0;
  z-index: 1;
}

.roadmap__stage {
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
  width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
}

.roadmap__stage--hoy {
  align-self: end;
  transform: translateY(calc(118px + 2cm));
}

.roadmap__stage--proximo {
  align-self: end;
  transform: translateY(calc(54px + 2cm));
}

.roadmap__stage--futuro {
  align-self: start;
  justify-self: end;
  transform: translateY(calc(-42px - 2cm));
  margin-right: 84px;
  max-width: 280px;
}

.roadmap__visual {
  flex: 0 0 auto;
  width: 78%;
  max-width: 820px;
  margin: -36px auto 0;
  padding-bottom: 4px;
  z-index: 0;
  pointer-events: none;
}

.roadmap__track {
  position: relative;
  width: 100%;
}

.roadmap__line {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.roadmap__rocket-img {
  position: absolute;
  right: calc(-0.5cm - 3mm);
  top: -7mm;
  width: 84px;
  height: auto;
  transform: translate(42%, -48%);
  user-select: none;
  filter: drop-shadow(0 4px 10px rgba(249, 115, 22, 0.25));
}

.roadmap__label {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.15;
  white-space: nowrap;
}

.roadmap__stage--hoy .roadmap__label {
  color: #5ec4e8;
}

.roadmap__stage--proximo .roadmap__label {
  color: var(--secondary);
}

.roadmap__stage--futuro .roadmap__label {
  color: #f97316;
}

.roadmap__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.48;
  color: var(--text);
}

.roadmap__text strong {
  font-weight: 800;
}

.roadmap__em {
  font-weight: 800;
  color: #f97316;
}

/* Chart */
.chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.65rem;
  height: 220px;
  padding: 0 1rem;
}

.chart__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 72px;
}

.chart__value {
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  min-height: 1rem;
}

.chart__growth {
  font-size: 0.62rem;
  color: var(--secondary);
  margin-bottom: 0.15rem;
  min-height: 0.85rem;
}

.chart__growth--neg {
  color: #c0392b;
}

.chart__growth--proj {
  color: var(--proyectado);
}

.chart__bar {
  width: 100%;
  height: var(--h, 40%);
  max-height: 140px;
  background: rgba(0, 163, 216, 0.2);
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.chart__fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 6px 6px 0 0;
}

.chart__col--proj .chart__bar {
  background: rgba(245, 158, 11, 0.15);
}

.chart__col--proj .chart__fill {
  background: linear-gradient(180deg, #f59e0b, #d97706);
}

.chart__year {
  font-size: 0.65rem;
  margin-top: 0.35rem;
  color: var(--muted);
  text-align: center;
}

.chart__drivers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.chart__driver {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.chart__driver h3 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: var(--primary);
}

.chart__driver ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Slide Históricos */
.slide--historicos .slide__inner--fill {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding-top: 1.75rem;
  padding-bottom: 5rem;
  gap: 1.25rem;
}

.slide--historicos .slide__header--compact {
  margin-bottom: 0;
  flex-shrink: 0;
}

.hist {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
  align-content: center;
}

.hist__panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: var(--shadow);
}

.hist__panel-title {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  flex-shrink: 0;
}

.hist-chart {
  flex: 0 1 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
  min-height: 0;
  padding: 0 0.25rem;
}

.hist-chart__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  max-width: 64px;
  min-height: 0;
}

.hist-chart__metric {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  min-height: 1.5rem;
  text-align: center;
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}

.hist-chart__metric--neg {
  color: #b91c1c;
}

.hist-chart__metric--pos {
  color: #15803d;
}

.hist-chart__bar {
  width: 100%;
  flex: 0 1 auto;
  min-height: 112px;
  max-height: 150px;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 163, 216, 0.12);
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.hist-chart__bar--margen {
  background: rgba(19, 130, 151, 0.12);
}

.hist-chart__fill {
  width: 100%;
  height: var(--h, 40%);
  min-height: 3px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 5px 5px 0 0;
}

.hist-chart__fill--margen {
  background: linear-gradient(180deg, #138297, #0d9488);
}

.hist-chart__fill--pos {
  background: linear-gradient(180deg, #22c55e, #15803d);
}

.hist-chart__fill--neg {
  background: linear-gradient(180deg, #f87171, #b91c1c);
}

.hist-chart__col--peak .hist-chart__fill--pos {
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.35);
}

/* EBITDA · barras con eje cero */
.hist-chart--ebitda .hist-chart__col--signed {
  justify-content: flex-end;
}

.hist-chart__signed {
  flex: 0 1 auto;
  width: 100%;
  min-height: 112px;
  max-height: 150px;
  display: flex;
  flex-direction: column;
  background: rgba(67, 67, 67, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.hist-chart__signed-up,
.hist-chart__signed-down {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hist-chart__signed-up {
  justify-content: flex-end;
}

.hist-chart__signed-down {
  justify-content: flex-start;
}

.hist-chart__signed-axis {
  flex-shrink: 0;
  height: 2px;
  background: rgba(67, 67, 67, 0.4);
  width: 100%;
}

.hist-chart__signed .hist-chart__fill {
  width: 100%;
  height: var(--h, 0%);
  min-height: 3px;
  border-radius: 0;
}

.hist-chart__signed-up .hist-chart__fill--pos {
  border-radius: 4px 4px 0 0;
}

.hist-chart__signed-down .hist-chart__fill--neg {
  border-radius: 0 0 4px 4px;
}

.hist-chart__col--dip .hist-chart__metric {
  color: #c0392b;
}

.hist-chart__year {
  font-size: 0.68rem;
  margin-top: 0.45rem;
  color: var(--muted);
  flex-shrink: 0;
}

.hist__insight {
  margin: 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  background: var(--accent);
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 163, 216, 0.15);
}

.hist__insight strong {
  color: var(--text);
}

@media (max-width: 1100px) {
  .hist {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hist-chart__bar,
  .hist-chart__signed {
    min-height: 88px;
    max-height: 120px;
  }
}

/* Slide Mix de ingresos */
.slide--mix-ingresos .slide__inner--fill {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding-bottom: 5rem;
  gap: 0.85rem;
}

.slide--mix-ingresos .slide__header--compact {
  margin-bottom: 0;
  flex-shrink: 0;
}

.mix-ingresos {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mix-ingresos__fin-note {
  margin: 0;
  padding: 0.65rem 0.9rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text);
  background: rgba(0, 163, 216, 0.1);
  border: 1px solid rgba(0, 163, 216, 0.25);
  border-radius: 8px;
  flex-shrink: 0;
}

.mix-ingresos__fin-note strong {
  color: var(--primary);
}

.mix-ingresos__chartWrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  justify-content: center;
}

.mix-ingresos__chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
  align-items: flex-end;
  max-width: 100%;
  width: 100%;
  margin: 0 auto 0.75rem;
}

.mix-ingresos__chart--extended .mix-ingresos__chartStack {
  max-width: 72px;
  height: 120px;
}

.mix-ingresos__chart--extended .mix-ingresos__chartTotal {
  font-size: 0.92rem;
}

.mix-ingresos__chart--extended .mix-ingresos__chartSeg {
  font-size: 0.62rem;
}

.mix-ingresos__chart--extended .mix-ingresos__chartYear {
  font-size: 0.72rem;
}

.mix-ingresos__legend--bottom {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.mix-ingresos__chartBar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.mix-ingresos__chartTotal {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}

.mix-ingresos__chartBar--proyectado .mix-ingresos__chartTotal {
  color: var(--primary);
}

.mix-ingresos__chartBar--proyectado .mix-ingresos__chartStack {
  border: 2px dashed rgba(0, 163, 216, 0.6);
}

.mix-ingresos__chartStack {
  width: 100%;
  max-width: 96px;
  height: 140px;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: rgba(67, 67, 67, 0.06);
}

.mix-ingresos__chartSeg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  min-height: 18px;
}

.mix-ingresos__chartSeg--rev {
  flex: 0 0 calc(var(--rev, 0) * 1%);
  background: linear-gradient(180deg, #5b6b7a, var(--gray));
}

.mix-ingresos__chartSeg--proy {
  flex: 0 0 calc(var(--proy, 0) * 1%);
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.mix-ingresos__chartYear {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.mix-ingresos__chartBar--proyectado .mix-ingresos__chartYear {
  color: var(--primary);
}

.mix-ingresos__legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.mix-ingresos__legendItem {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mix-ingresos__legendBox {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.mix-ingresos__legendItem--rev .mix-ingresos__legendBox {
  background: linear-gradient(135deg, #5b6b7a, var(--gray));
}

.mix-ingresos__legendItem--proy .mix-ingresos__legendBox {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.mix-ingresos__evolucion {
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 163, 216, 0.08);
  border: 1px solid rgba(0, 163, 216, 0.2);
  border-radius: 10px;
  flex-shrink: 0;
}

.mix-ingresos__evolucionItem {
  margin: 0 0 0.4rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text);
}

.mix-ingresos__evolucionItem:last-child {
  margin-bottom: 0;
}

.mix-ingresos__evolucionItem strong {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .mix-ingresos__chart {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  .mix-ingresos__chartStack {
    height: 110px;
  }
}

/* Slide P&L (proyección con financiamiento) */
.slide--pnl .slide__inner--fill {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding-bottom: 5rem;
  gap: 0.85rem;
}

.slide--pnl .slide__header--compact {
  margin-bottom: 0;
  flex-shrink: 0;
}

.pnl-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  flex-shrink: 0;
}

.pnl-highlights__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  text-align: center;
}

.pnl-highlights__value {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.pnl-highlights__label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}

.pnl__row--fin td {
  background: rgba(245, 158, 11, 0.06);
}

.pnl__num--fin {
  font-weight: 700;
  color: #b45309;
}

.pnl__num--fin-pct {
  font-weight: 600;
  color: #d97706;
}

.pnl {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pnl__wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
}

.pnl__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.pnl__th {
  padding: 0.45rem 0.55rem;
  text-align: center;
  font-weight: 700;
  color: var(--text);
  background: rgba(0, 163, 216, 0.08);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1;
}

.pnl__th--label {
  text-align: left;
  min-width: 9.5rem;
}

.pnl__th--year {
  min-width: 4.2rem;
}

.pnl__label {
  padding: 0.35rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.pnl__label--main {
  font-weight: 700;
}

.pnl__label--sub {
  font-weight: 400;
  color: var(--muted);
  padding-left: 1rem;
  font-size: 0.72rem;
}

.pnl__num {
  padding: 0.35rem 0.55rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.pnl__num--bold {
  font-weight: 700;
}

.pnl__num--neg {
  color: #b91c1c;
}

.pnl__row--separator td {
  border-bottom-width: 2px;
  border-bottom-color: rgba(67, 67, 67, 0.2);
}

.pnl__num--ebit-pos {
  background: rgba(21, 128, 61, 0.1);
  color: #15803d;
}

.pnl__num--ebit-neg {
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
}

.pnl__row--ebit td {
  padding-top: 0.75rem;
  border-top: 3px solid rgba(0, 163, 216, 0.3);
  background: rgba(0, 163, 216, 0.05);
}

.pnl__row--ebit + tr td {
  padding-bottom: 0.65rem;
  background: rgba(0, 163, 216, 0.05);
  border-bottom: 2px solid rgba(0, 163, 216, 0.2);
}

.pnl__row--ebit .pnl__num--bold {
  font-weight: 800;
}

.pnl__nota {
  margin: auto 0 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
  background: var(--accent);
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 163, 216, 0.12);
}

/* Financiamiento */
.fin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fin__box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
}

.fin__box--accent {
  border-color: var(--primary);
  background: var(--accent);
}

.fin__params {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 1rem;
}

.fin__param {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.4rem;
}

.fin__param strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary);
}

.fin__param span {
  font-size: 0.68rem;
  color: var(--muted);
}

/* Capital dual */
.capital {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.capital__card {
  border-radius: 16px;
  padding: 1.25rem;
  border: 2px solid var(--line);
}

.capital__card--wc {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
}

.capital__card--ext {
  border-color: var(--secondary);
  background: linear-gradient(135deg, #fff 0%, rgba(19, 130, 151, 0.08) 100%);
}

.capital__amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.25rem 0;
}

.capital__card--ext .capital__amount {
  color: var(--secondary);
}

.capital__who,
.capital__for,
.capital__risk {
  font-size: 0.8rem;
  margin: 0.35rem 0;
  line-height: 1.4;
}

.capital__who strong,
.capital__for strong,
.capital__risk strong {
  color: var(--text);
}

.capital__table {
  margin-top: 1rem;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.capital__table th,
.capital__table td {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  text-align: left;
}

.capital__table th {
  background: var(--accent);
  font-weight: 600;
}

/* Slide — Momento ideal EEDD */
.slide--eedd-momento .slide__inner--fill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding-bottom: 4.5rem;
  gap: 1.25rem;
}

.slide--eedd-momento .momento__header {
  margin-bottom: 0;
  flex-shrink: 0;
  text-align: center;
}

.slide--eedd-momento .momento__header h1 {
  max-width: 18em;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.25;
}

.momento {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.momento__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: start;
}

.momento__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.35rem;
}

.momento__icon-wrap {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, #7dd3f0 0%, var(--primary) 45%, var(--secondary) 100%);
  border-radius: 18px;
  color: #fff;
  box-shadow:
    0 10px 22px rgba(0, 163, 216, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.momento__icon-wrap i {
  font-size: 2rem;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.12));
}

.momento__icon-wrap--gap {
  background: linear-gradient(145deg, #34d399 0%, #22c55e 45%, #15803d 100%);
  color: #fff;
  box-shadow:
    0 10px 22px rgba(21, 128, 61, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.momento__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.momento__title--gap {
  color: #15803d;
}

.momento__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 14em;
}

.momento__desc--gap {
  color: var(--text);
  font-size: 0.88rem;
  max-width: 13em;
}

.momento__repagos-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 0.15rem;
}

.momento__repagos-wrap > .momento__brace,
.momento__repagos-wrap > .momento__repagos {
  grid-column: 1 / 3;
}

.momento__brace {
  width: 100%;
  height: 26px;
  color: rgba(67, 67, 67, 0.55);
  margin-bottom: -0.15rem;
}

.momento__repagos {
  margin: 0;
  padding: 0.7rem 1rem;
  border: 2px dashed rgba(67, 67, 67, 0.45);
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.65);
}

/* Slide — EEDD Regional */
.slide--eedd-regional .slide__inner--fill {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: 4.5rem;
  gap: 0.75rem;
}

.slide--eedd-regional .slide__header--compact {
  margin-bottom: 0;
  flex-shrink: 0;
  text-align: center;
}

.eedd-regional__figure {
  flex: 1;
  margin: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
}

.eedd-regional__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1080px, 94vw);
  max-height: min(520px, 58vh);
  object-fit: contain;
  margin: 0 auto;
}

/* Slide Working Capital */
.slide--wc .slide__inner--fill,
.slide--fin-cli .slide__inner--fill {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: 4.5rem;
  gap: 0.85rem;
}

.slide--wc .slide__header--compact,
.slide--fin-cli .slide__header--compact {
  margin-bottom: 0;
  flex-shrink: 0;
}

.wc {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wc__cycle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  flex-shrink: 0;
}

.wc__step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  box-shadow: var(--shadow);
}

.wc__step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.wc__step-title {
  margin: 0 0 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.wc__step-text {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.wc__tables {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  min-height: 0;
}

.wc__fund-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.wc__fund-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.wc__fund-body {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.92fr);
  gap: 0.85rem;
  align-items: stretch;
  min-height: 0;
}

.wc__fund-body .wc__table-wrap {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wc__fund-body .wc__table {
  font-size: 0.74rem;
}

.wc__fund-body .wc__table th,
.wc__fund-body .wc__table td {
  padding: 0.42rem 0.45rem;
}

.wc__fund-body .wc__table th:not(:first-child),
.wc__fund-body .wc__table td:not(:first-child) {
  min-width: 3.25rem;
  white-space: nowrap;
}

.wc__fund-body .wc__table td:first-child {
  white-space: normal;
  line-height: 1.35;
  min-width: 8.5rem;
}

.wc__charts {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
}

.wc-chart {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(0, 163, 216, 0.04);
  border: 1px solid rgba(0, 163, 216, 0.12);
  border-radius: 10px;
  padding: 0.55rem 0.6rem 0.5rem;
}

.wc-chart__title {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  flex-shrink: 0;
}

.wc-chart__bars {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.35rem;
  min-height: 96px;
}

.wc-chart__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  max-width: 56px;
  min-height: 0;
}

.wc-chart__val {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  min-height: 1.35rem;
  text-align: center;
  margin-bottom: 0.3rem;
  flex-shrink: 0;
}

.wc-chart__val--neg {
  color: #b91c1c;
}

.wc-chart__val--pos {
  color: #15803d;
}

.wc-chart__signed {
  flex: 1 1 auto;
  width: 100%;
  min-height: 72px;
  max-height: 96px;
  display: flex;
  flex-direction: column;
  background: rgba(67, 67, 67, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.wc-chart__signed-up,
.wc-chart__signed-down {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.wc-chart__signed-up {
  justify-content: flex-end;
}

.wc-chart__signed-down {
  justify-content: flex-start;
}

.wc-chart__signed-axis {
  flex-shrink: 0;
  height: 2px;
  background: rgba(67, 67, 67, 0.4);
  width: 100%;
}

.wc-chart__fill {
  width: 100%;
  height: var(--h, 0%);
  min-height: 3px;
}

.wc-chart__fill--pos {
  background: linear-gradient(180deg, #22c55e, #15803d);
  border-radius: 4px 4px 0 0;
}

.wc-chart__fill--neg {
  background: linear-gradient(180deg, #f87171, #b91c1c);
  border-radius: 0 0 4px 4px;
}

.wc-chart__year {
  font-size: 0.58rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
}

.wc__tables--single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.wc__table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.55rem;
  box-shadow: var(--shadow);
  min-height: 0;
  overflow: auto;
}

.wc__table-title {
  margin: 0 0 0.45rem;
  padding: 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.wc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.wc__table th,
.wc__table td {
  padding: 0.3rem 0.35rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.wc__table th:first-child,
.wc__table td:first-child {
  text-align: left;
  min-width: 7.5rem;
}

.wc__table th {
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 163, 216, 0.06);
}

.wc__row--total td,
.wc__row--highlight td {
  border-top: 2px solid rgba(0, 163, 216, 0.25);
  background: rgba(0, 163, 216, 0.05);
}

.wc__neg {
  color: #b91c1c;
  font-weight: 600;
}

.wc__callout {
  margin: 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--accent);
  border: 1px solid rgba(0, 163, 216, 0.2);
  border-radius: 10px;
  flex-shrink: 0;
}

.wc__callout strong {
  color: var(--primary);
}

/* Slide Financiación para Clientes */
.fincli {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.fincli__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.8rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.fincli__flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  max-width: 168px;
}

.fincli__flow-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.95rem;
}

.fincli__flow-label {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}

.fincli__flow-arrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.fincli__grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0.65rem;
  min-height: 0;
}

.fincli__panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  box-shadow: var(--shadow);
  min-height: 0;
  overflow: auto;
}

.fincli__panel-title {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
}

.fincli__assumptions {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.fincli__assumptions li + li {
  margin-top: 0.42rem;
}

.fincli__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.fincli__table th,
.fincli__table td {
  padding: 0.32rem 0.35rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.fincli__table th:first-child,
.fincli__table td:first-child {
  text-align: left;
}

.fincli__table th {
  font-weight: 700;
  color: var(--secondary);
  background: rgba(19, 130, 151, 0.08);
}

.fincli__row--add td {
  color: var(--secondary);
  font-weight: 600;
}

.fincli__row--total td {
  border-top: 2px solid rgba(19, 130, 151, 0.25);
  background: rgba(19, 130, 151, 0.06);
}

.fincli__exposure {
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem 0.7rem;
  box-shadow: var(--shadow);
}

.fincli__exposure-head {
  margin-bottom: 0.55rem;
}

.fincli__exposure-title {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary);
}

.fincli__exposure-note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

.fincli-exposure {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.65rem;
  min-height: 130px;
  padding: 0.25rem 0.15rem 0;
}

.fincli-exposure__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 108px;
}

.fincli-exposure__val {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.35rem;
  text-align: center;
  line-height: 1.15;
}

.fincli-exposure__val--peak {
  font-size: 0.82rem;
  color: var(--primary);
}

.fincli-exposure__bar-wrap {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: flex-end;
  background: rgba(19, 130, 151, 0.08);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.fincli-exposure__bar {
  width: 100%;
  height: var(--h, 20%);
  min-height: 4px;
  background: linear-gradient(180deg, var(--secondary), #0d6e7f);
  border-radius: 6px 6px 0 0;
}

.fincli-exposure__bar--peak {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  box-shadow: 0 0 0 2px rgba(0, 163, 216, 0.35);
}

.fincli-exposure__col--peak .fincli-exposure__bar-wrap {
  border: 2px dashed rgba(0, 163, 216, 0.45);
  background: rgba(0, 163, 216, 0.06);
}

.fincli-exposure__year {
  margin-top: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}

.fincli-exposure__col--peak .fincli-exposure__year {
  color: var(--primary);
}

.fincli-exposure__flow {
  margin-top: 0.25rem;
  font-size: 0.58rem;
  line-height: 1.25;
  text-align: center;
  color: var(--muted);
}

.fincli-exposure__flow--out {
  color: #9a3412;
}

.fincli__exposure-peak {
  margin: 0.55rem 0 0;
  padding: 0.65rem 0.8rem;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--text);
  background: rgba(0, 163, 216, 0.08);
  border: 1px solid rgba(0, 163, 216, 0.2);
  border-radius: 8px;
}

.fincli__exposure-peak strong {
  color: var(--primary);
}

/* KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
}

.kpi__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.kpi__label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.3;
}

.kpi__note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* Slide — Gracias */
.slide--gracias .slide__inner--fill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding-bottom: 4.5rem;
}

.gracias {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  text-align: center;
}

.gracias__title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.gracias__logo {
  display: block;
  width: min(360px, 72vw);
  height: auto;
}

/* Cierre */
.cierre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.cierre__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cierre__list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.cierre__list li::before {
  content: "→";
  color: var(--primary);
  font-weight: 700;
}

.cierre__contact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.cierre__contact p {
  margin: 0.35rem 0;
  font-size: 0.9rem;
}

.cierre__contact a {
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .historia-v {
    padding-left: 3.75rem;
    gap: 0.35rem;
  }

  .historia-v__year {
    left: -3.75rem;
    width: 2.85rem;
    height: 2.85rem;
    font-size: 0.55rem;
  }

  .historia-v__title {
    font-size: 0.85rem;
  }

  .historia-v__hint {
    font-size: 0.72rem;
  }

  .obras-duo {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .obra-lg__img-wrap img {
    min-height: 180px;
    max-height: 38vh;
  }

  .segmentos {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .segmentos__card {
    grid-row: auto;
    grid-template-rows: auto auto auto;
  }

  .segmentos__imgWrap {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .valor--visual {
    grid-template-columns: 1fr;
  }

  .fin,
  .capital,
  .wc__cycle,
  .wc__fund-body,
  .fincli__grid,
  .fincli-exposure,
  .kpis,
  .cover,
  .cierre {
    grid-template-columns: 1fr;
  }

  .wc__fund-body {
    display: flex;
    flex-direction: column;
  }

  .cover {
    min-height: auto;
    gap: 1.25rem;
  }

  .cover__team {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

  .cover-team__photo {
    width: 92px;
    height: 92px;
  }

  .cover__lead {
    max-width: none;
    text-align: left;
  }

  .fin__params {
    grid-template-columns: repeat(2, 1fr);
  }
}
