/* Ficha pública de oportunidad — deal sheet, KPIs y analítica */

.opp-hero--deal {
  padding: 1.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(201, 169, 98, 0.15);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(201, 169, 98, 0.09) 0%, transparent 55%),
    linear-gradient(180deg, rgba(10, 12, 18, 0.96) 0%, rgba(8, 9, 12, 0.98) 100%);
}

.opp-hero__breadcrumb {
  margin-bottom: 1.25rem;
}

.opp-hero__breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.opp-hero__breadcrumb a:hover {
  border-bottom-color: rgba(201, 169, 98, 0.45);
}

.opp-hero__crumb-current {
  display: inline-block;
  max-width: 100%;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}

.opp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.opp-hero__figure {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 98, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.opp-hero__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(248, 250, 255, 0.88);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, transparent 100%);
  line-height: 1.35;
}

.opp-hero__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.opp-gallery {
  margin-top: 1rem;
}

.opp-gallery__note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 0.65rem;
}

.opp-gallery__thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.opp-gallery__thumbs li {
  margin: 0;
}

.opp-gallery__btn {
  display: block;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  line-height: 0;
}

.opp-gallery__btn img {
  display: block;
  width: 88px;
  height: 55px;
  object-fit: cover;
  opacity: 0.88;
}

.opp-gallery__btn:hover img,
.opp-gallery__btn:focus-visible img {
  opacity: 1;
}

.opp-gallery__btn.is-active {
  border-color: rgba(201, 169, 98, 0.75);
  box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.35);
}

.opp-gallery__btn.is-active img {
  opacity: 1;
}

.opp-hero__intro {
  padding-top: 0.25rem;
}

.opp-hero__deal-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.opp-hero__deal-meta {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.opp-hero__title {
  margin: 0 0 0.65rem;
}

.opp-hero__deal-lead {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(232, 234, 240, 0.88);
  max-width: 36rem;
}

.opp-snapshot {
  margin-bottom: 1.35rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 169, 98, 0.28);
  background: linear-gradient(145deg, rgba(201, 169, 98, 0.08) 0%, rgba(0, 0, 0, 0.35) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.opp-snapshot__kicker {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201, 169, 98, 0.95);
}

.opp-snapshot__mega {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.opp-snapshot__mega--solo {
  grid-template-columns: 1fr;
  max-width: 20rem;
}

.opp-snapshot__mega-cell {
  padding: 1rem 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 98, 0.35);
  background: linear-gradient(165deg, rgba(26, 42, 68, 0.55) 0%, rgba(8, 10, 14, 0.9) 100%);
  text-align: center;
}

.opp-snapshot__mega-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.opp-snapshot__mega-value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.15rem, 5vw, 2.85rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.opp-snapshot__mega-unit {
  font-size: 0.55em;
  font-weight: 600;
  margin-left: 0.05em;
  opacity: 0.95;
}

.opp-snapshot__strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.65rem;
}

.opp-snapshot__tile {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.opp-snapshot__tile-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.opp-snapshot__tile-value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.opp-snapshot__hint {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.opp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 1.15rem;
}

.opp-hero__cta {
  flex: 0 0 auto;
}

.opp-hero__permalink--subtle {
  margin-bottom: 0;
  opacity: 0.92;
}

.opp-hero__permalink--subtle .opp-hero__permalink-label {
  font-size: 0.68rem;
  opacity: 0.9;
}

.opp-hero__permalink--subtle .opp-hero__permalink-track {
  font-size: 0.74rem;
  padding: 0.45rem 0.6rem;
}

.opp-hero__permalink {
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.opp-hero__permalink-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.opp-hero__permalink-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem 0.75rem;
}

.opp-hero__permalink-track {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.05em 0;
  row-gap: 0.2rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(232, 234, 240, 0.88);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(201, 169, 98, 0.18);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 98, 0.35) transparent;
}

.opp-hero__permalink-track:focus-visible {
  outline: 2px solid rgba(201, 169, 98, 0.55);
  outline-offset: 2px;
}

.opp-hero__permalink-scheme {
  opacity: 0.55;
  font-size: 0.88em;
  margin-right: 0.05em;
}

.opp-hero__permalink-host {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0.01em;
}

.opp-hero__permalink-slash {
  opacity: 0.42;
  margin: 0 0.02em;
  user-select: none;
}

.opp-hero__permalink-seg {
  color: rgba(232, 234, 240, 0.82);
  hyphens: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.opp-hero__permalink-seg--slug {
  padding: 0.12em 0.4em 0.15em;
  margin: -0.12em 0 -0.15em;
  border-radius: 6px;
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid rgba(201, 169, 98, 0.22);
  color: rgba(248, 250, 255, 0.95);
}

.opp-hero__permalink-copy {
  flex: 0 0 auto;
  align-self: center;
  white-space: nowrap;
  border-color: rgba(201, 169, 98, 0.35) !important;
}

.opp-hero__permalink-copy.is-done {
  color: var(--accent) !important;
  border-color: rgba(201, 169, 98, 0.55) !important;
}

.opp-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.opp-hero__backlink {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.opp-hero__backlink:hover {
  color: var(--accent);
  border-bottom-color: rgba(201, 169, 98, 0.45);
}

.opp-kpi-strip {
  padding: 2rem 0 2.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(201, 169, 98, 0.04), transparent 70%);
}

.opp-kpi-strip--secondary {
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.65) 0%, rgba(8, 9, 12, 0.98) 100%);
  border-bottom-color: rgba(201, 169, 98, 0.12);
}

