/*
Theme Name: FONOMAX Crédito
Theme URI: https://distribuidorafonomax.com/
Author: FONOMAX
Description: Landing de solicitudes de crédito con envío a WhatsApp y panel de gestión de clientes.
Version: 1.36.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: fonomax-credito
*/

:root {
  --fx-ink: #111111;
  --fx-yellow: #ffd400;
  --fx-paper: #ffffff;
  --fx-muted: #6d6d6d;
  --fx-line: #dedede;
}

* { box-sizing: border-box; }
html { background: #f4f4f1; }
body {
  margin: 0;
  color: var(--fx-ink);
  background: #f4f4f1;
  font-family: Arial, Helvetica, sans-serif;
}
button, input, select { font: inherit; }

.fx-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 42px 20px;
  background:
    radial-gradient(circle at 12% 14%, rgb(255 212 0 / 18%), transparent 25%),
    radial-gradient(circle at 90% 87%, rgb(255 212 0 / 15%), transparent 28%),
    linear-gradient(135deg, #fafafa 0%, #efefec 100%);
}
.fx-page::before {
  position: absolute; inset: 0; pointer-events: none; content: ""; opacity: .45;
  background-image: radial-gradient(#151515 .6px, transparent .6px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 35%, transparent 65%, black);
}
.fx-accent { position: absolute; width: 220px; height: 34px; background: var(--fx-yellow); transform: rotate(-42deg); }
.fx-accent-one { top: 72px; left: -72px; }
.fx-accent-two { right: -70px; bottom: 68px; }
.fx-card {
  position: relative; z-index: 1; width: min(100%, 760px); overflow: hidden;
  border: 1px solid rgb(17 17 17 / 10%); border-radius: 28px;
  background: var(--fx-paper); box-shadow: 0 28px 80px rgb(0 0 0 / 14%);
}
.fx-card::before { position: absolute; top: 0; left: 0; width: 100%; height: 7px; content: ""; background: var(--fx-yellow); }
.fx-hero {
  padding: 38px 50px 32px; text-align: center;
  background: linear-gradient(115deg, transparent 0 68%, rgb(255 212 0 / 9%) 68% 100%), #fff;
}
.fx-logo img { display: block; width: auto; max-width: min(290px, 80%); max-height: 92px; margin: 0 auto; object-fit: contain; }
.fx-wordmark {
  display: inline-block; color: var(--fx-ink); font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 1000; letter-spacing: -.09em; line-height: 1; transform: skew(-8deg);
}
.fx-wordmark span { position: relative; z-index: 0; }
.fx-wordmark span::before {
  position: absolute; z-index: -1; right: -5px; bottom: 0; left: -5px;
  height: 44%; content: ""; background: var(--fx-yellow); transform: skew(8deg);
}
.fx-eyebrow { display: flex; align-items: center; justify-content: center; gap: 11px; margin: 22px 0 10px; font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.fx-eyebrow i { width: 28px; height: 2px; background: var(--fx-yellow); }
.fx-hero h1 { max-width: 620px; margin: 0 auto; font-size: clamp(2rem, 5.8vw, 3.55rem); font-weight: 900; letter-spacing: -.06em; line-height: .98; text-wrap: balance; }
.fx-hero h1 em { position: relative; display: inline-block; font-style: normal; white-space: nowrap; }
.fx-hero h1 em::after { position: absolute; z-index: -1; right: -4px; bottom: 2px; left: -4px; height: 13px; content: ""; background: var(--fx-yellow); }
.fx-hero p { margin: 16px 0 0; color: #5c5c5c; font-size: 1rem; font-weight: 500; }
.fx-hero .fx-ecuador-only { display: inline-block; margin-top: 12px; padding: 7px 13px; border-radius: 999px; color: #111; background: #fff4b5; font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.fx-form { padding: 34px 50px 38px; border-top: 1px solid #ededed; background: #fbfbfa; }
.fx-form-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.fx-step { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--fx-yellow); font-size: .82rem; font-weight: 900; }
.fx-form-heading h2 { margin: 0; font-size: 1.15rem; font-weight: 850; letter-spacing: -.02em; }
.fx-form-heading p { margin: 3px 0 0; color: var(--fx-muted); font-size: .78rem; }
.fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fx-field { display: block; margin-bottom: 20px; }
.fx-field > span, .fx-products legend { display: block; margin-bottom: 8px; font-size: .79rem; font-weight: 800; }
.fx-form .fx-input {
  position: relative;
  display: flex !important;
  align-items: center !important;
  width: 100%;
  height: 54px !important;
  min-height: 54px !important;
  overflow: hidden;
  border: 1.5px solid var(--fx-line);
  border-radius: 13px;
  background: #fff;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.fx-input:focus-within { border-color: var(--fx-ink); box-shadow: 0 0 0 4px rgb(255 212 0 / 34%); transform: translateY(-1px); }
.fx-form .fx-input .dashicons {
  position: absolute !important;
  z-index: 2;
  top: 50% !important;
  left: 16px;
  width: 21px;
  height: 21px;
  margin: 0 !important;
  color: #737373;
  font-size: 21px;
  line-height: 21px;
  pointer-events: none;
  transform: translateY(-50%) !important;
}
.fx-form .fx-input input,
.fx-form .fx-input select {
  display: block !important;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100% !important;
  min-width: 0;
  height: 52px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 46px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  box-shadow: none !important;
  color: var(--fx-ink);
  background-color: transparent;
  font-size: .88rem;
  line-height: 52px !important;
  vertical-align: middle !important;
}
.fx-form .fx-input select {
  padding-right: 50px !important;
  line-height: normal !important;
}
.fx-form .fx-input textarea {
  width: 100% !important;
  min-height: 88px;
  margin: 0 !important;
  padding: 15px 16px 15px 46px !important;
  resize: vertical;
  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
  background: transparent;
  line-height: 1.45;
}
.fx-field:has(textarea) .fx-input { height: auto !important; min-height: 90px !important; align-items: flex-start !important; }
.fx-field:has(textarea) .fx-input .dashicons { top: 24px !important; transform: none !important; }
.fx-input input::placeholder { color: #a0a0a0; }
.fx-field small { display: block; min-height: 15px; margin: 6px 2px 0; color: #888; font-size: .67rem; }
.fx-field .fx-error-text { color: #b42318; font-weight: 700; }
.fx-field .fx-error-text[hidden] { display: none !important; }
.fx-form .fx-input.fx-input-error { border-color: #b42318; box-shadow: 0 0 0 4px rgb(180 35 24 / 13%); }
.fx-products { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.fx-product-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fx-product { cursor: pointer; }
.fx-product > input { position: absolute; opacity: 0; pointer-events: none; }
.fx-product-box { position: relative; display: flex; align-items: center; min-height: 74px; gap: 11px; padding: 12px; border: 1.5px solid var(--fx-line); border-radius: 14px; background: #fff; transition: .16s; }
.fx-product:hover .fx-product-box { transform: translateY(-2px); border-color: #aaa; }
.fx-product input:checked + .fx-product-box { border-color: var(--fx-ink); background: #fffbea; box-shadow: inset 0 0 0 1px var(--fx-ink); }
.fx-product input:focus-visible + .fx-product-box { outline: 4px solid rgb(255 212 0 / 45%); outline-offset: 2px; }
.fx-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #f2f2ef; }
.fx-product input:checked + .fx-product-box .fx-icon { background: var(--fx-yellow); }
.fx-product-box strong { font-size: .82rem; }
.fx-radio { display: grid; width: 18px; height: 18px; margin-left: auto; place-items: center; border: 1.5px solid #bbb; border-radius: 5px; color: var(--fx-ink); font-size: 12px; font-weight: 900; }
.fx-product input:checked + .fx-product-box .fx-radio { border: 2px solid var(--fx-ink); background: var(--fx-yellow); }
.fx-product input:checked + .fx-product-box .fx-radio::after { content: "✓"; }
.fx-select { position: relative; }
.fx-select select { cursor: pointer; appearance: none; padding-right: 42px; }
.fx-select::after { position: absolute; z-index: 3; top: 50%; right: 19px; width: 8px; height: 8px; border-right: 2px solid var(--fx-ink); border-bottom: 2px solid var(--fx-ink); content: ""; pointer-events: none; transform: translateY(-65%) rotate(45deg); }
.fx-submit { display: flex; width: 100%; height: 58px; align-items: center; justify-content: center; gap: 12px; cursor: pointer; border: 2px solid var(--fx-ink); border-radius: 14px; color: var(--fx-ink); background: var(--fx-yellow); box-shadow: 6px 6px 0 var(--fx-ink); font-size: .95rem; font-weight: 900; transition: .15s; }
.fx-submit:hover { background: #ffe03b; box-shadow: 3px 3px 0 var(--fx-ink); transform: translate(3px, 3px); }
.fx-submit:focus-visible { outline: 4px solid rgb(255 212 0 / 52%); outline-offset: 3px; }
.fx-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 0; color: #777; font-size: .68rem; text-align: center; }
.fx-alert { margin: 0 0 20px; padding: 12px 14px; border-left: 4px solid #b42318; border-radius: 7px; color: #8f1b13; background: #fff1f0; font-size: .82rem; }
.fx-success-overlay { position: fixed; z-index: 99999; inset: 0; display: grid; padding: 22px; place-items: center; background: rgb(17 17 17 / 72%); backdrop-filter: blur(5px); }
.fx-success-box { width: min(440px, 100%); padding: 34px 28px 30px; border: 3px solid var(--fx-ink); border-radius: 22px; background: #fff; box-shadow: 10px 10px 0 var(--fx-yellow); text-align: center; }
.fx-success-icon { display: grid; width: 62px; height: 62px; margin: 0 auto 16px; place-items: center; border: 2px solid var(--fx-ink); border-radius: 50%; color: var(--fx-ink); background: var(--fx-yellow); font-size: 38px; line-height: 1; }
.fx-success-box h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 6vw, 2.25rem); font-weight: 950; }
.fx-success-box p { margin: 0 0 22px; color: #555; font-size: 1rem; line-height: 1.5; }
.fx-success-button { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; cursor: pointer; border: 2px solid var(--fx-ink); border-radius: 12px; color: var(--fx-ink); background: var(--fx-yellow); box-shadow: 4px 4px 0 var(--fx-ink); font: inherit; font-weight: 900; text-decoration: none; }
.fx-success-button:hover { background: #ffe03b; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--fx-ink); }
.fx-success-whatsapp { margin-top: 14px; background: #fff; }
.fx-success-box small { display: block; margin-top: 14px; color: #777; }

@media (max-width: 640px) {
  .fx-page { display: block; padding: 0; background: #fff; }
  .fx-accent { display: none; }
  .fx-card { min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; }
  .fx-hero { padding: 34px 22px 27px; }
  .fx-hero h1 { max-width: 420px; line-height: 1.02; }
  .fx-hero p { max-width: 320px; margin-right: auto; margin-left: auto; font-size: .91rem; line-height: 1.45; }
  .fx-form { padding: 27px 20px 32px; }
  .fx-grid { display: block; }
  .fx-product-options { grid-template-columns: 1fr; gap: 9px; }
  .fx-product-box { min-height: 60px; }
}
