/* Reformalia Leads — estilos del formulario modal */

.reformalia-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.55) !important;
  padding: 16px;
}
.reformalia-overlay.reformalia-open {
  display: flex;
}

.reformalia-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff !important;
  border-radius: 24px;
  padding: 32px 28px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

.reformalia-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none !important;
  background: #F5F4F2 !important;
  color: #4B5563 !important;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.reformalia-close:hover {
  background: #ECEAE7 !important;
}

.reformalia-progress {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}
.reformalia-step-dot {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: #ECEAE7 !important;
  transition: background 0.2s ease;
}
.reformalia-step-dot.reformalia-active {
  background: #FF6200 !important;
}

.reformalia-step h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800 !important;
  color: #1F2328 !important;
  text-align: center;
}
.reformalia-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: #8A93A0 !important;
  text-align: center;
}

.reformalia-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.reformalia-chip {
  padding: 10px 18px;
  border-radius: 50px;
  border: 1.5px solid #ECEAE7 !important;
  background: #ffffff !important;
  color: #1F2328 !important;
  font-size: 14px;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.15s ease;
}
.reformalia-chip:hover {
  border-color: #FF6200 !important;
}
.reformalia-chip.reformalia-selected {
  background: #FF6200 !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(255, 98, 0, 0.25) !important;
}
.reformalia-loading {
  font-size: 13px;
  color: #8A93A0 !important;
}

.reformalia-field {
  margin-bottom: 16px;
}
.reformalia-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600 !important;
  color: #4B5563 !important;
}
.reformalia-field input,
.reformalia-field textarea,
.reformalia-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 18px;
  border: 1.5px solid #ECEAE7 !important;
  border-radius: 50px;
  font-size: 15px;
  color: #1F2328 !important;
  font-family: inherit !important;
  outline: none;
  transition: border-color 0.15s ease;
  background: #ffffff !important;
}
.reformalia-field textarea {
  border-radius: 18px;
}
.reformalia-field select {
  cursor: pointer;
}
.reformalia-field input:focus,
.reformalia-field textarea:focus,
.reformalia-field select:focus {
  border-color: #FF6200 !important;
}

.reformalia-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.reformalia-photos:empty {
  margin-bottom: 0;
}
.reformalia-photo-thumb {
  position: relative;
  width: 64px;
  height: 64px;
}
.reformalia-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.reformalia-photo-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 999px;
  background: #E53E3E !important;
  color: #ffffff !important;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.reformalia-photo-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1.5px dashed #ECEAE7;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #4B5563 !important;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.reformalia-photo-add:hover {
  border-color: #FF6200;
}
.reformalia-photo-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #8A93A0 !important;
}

.reformalia-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.reformalia-actions .reformalia-btn-secondary {
  flex: 0 0 auto;
}
.reformalia-actions .reformalia-btn-primary {
  flex: 1;
}

.reformalia-btn-primary {
  width: 100%;
  padding: 15px 20px;
  border: none !important;
  border-radius: 50px;
  background: #FF6200 !important;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background 0.2s ease;
}
.reformalia-btn-primary:hover {
  background: #e45700 !important;
}
.reformalia-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.reformalia-btn-secondary {
  padding: 15px 20px;
  border: 1.5px solid #ECEAE7 !important;
  border-radius: 50px;
  background: #ffffff !important;
  color: #4B5563 !important;
  font-size: 16px;
  font-weight: 600 !important;
  cursor: pointer;
}
.reformalia-btn-secondary:hover {
  border-color: #D0CDC8 !important;
}

.reformalia-error {
  color: #E53E3E !important;
  font-size: 13px;
  margin: 0 0 12px;
  text-align: center;
}

.reformalia-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #FF6200 !important;
  color: #ffffff !important;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reformalia-step[data-step-panel="4"] {
  text-align: center;
}
.reformalia-step[data-step-panel="4"] .reformalia-btn-primary {
  margin-top: 8px;
}

/* Botón generado por el shortcode [reformalia_boton] */
.reformalia-shortcode-btn {
  display: inline-block;
  padding: 14px 28px;
  border: none !important;
  border-radius: 50px;
  background: #FF6200 !important;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
  cursor: pointer;
  transition: background 0.2s ease;
}
.reformalia-shortcode-btn:hover {
  background: #e45700 !important;
}

@media (max-width: 560px) {
  .reformalia-overlay {
    padding: 0;
  }
  .reformalia-modal {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: 24px 20px 20px;
  }
  .reformalia-step h2 {
    font-size: 19px;
  }
}

/* ------------------------------------------------------------------
   [reformalia_guias] — cuadrícula de tipos de reforma
   ------------------------------------------------------------------ */
.reformalia-guides {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
.reformalia-guides-title {
  font-size: 30px;
  font-weight: 800;
  color: #1F2328;
  margin: 0 0 8px;
}
.reformalia-guides-subtitle {
  font-size: 16px;
  color: #8A93A0;
  margin: 0 0 32px;
}
.reformalia-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  text-align: left;
}
.reformalia-guide-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 20px;
  border-radius: 18px;
  border: 1.5px solid #ECEAE7;
  background: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.reformalia-guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border-color: #FF6200 !important;
}
.reformalia-guide-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #FFF1E6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.reformalia-guide-icon svg {
  width: 24px;
  height: 24px;
  stroke: #FF6200;
  fill: none;
  stroke-width: 2;
}
.reformalia-guide-name {
  font-size: 16px;
  font-weight: 700;
  color: #1F2328 !important;
  margin: 0 0 6px;
}
.reformalia-guide-cta {
  font-size: 13.5px;
  font-weight: 600;
  color: #FF6200 !important;
  margin-top: auto;
}

@media (max-width: 560px) {
  .reformalia-guides-title {
    font-size: 24px;
  }
  .reformalia-guides-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
