/* ═══════════════════════════════════════════════════════════════
   FORMULARIO PROFESIONALES — ESTILOS FIDEDIGNOS AL DISEÑO
   ═══════════════════════════════════════════════════════════════ */

/* ── Contenedor General de la Página ── */
.page-profesionales {
  background-color: #f7f5f2;
  color: #1f2d24;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.prof-page-container {
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 36px auto 60px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ── Tarjeta Principal del Formulario ── */
.prof-card {
  background: #fcfbfa;
  border: 1px solid #e5dfd7;
  border-radius: 12px;
  padding: 44px 52px 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

/* ── Cabecera ── */
.prof-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 28px;
  margin-bottom: 28px;
  text-align: center;
}

.prof-header__center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prof-header__logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #172a1e;
  margin: 0;
  line-height: 1.1;
}

.prof-header__logo-sub {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 5px;
  color: #4a5d51;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

.prof-header__title {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #172a1e;
  text-transform: uppercase;
  margin: 22px 0 0;
}

.prof-header__woman {
  position: absolute;
  top: -12px;
  right: -10px;
  width: 220px;
  pointer-events: none;
}

.prof-header__woman-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ── Secciones y Encabezados con Badge ── */
.prof-section {
  margin-bottom: 28px;
}

.prof-section__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.prof-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background-color: #ab936a;
  color: #2b2320;
  border-radius: 50%;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.prof-section__title {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #172a1e;
  text-transform: uppercase;
  margin: 0;
}

.prof-section__title-group {
  display: flex;
  flex-direction: column;
}

.prof-section__sub {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #65746b;
  margin-top: 2px;
}

/* ── Cuadrícula de Campos (3 columnas en desktop) ── */
.prof-grid {
  display: grid;
  gap: 16px 20px;
}

.prof-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.prof-field {
  display: flex;
  flex-direction: column;
}

.prof-field--full {
  width: 100%;
}

.prof-field label {
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #213228;
  margin-bottom: 6px;
  line-height: 1.3;
}

.prof-field .req {
  color: #b9382e;
  font-weight: 600;
  margin-left: 2px;
}

/* ── Inputs y Selects ── */
.prof-input,
.prof-select,
.prof-textarea {
  width: 100%;
  height: 40px;
  background-color: #ffffff;
  border: 1px solid #ddd7cf;
  border-radius: 5px;
  padding: 0 12px;
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  color: #1f2d24;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.prof-input:focus,
.prof-select:focus,
.prof-textarea:focus {
  outline: none;
  border-color: #2b4535;
  box-shadow: 0 0 0 3px rgba(43, 69, 53, 0.1);
}

.prof-input.has-error,
.prof-select.has-error,
.prof-textarea.has-error {
  border-color: #d32f2f !important;
  background-color: #fffaf9 !important;
}

/* Select personalizado */
.prof-select-wrap {
  position: relative;
  width: 100%;
}

.prof-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 32px;
}

.prof-select:invalid,
.prof-select option[value=""] {
  color: #7b8880;
}

.prof-select option {
  color: #1f2d24;
}

.prof-select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #617066;
  pointer-events: none;
}

/* Input con Icono */
.prof-input-icon-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.prof-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  color: #718077;
  pointer-events: none;
  display: block;
}

.prof-input--icon {
  padding-left: 38px !important;
}

/* Input de Redes Sociales */
.prof-input-socials-wrap {
  position: relative;
  width: 100%;
}

.prof-social-icons {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  color: #718077;
  pointer-events: none;
  z-index: 2;
}

.prof-social-icons svg {
  width: 17px;
  height: 17px;
  min-width: 17px;
  min-height: 17px;
  max-width: 17px;
  max-height: 17px;
  display: block;
}

.prof-input--socials {
  padding-left: 82px !important;
}

/* Textarea */
.prof-textarea {
  height: auto;
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}

