/* ============================================
   INVESTMENT CALCULATOR - Simulador Financiero
   ============================================ */

#calculadora {
  padding: 7rem 0;
  background-color: var(--color-bg-light);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(27, 48, 34, 0.15);
  border-bottom: 1px solid rgba(27, 48, 34, 0.15);
}

.calculator-glow {
  position: absolute;
  top: 0;
  right: 25%;
  width: 24rem;
  height: 24rem;
  background-color: rgba(27, 48, 34, 0.05);
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
}

.calculator-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .calculator-container {
    padding: 0 1.5rem;
  }
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .calculator-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.calculator-left {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .calculator-left {
    grid-column: span 7;
  }
}

.calculator-right {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .calculator-right {
    grid-column: span 5;
  }
}

/* Controls Panel */
.controls-panel {
  background: #fff;
  border: 1px solid rgba(27, 48, 34, 0.2);
  border-radius: 0.125rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

@media (min-width: 640px) {
  .controls-panel {
    padding: 2rem;
  }
}

.control-group {
  margin-bottom: 0.5rem;
}

.control-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
  display: block;
  margin-bottom: 0.625rem;
}

/* Model Presets */
.model-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .model-presets {
    grid-template-columns: repeat(4, 1fr);
  }
}

.preset-btn {
  padding: 0.625rem 0.75rem;
  border-radius: 0.125rem;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background-color: var(--color-bg-light);
  color: var(--color-livo-green);
  border-color: rgba(27, 48, 34, 0.2);
  cursor: pointer;
}

.preset-btn:hover {
  background-color: var(--color-bg-cream);
}

.preset-btn.active {
  background-color: var(--color-livo-green);
  color: #fff;
  border-color: var(--color-livo-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.value-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-primary);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.value-display .label {
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text-muted);
}

.value-display .value {
  color: var(--color-livo-green);
}

/* Range Sliders */
input[type="range"] {
  width: 100%;
  accent-color: var(--color-livo-green);
  background: var(--color-bg-warm);
  height: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--color-livo-green);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--color-livo-green);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.slider-value {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 14px;
}

.slider-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #5d6b5f;
  margin-top: 0.125rem;
  font-weight: 600;
}

/* Results Panel */
.results-panel {
  background-color: var(--color-livo-green);
  color: #fff;
  border: 1px solid rgba(197, 168, 128, 0.4);
  border-radius: 0.125rem;
  padding: 1.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .results-panel {
    padding: 2rem;
  }
}

.results-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid;
  border-left: 1px solid;
  border-color: rgba(197, 168, 128, 0.4);
  color: var(--color-bg-light);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.375rem 1rem;
  border-radius: 0 0.125rem 0 0;
  backdrop-filter: blur(10px);
}

.results-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-bg-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.75rem;
}

.results-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-item {
  background-color: rgba(43, 53, 45, 0.8);
  padding: 1rem;
  border-radius: 0.125rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.result-item-gold {
  background-color: rgba(36, 46, 38, 0.8);
  border-color: rgba(197, 168, 128, 0.5);
}

.result-item-gain {
  background-color: rgba(43, 53, 45, 0.8);
}

.result-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.result-info-label {
  font-size: 12px;
  color: var(--color-livo-gold-light);
  font-weight: 700;
}

.result-info-sub {
  font-size: 11px;
  color: #d4d4d4;
  font-style: italic;
}

.result-value {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.result-value-gold {
  font-size: 1.5rem;
  color: var(--color-livo-gold-light);
}

.result-value-green {
  color: #6ee68a;
}

.gain-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gain-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.gain-row-label {
  color: #d4d4d4;
}

.gain-row-value {
  color: var(--color-livo-gold-light);
  font-weight: 700;
}

.gain-row-final {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.gain-row-final .gain-row-label {
  color: var(--color-livo-gold-light);
  font-weight: 700;
}

.gain-row-final .gain-row-value {
  font-family: var(--font-serif);
  font-size: 1.125rem;
}

.results-cta {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.results-cta-btn {
  background: #fff;
  color: var(--color-livo-green);
  font-weight: 700;
  padding: 0.875rem 1rem;
  border-radius: 0.125rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.results-cta-btn:hover {
  background-color: var(--color-bg-light);
}

.results-note {
  font-size: 10px;
  color: #d3dad4;
  text-align: center;
  font-style: italic;
}
