/* css/pro_tools.css - Estilos de las 3 Herramientas Pro (Física, Química, Geología) */

.pro-tool-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.pro-tool-container {
  width: 100%;
  max-width: 820px;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.pro-tool-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pro-tool-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.pro-tool-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pro-tool-header p {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px 0;
}

/* Tool Controls Layout */
.pro-tool-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .pro-tool-layout {
    grid-template-columns: 1fr;
  }
}

.pro-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-sizing: border-box;
}

.pro-card__title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4f46e5;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pro-input-group {
  margin-bottom: 16px;
}

.pro-input-group label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.pro-range {
  width: 100%;
  accent-color: #4f46e5;
  cursor: pointer;
}

.pro-select, .pro-text-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #cbd5e1;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
}

.pro-btn {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pro-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

/* Physics Vector Canvas Container */
.vector-canvas-container {
  width: 100%;
  height: 280px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

/* Vector Values Table */
.vector-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

.vector-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.vector-badge {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}

/* Chemistry Balancer Output */
.chem-result-box {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 14px;
  padding: 18px;
  margin-top: 16px;
}

.chem-equation {
  font-size: 22px;
  font-weight: 800;
  color: #14532d;
  text-align: center;
  margin-bottom: 12px;
}

.chem-atoms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
}

.chem-atoms-table th {
  background: #dcfce7;
  padding: 8px;
  color: #166534;
}

.chem-atoms-table td {
  padding: 8px;
  border-bottom: 1px solid #bbf7d0;
}

/* Geology Stratigraphy Canvas */
.geology-canvas {
  width: 100%;
  height: 240px;
  background: #8ec5fc;
  background-image: linear-gradient(62deg, #8ec5fc 0%, #e0c3fc 100%);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  border: 2px solid #cbd5e1;
}

/* Quick Launcher Bar */
.pro-launcher-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.pro-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pro-launch-btn--physics {
  background: linear-gradient(135deg, #0284c7, #2563eb);
}

.pro-launch-btn--chem {
  background: linear-gradient(135deg, #059669, #10b981);
}

.pro-launch-btn--geo {
  background: linear-gradient(135deg, #d97706, #b45309);
}

.pro-launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