.opp-kpi-strip__head {
  max-width: 46rem;
  margin-bottom: 1.35rem;
}

.opp-kpi-strip__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.opp-kpi-strip__lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.opp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 0.85rem;
}

.opp-kpi-card {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 5.25rem;
  justify-content: center;
}

.opp-kpi-card--accent {
  border-color: rgba(201, 169, 98, 0.35);
  background: linear-gradient(145deg, rgba(201, 169, 98, 0.1), rgba(255, 255, 255, 0.02));
}

.opp-kpi-card__label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.35;
}

.opp-kpi-card__value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

.opp-kpi-card--accent .opp-kpi-card__value {
  color: var(--accent);
}

.opp-detail-body {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.opp-detail-body__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 2.5rem 3rem;
  align-items: start;
}

.opp-detail-body__layout--single {
  grid-template-columns: 1fr;
}

.opp-detail-body__layout--card-only {
  max-width: 22rem;
  margin-inline: auto;
}

.opp-detail-body__main {
  min-width: 0;
}

.opp-detail-body__aside {
  position: sticky;
  top: 5.5rem;
}

.opp-deal-card {
  padding: 1.25rem 1.35rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 169, 98, 0.28);
  background: linear-gradient(160deg, rgba(201, 169, 98, 0.07) 0%, rgba(0, 0, 0, 0.4) 100%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.opp-deal-card__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: 0.03em;
  color: var(--text);
}

.opp-deal-card__dl {
  margin: 0 0 1rem;
  padding: 0;
}

.opp-deal-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(201, 169, 98, 0.12);
  font-size: 0.88rem;
}

.opp-deal-card__row:last-of-type {
  border-bottom: none;
}

.opp-deal-card__row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  max-width: 55%;
}

.opp-deal-card__row dd {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  text-align: end;
}

.opp-deal-card__note {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

.opp-detail-body__text--full {
  max-width: 48rem;
}

.prose--opp p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.65;
}

.opp-detail-body__h {
  font-size: 1.05rem;
  margin: 2rem 0 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.dl--opp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0.5rem 1.5rem;
  font-size: 0.92rem;
}

.dl--opp dt {
  color: var(--muted);
  margin: 0;
}

.dl--opp dd {
  margin: 0;
  text-align: end;
  font-weight: 500;
}

.opp-detail-body__cta {
  margin-top: 2rem;
}

.section--tight {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.opp-analytics {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.5), transparent);
}

.opp-analytics__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.opp-analytics__lead {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 52rem;
  margin: 0 0 1.25rem;
}

.opp-analytics__note {
  font-size: 0.82rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(201, 169, 98, 0.25);
  background: rgba(201, 169, 98, 0.06);
  margin: 0 0 1.5rem;
  max-width: 52rem;
}

.opp-analytics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.opp-chart {
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.opp-chart__h {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.opp-chart__unit {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.opp-chart__bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 160px;
  padding-top: 0.5rem;
}

.opp-chart__bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.opp-chart__bar {
  width: 100%;
  max-width: 56px;
  margin: 0 auto;
  min-height: 4px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(201, 169, 98, 0.85), rgba(201, 169, 98, 0.25));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.35rem;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.opp-chart__bar-val {
  font-size: 0.68rem;
  font-weight: 600;
  color: #0a0b0e;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

.opp-chart__bar-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.25;
}

.opp-chart__svg-wrap {
  width: 100%;
  height: 120px;
  margin-bottom: 0.75rem;
}

.opp-chart__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.opp-chart__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.82rem;
}

.opp-chart__legend-v {
  font-weight: 600;
  color: var(--accent);
}

.opp-chart__legend-l {
  color: var(--muted);
}

.opp-stack {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 52px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.opp-stack__seg {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  min-width: 0;
  box-sizing: border-box;
}

.opp-stack__seg--0 {
  background: linear-gradient(90deg, rgba(201, 169, 98, 0.45), rgba(201, 169, 98, 0.2));
}

.opp-stack__seg--1 {
  background: linear-gradient(90deg, rgba(26, 42, 68, 0.85), rgba(26, 42, 68, 0.45));
}

.opp-stack__seg--2 {
  background: linear-gradient(90deg, rgba(201, 169, 98, 0.25), rgba(255, 255, 255, 0.06));
}

.opp-stack__seg-inner {
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
  color: var(--text);
  word-break: break-word;
}

.opp-stack__seg-inner strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
}

.opp-analytics__disclaimer {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 52rem;
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(201, 169, 98, 0.12);
}

@media (max-width: 900px) {
  .opp-hero__grid {
    grid-template-columns: 1fr;
  }

  .opp-hero__intro {
    order: -1;
  }

  .opp-detail-body__layout {
    grid-template-columns: 1fr;
  }

  .opp-detail-body__aside {
    position: static;
    order: -1;
  }

  .opp-snapshot__mega {
    grid-template-columns: 1fr;
  }

  .opp-snapshot__mega--solo {
    max-width: none;
  }

  .dl--opp dd {
    text-align: start;
  }
}

.site--rtl .dl--opp dd {
  text-align: start;
}
