@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

.expo-form {
  max-width: 860px;
  margin: 40px auto;
  padding: 60px 50px;
  border-radius: 20px;
  color: #fff;
  background-image: linear-gradient(180deg, #290C97B0 0%, #290C97 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  font-family: "Montserrat", system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.expo-form .expo-form-title {
  font-size: 60px;
  font-weight: 800;
  margin: 0 0 10px;
  text-align: center;
  color: #FFF;
}

@media (max-width: 768px) {
  .expo-form .expo-form-title {
    font-size: 30px;
  }
}

.expo-form .expo-form-copy {
  font-size: 17px;
  margin: 0 auto 40px;
  max-width: 640px;
  text-align: center;
  color: #FFF;
}

.expo-form .alert {
  background: #fff;
  border: 1px solid #d7def7;
  border-left: 6px solid #D81F90;
  color: #1a2450;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  line-height: 1.45;
  font-weight: 300;
  box-shadow: 0 10px 24px rgba(17, 25, 70, .20);
}

.expo-form .alert strong {
  color: #101a40;
  font-weight: 600;
}

.expo-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
  font-size: 15px;
}

.expo-form input[type=text],
.expo-form input[type=email],
.expo-form input[type=tel],
.expo-form input[type=number],
.expo-form select {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  color: #193D57;
  background: #fff;
}

.expo-form input:focus,
.expo-form select:focus {
  border-color: #D81F90;
  box-shadow: 0 0 0 3px rgba(216,31,144,.25);
}

.expo-form .expo-btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 8px;
  border: 0;
  background: #D81F90;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: background .25s ease, transform .05s ease;
  margin-top: 10px;
}

.expo-form .expo-btn:hover {
  background: #220D5B;
}

.expo-form .expo-btn:active {
  transform: scale(.98);
}

.expo-form .field {
  margin-bottom: 18px;
}

.expo-form .expo-subasta-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.expo-form .expo-subasta-inline select[name="comprador_subasta"] {
  flex: 1 1 auto;
  min-width: 0;
}

.expo-form .expo-subasta-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.expo-form .expo-subasta-info-btn:hover {
  background: rgba(255,255,255,.2);
}

.expo-form .expo-day-tabs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.expo-form .expo-day-tabs input[type=radio] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.expo-form .expo-day-tab {
  display: block;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  text-align: center;
}

.expo-form .expo-day-tab small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
}

.expo-form .expo-day-tabs input[type=radio]:checked + .expo-day-tab {
  border-color: #fff;
  background: rgba(255,255,255,.26);
  box-shadow: 0 0 0 2px rgba(255,255,255,.2) inset;
}

.expo-form .policy {
  margin: 14px 0 8px;
}

.expo-form .policy label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #fff;
  font-size: 14px;
}

.expo-form .policy input[type=checkbox] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.expo-form .policy span {
  color: #fff;
  font-weight: 600;
}

.expo-form .policy a {
  color: #fff;
  text-decoration: underline;
  font-weight: 800;
}

.expo-form .expo-provider-info {
  margin: 16px 0 10px;
  text-align: center;
}

.expo-form .expo-provider-trigger {
  appearance: none;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.expo-form .expo-provider-trigger:hover {
  background: rgba(255,255,255,.2);
}

.expo-modal[hidden] {
  display: none !important;
}

.expo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.expo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 15, 32, .65);
}

.expo-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 560px);
  margin: 8vh auto 0;
  background: #fff;
  color: #193D57;
  border-radius: 18px;
  padding: 26px 22px 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  font-family: "Montserrat", system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.expo-modal-dialog h4 {
  margin: 0 0 14px;
  font-size: 22px;
  color: #290C97;
}

.expo-modal-dialog p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.7;
}

.expo-modal-dialog a {
  color: #290C97;
  text-decoration: underline;
  font-weight: 700;
}

.expo-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #193D57;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.expo-modal-open {
  overflow: hidden;
}

.expo-form .captcha label {
  color: #fff;
  font-weight: 600;
}

