@charset "UTF-8";

/* ==========================================================================
   TRIGUASA — SISTEMA DE DISEÑO AGROTECH / LANDING CORPORATIVA
   ========================================================================== */

:root {
  --bg-deep: #07120d;
  --bg-dark: #0b1a12;
  --bg-card: #0f241a;
  --bg-card-hover: #132d20;
  --bg-elevated: #163627;
  --lime: #bcf355;
  --lime-bright: #cbff5c;
  --lime-dim: rgba(188, 243, 85, 0.15);
  --lime-glow: rgba(188, 243, 85, 0.25);
  --text-ivory: #f5f4ea;
  --text-secondary: #a7b8a4;
  --text-dim: #728470;
  --line-subtle: rgba(220, 240, 220, 0.12);
  --line-highlight: rgba(188, 243, 85, 0.35);
  --negative: #ff6e59;
  --positive: #5ce68b;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", "SF Mono", Menlo, Consolas, monospace;
  --shell: 1240px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background-color: var(--bg-deep);
  color: var(--text-ivory);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-deep);
  color: var(--text-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a, button, input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--lime);
  color: var(--bg-deep);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.page-shell {
  width: min(100% - (2 * var(--gutter)), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--bg-deep);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
   NAVEGACIÓN SUPERIOR
   ========================================================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 16px;
  border-bottom: 1px solid rgba(220, 240, 220, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-ivory);
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--lime);
  color: var(--bg-deep);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(188, 243, 85, 0.4);
}

.brand-symbol svg {
  width: 24px;
  height: 24px;
}

.brand-word {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-word span {
  color: var(--lime);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--text-ivory);
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-deep);
  background: var(--lime);
  border-radius: 99px;
  transition: background 0.2s, transform 0.15s;
}

.site-nav .nav-cta:hover {
  background: var(--lime-bright);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-ivory);
  transition: transform 0.2s, opacity 0.2s;
}

/* ==========================================================================
   HERO CINEMATOGRÁFICO
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(880px, 100vh);
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 70px;
  overflow: hidden;
  background-color: var(--bg-deep);
}

.hero-media-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 45%;
  opacity: 0.42;
  filter: saturate(1.1) brightness(0.9);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 18, 13, 0.96) 0%, rgba(7, 18, 13, 0.88) 45%, rgba(7, 18, 13, 0.4) 75%, rgba(7, 18, 13, 0.65) 100%),
    linear-gradient(0deg, rgba(7, 18, 13, 0.98) 0%, transparent 40%, rgba(7, 18, 13, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  margin-bottom: 24px;
  border-radius: 99px;
  background: rgba(188, 243, 85, 0.08);
  border: 1px solid rgba(188, 243, 85, 0.25);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(188, 243, 85, 0.2);
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text-ivory);
}

.hero h1 span {
  color: var(--lime);
}

.hero-lede {
  margin: 0 0 34px;
  max-width: 580px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}

.btn-lime {
  background: var(--lime);
  color: var(--bg-deep);
}

.btn-lime:hover {
  background: var(--lime-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(188, 243, 85, 0.2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-ivory);
  border: 1px solid var(--line-subtle);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-large {
  min-height: 56px;
  padding: 0 32px;
  font-size: 15px;
}

.hero-foundation {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--mono);
}

.foundation-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}

/* ==========================================================================
   TICKER / SIGNAL BAND
   ========================================================================== */

.signal-band {
  background: var(--bg-dark);
  border-block: 1px solid var(--line-subtle);
  padding-block: 16px;
}

.signal-item {
  white-space: nowrap;
}

.signal-band-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-align: center;
}

.signal-sep {
  color: var(--lime);
  font-size: 10px;
}

/* ==========================================================================
   SECCIÓN CALCULADORA / ESCENARIO
   ========================================================================== */

.scenario-section {
  padding-block: 100px;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 50px;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--lime);
  text-transform: uppercase;
}

.badge-num {
  display: inline-block;
  padding: 2px 7px;
  background: var(--lime-dim);
  border-radius: 4px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-header h2 span {
  color: var(--lime);
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.concept-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-subtle);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.tag-icon {
  color: var(--lime);
}

.section-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Tablero de cálculo */
.scenario-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* Panel Izquierdo: Controles */
.controls-panel {
  padding: clamp(24px, 3.5vw, 42px);
  border-right: 1px solid var(--line-subtle);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-subtle);
}

.panel-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.panel-step {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
}

/* Parámetros */
.param-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: rgba(7, 18, 13, 0.4);
  border: 1px solid rgba(220, 240, 220, 0.06);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}

.param-box:focus-within {
  border-color: var(--line-highlight);
}

.param-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.param-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.param-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-ivory);
}

.param-sub {
  font-size: 12px;
  color: var(--text-dim);
}

.stepper-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-subtle);
}

.stepper-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-ivory);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}

.stepper-btn:hover {
  background: var(--lime);
  color: var(--bg-deep);
}

.param-badge {
  min-width: 74px;
  text-align: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

/* Sliders estilizados con progreso dinámico */
.slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}

input[type="range"]:focus {
  outline: none;
}

/* Track */
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--lime) 0%, var(--lime) var(--progress, 50%), rgba(255, 255, 255, 0.12) var(--progress, 50%), rgba(255, 255, 255, 0.12) 100%);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 99px;
  background: var(--lime);
}

/* Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--bg-deep);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s, box-shadow 0.1s;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--bg-deep);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s, box-shadow 0.1s;
}

input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 5px var(--lime-dim);
}

input[type="range"]:hover::-moz-range-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 5px var(--lime-dim);
}

.slider-bounds {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* Caja de Shock / Volatilidad */
.shock-box {
  background: rgba(188, 243, 85, 0.04);
  border: 1px solid rgba(188, 243, 85, 0.2);
}

