/* ===== Form Layout ===== */
.form-layout {
  max-width: 900px;
}

.form-layout .paso-title {
  margin-bottom: 40px;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== Field Base ===== */
.field {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.57);
  border-radius: 10px;
  height: 40px;
  width: 100%;
  max-width: 330px;
}

.field-input {
  width: 100%;
  height: 100%;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #000;
  outline: none;
}

.field-input::placeholder {
  color: #777;
}

.field-input:focus {
  outline: none;
}

/* ===== Field with Label (filled state) ===== */
.field-filled {
  padding: 6px 16px 0;
}

.field-label {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 9px;
  color: #777;
  line-height: normal;
}

/* ===== Select Field ===== */
.field-select {
  width: 100%;
  border: none;
  background: transparent;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #000;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 20px;
}

.field-select-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #000;
  pointer-events: none;
}

/* ===== Tags Field ===== */
.field-tags {
  height: 50px;
  padding: 6px 16px 8px;
}

.tags-container {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background-color: #5336d1;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #fff;
  line-height: normal;
  white-space: nowrap;
}

.tag-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: #000;
  flex: 1;
  min-width: 60px;
}

/* ===== Form Section ===== */
.form-section {
  margin-top: 16px;
}

.form-section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #000;
  line-height: normal;
  margin-bottom: 8px;
}

.form-section-desc {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #777;
  line-height: normal;
  max-width: 340px;
  margin-bottom: 16px;
}

.form-section-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== Input with label (filled state) ===== */
.field-input-labeled {
  padding: 0;
  height: auto;
  font-size: 12px;
}

/* ===== Helper Text ===== */
.form-helper-text {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #777;
  line-height: normal;
  max-width: 340px;
  margin-bottom: 16px;
}

/* ===== Textarea Field ===== */
.field-textarea {
  height: auto;
  max-width: 330px;
}

.field-textarea-input {
  width: 100%;
  min-height: 130px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.57);
  border-radius: 10px;
  background: transparent;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #000;
  outline: none;
  resize: vertical;
}

.field-textarea-input::placeholder {
  color: #777;
}

.field-textarea-input:focus {
  border-color: #5336d1;
}

/* ===== File Upload ===== */
.file-upload {
  position: relative;
  width: 100%;
  max-width: 330px;
  height: 130px;
  border: 1px solid rgba(0, 0, 0, 0.57);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.file-upload:hover {
  border-color: #5336d1;
  background-color: rgba(83, 54, 209, 0.03);
}

.file-upload-text {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #777;
  text-align: center;
}

.file-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ===== Phone Field ===== */
.field-phone {
  display: flex;
  align-items: center;
  padding: 6px 16px 0;
}

.field-phone .field-label {
  position: absolute;
  top: 4px;
  left: 16px;
}

.field-phone-prefix {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #000;
  white-space: nowrap;
  flex-shrink: 0;
}

.field-phone-divider {
  width: 1px;
  height: 18px;
  background-color: rgba(0, 0, 0, 0.3);
  margin: 0 10px;
  flex-shrink: 0;
}

.field-phone-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #000;
  letter-spacing: 2.4px;
  outline: none;
}

.field-phone-input::placeholder {
  color: #777;
  letter-spacing: normal;
}

/* ===== Toggle/Friendly Field ===== */
.field-toggle {
  padding: 6px 16px 0;
  padding-right: 40px;
}

.field-toggle-check {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #00d9b2;
}

/* ===== Price Field ===== */
.field-price {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-color: #d9d9d9;
}

.field-price.field-highlight {
  border-color: #5336d1;
}

.field-price-currency {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #777;
  flex-shrink: 0;
}

.field-price-currency i {
  font-size: 12px;
  color: #777;
}

.field-price-value {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #000;
  text-align: right;
  outline: none;
}

.field-price-value::placeholder {
  color: #777;
}

/* ===== Field Label Above ===== */
.field-label-above {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #000;
  line-height: normal;
  margin-bottom: 4px;
}

/* ===== Field with Right Value ===== */
.field-with-value {
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.field-with-value .field-input {
  padding: 0;
  flex: 1;
}

.field-right-value {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #000;
  text-align: right;
  flex-shrink: 0;
}

/* ===== AI Prompt Input ===== */
.ai-prompt {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 110px;
  border: 1px solid #777;
  border-radius: 10px;
  padding: 14px 16px;
}

.ai-prompt-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #000;
  outline: none;
  resize: none;
}

.ai-prompt-input::placeholder {
  color: #777;
}

.ai-prompt-send {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background-color: #e1e1e1;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  color: #000;
  transition: background-color 0.2s ease;
}

.ai-prompt-send:hover {
  background-color: #d0d0d0;
}

/* ===== Type Card Grid ===== */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  gap: 10px;
  max-width: 330px;
}