/* ── Acordeones (02 y 03) ── */
.prof-accordion {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.prof-accordion--green {
  border: 1px solid #d0ded2;
  background-color: #ecf3ed;
}

.prof-accordion--peach {
  border: 1px solid #eadad0;
  background-color: #f9f0e8;
}

.prof-accordion--olive {
  border: 1px solid #d8e3d2;
  background-color: #eef4eb;
}

.prof-accordion--warm {
  border: 1px solid #e8dbdb;
  background-color: #f7eded;
}

.prof-accordion--amber {
  border: 1px solid #eddcc6;
  background-color: #faf3e8;
}

.prof-accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}

.prof-accordion__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prof-icon-circle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: 1.2px solid #5a6d61;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b5043;
}

.prof-icon-circle svg {
  width: 19px;
  height: 19px;
}

.prof-accordion__text {
  display: flex;
  flex-direction: column;
}

.prof-accordion__title {
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #172a1e;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.prof-accordion__sub {
  font-family: 'Jost', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  color: #617167;
  margin-top: 3px;
}

.prof-accordion__chevron {
  width: 20px;
  height: 20px;
  color: #213627;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prof-accordion.is-open .prof-accordion__chevron {
  transform: rotate(180deg);
}

/* Contenido desplegable */
.prof-accordion__content {
  display: none;
  background-color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 22px 24px;
}

.prof-accordion.is-open .prof-accordion__content {
  display: block;
}

/* Cuadrícula de checkboxes */
.prof-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.prof-check-item {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  color: #26362c;
  user-select: none;
  line-height: 1.3;
}

.prof-check-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.prof-check-box,
.prof-check-item__box {
  width: 17px;
  height: 17px;
  min-width: 17px;
  border: 1.5px solid #a4b4aa;
  border-radius: 4px;
  margin-right: 10px;
  background-color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.prof-check-item input[type="checkbox"]:checked~.prof-check-box,
.prof-check-item input[type="checkbox"]:checked~.prof-check-item__box {
  background-color: #1f3427;
  border-color: #1f3427;
}

.prof-check-item input[type="checkbox"]:checked~.prof-check-box::after,
.prof-check-item input[type="checkbox"]:checked~.prof-check-item__box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.prof-check-item:hover .prof-check-box,
.prof-check-item:hover .prof-check-item__box {
  border-color: #1f3427;
}

.prof-check-item__label,
.prof-check-label {
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  color: #26362c;
  line-height: 1.3;
}

/* Subgrupos dentro de acordeones (Nutrición, etc.) */
.prof-subgroup {
  margin-bottom: 8px;
}

.prof-subgroup--divider {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed #e4ddd4;
}

.prof-subgroup__title {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #172a1e;
  margin: 0 0 12px;
  text-transform: none;
}

/* Opción "Otro" con input */
.prof-check-item--otro,
.prof-check-item--other {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.prof-check-subinput,
.prof-other-input {
  flex: 1;
  min-width: 180px;
  height: 32px;
  padding: 0 10px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #1f2d24;
  border: 1px solid #dcd5cb;
  border-radius: 4px;
  background: #ffffff;
  display: inline-block;
  box-sizing: border-box;
}

.prof-check-subinput:focus,
.prof-other-input:focus {
  outline: none;
  border-color: #2b4535;
}

/* ── 03. Valores ── */
.prof-badge--gold {
  background-color: #ab936a;
}

.prof-section--valores {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e7e0d6;
}

.prof-checkbox-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 20px;
}

.prof-check-item--inline-other {
  display: flex;
  align-items: center;
  gap: 6px;
  grid-column: auto !important;
}

.prof-check-item--inline-other .prof-check-item__label-wrap {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}

.prof-check-item--inline-other .prof-other-input {
  flex: 1;
  min-width: 80px;
  max-width: 140px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #dcd5cb;
  border-radius: 4px;
}

/* ── 04. Mensaje ── */
.prof-section--mensaje {
  margin-top: 24px;
}

/* ── Política de Privacidad ── */
.prof-privacy {
  margin: 22px 0 24px;
}

.prof-privacy__label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.prof-privacy__label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.prof-privacy__custom-box {
  width: 17px;
  height: 17px;
  min-width: 17px;
  border: 1.5px solid #a4b4aa;
  border-radius: 4px;
  background-color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.prof-privacy__label input[type="checkbox"]:checked~.prof-privacy__custom-box {
  background-color: #1f3427;
  border-color: #1f3427;
}

.prof-privacy__label input[type="checkbox"]:checked~.prof-privacy__custom-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.prof-privacy__label.has-error .prof-privacy__custom-box {
  border-color: #d32f2f;
  background-color: #fffaf9;
}

.prof-privacy__text {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #26362c;
}

.prof-link {
  color: #213627;
  text-decoration: underline;
  font-weight: 500;
}

/* ── Botón Enviar ── */
.prof-submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.prof-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 250px;
  height: 44px;
  background-color: #273e2f;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(39, 62, 47, 0.18);
}

.prof-submit-btn:hover {
  background-color: #1a2c20;
  box-shadow: 0 4px 12px rgba(39, 62, 47, 0.28);
}

.prof-submit-btn:active {
  transform: scale(0.99);
}

.prof-submit-icon {
  width: 16px;
  height: 16px;
}

/* ── Feedback / Respuestas después del Envío ── */
.prof-feedback-area {
  margin-top: 36px;
}

.prof-feedback-divider {
  position: relative;
  text-align: center;
  margin: 28px 0 24px;
}

.prof-feedback-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background-color: #e5dfd7;
  z-index: 1;
}