.shock-title {
  color: var(--lime);
}

.shock-badge {
  font-size: 16px;
  font-weight: 700;
  color: var(--lime);
}

.preset-pill-group {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.pill-btn {
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  transition: all 0.15s;
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-ivory);
}

.pill-btn.active {
  background: var(--lime);
  color: var(--bg-deep);
  font-weight: 700;
  border-color: var(--lime);
}

/* Panel Derecho: Resultados */
.results-panel {
  padding: clamp(24px, 3.5vw, 42px);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(7, 18, 13, 0.7) 100%);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-subtle);
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-dim);
}

/* KPI Hero: Costo total */
.kpi-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.kpi-hero-val {
  font-size: clamp(48px, 6vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-ivory);
  font-variant-numeric: tabular-nums;
}

.cost-breakdown-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.breakdown-sep {
  color: var(--text-dim);
}

.breakdown-bar {
  display: flex;
  height: 8px;
  margin-top: 6px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.bar-flour {
  background: var(--lime);
  transition: width 0.2s var(--ease);
}

.bar-other {
  background: #245037;
  transition: width 0.2s var(--ease);
}

/* Split: Margen y Delta */
.kpi-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
}

.kpi-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-item.right-align {
  align-items: flex-end;
}

.kpi-val {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.margin-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.margin-chip.negative {
  background: rgba(255, 110, 89, 0.15);
  color: var(--negative);
  border: 1px solid rgba(255, 110, 89, 0.3);
}

.margin-chip.positive {
  background: rgba(92, 230, 139, 0.15);
  color: var(--positive);
  border: 1px solid rgba(92, 230, 139, 0.3);
}

.margin-chip.neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* Precio sugerido */
.target-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(188, 243, 85, 0.06);
  border: 1px solid rgba(188, 243, 85, 0.25);
  border-radius: var(--radius-md);
}

.target-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.target-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-ivory);
}

.target-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.target-val {
  font-size: 26px;
  font-weight: 700;
  color: var(--lime);
  font-family: var(--mono);
  white-space: nowrap;
}

/* Gráfica de sensibilidad */
.chart-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.sensitivity-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.axis-label, .axis-label-x {
  fill: var(--text-secondary);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

.chart-fill {
  fill: rgba(188, 243, 85, 0.08);
}

.chart-line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.chart-marker-line {
  stroke: rgba(188, 243, 85, 0.4);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}

.chart-marker {
  fill: var(--lime);
  stroke: var(--bg-deep);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(188, 243, 85, 0.6));
}

.results-disclaimer {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* ==========================================================================
   SECCIÓN ENFOQUE / CARDS
   ========================================================================== */

.process-section {
  padding-block: 100px;
  background: var(--bg-dark);
  border-top: 1px solid var(--line-subtle);
}

.process-header {
  max-width: 720px;
  margin-bottom: 54px;
}

.eyebrow-light {
  color: var(--lime);
}

.process-header h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.process-header h2 span {
  color: var(--lime);
}

.process-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

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

.feature-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-highlight);
}

.card-num {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--lime);
  margin-bottom: 16px;
}

.card-glyph {
  position: absolute;
  top: 30px;
  right: 28px;
  font-size: 18px;
  color: var(--text-dim);
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-ivory);
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ==========================================================================
   SECCIÓN CONTEXTO REGIONAL / FOTO
   ========================================================================== */

.context-section {
  padding-block: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.context-photo {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-subtle);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.context-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.context-photo figcaption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 18px 22px;
  font-size: 13px;
  color: var(--text-ivory);
  background: linear-gradient(0deg, rgba(7, 18, 13, 0.95) 0%, rgba(7, 18, 13, 0.7) 60%, transparent 100%);
}

.context-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.context-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.context-copy h2 span {
  color: var(--lime);
}

.context-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.exploration-card {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  margin-top: 10px;
}

.exploration-badge {
  font-size: 18px;
  color: var(--lime);
  flex-shrink: 0;
  margin-top: 2px;
}

.exploration-card strong {
  display: block;
  font-size: 14px;
  color: var(--text-ivory);
  margin-bottom: 4px;
}

.exploration-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==========================================================================
   CONTACTO / CIERRE
   ========================================================================== */

.contact-section {
  padding-block: 0 100px;
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding: clamp(36px, 6vw, 64px);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.contact-info {
  max-width: 600px;
}

.contact-info h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.contact-info h2 span {
  color: var(--lime);
}

.contact-info p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.contact-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact-direct {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line-subtle);
  padding-block: 40px;
  background: var(--bg-dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-tagline {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-meta-side {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--lime);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET Y MÓVIL)
   ========================================================================== */

@media (max-width: 960px) {
  .section-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .scenario-card {
    grid-template-columns: 1fr;
  }

  .controls-panel {
    border-right: none;
    border-bottom: 1px solid var(--line-subtle);
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .context-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .context-photo img {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding-block: 12px;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--line-subtle);
    padding: 24px var(--gutter);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s var(--ease), opacity 0.2s, visibility 0.2s;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 54px);
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-image {
    object-position: center 30%;
  }

  .preset-pill-group {
    grid-template-columns: repeat(3, 1fr);
  }

  .pill-btn {
    padding: 10px 6px;
    font-size: 12px;
  }

  .context-photo img {
    height: 280px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .kpi-split {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .kpi-item.right-align {
    align-items: flex-start;
  }

  .target-price-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .target-val {
    font-size: 24px;
  }
}

/* ==========================================================================
   ACCESIBILIDAD Y REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