.type-card {
  width: 100px;
  height: 80px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.type-card.selected {
  border-color: #5336d1;
  background-color: rgba(83, 54, 209, 0.03);
}

.type-card-icon {
  width: 40px;
  height: 24px;
  margin-bottom: auto;
  object-fit: contain;
}

.type-card-label {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #000;
  line-height: normal;
}

/* ===== Tips Box ===== */
.tips-box {
  width: 100%;
  max-width: 340px;
  min-height: 140px;
  background-color: #d9d9d9;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
}

.tip-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #000;
  border-radius: 10px;
  background: transparent;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #000;
  height: 40px;
  cursor: pointer;
}

/* ===== Option Card ===== */
.option-card {
  position: relative;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 14px 40px 14px 16px;
  width: 100%;
  max-width: 330px;
  min-height: 100px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.option-card.selected {
  background-color: #f5f5f5;
  border-color: #050505;
}

.option-card-check {
  position: absolute;
  right: 12px;
  top: 14px;
  font-size: 12px;
  color: #777;
}

.option-card.selected .option-card-check {
  color: #00d9b2;
}

.option-card-title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #000;
  line-height: normal;
  margin-bottom: 2px;
}

.option-card-details {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 9px;
  color: #777;
  line-height: normal;
}

.option-card-details p {
  margin-bottom: 4px;
}

.option-card-details ul {
  list-style: disc;
  padding-left: 14px;
  margin: 0;
}

.option-card-details li {
  margin-bottom: 2px;
}

/* ===== Benefit List ===== */
.benefit-list {
  display: flex;
  flex-direction: column;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.benefit-item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.benefit-item-content {
  flex: 1;
  max-width: 220px;
}

.benefit-item-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #000;
  line-height: normal;
  margin-bottom: 12px;
}

.benefit-item-desc {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #000;
  line-height: normal;
}

.benefit-item-img {
  width: 90px;
  height: 100px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
}

.benefit-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Map Placeholder ===== */
.map-placeholder {
  width: 100%;
  max-width: 340px;
  height: 280px;
  background-color: #d9d9d9;
  border-radius: 11px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.map-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.map-search-icon {
  font-size: 12px;
  color: #000;
  flex-shrink: 0;
}

.map-search-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #000;
  outline: none;
}

.map-search-input::placeholder {
  color: #777;
}

/* ===== Map Search Suggestions ===== */
.map-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 1001;
  display: none;
}

.map-suggestions.visible {
  display: block;
}

.map-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}

.map-suggestion-item:last-child {
  border-bottom: none;
}

.map-suggestion-item:hover {
  background: #f5f3ff;
}

.map-suggestion-item i {
  color: #5336d1;
  font-size: 12px;
  flex-shrink: 0;
}

/* ===== Geolocation Button ===== */
.ligo-geolocate-btn {
  margin-bottom: 0 !important;
}

.ligo-geolocate-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.ligo-geolocate-btn a:hover {
  color: #5336d1;
}

.ligo-geolocate-btn.locating a {
  color: #5336d1;
  animation: pulse-geo 1s infinite;
}

@keyframes pulse-geo {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== Agreement Box ===== */
.agreement-box {
  width: 100%;
  max-width: 330px;
  background-color: #fff;
  border: 1px solid rgba(119, 119, 119, 0.33);
  border-radius: 12px;
  padding: 20px;
  box-shadow: inset 0px 4px 20px 0px rgba(0, 0, 0, 0.05);
}

.agreement-text {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #777;
  line-height: normal;
  margin-bottom: 16px;
}

.agreement-link {
  color: #5336d1;
  text-decoration: none;
}

.agreement-list {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
}

.agreement-list li {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #777;
  line-height: normal;
  margin-bottom: 4px;
}

.agreement-list li:last-child {
  margin-bottom: 0;
}

.agreement-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  cursor: pointer;
}

.agreement-check-icon {
  font-size: 12px;
  color: #5336d1;
}

.agreement-check-text {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #777;
}

/* ===== Preview Card ===== */
.preview-card-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 330px;
}

.preview-card {
  width: 190px;
  background-color: #f5f5f5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 0px 1px 0px rgba(12, 26, 75, 0.24), 0px 3px 8px -1px rgba(50, 50, 71, 0.05);
}

.preview-card-image {
  width: 100%;
  height: 160px;
  position: relative;
}

.preview-card-image-placeholder {
  width: 100%;
  height: 100%;
  background-color: #d9d9d9;
}

.preview-card-body {
  padding: 8px 15px 12px;
}

.preview-card-details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.preview-card-badges {
  display: flex;
  align-items: center;
  gap: 0;
}

.preview-badge-ligo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #5336d1;
  border-radius: 9px;
  padding: 2px 8px;
  height: 18px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 9px;
  color: #fff;
}

.preview-badge-discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f2b308;
  border-radius: 9px;
  padding: 2px 8px;
  height: 18px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: #5336d1;
  letter-spacing: -0.5px;
  margin-left: -6px;
}

.preview-card-logo {
  width: 38px;
  height: 38px;
  background-color: #5336d1;
  border: 1px solid #9882f5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.preview-card-price {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #5336d1;
  line-height: 1.36;
}