.prof-feedback-divider span {
  position: relative;
  z-index: 2;
  background-color: #fcfbfa;
  padding: 0 16px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #5d6d63;
  text-transform: uppercase;
}

.prof-alerts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.prof-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  line-height: 1.35;
  box-sizing: border-box;
}

.prof-alert--success {
  background-color: #edf4ee;
  border: 1px solid #cadccb;
  color: #1e4428;
}

.prof-alert--success .prof-alert__icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 1.5px solid #2d6b3c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d6b3c;
}

.prof-alert--success .prof-alert__icon svg {
  width: 14px;
  height: 14px;
}

.prof-alert--error {
  background-color: #fdedeb;
  border: 1px solid #f7d2cf;
  color: #8c261e;
}

.prof-alert--error .prof-alert__icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 1.5px solid #b73227;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b73227;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
}

.prof-alert__text {
  font-weight: 500;
}

/* ── Mensaje de agradecimiento al correo ── */
.prof-email-preview {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-top: 1px solid #e7e2da;
  padding-top: 24px;
}

.prof-email-preview__icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 1.2px solid #5a6d61;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2b4535;
  margin-top: 2px;
}

.prof-email-preview__icon svg {
  width: 20px;
  height: 20px;
}

.prof-email-preview__body {
  font-family: 'Jost', sans-serif;
}

.prof-email-preview__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #172a1e;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.prof-email-preview__greeting {
  font-size: 13.5px;
  color: #1f2d24;
  margin: 0 0 6px;
}

.prof-email-preview__greeting strong {
  color: #172a1e;
}

.prof-email-preview__text {
  font-size: 13px;
  line-height: 1.6;
  color: #45544a;
  margin: 0 0 12px;
}

.prof-email-preview__sign {
  font-size: 13px;
  font-weight: 500;
  color: #1f2d24;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prof-email-preview__sign .heart-icon {
  font-size: 15px;
  color: #1f2d24;
}

/* ── Responsive Mobile ── */
@media (max-width: 768px) {
  .prof-card {
    padding: 30px 20px 36px;
  }

  .prof-header {
    flex-direction: column;
    padding-top: 8px;
  }

  .prof-header__woman {
    position: relative;
    top: 0;
    right: 0;
    width: 170px;
    margin: 12px auto 0;
  }

  .prof-grid--3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .prof-checkbox-grid,
  .prof-checkbox-grid--3 {
    grid-template-columns: 1fr;
  }

  .prof-alerts-grid {
    grid-template-columns: 1fr;
  }

  .prof-accordion__header {
    padding: 12px 14px;
  }

  .prof-accordion__title {
    font-size: 12.5px;
  }

  .prof-accordion__sub {
    font-size: 11px;
  }

  .prof-email-preview {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}