/* Probador Digital — modal styles */

.probador-digital-trigger {
  margin-top: 12px !important;
  background: #0071e3 !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 24px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  width: 100%;
  box-sizing: border-box;
  transition: background .15s;
}
.probador-digital-trigger:hover { background: #0058b9 !important; }

.probador-modal[hidden] { display: none !important; }
.probador-modal {
  position: fixed; inset: 0;
  z-index: 999999;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1d1d1f;
}
.probador-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
}
.probador-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  z-index: 1;
  margin: 0 auto;
}
.probador-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none;
  font-size: 26px; line-height: 1;
  color: #6e6e73;
  cursor: pointer;
}
.probador-close:hover { color: #1d1d1f; }

.probador-modal-dialog h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}
.probador-subtitle {
  color: #6e6e73;
  font-size: 14px;
  margin: 0 0 20px;
}

.probador-section { margin-bottom: 20px; }
.probador-step-title {
  font-weight: 600; font-size: 14px;
  color: #1d1d1f; margin-bottom: 10px;
}

/* Logo upload */
.probador-logo-upload {
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed #c7c7cc;
  border-radius: 12px;
  padding: 22px;
  min-height: 160px;
  background: #fafafa;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.probador-logo-upload:hover {
  border-color: #0071e3;
  background: #f0f7ff;
}
.probador-placeholder {
  color: #6e6e73; font-size: 13px;
}
.probador-placeholder strong {
  display: block; color: #0071e3;
  font-size: 16px; margin-bottom: 6px;
}
.probador-placeholder small {
  display: block; margin-top: 6px;
  color: #8e8e93; font-size: 12px;
}
.probador-logo-image {
  max-width: 200px; max-height: 160px;
  object-fit: contain;
}

/* Tips */
.probador-tips {
  margin-top: 12px;
  background: #fff8e6;
  border-left: 3px solid #f5a623;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
}
.probador-tips strong { display: block; margin-bottom: 6px; color: #3a2f28; }
.probador-tips ul { margin: 0; padding-left: 18px; }
.probador-tips li { margin-bottom: 3px; color: #5a4f45; }
.probador-tips small { display: block; margin-top: 8px; color: #8e8e93; line-height: 1.45; }

/* Options */
.probador-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .probador-options { grid-template-columns: 1fr; } }
.probador-option-group {
  background: #fafafa; border-radius: 10px; padding: 14px;
}
.probador-option-group label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px;
}
.probador-btn-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.probador-pill {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid #e5e5ea;
  background: #fff;
  cursor: pointer;
  font-size: 13px; font-weight: 500;
  color: #1d1d1f;
  transition: all .15s;
}
.probador-pill:hover { border-color: #0071e3; }
.probador-pill.active {
  background: #0071e3;
  color: #fff;
  border-color: #0071e3;
}
.probador-size-info {
  font-size: 12px; color: #6e6e73;
  margin-top: 8px;
}

/* Generate button */
.probador-generate-btn {
  margin-top: 16px;
  background: #0071e3; color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background .15s;
}
.probador-generate-btn:hover:not(:disabled) { background: #0058b9; }
.probador-generate-btn:disabled {
  background: #c7c7cc; cursor: not-allowed;
}

/* Result */
.probador-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
@media (max-width: 600px) { .probador-result-grid { grid-template-columns: 1fr; } }
.probador-result-box {
  background: #fafafa; border-radius: 12px;
  padding: 14px; text-align: center;
  min-height: 240px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.probador-result-box img {
  max-width: 100%; max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
}
.probador-label {
  font-size: 11px; text-transform: uppercase;
  color: #6e6e73; letter-spacing: 1px;
  margin-bottom: 10px; font-weight: 700;
}
.probador-spinner {
  width: 32px; height: 32px;
  border: 3px solid #e5e5ea;
  border-top-color: #0071e3;
  border-radius: 50%;
  animation: probador-spin .8s linear infinite;
}
@keyframes probador-spin { to { transform: rotate(360deg); } }
.probador-error-msg {
  background: #fee; border: 1px solid #fcc; color: #c33;
  padding: 12px; border-radius: 8px;
  margin-top: 12px; font-size: 13px;
}
.probador-download {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: #1d1d1f; color: #fff !important;
  text-decoration: none !important;
  border-radius: 6px;
  font-size: 13px;
}

.probador-cart-btn {
  margin-top: 18px;
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background .15s;
}
.probador-cart-btn:hover:not(:disabled) { background: #128a3f; }
.probador-cart-btn:disabled {
  background: #9ca3af; cursor: not-allowed;
}
