.chmf-wrap.ch-hero-finder {
  width: 100%;
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 28px;
  align-items: start;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  overflow: visible;
}

/* bloque de título general */
.chmf-hero-copy {
  grid-column: 1 / -1;
  max-width: 980px;
  margin-bottom: 6px;
}

.chmf-hero-title {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.98;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 6px 18px rgba(93, 21, 91, 0.28);
}

.chmf-hero-description {
  margin: 0;
  max-width: 980px;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.15;
  font-weight: 700;
  color: rgba(255, 245, 250, 0.96);
  text-shadow: 0 4px 14px rgba(93, 21, 91, 0.18);
}

/* columnas */
.ch-finder-left,
.ch-finder-right {
  min-width: 0;
}

/* sticky izquierda desktop */
@media (min-width: 1025px) {
  .ch-finder-left {
    position: sticky;
    top: 32px;
    align-self: start;
  }
}

/* tarjeta base */
.chmf-card {
  background: rgba(255, 246, 250, 0.88);
  border: 3px solid rgba(255, 255, 255, 0.42);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(82, 19, 102, 0.18);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

/* panel izquierdo */
.chmf-card--form {
  padding: 0;
}

.chmf-card--form .chmf-header {
  background: linear-gradient(135deg, #a124b0 0%, #e53887 100%);
  padding: 26px 26px 20px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.chmf-card--form .chmf-header h3 {
  margin: 0 0 6px;
  font-size: clamp(28px, 2.8vw, 30px);
  line-height: 1.02;
  font-weight: 700;
  color: #ffd34a;
  text-shadow: 0 3px 10px rgba(84, 0, 80, 0.18);
}

.chmf-card--form .chmf-header p {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: rgba(255, 245, 250, 0.95);
}

.chmf-form {
  padding: 24px 24px 8px;
}

.chmf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.chmf-field label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
  color: #5f165d;
  font-size: 16px;
}

.chmf-field select {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  border: 2px solid rgba(199, 114, 170, 0.22);
  padding: 0 16px;
  background: #fff;
  color: #5a2a68;
  box-sizing: border-box;
  font-size: 17px;
  font-family: 'Poppins', sans-serif;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  appearance: none;
}

.chmf-field select:focus {
  outline: none;
  border-color: #e14d8e;
  box-shadow: 0 0 0 4px rgba(225, 77, 142, 0.14);
}

.chmf-field select:disabled {
  opacity: 0.72;
  background: #f8eef5;
  cursor: not-allowed;
}

.chmf-actions {
  margin-top: 18px;
}

.chmf-submit,
.chmf-btn,
.ch-regenerate {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  font-family: 'Poppins', sans-serif;
}

.chmf-submit:hover,
.chmf-btn:hover,
.ch-regenerate:hover {
  transform: translateY(-1px);
}

.chmf-submit {
  width: 100%;
  min-height: 58px;
  background: linear-gradient(90deg, #ff4f90 0%, #ff8b1f 100%);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 14px 28px rgba(255, 106, 88, 0.24);
}

.chmf-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.chmf-submit.is-loading {
  opacity: 0.86;
}

.chmf-feedback {
  min-height: 24px;
  margin: 8px 24px 22px;
  font-size: 14px;
  font-weight: 700;
}

.chmf-feedback.is-error {
  color: #b00020;
}

.chmf-feedback.is-success {
  color: #2e7d32;
}

/* panel derecho */
.chmf-card--result {
  padding: 24px;
  min-height: 100%;
  background: rgba(255, 245, 248, 0.9);
}

.ch-result-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.ch-result-top h3 {
  margin: 0 0 6px;
  font-size: clamp(30px, 2.5vw, 52px);
  line-height: 1;
  font-weight: 700;
  color: #8b1d78;
}

.ch-result-top p {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: #8c4f73;
  font-weight: 600;
}

.ch-regenerate {
  min-height: 54px;
  min-width: 180px;
  background: linear-gradient(135deg, #ffd351 0%, #ffb020 100%);
  color: #7c275f;
  box-shadow: 0 10px 22px rgba(255, 182, 39, 0.24);
  font-size: 18px;
  white-space: nowrap;
}

.chmf-result-placeholder {
  min-height: 320px;
  border-radius: 22px;
  border: 2px dashed rgba(227, 111, 168, 0.25);
  background: rgba(255, 252, 253, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.chmf-result-placeholder p {
  margin: 0;
  max-width: 580px;
  font-size: 20px;
  line-height: 1.45;
  color: #91527d;
  font-weight: 700;
}

.chmf-result {
  margin-top: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.chmf-result__header {
  margin-bottom: 14px;
}

.chmf-result__eyebrow {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #b1417d;
  margin-bottom: 8px;
}

.chmf-result__header h4 {
  margin: 0;
  font-size: clamp(28px, 2.4vw, 48px);
  line-height: 1.05;
  color: #8f166f;
  font-weight: 700;
}

.chmf-result__content {
  background: rgba(255, 252, 253, 0.95);
  border: 2px solid rgba(245, 198, 221, 0.55);
  border-radius: 22px;
  padding: 26px;
  font-size: 22px;
  line-height: 1.7;
  color: #6b285f;
  min-height: 240px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.chmf-result__content > *:first-child {
  margin-top: 0;
}

.chmf-result__content > *:last-child {
  margin-bottom: 0;
}

.chmf-result__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.chmf-btn {
  min-height: 54px;
  padding: 0 22px;
  font-size: 18px;
}

.chmf-btn--secondary {
  background: #fff;
  color: #6f38c5;
  border: 2px solid rgba(111, 56, 197, 0.22);
}

.chmf-btn--whatsapp {
  background: #22b45b;
  color: #fff;
  box-shadow: 0 10px 22px rgba(34, 180, 91, 0.2);
}

.chmf-btn--ghost {
  background: #fff7fb;
  color: #8a3e74;
  border: 2px solid rgba(222, 145, 184, 0.3);
}

.chmf-result__meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(183, 103, 152, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.chmf-result__meta span {
  font-size: 15px;
  font-weight: 800;
  color: #9a4b7e;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(214, 162, 190, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
}

/* forzar hidden */
.chmf-result-placeholder[hidden],
.chmf-result[hidden] {
  display: none !important;
}

/* TABLET */
@media (max-width: 1024px) {
  .chmf-wrap.ch-hero-finder {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .chmf-hero-copy {
    margin-bottom: 0;
  }

  .chmf-hero-title {
    font-size: clamp(34px, 6vw, 58px);
  }

  .chmf-hero-description {
    font-size: clamp(17px, 2.8vw, 24px);
    line-height: 1.2;
  }

  .ch-finder-left {
    position: static;
  }

  .ch-result-top {
    flex-direction: column;
    align-items: stretch;
  }

  .ch-regenerate {
    width: 100%;
  }

  .chmf-result__content {
    font-size: 20px;
    min-height: 200px;
  }
}

/* MOVIL */
@media (max-width: 767px) {
  .chmf-wrap.ch-hero-finder {
    gap: 18px;
  }

  .chmf-hero-title {
    font-size: 42px;
    line-height: 1;
  }

  .chmf-hero-description {
    font-size: 19px;
    line-height: 1.25;
  }

  .chmf-card {
    border-radius: 22px;
  }

  .chmf-card--form .chmf-header,
  .chmf-form,
  .chmf-card--result {
    padding-left: 18px;
    padding-right: 18px;
  }

  .chmf-card--form .chmf-header {
    padding-top: 20px;
    padding-bottom: 16px;
  }

  .chmf-card--form .chmf-header h3 {
    font-size: 34px;
  }

  .chmf-card--form .chmf-header p {
    font-size: 16px;
  }

  .chmf-form {
    padding-top: 18px;
    padding-bottom: 4px;
  }

  .chmf-field label {
    font-size: 15px;
  }

  .chmf-field select {
    min-height: 52px;
    font-size: 16px;
  }

  .chmf-submit {
    min-height: 54px;
    font-size: 18px;
  }

  .ch-result-top h3 {
    font-size: 34px;
  }

  .ch-result-top p {
    font-size: 17px;
  }

  .chmf-result__header h4 {
    font-size: 34px;
  }

  .chmf-result__content {
    padding: 18px;
    font-size: 18px;
    line-height: 1.65;
    min-height: auto;
  }

  .chmf-result__buttons {
    flex-direction: column;
  }

  .chmf-btn,
  .ch-regenerate {
    width: 100%;
  }

  .chmf-result-placeholder {
    min-height: 160px;
    padding: 20px;
  }

  .chmf-result-placeholder p {
    font-size: 17px;
  }

  .chmf-feedback {
    margin-left: 18px;
    margin-right: 18px;
    margin-bottom: 18px;
  }

  .chmf-result__meta {
    gap: 10px;
  }

  .chmf-result__meta span {
    width: 100%;
    text-align: center;
  }
}


@media (min-width: 1025px) {
  .ch-finder-left .chmf-card--form {
    position: sticky;
    top: 32px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    will-change: transform;
  }
}