.preview-card-pvp {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 9px;
  color: #ff2121;
  margin-bottom: 4px;
}

.preview-price-strikethrough {
  text-decoration: line-through;
}

.preview-card-establishment {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #5336d1;
  margin-bottom: 2px;
}

.preview-card-description {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 10px;
  color: #555454;
  line-height: 12px;
  margin-bottom: 4px;
}

.preview-card-location {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 8px;
  color: #555454;
}

/* ===== Desktop (768px+) ===== */
@media (min-width: 768px) {
  .form-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .form-layout .paso-title {
    font-size: 32px;
    max-width: 500px;
    margin-bottom: 48px;
  }

  .form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 700px;
  }

  .field {
    max-width: none;
  }

  .form-section {
    grid-column: 1 / -1;
    margin-top: 24px;
  }

  .form-section-title {
    font-size: 17px;
  }

  .form-section-desc {
    font-size: 13px;
    max-width: 500px;
  }

  .form-section-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .form-section-fields .field {
    max-width: none;
  }

  .field-input-labeled {
    font-size: 14px;
  }

  .file-upload {
    max-width: none;
    height: 160px;
  }

  .file-upload-text {
    font-size: 14px;
  }

  .field-input {
    font-size: 14px;
  }

  .field-select {
    font-size: 14px;
  }

  .tag {
    font-size: 13px;
    padding: 3px 10px;
  }

  .field-label {
    font-size: 10px;
  }

  .form-helper-text {
    font-size: 14px;
    max-width: 500px;
    margin-bottom: 24px;
  }

  .field-textarea {
    max-width: none;
    grid-column: 1 / -1;
  }

  .field-textarea-input {
    min-height: 180px;
    font-size: 14px;
  }

  .field-price-currency {
    font-size: 14px;
  }

  .field-price-value {
    font-size: 14px;
  }

  .field-label-above {
    font-size: 14px;
  }

  .field-right-value {
    font-size: 14px;
  }

  .ai-prompt {
    max-width: none;
    height: 130px;
    grid-column: 1 / -1;
  }

  .ai-prompt-input {
    font-size: 14px;
  }

  .type-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 120px);
    gap: 16px;
  }

  .type-card {
    width: 120px;
    height: 90px;
  }

  .type-card-label {
    font-size: 14px;
  }

  .tips-box {
    max-width: none;
    grid-column: 1 / -1;
  }

  .tip-tag {
    font-size: 14px;
  }

  .option-card {
    max-width: none;
  }

  .option-card-title {
    font-size: 14px;
  }

  .option-card-details {
    font-size: 10px;
  }

  .benefit-list {
    grid-column: 1 / -1;
  }

  .benefit-item-content {
    max-width: 280px;
  }

  .benefit-item-title {
    font-size: 17px;
  }

  .benefit-item-desc {
    font-size: 14px;
  }

  .benefit-item-img {
    width: 100px;
    height: 110px;
  }

  .field-phone-prefix {
    font-size: 14px;
  }

  .field-phone-input {
    font-size: 14px;
  }

  .map-placeholder {
    max-width: none;
    height: 300px;
    grid-column: 1 / -1;
  }

  .map-search {
    height: 40px;
    left: 14px;
    right: 14px;
    top: 14px;
  }

  .map-search-input {
    font-size: 14px;
  }

  .map-suggestion-item {
    font-size: 13px;
    padding: 12px 14px;
  }

  .preview-card-container {
    max-width: none;
    grid-column: 1 / -1;
    justify-content: center;
  }

  .agreement-box {
    max-width: none;
    grid-column: 1 / -1;
  }

  .agreement-text {
    font-size: 14px;
  }

  .agreement-list li {
    font-size: 14px;
  }

  .agreement-check {
    grid-column: 1 / -1;
  }

  .agreement-check-text {
    font-size: 14px;
  }
}

/* ===== Field Error State ===== */
.field-has-error {
  border-color: #ff4444 !important;
}

.field-error {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  color: #ff4444;
  margin-top: 4px;
  position: absolute;
  bottom: -18px;
  left: 0;
}

/* ===== Toast Notifications ===== */
.ligo-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  max-width: 90%;
  text-align: center;
}

.ligo-toast.visible {
  opacity: 1;
}

.ligo-toast.error {
  background: #ff4444;
}

.ligo-toast.success {
  background: #00c49a;
}

/* ===== Button Loading State ===== */
.btn-siguiente.loading,
.btn-publicar.loading,
.btn-continua.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

/* ===== Large Desktop (1024px+) ===== */
@media (min-width: 1024px) {
  .form-layout {
    max-width: 1100px;
  }

  .form-layout .paso-title {
    font-size: 36px;
  }

  .form-fields {
    max-width: 800px;
    gap: 20px;
  }

  .file-upload {
    height: 180px;
  }

  .field-textarea-input {
    min-height: 200px;
    font-size: 15px;
  }

  .map-placeholder {
    height: 350px;
  }
}
