/* Total Rent · Mobile UX compacta · 17/09/2026
   - Hero de inicio: "Saber más" para desplegar beneficios solo en móvil.
   - Formularios Total Rent más compactos en móvil.
   - Escritorio y tablet no cambian. */

.tr-mobile-more-toggle { display: none; }
.tr-mobile-more-region { display: contents; }

@media (max-width: 767px) {
  /* HERO: dejamos el titular limpio y ocultamos la información secundaria hasta pulsar Saber más. */
  .totalrent-1316 .totalrent-element.totalrent-element-b793541 {
    gap: 0 !important;
  }

  .tr-mobile-more-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-height: 38px;
    margin: 12px 0 14px;
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-family: "MaisonNeue", Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .tr-mobile-more-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .22s ease;
  }
  .tr-mobile-more-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

  .tr-mobile-more-region {
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: max-height .35s ease, opacity .22s ease, transform .3s ease;
  }
  .tr-mobile-more-region.is-open {
    max-height: 520px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .tr-mobile-more-region .tr-mobile-more-content { width: 100%; }

  .totalrent-1316 .totalrent-element.totalrent-element-9cc2533 > .totalrent-widget-container {
    margin-bottom: 10px !important;
  }
  .totalrent-1316 .totalrent-element.totalrent-element-9cc2533 .totalrent-icon-list-item > .totalrent-icon-list-text,
  .totalrent-1316 .totalrent-element.totalrent-element-9cc2533 .totalrent-icon-list-item > a {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }
  .totalrent-1316 .totalrent-element.totalrent-element-9cc2533 .totalrent-icon-list-items:not(.totalrent-inline-items) .totalrent-icon-list-item:not(:last-child) {
    padding-bottom: 8px !important;
  }
  .totalrent-1316 .totalrent-element.totalrent-element-9cc2533 .totalrent-icon-list-items:not(.totalrent-inline-items) .totalrent-icon-list-item:not(:first-child) {
    margin-top: 0 !important;
  }
  .tr-mobile-more-region .totalrent-element-ada8350 .totalrent-button {
    min-height: 40px !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
  }

  /* FORMULARIOS TOTAL RENT: tarjeta y espaciados más compactos. */
  .totalrent-form:not(.totalrent-property-search) .totalrent-form-fields-wrapper {
    margin-bottom: -10px !important;
  }

  .totalrent-form:not(.totalrent-property-search) .totalrent-field-group {
    margin-bottom: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .totalrent-1316 .totalrent-element.totalrent-global-1281 > .totalrent-widget-container,
  .totalrent-41 .totalrent-element.totalrent-global-1281 > .totalrent-widget-container {
    padding: 14px 14px 16px !important;
    border-radius: 11px !important;
  }

  .totalrent-form:not(.totalrent-property-search) .totalrent-field-textual,
  .totalrent-form:not(.totalrent-property-search) input.totalrent-field,
  .totalrent-form:not(.totalrent-property-search) select.totalrent-field,
  .totalrent-form:not(.totalrent-property-search) textarea.totalrent-field {
    min-height: 40px !important;
    height: 40px !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  .totalrent-form:not(.totalrent-property-search) textarea.totalrent-field {
    height: auto !important;
    min-height: 82px !important;
  }

  .totalrent-form:not(.totalrent-property-search) .totalrent-select-wrapper > svg,
  .totalrent-form:not(.totalrent-property-search) .input-icons {
    width: 13px !important;
    height: 13px !important;
    margin-top: -6.5px !important;
  }

  /* Pregunta "¿Eres propietario?" más recogida. */
  .totalrent-form.tr-owner-gated .totalrent-field-group-perfil {
    margin-bottom: 10px !important;
  }
  .totalrent-form.tr-owner-gated .tr-owner-question__advice {
    margin-bottom: 9px !important;
  }
  .totalrent-form.tr-owner-gated .tr-owner-question__advice-title {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }
  .totalrent-form.tr-owner-gated .tr-owner-question__title {
    margin-bottom: 6px !important;
    font-size: 12.5px !important;
  }
  .totalrent-form.tr-owner-gated .tr-owner-question__buttons {
    gap: 8px !important;
  }
  .totalrent-form.tr-owner-gated .tr-owner-choice {
    min-height: 40px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
  }

  /* Selector de teléfono: misma altura que el resto. */
  .totalrent-form:not(.totalrent-property-search) .tr-phone-picker,
  .totalrent-form:not(.totalrent-property-search) .tr-phone-picker > input[type="tel"],
  .totalrent-form:not(.totalrent-property-search) .tr-phone-country-btn,
  .totalrent-form:not(.totalrent-property-search) .totalrent-field-type-tel.tr-phone-enhanced-host > .tr-phone-picker,
  .totalrent-form:not(.totalrent-property-search) .totalrent-field-type-tel.tr-phone-enhanced-host .tr-phone-picker > input.totalrent-field,
  .totalrent-form:not(.totalrent-property-search) .totalrent-field-type-tel.tr-phone-enhanced-host .tr-phone-picker > input.totalrent-field-textual {
    min-height: 40px !important;
    height: 40px !important;
  }
  .totalrent-form:not(.totalrent-property-search) .tr-phone-country-btn {
    flex-basis: 88px !important;
    width: 88px !important;
    min-width: 88px !important;
    padding: 0 6px !important;
  }
  .totalrent-form:not(.totalrent-property-search) .tr-phone-flag { font-size: 17px !important; }
  .totalrent-form:not(.totalrent-property-search) .tr-phone-dial { font-size: 11.5px !important; }

  /* Privacidad más compacta sin perder área táctil. */
  .totalrent-form:not(.totalrent-property-search) .totalrent-field-type-acceptance .totalrent-field-subgroup,
  .totalrent-form:not(.totalrent-property-search) .totalrent-field-type-acceptance .totalrent-field-option {
    width: 100% !important;
  }
  .totalrent-form:not(.totalrent-property-search) .totalrent-field-type-acceptance label {
    margin-left: 6px !important;
    font-size: 11.5px !important;
    line-height: 1.25 !important;
  }
  .totalrent-form:not(.totalrent-property-search) .totalrent-acceptance-field {
    width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    padding: 0 !important;
  }

  /* Captcha local más bajo. */
  .totalrent-form:not(.totalrent-property-search) .tr-antibot {
    margin: 7px 0 9px !important;
  }
  .totalrent-form:not(.totalrent-property-search) .tr-antibot__box {
    grid-template-columns: 34px minmax(0,1fr) 43px !important;
    gap: 7px !important;
    min-height: 56px !important;
    padding: 7px 8px 7px 9px !important;
    border-radius: 9px !important;
  }
  .totalrent-form:not(.totalrent-property-search) .tr-antibot__control,
  .totalrent-form:not(.totalrent-property-search) .tr-antibot__input {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
  }
  .totalrent-form:not(.totalrent-property-search) .tr-antibot__check {
    width: 25px !important;
    height: 25px !important;
  }
  .totalrent-form:not(.totalrent-property-search) .tr-antibot__title { font-size: 12px !important; }
  .totalrent-form:not(.totalrent-property-search) .tr-antibot__status { display: none !important; }
  .totalrent-form:not(.totalrent-property-search) .tr-antibot__brand { min-width: 40px !important; }
  .totalrent-form:not(.totalrent-property-search) .tr-antibot__brand img {
    width: 31px !important;
    height: 31px !important;
    max-width: 31px !important;
  }
  .totalrent-form:not(.totalrent-property-search) .tr-antibot__brand small { display: none !important; }

  .totalrent-form:not(.totalrent-property-search) .totalrent-field-type-submit {
    margin-top: 0 !important;
  }
  .totalrent-form:not(.totalrent-property-search) .totalrent-button[type="submit"] {
    min-height: 40px !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tr-mobile-more-region,
  .tr-mobile-more-toggle svg { transition: none !important; }
}
