/**
 * Garcom Cotizador Pro - Frontend Styles
 * Marca: Naranja #FF6200 + Negro #0D0D0D
 */

.gcp-cotizador {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 1100px;
  margin: 30px auto;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  color: #1a1a1a;
}

.gcp-cotizador * {
  box-sizing: border-box;
}

/* Header */
.gcp-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.gcp-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #0D0D0D;
}

.gcp-subtitle {
  color: #666;
  margin: 0;
  font-size: 15px;
}

/* Mode switcher (3D / Laser) */
.gcp-mode-switcher {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px;
  background: #f3f4f6;
  border-radius: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.gcp-mode-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: #666;
}

.gcp-mode-btn:hover {
  color: #0D0D0D;
}

.gcp-mode-btn.active {
  background: #0D0D0D;
  color: #FFF;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Tabs (auto/manual) */
.gcp-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  background: #f3f4f6;
  border-radius: 10px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.gcp-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}

.gcp-tab.active {
  background: #fff;
  color: #FF6200;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Views */
.gcp-view {
  display: none;
}

.gcp-view.active {
  display: block;
  animation: gcp-fadein 0.3s;
}

@keyframes gcp-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Grid layout */
.gcp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .gcp-grid-2 {
    grid-template-columns: 1fr;
  }
}

.gcp-grid-2-tight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Form fields */
.gcp-field {
  margin-bottom: 16px;
}

.gcp-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.gcp-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: border 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.gcp-input:focus {
  outline: none;
  border-color: #FF6200;
  box-shadow: 0 0 0 3px rgba(255, 98, 0, 0.1);
}

.gcp-field small {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

/* Dropzone */
.gcp-dropzone {
  border: 2px dashed #d4d4d4;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fafafa;
}

.gcp-dropzone:hover, .gcp-dropzone.dragover {
  border-color: #FF6200;
  background: #FFF8F2;
}

.gcp-dropzone-content svg {
  color: #999;
  margin-bottom: 8px;
}

.gcp-dropzone-content p {
  margin: 0 0 4px 0;
  color: #555;
  font-size: 14px;
}

.gcp-dropzone-content small {
  color: #999;
  font-size: 12px;
}

.gcp-file-info {
  background: #FFF8F2;
  border: 1px solid #FF6200;
  border-radius: 8px;
  padding: 12px;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

.gcp-file-name {
  color: #FF6200;
  font-weight: 600;
  font-size: 14px;
}

.gcp-file-remove {
  background: transparent;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 0 8px;
}

.gcp-file-remove:hover {
  color: #ef4444;
}

/* Result card */
.gcp-result-card {
  background: linear-gradient(135deg, #FFF8F2 0%, #fff 100%);
  border: 1px solid #FFE4D1;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.gcp-result-card h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: #0D0D0D;
}

.gcp-breakdown {
  margin-bottom: 16px;
  font-size: 13px;
  color: #666;
}

.gcp-empty-msg {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 16px 0;
}

.gcp-breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.gcp-breakdown-row:last-child {
  border-bottom: none;
}

.gcp-breakdown-row span:last-child {
  font-weight: 600;
  color: #333;
}

.gcp-price-display {
  text-align: center;
  padding-top: 16px;
  border-top: 2px dashed #FFCFA8;
}

.gcp-price-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gcp-price-value {
  font-size: 42px;
  font-weight: 800;
  color: #FF6200;
  line-height: 1;
  font-feature-settings: 'tnum';
}

.gcp-urgency-msg {
  margin-top: 8px;
  font-size: 12px;
  color: #d97706;
  font-weight: 600;
  min-height: 16px;
}

/* Customer form */
.gcp-customer-form {
  background: #fafafa;
  border-radius: 12px;
  padding: 20px;
}

.gcp-customer-form h4 {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: #0D0D0D;
}

/* Buttons */
.gcp-btn-submit {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #FF6200, #E55400);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(255, 98, 0, 0.3);
}

.gcp-btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 98, 0, 0.4);
}

.gcp-btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.gcp-btn-secondary {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.2s;
}

.gcp-btn-secondary:hover {
  border-color: #999;
  color: #333;
}

.gcp-btn-whatsapp {
  display: inline-block;
  padding: 14px 28px;
  background: #25D366;
  color: #fff !important;
  text-decoration: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 8px 0;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.gcp-btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.gcp-disclaimer {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin: 12px 0 0 0;
  line-height: 1.5;
}

/* Loading & Success */
.gcp-loading {
  text-align: center;
  padding: 60px 20px;
}

.gcp-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #FFE4D1;
  border-top-color: #FF6200;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: gcp-spin 0.8s linear infinite;
}

@keyframes gcp-spin {
  to { transform: rotate(360deg); }
}

.gcp-success {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
  border-radius: 12px;
  border: 1px solid #86efac;
}

.gcp-success-icon {
  width: 70px;
  height: 70px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 16px;
  font-weight: bold;
}

.gcp-success h3 {
  margin: 0 0 8px 0;
  color: #0D0D0D;
}

.gcp-success p {
  color: #555;
  margin-bottom: 8px;
}

/* Mobile */
@media (max-width: 600px) {
  .gcp-cotizador {
    padding: 16px;
    margin: 12px;
  }
  
  .gcp-grid-2-tight {
    grid-template-columns: 1fr;
  }
  
  .gcp-mode-switcher {
    flex-direction: column;
  }
  
  .gcp-price-value {
    font-size: 32px;
  }
}
