/* === VIVERO FINANCIERO — PRESENTACIÓN INTERACTIVA (Montserrat Strict Typography) === */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Backgrounds */
  --bg-void: #08090a;
  --bg-panel: #0f1011;
  --bg-elevated: #16181a;
  --bg-card: #1c1e22;
  --bg-card-hover: #25282e;

  /* Accent Colors */
  --accent-indigo: #5e6ad2;
  --accent-violet: #7170ff;
  --accent-emerald: #10b981;
  --accent-emerald-bright: #34d399;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Text Colors */
  --text-primary: #f7f8f8;
  --text-secondary: #d0d6e0;
  --text-muted: #8a8f98;
  --text-dim: #62666d;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-standard: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(113, 112, 255, 0.25);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.7);

  /* Fonts */
  --font-sans: 'Montserrat', sans-serif;
  --font-mono: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans) !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 40px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }

/* === Navbar === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 16, 17, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.brand-logo {
  color: var(--text-primary);
  text-decoration: none;
}
.brand-logo span { color: var(--accent-violet); }
.brand-divider { color: var(--text-dim); }
.brand-project { color: var(--accent-emerald-bright); }

.badge-status {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald-bright);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-xs { padding: 4px 10px; font-size: 11px; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-standard);
  color: var(--text-primary);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-violet);
}

/* === Hero Section === */
.hero-section {
  padding: 50px 0 30px;
}

.inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(113, 112, 255, 0.1);
  border: 1px solid rgba(113, 112, 255, 0.25);
  color: var(--accent-violet);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-violet);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-violet);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-emerald-bright) 0%, var(--accent-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 36px;
  font-weight: 400;
}

/* === Level Selector (4 Buttons) === */
.level-selector-wrapper {
  background: var(--bg-panel);
  border: 1px solid var(--border-standard);
  border-radius: 16px;
  padding: 20px;
  max-width: 980px;
  margin: 0 auto 32px;
}

.selector-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 14px;
}

.level-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.level-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.level-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-standard);
  color: var(--text-primary);
}

.level-btn.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent-emerald);
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.level-icon { font-size: 24px; }
.level-info strong { display: block; font-size: 13px; font-weight: 700; }
.level-info small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* === Perspective Toggle Switch === */
.perspective-toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.perspective-switch {
  display: flex;
  background: var(--bg-panel);
  border: 1px solid var(--border-standard);
  border-radius: 30px;
  padding: 4px;
  gap: 4px;
}

.switch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 26px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.switch-btn:hover { color: var(--text-secondary); }

.switch-btn.active {
  background: var(--accent-indigo);
  color: #fff;
  box-shadow: 0 4px 15px rgba(94, 106, 210, 0.4);
}

/* === View Panels === */
.view-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.view-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  margin-bottom: 32px;
}

.section-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-violet);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 6px;
}

.section-header h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* === Flow Grid & Cards === */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.flow-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-standard);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.flow-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.flow-card-wide {
  grid-column: span 2;
}

.flow-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
}

.flow-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-body p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  margin-bottom: 16px;
}

.feature-list li {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* Avatar Chips */
.avatar-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.avatar-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Image Preview with Hover Zoom */
.image-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-standard);
  background: #000;
  cursor: pointer;
}

.image-preview img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.image-preview:hover img {
  transform: scale(1.02);
  opacity: 0.85;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 10, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.image-overlay span {
  background: rgba(15, 16, 17, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-standard);
}

.image-preview:hover .image-overlay {
  opacity: 1;
}

/* Formula Box */
.formula-box {
  background: rgba(113, 112, 255, 0.06);
  border: 1px solid rgba(113, 112, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.formula-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-violet);
  margin-bottom: 12px;
}

.formula-metrics {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.metric-pill {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.metric-val {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-emerald-bright);
}

.metric-lbl {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.formula-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* === Seed Table === */
.seed-equivalents-table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
}

.seed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.seed-table th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-standard);
}

.seed-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

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

.risk-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}

.risk-low { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.risk-medium { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.risk-high { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.risk-extreme { background: rgba(225, 29, 72, 0.25); color: #f43f5e; }

/* === Child Safety Section === */
.safety-section {
  margin-top: 60px;
}

.safety-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(94, 106, 210, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  padding: 40px;
}

.safety-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-emerald-bright);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.safety-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.safety-item {
  background: rgba(15, 16, 17, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
}

.safety-icon { font-size: 24px; margin-bottom: 8px; }
.safety-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.safety-item p { font-size: 12px; color: var(--text-secondary); }

/* === Footer === */
.footer-presentation {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
}

.footer-brand {
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.footer-brand span { color: var(--accent-violet); }

.footer-links {
  margin-top: 12px;
}

.footer-links a {
  color: var(--accent-violet);
  text-decoration: none;
  font-weight: 600;
}
.footer-links a:hover { text-decoration: underline; }

/* === Modal === */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  border: 1px solid var(--border-standard);
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

.modal-caption {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .flow-grid { grid-template-columns: 1fr; }
  .flow-card-wide { grid-column: span 1; }
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .formula-metrics { flex-direction: column; }
}

@media (max-width: 600px) {
  .safety-grid { grid-template-columns: 1fr; }
  .level-buttons { grid-template-columns: 1fr; }
}