.expo-form .captcha input[type=number] {
  width: 160px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.3);
}

.expo-form .row-flex {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.expo-form .row-flex select[name="telefono_indicativo"] {
  flex: 0 0 110px;
  width: 110px;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expo-form .row-flex input[name="telefono"] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

/* Ajuste de altura de campos en móvil */
@media (max-width: 768px) {
  .expo-form input[type=text],
  .expo-form input[type=email],
  .expo-form input[type=tel],
  .expo-form input[type=number],
  .expo-form select {
    padding-top: 16px;
    padding-bottom: 16px;
    min-height: 48px;
    line-height: 1.2;
  }

  .expo-form .row-flex select[name="telefono_indicativo"] {
    min-height: 48px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (max-width: 600px) {
  .expo-form {
    padding: 30px 22px;
  }

  .expo-form .expo-day-tabs {
    grid-template-columns: 1fr;
  }

  .expo-form .row-flex {
    flex-wrap: wrap;
  }

  .expo-form .row-flex select[name="telefono_indicativo"],
  .expo-form .row-flex input[name="telefono"] {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }
}

/* Fix específico para iOS (Safari / Chrome) en selects */
@supports (-webkit-touch-callout: none) {
  .expo-form select,
  .expo-form .row-flex select[name="telefono_indicativo"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 52px;
    padding-top: 14px;
    padding-bottom: 14px;
    line-height: 1.4;
  }

  .expo-form .row-flex select[name="telefono_indicativo"] {
    font-size: 14px;
    white-space: nowrap;
  }
}

/* Pantalla de éxito */

.expo-success {
  max-width: 760px;
  margin: 40px auto;
  padding: 28px 28px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #fff;
  font-family: "Montserrat", system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #193D57;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.expo-success h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #290C97;
}

.expo-success p {
  margin: 6px 0 10px;
}

.expo-success .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.expo-success a.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.expo-success a.btn-primary {
  background: #DD128F;
  color: #fff;
  border: none;
}

.expo-success a.btn-primary:hover {
  background: #00CCFF;
}

/* Estado de pago (retorno Wompi) */
.expo-success.expo-payment-return p {
  font-size: 14px;
  line-height: 1.6;
}

.expo-success.expo-payment-return .expo-payment-message {
  font-size: 16px;
  font-weight: 600;
}

.expo-success.expo-payment-return .expo-payment-help {
  font-size: 14px;
  font-weight: 500;
}

.expo-success.expo-payment-return .expo-payment-message-ok {
  color: #0b7a35;
}

.expo-success.expo-payment-return .expo-payment-message-warn {
  color: #a64b00;
}

.expo-success button.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.expo-success button.btn-primary {
  background: #DD128F;
  color: #fff;
}

.expo-success button.btn-primary:hover {
  background: #00CCFF;
}

/* Layout retorno Wompi: evita que el footer "suba" cuando hay poco contenido */
.expo-payment-return-shell {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  min-height: calc(100vh - 280px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 12px 24px;
  box-sizing: border-box;
}

.expo-payment-return-shell .expo-success.expo-payment-return {
  width: min(100%, 760px);
  max-width: 760px;
  margin: 20px auto;
  float: none;
}

@media (max-width: 768px) {
  .expo-payment-return-shell {
    min-height: calc(100vh - 220px);
    padding-bottom: 16px;
  }
}

/* Impresión del comprobante en retorno: solo contenido útil, sin navegación/acciones */
@media print {
  #wpadminbar,
  #masthead,
  #site-header,
  .site-header,
  .main-header,
  .elementor-location-header,
  #colophon,
  #site-footer,
  .site-footer,
  .elementor-location-footer {
    display: none !important;
  }

  .expo-payment-return-shell {
    min-height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .expo-payment-return-shell .expo-success.expo-payment-return {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .expo-payment-return-shell .expo-no-print,
  .expo-payment-return-shell .btn,
  .expo-payment-return-shell button {
    display: none !important;
  }

  .expo-payment-return-shell a[href]::after {
    content: "" !important;
  }
}
