/* --- VARIABLES SYSTEMIC FLOW --- */
:root {
  --primary: #00D1B2;    /* Verde Turquesa / Salud Digital */
  --bg-main: #0D1117;    /* Fondo Oscuro Base */
  --bg-card: #161B22;    /* Fondo de Tarjetas e Inputs */
  --text-hi: #E6EDF3;    /* Texto Principal */
  --text-lo: #8B949E;    /* Texto Secundario / Labels */
  --border: #30363d;     /* Bordes sutiles */
  --accent-glow: rgba(0, 209, 178, 0.15);
}

/* --- RESET Y BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-hi);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

.roi-simulator {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* --- HEADER --- */
.simulator-header {
  margin-bottom: 50px;
  text-align: center;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.logo-box {
  background: var(--primary);
  color: var(--bg-main);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border-radius: 8px;
  font-size: 1.2rem;
}

.sub-label {
  color: var(--text-lo);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.main-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.main-title .highlight {
  color: var(--primary);
}

/* --- GRID LAYOUT --- */
.simulator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 1024px) {
  .simulator-grid {
    grid-template-columns: 450px 1fr;
  }
}

/* --- INPUT PANEL --- */
.input-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 25px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group-card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

.section-label {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* Form Fields */
label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-lo);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

input {
  width: 100%;
  background: #010409;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 15px;
  color: var(--text-hi);
  font-size: 1.1rem;
  font-weight: 600;
  outline: none;
  transition: 0.2s;
}

.field-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 15px;
}

.field-full {
  margin-bottom: 15px;
}

/* Investment Special Card */
.investment-card {
  border: 2px solid rgba(0, 209, 178, 0.3);
  background: rgba(0, 209, 178, 0.03);
}

.investment-card input {
  font-size: 1.5rem;
  color: var(--primary);
  border-color: rgba(0, 209, 178, 0.2);
}

/* --- OUTPUT PANEL --- */
.output-panel {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.main-result-card {
  background: #010409;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* El efecto de brillo en la esquina (como en la imagen) */
.main-result-card::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: var(--primary);
  filter: blur(120px);
  opacity: 0.1;
  pointer-events: none;
}

.result-label {
  color: var(--text-lo);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.big-number {
  font-size: 5rem;
  font-weight: 900;
  color: var(--text-hi);
  line-height: 1;
  margin-bottom: 20px;
}

.badge-status {
  background: #161B22;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  display: inline-block;
}

.badge-status span {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.secondary-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.result-box {
  background: rgba(22, 27, 34, 0.5);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 16px;
}

.result-box.featured {
  background: linear-gradient(135deg, var(--primary) 0%, #008f7a 100%);
  border: none;
}

.result-box.featured .medium-number, 
.result-box.featured .mini-label {
  color: var(--bg-main);
}

.mini-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-lo);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.medium-number {
  font-size: 1.8rem;
  font-weight: 800;
}

/* --- FOOTER / PITCH --- */
.pitch-container {
  background: rgba(0, 209, 178, 0.05);
  border: 1px solid rgba(0, 209, 178, 0.1);
  padding: 30px;
  border-radius: 16px;
  position: relative;
}

#pitch_text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-hi);
  line-height: 1.6;
}

.focus-text {
  color: var(--primary);
  font-weight: 700;
}

/* Responsividad para móviles */
@media (max-width: 600px) {
  .big-number { font-size: 3.5rem; }
  .secondary-results { grid-template-columns: 1fr; }
  .main-title { font-size: 2.2rem; }
}
/* Botón de Ayuda */
.help-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-lo);
    padding: 8px 16px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
    margin-bottom: 20px;
}

.help-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Contenido del Modal */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-lo);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body ul {
    list-style: none;
    margin-top: 20px;
}

.modal-body li {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-hi);
}

.modal-body strong {
    color: var(--primary);
    display: block;
}