/*
Theme Name: Thema Hijo
Theme URI: https://elquintopartido.com/
Description: Tema hijo de Hello Elementor.
Author: El Quinto Partido
Template: hello-elementor
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: thema-hijo
*/

:root {
  --qp-white: #ffffff;
  --qp-title: #8062de;
  --qp-label: #374151;
  --qp-input-bg: #f9fafb;
  --qp-placeholder: #9ca3af;
  --qp-upload-text: #302d71;
  --qp-button-disabled: #d7f4f6;
  --qp-button-enabled: #43b9cd;
  --qp-error: #dc2626;
  --qp-border-active: #43b9cd;
  --qp-body-purple: #31268f;
}

.qp-page,
.qp-page * {
  box-sizing: border-box;
}

body.home,
body.front-page {
  min-height: 100%;
  margin: 0;
  font-family:
    "Montserrat",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--qp-body-purple);
  color: var(--qp-label);
  overflow-x: hidden;
  overflow-y: auto;
}

.qp-page button,
.qp-page input {
  font-family: inherit;
}

.qp-page {
  width: 100%;
  min-height: 100dvh;
  padding: 32px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.qp-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--qp-white);
  border-radius: 18px;
  padding: 30px 24px;
  box-shadow: 0 10px 30px rgba(20, 20, 70, 0.08);
}

.qp-step {
  display: none;
}

.qp-step-active {
  display: block;
}

.qp-title {
  margin: 0 0 28px;
  color: var(--qp-title);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.qp-step-two-copy {
  margin-bottom: 32px;
}

.qp-step-two-copy h2 {
  margin: 0 0 14px;
  color: var(--qp-label);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

.qp-step-two-copy p {
  margin: 4px 0;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
}

.qp-field {
  margin-bottom: 2px;
}

.qp-field > label {
  display: block;
  margin-bottom: 10px;
  color: var(--qp-label);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.qp-field input[type="text"],
.qp-field input[type="tel"],
.qp-field input[type="email"] {
  width: 100%;
  height: 52px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--qp-input-bg);
  padding: 0 16px;
  color: var(--qp-label);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.qp-field input::placeholder {
  color: var(--qp-placeholder);
  font-weight: 500;
}

.qp-field input:focus {
  border-color: var(--qp-border-active);
  box-shadow: 0 0 0 2px rgba(67, 185, 205, 0.12);
}

.qp-input-icon {
  position: relative;
}

.qp-input-icon img {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  opacity: 0.72;
  pointer-events: none;
}

.qp-input-icon input {
  padding-left: 52px !important;
}

.qp-phone {
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--qp-input-bg);
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.qp-phone:focus-within {
  border-color: var(--qp-border-active);
  box-shadow: 0 0 0 2px rgba(67, 185, 205, 0.12);
}

.qp-phone-prefix {
  width: 94px;
  height: 100%;
  padding-left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.qp-phone-prefix::after {
  content: "+52";
  color: #6b7280;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.qp-mx-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.qp-chevron-small {
  width: 14px;
  height: 14px;
  color: #6b7280;
}

.qp-country-code {
  color: #6b7280;
  font-size: 15px;
  font-weight: 500;
  flex: 0 0 auto;
  margin-right: 8px;
}

.qp-phone input {
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 16px 0 0 !important;
  box-shadow: none !important;
}

.qp-select {
  position: relative;
}

.qp-select-trigger {
  width: 100% !important;
  height: 52px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: var(--qp-input-bg) !important;
  padding: 0 16px !important;
  color: var(--qp-placeholder) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-align: left !important;
  text-transform: none !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  cursor: pointer !important;
  outline: none !important;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.qp-select-trigger:hover,
.qp-select-trigger:focus,
.qp-select-trigger:active {
  background: var(--qp-input-bg) !important;
  border-color: transparent !important;
  color: var(--qp-placeholder) !important;
}

.qp-select-trigger svg {
  width: 20px;
  height: 20px;
  color: #8c949f !important;
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.qp-select.is-open .qp-select-trigger {
  border-color: var(--qp-border-active) !important;
  box-shadow: 0 0 0 2px rgba(67, 185, 205, 0.12);
}

.qp-select.is-open .qp-select-trigger svg {
  transform: rotate(180deg);
}

.qp-select.has-value .qp-select-trigger {
  color: var(--qp-label) !important;
}

.qp-select-menu {
  display: none;
  position: absolute;
  z-index: 10;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.12);
}

.qp-select.is-open .qp-select-menu {
  display: block;
}

.qp-select-menu li {
  padding: 10px 16px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.qp-select-menu li:hover,
.qp-select-menu li.is-selected {
  background: #f3f4f6;
  color: var(--qp-label);
}

.qp-checkbox-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 8px 0 28px;
}

.qp-checkbox-field input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--qp-button-enabled);
  flex: 0 0 auto;
}

.qp-checkbox-field label {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
}

.qp-button {
  width: 100% !important;
  height: 52px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--qp-button-enabled) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  cursor: pointer !important;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease;
}

.qp-button:disabled {
  background: var(--qp-button-disabled) !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
}

.qp-button:focus,
.qp-button:active {
  background: var(--qp-button-enabled) !important;
  color: #ffffff !important;
}

.qp-button:not(:disabled):hover {
  background: var(--qp-button-enabled) !important;
  color: #ffffff !important;
  opacity: 0.92;
}

.qp-button:not(:disabled):active {
  transform: translateY(1px);
}

.qp-upload {
  min-height: 128px;
  border-radius: 8px;
  background: var(--qp-input-bg);
  padding: 24px 16px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
}

.qp-upload input {
  display: none;
}

.qp-upload img {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
}

.qp-upload-main {
  color: var(--qp-upload-text);
  font-size: 15px;
  font-weight: 500;
}

.qp-upload-help {
  margin-top: 8px;
  color: var(--qp-placeholder);
  font-size: 14px;
  font-weight: 500;
}

.qp-upload-file {
  display: none;
  margin-top: 10px;
  color: var(--qp-label);
  font-size: 13px;
  font-weight: 600;
  word-break: break-word;
}

.qp-upload.has-file .qp-upload-file {
  display: block;
}

.qp-error {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--qp-error);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
}

.qp-loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.qp-loading[hidden] {
  display: none;
}

.qp-loading-box {
  text-align: center;
}

.qp-loading-spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  border: 4px solid #d7f4f6;
  border-top-color: var(--qp-button-enabled);
  border-radius: 999px;
  display: block;
  animation: qp-spin 0.85s linear infinite;
}

.qp-loading-box p {
  margin: 0;
  color: var(--qp-upload-text);
  font-size: 15px;
  font-weight: 700;
}

.qp-file-card {
  width: 100%;
  min-height: 78px;
  margin-top: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.qp-file-card[hidden] {
  display: none;
}

.qp-file-icon {
  width: 34px;
  height: 40px;
  flex: 0 0 auto;
}

.qp-file-content {
  width: 100%;
  min-width: 0;
}

.qp-file-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qp-file-name {
  margin: 0;
  color: var(--qp-label);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-file-remove {
  width: 28px !important;
  height: 28px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #6b7280 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  flex: 0 0 auto;
  padding: 0 !important;
}

.qp-file-remove:hover {
  background: #f3f4f6 !important;
  color: #374151 !important;
}

.qp-file-remove svg {
  width: 22px;
  height: 22px;
}

.qp-file-progress-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
}

.qp-file-percent {
  color: #6b7280;
  font-size: 15px;
  font-weight: 500;
}

.qp-file-progress {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.qp-file-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--qp-button-enabled);
  transition: width 0.18s ease;
}

.qp-file-card.is-complete .qp-file-percent {
  color: var(--qp-button-enabled);
  font-weight: 700;
}

.qp-file-card.is-error {
  border-color: #fecaca;
  background: #fffafa;
}

.qp-file-card.is-error .qp-file-progress-bar {
  background: var(--qp-error);
}

@keyframes qp-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .qp-page {
    min-height: 100dvh;
    padding: 14px 10px 24px;
  }

  .qp-card {
    max-width: 100%;
    border-radius: 12px;
    padding: 20px 18px 24px;
  }

  .qp-title {
    margin-bottom: 20px;
    font-size: 17px;
  }

  .qp-field {
    margin-bottom: 0;
  }

  .qp-field > label {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .qp-field input[type="text"],
  .qp-field input[type="tel"],
  .qp-field input[type="email"],
  .qp-phone,
  .qp-select-trigger,
  .qp-button {
    height: 46px;
  }

  .qp-select-trigger {
    padding: 0 14px;
    font-size: 14px;
  }

  .qp-checkbox-field {
    gap: 10px;
    margin: 8px 0 20px;
  }

  .qp-checkbox-field input {
    width: 22px;
    height: 22px;
  }

  .qp-checkbox-field label {
    font-size: 14px;
    line-height: 1.35;
  }

  .qp-error {
    min-height: 14px;
    margin-top: 4px;
  }
}

@media (min-width: 768px) {
  .qp-page {
    min-height: 100dvh;
    padding: 40px 24px;
    align-items: center;
  }

  .qp-card {
    max-width: 460px;
    padding: 30px 30px;
    border-radius: 18px;
  }

  .qp-title {
    font-size: 25px;
  }

  .qp-step-two-copy h2 {
    font-size: 21px;
  }

  .qp-step-two-copy p {
    font-size: 16px;
  }
}
