/* Ferreton Cuenta Pro v3.2.1 — interfaz aislada para Mi cuenta de WooCommerce. */
.ferreton-cuenta-pro-active {
  --fcp-primary: #0093e7;
  --fcp-primary-dark: #0075b8;
  --fcp-ink: #13283d;
  --fcp-ink-soft: #314b63;
  --fcp-muted: #6d8092;
  --fcp-line: #dfe7ee;
  --fcp-line-strong: #cdd9e3;
  --fcp-surface: #ffffff;
  --fcp-surface-soft: #f5f8fb;
  --fcp-success: #147a4b;
  --fcp-danger: #b83232;
  --fcp-radius-sm: 10px;
  --fcp-radius: 16px;
  --fcp-radius-lg: 22px;
  --fcp-shadow-sm: 0 8px 24px rgba(15, 39, 62, 0.06);
  --fcp-shadow: 0 18px 50px rgba(15, 39, 62, 0.09);
}

.ferreton-cuenta-pro-active .woocommerce,
.ferreton-cuenta-pro-active .woocommerce-page {
  color: var(--fcp-ink);
  font-family: Rubik, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.ferreton-cuenta-pro-active .woocommerce *,
.ferreton-cuenta-pro-active .woocommerce *::before,
.ferreton-cuenta-pro-active .woocommerce *::after {
  box-sizing: border-box;
}

.ferreton-cuenta-pro-active .woocommerce [hidden] {
  display: none !important;
}

.ferreton-cuenta-pro-active .woocommerce svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ferreton-cuenta-pro-active .woocommerce strong,
.ferreton-cuenta-pro-active .woocommerce b {
  font-weight: 600;
}

.ferreton-cuenta-pro-active .entry-content > .woocommerce,
.ferreton-cuenta-pro-active.fcp-authenticated .woocommerce {
  width: min(100%, 1180px);
  margin-right: auto !important;
  margin-left: auto !important;
}

body.ferreton-cuenta-pro-active .site-content > .rishi-container {
  width: calc(100% - 32px) !important;
  max-width: none !important;
}

body.ferreton-cuenta-pro-active .site-content .main-content-wrapper {
  width: 100% !important;
  max-width: none !important;
  margin-top: 22px !important;
  margin-bottom: 24px !important;
}

body.ferreton-cuenta-pro-active #primary.site-main {
  width: 100% !important;
  max-width: none !important;
  padding-top: 0 !important;
  padding-right: 16px !important;
  padding-bottom: 0 !important;
  padding-left: 16px !important;
}

.ferreton-cuenta-pro-active.fcp-guest .entry-content > .woocommerce {
  display: grid !important;
  grid-template-areas:
    "avisos avisos"
    "presentacion formulario";
  grid-template-columns: minmax(320px, 0.85fr) minmax(500px, 1.15fr);
  align-items: start;
  gap: 18px;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.ferreton-cuenta-pro-active.fcp-guest .woocommerce-notices-wrapper {
  grid-area: avisos;
}

.ferreton-cuenta-pro-active .woocommerce a,
.ferreton-cuenta-pro-active .woocommerce button,
.ferreton-cuenta-pro-active .woocommerce input,
.ferreton-cuenta-pro-active .woocommerce select,
.ferreton-cuenta-pro-active .woocommerce textarea {
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.ferreton-cuenta-pro-active .woocommerce a:focus-visible,
.ferreton-cuenta-pro-active .woocommerce button:focus-visible,
.ferreton-cuenta-pro-active .woocommerce input:focus-visible,
.ferreton-cuenta-pro-active .woocommerce select:focus-visible,
.ferreton-cuenta-pro-active .woocommerce textarea:focus-visible {
  outline: 3px solid rgba(0, 147, 231, 0.22) !important;
  outline-offset: 2px;
}

.fcp-kicker {
  display: inline-block;
  color: var(--fcp-primary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Acceso y registro */
.fcp-auth-hero {
  position: relative;
  display: flex;
  grid-area: presentacion;
  width: 100%;
  height: auto;
  min-height: 320px;
  margin: 0;
  padding: 34px 32px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--fcp-radius-lg);
  background: linear-gradient(135deg, #0d2236 0%, #123a5a 100%);
  color: #fff;
  box-shadow: var(--fcp-shadow-sm);
}

.fcp-auth-hero::after {
  position: absolute;
  top: -90px;
  right: -60px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: rgba(0, 147, 231, 0.2);
  content: "";
  pointer-events: none;
}

.fcp-auth-hero__content {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.fcp-auth-hero__visual {
  display: none;
}

.fcp-auth-hero .fcp-kicker {
  color: #78cffb;
}

.fcp-auth-hero h1 {
  margin: 7px 0 8px !important;
  color: #fff !important;
  font-size: clamp(24px, 3vw, 30px) !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.12 !important;
}

.fcp-auth-hero p {
  max-width: 680px;
  margin: 0 !important;
  color: #bed0df !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
}

.fcp-auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.fcp-auth-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #edf8ff;
  font-size: 10px;
  font-weight: 500;
}

.fcp-auth-benefits svg {
  width: 15px !important;
  height: 15px !important;
  color: #77d0fc;
}

.fcp-auth-hero__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  color: #fff !important;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none !important;
}

.fcp-auth-hero__action:hover {
  color: #8ed8ff !important;
}

.ferreton-cuenta-pro-active #customer_login {
  display: grid !important;
  grid-area: formulario;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  margin: 0 !important;
}

.ferreton-cuenta-pro-active.fcp-login-page #customer_login {
  width: 100%;
}

.ferreton-cuenta-pro-active.fcp-login-page #customer_login > .u-column2,
.ferreton-cuenta-pro-active.fcp-register-page #customer_login > .u-column1,
.ferreton-cuenta-pro-active.fcp-login-page #customer_login .woocommerce-form-register,
.ferreton-cuenta-pro-active.fcp-register-page #customer_login .woocommerce-form-login {
  display: none !important;
}

.ferreton-cuenta-pro-active #customer_login > .u-column1,
.ferreton-cuenta-pro-active #customer_login > .u-column2 {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 24px !important;
  border: 1px solid var(--fcp-line) !important;
  border-radius: var(--fcp-radius) !important;
  background: var(--fcp-surface) !important;
  box-shadow: var(--fcp-shadow-sm) !important;
}

.ferreton-cuenta-pro-active #customer_login h2 {
  margin: 0 0 18px !important;
  color: var(--fcp-ink) !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.2 !important;
}

.ferreton-cuenta-pro-active #customer_login > .u-column1 h2::after,
.ferreton-cuenta-pro-active #customer_login > .u-column2 h2::after {
  display: block;
  margin-top: 5px;
  color: var(--fcp-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.ferreton-cuenta-pro-active #customer_login > .u-column1 h2::after { content: "Accede de forma segura"; }
.ferreton-cuenta-pro-active #customer_login > .u-column2 h2::after { content: "Completa tus datos de cliente"; }

.fcp-auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  clear: both;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--fcp-line);
  color: var(--fcp-muted);
  font-size: 11px;
  font-weight: 400;
}

.fcp-auth-switch a {
  color: var(--fcp-primary) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.fcp-auth-switch a:hover {
  text-decoration: underline !important;
}

/* Formularios WooCommerce */
.ferreton-cuenta-pro-active .woocommerce form .form-row {
  margin: 0 0 13px !important;
  padding: 0 !important;
}

.ferreton-cuenta-pro-active .woocommerce form .form-row label,
.fcp-otp-form label,
.fcp-security-fields label {
  display: block;
  margin: 0 0 6px !important;
  color: #29445c !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.ferreton-cuenta-pro-active .woocommerce form .form-row label .required {
  color: var(--fcp-primary) !important;
}

.ferreton-cuenta-pro-active .woocommerce form .input-text,
.ferreton-cuenta-pro-active .woocommerce form select,
.ferreton-cuenta-pro-active .woocommerce form textarea,
.fcp-otp-form input,
.fcp-security-fields input {
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid var(--fcp-line-strong) !important;
  border-radius: var(--fcp-radius-sm) !important;
  background: #fff !important;
  color: var(--fcp-ink) !important;
  font: 500 13px/1.35 Rubik, system-ui, sans-serif !important;
  box-shadow: 0 1px 2px rgba(17, 39, 60, 0.025) !important;
  outline: 0 !important;
}

.ferreton-cuenta-pro-active .woocommerce form textarea,
.ferreton-cuenta-pro-active .woocommerce form textarea.input-text {
  min-height: 112px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  resize: vertical;
}

.ferreton-cuenta-pro-active .woocommerce form .input-text:focus,
.ferreton-cuenta-pro-active .woocommerce form select:focus,
.ferreton-cuenta-pro-active .woocommerce form textarea:focus,
.fcp-otp-form input:focus,
.fcp-security-fields input:focus {
  border-color: var(--fcp-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 147, 231, 0.12) !important;
}

.ferreton-cuenta-pro-active .woocommerce form .form-row-first {
  float: left !important;
  width: calc(50% - 7px) !important;
}

.ferreton-cuenta-pro-active .woocommerce form .form-row-last {
  float: right !important;
  width: calc(50% - 7px) !important;
}

.ferreton-cuenta-pro-active .woocommerce .button,
.ferreton-cuenta-pro-active .woocommerce button.button,
.ferreton-cuenta-pro-active .woocommerce input.button,
.fcp-button,
.fcp-otp-primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--fcp-primary) !important;
  color: #fff !important;
  font: 600 12px/1 Rubik, system-ui, sans-serif !important;
  line-height: 44px !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(0, 147, 231, 0.18) !important;
  cursor: pointer !important;
}

.ferreton-cuenta-pro-active .woocommerce .button:hover,
.fcp-button:hover,
.fcp-otp-primary:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

.ferreton-cuenta-pro-active .woocommerce button:disabled,
.fcp-otp-primary:disabled {
  opacity: 0.62;
  cursor: wait !important;
  transform: none;
}

.ferreton-cuenta-pro-active .woocommerce-form-login__rememberme {
  display: flex !important;
  align-items: center;
  gap: 7px;
  margin: 7px 0 !important;
}

.ferreton-cuenta-pro-active .woocommerce-form-login__rememberme input {
  width: auto !important;
  min-height: 0 !important;
}

.ferreton-cuenta-pro-active .woocommerce .lost_password {
  margin: 13px 0 0 !important;
}

.ferreton-cuenta-pro-active .woocommerce .lost_password a,
.fcp-text-link,
.fcp-security-recover-link {
  color: var(--fcp-primary) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.ferreton-cuenta-pro-active .woocommerce .lost_password a:hover,
.fcp-text-link:hover,
.fcp-security-recover-link:hover {
  text-decoration: underline !important;
}

.fcp-privacy-note,
.fcp-password-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  clear: both;
  margin: 3px 0 15px;
  padding: 12px 13px;
  border: 1px solid #d9e8f2;
  border-radius: 11px;
  background: #f5fbff;
  color: #60768a;
  font-size: 10px;
  line-height: 1.55;
}

.fcp-privacy-note svg,
.fcp-password-note svg {
  flex: 0 0 auto;
  width: 17px !important;
  height: 17px !important;
  color: var(--fcp-primary);
}

.fcp-privacy-note strong,
.fcp-password-note strong {
  display: block;
  color: #29465f;
  font-size: 11px;
}

.fcp-privacy-note span,
.fcp-password-note span {
  display: block;
  margin-top: 2px;
}

.fcp-password-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.fcp-password-wrap .input-text,
.fcp-password-wrap input {
  padding-right: 48px !important;
}

.fcp-password-wrap .show-password-input,
.fcp-password-wrap + .show-password-input {
  display: none !important;
}

.fcp-password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  width: 37px;
  height: 37px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #73879a;
  box-shadow: none;
  cursor: pointer;
}

.fcp-password-toggle:hover,
.fcp-password-toggle.is-visible {
  background: #edf6fc;
  color: var(--fcp-primary);
}

.fcp-password-toggle svg {
  width: 18px !important;
  height: 18px !important;
}

.ferreton-cuenta-pro-active .woocommerce-password-strength {
  margin-top: 7px;
  border-radius: 8px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

.ferreton-cuenta-pro-active .woocommerce-error,
.ferreton-cuenta-pro-active .woocommerce-info,
.ferreton-cuenta-pro-active .woocommerce-message {
  margin: 0 0 16px !important;
  padding: 13px 15px 13px 44px !important;
  border: 1px solid #d8e6f0 !important;
  border-radius: 12px !important;
  background: #f6fbff !important;
  color: #2b465f !important;
  font-family: inherit !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
  box-shadow: none !important;
}

.ferreton-cuenta-pro-active .woocommerce-error {
  border-color: #f0cccc !important;
  background: #fff7f7 !important;
}

.ferreton-cuenta-pro-active .woocommerce-message {
  border-color: #cfe8d9 !important;
  background: #f5fff8 !important;
}

/* Cabecera y estructura de la cuenta */
.ferreton-cuenta-pro-active.fcp-authenticated .woocommerce {
  margin-top: 20px !important;
  margin-bottom: 42px !important;
  padding: 0 16px !important;
}

.ferreton-cuenta-pro-active.fcp-authenticated .woocommerce::after {
  display: block;
  clear: both;
  content: "";
}

.fcp-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
  padding: 19px 21px;
  border: 1px solid var(--fcp-line);
  border-left: 4px solid var(--fcp-primary);
  border-radius: var(--fcp-radius);
  background: #fff;
  box-shadow: var(--fcp-shadow-sm);
}

.fcp-account-header__identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.fcp-avatar {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--fcp-primary), #48bfff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 9px 22px rgba(0, 147, 231, 0.2);
}

.fcp-account-header h1 {
  margin: 3px 0 2px !important;
  color: var(--fcp-ink) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.18 !important;
}

.fcp-account-header p {
  max-width: 420px;
  margin: 0 !important;
  overflow: hidden;
  color: var(--fcp-muted) !important;
  font-size: 11px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fcp-account-header__meta {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.fcp-account-header__meta > div {
  min-width: 96px;
  padding: 10px 12px;
  border: 1px solid #e5ebf0;
  border-radius: 11px;
  background: #f7f9fb;
}

.fcp-account-header__meta strong,
.fcp-account-header__meta span {
  display: block;
}

.fcp-account-header__meta strong {
  color: var(--fcp-ink);
  font-size: 17px;
  line-height: 1.15;
}

.fcp-account-header__meta span {
  margin-top: 2px;
  color: var(--fcp-muted);
  font-size: 9px;
  font-weight: 600;
}

.ferreton-cuenta-pro-active .woocommerce-MyAccount-navigation {
  position: sticky;
  top: 18px;
  float: left !important;
  width: 226px !important;
  margin: 0 !important;
  padding: 9px !important;
  border: 1px solid var(--fcp-line) !important;
  border-radius: var(--fcp-radius) !important;
  background: #fff !important;
  box-shadow: var(--fcp-shadow-sm) !important;
}

.ferreton-cuenta-pro-active .woocommerce-MyAccount-navigation ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ferreton-cuenta-pro-active .woocommerce-MyAccount-navigation li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.ferreton-cuenta-pro-active .woocommerce-MyAccount-navigation li + li {
  margin-top: 2px !important;
}

.ferreton-cuenta-pro-active .woocommerce-MyAccount-navigation a {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  min-height: 42px;
  padding: 0 11px !important;
  border-radius: 10px;
  color: #536b80 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.fcp-nav-glyph {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: #edf3f7;
  color: #6e8599;
  font-size: 13px;
}

.ferreton-cuenta-pro-active .woocommerce-MyAccount-navigation li.is-active a,
.ferreton-cuenta-pro-active .woocommerce-MyAccount-navigation a:hover {
  background: var(--fcp-primary) !important;
  color: #fff !important;
}

.ferreton-cuenta-pro-active .woocommerce-MyAccount-navigation li.is-active .fcp-nav-glyph,
.ferreton-cuenta-pro-active .woocommerce-MyAccount-navigation a:hover .fcp-nav-glyph {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.ferreton-cuenta-pro-active .woocommerce-MyAccount-content {
  float: right !important;
  width: calc(100% - 244px) !important;
  min-width: 0;
  min-height: 470px;
  margin: 0 !important;
  padding: 22px !important;
  overflow: visible !important;
  border: 1px solid var(--fcp-line) !important;
  border-radius: var(--fcp-radius) !important;
  background: #fff !important;
  box-shadow: var(--fcp-shadow-sm) !important;
}

.fcp-account-shell {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 18px;
  clear: both;
  width: 100%;
}

.fcp-account-shell > .woocommerce-MyAccount-navigation,
.fcp-account-shell > .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
}

.fcp-account-shell > .woocommerce-MyAccount-navigation { grid-column: 1; }
.fcp-account-shell > .woocommerce-MyAccount-content { grid-column: 2; }

.ferreton-cuenta-pro-active .woocommerce-MyAccount-content h2,
.ferreton-cuenta-pro-active .woocommerce-MyAccount-content h3 {
  color: var(--fcp-ink) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
}

.ferreton-cuenta-pro-active .woocommerce-MyAccount-content > p:first-child {
  margin-top: 0 !important;
}

/* Panel */
.fcp-dashboard { margin-top: 18px; }
.fcp-section-block { margin-top: 21px; }

.fcp-card,
.fcp-security-card {
  border: 1px solid var(--fcp-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(15, 39, 62, 0.04);
}

.fcp-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  gap: 13px;
}

.fcp-profile-overview,
.fcp-security-snapshot {
  padding: 18px;
}

.fcp-card-head,
.fcp-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fcp-card-head h2,
.fcp-section-title h2,
.fcp-section-intro h2 {
  margin: 3px 0 0 !important;
  color: var(--fcp-ink) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: -0.018em !important;
  line-height: 1.25 !important;
}

.fcp-section-intro {
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e8edf2;
}

.fcp-section-intro p {
  max-width: 700px;
  margin: 7px 0 0 !important;
  color: var(--fcp-muted) !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
}

.fcp-progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 17px 0;
}

.fcp-progress-row > div { min-width: 72px; }
.fcp-progress-row strong,
.fcp-progress-row span { display: block; }
.fcp-progress-row strong { font-size: 21px; }
.fcp-progress-row span { color: var(--fcp-muted); font-size: 9px; }

.fcp-progress-row progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e8eef3;
}

.fcp-progress-row progress::-webkit-progress-bar { background: #e8eef3; }
.fcp-progress-row progress::-webkit-progress-value { border-radius: 999px; background: var(--fcp-primary); }
.fcp-progress-row progress::-moz-progress-bar { border-radius: 999px; background: var(--fcp-primary); }

.fcp-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fcp-data-item {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #e7edf2;
  border-radius: 11px;
  background: #fbfcfd;
}

.fcp-mini-icon,
.fcp-action-icon,
.fcp-security-card__icon,
.fcp-support-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  background: #edf7fd;
  color: var(--fcp-primary);
}

.fcp-mini-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.fcp-mini-icon svg { width: 16px !important; height: 16px !important; }
.fcp-data-item small,
.fcp-data-item strong { display: block; }
.fcp-data-item small { margin-bottom: 2px; color: #8494a3; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.045em; }
.fcp-data-item strong { overflow: hidden; color: #284159; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.fcp-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eaf7ef;
  color: var(--fcp-success);
  font-size: 9px;
  font-weight: 600;
}

.fcp-security-lines {
  display: grid;
  gap: 9px;
  margin: 16px 0;
}

.fcp-security-lines > div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f4;
}

.fcp-security-lines svg { color: var(--fcp-primary); }
.fcp-security-lines small,
.fcp-security-lines strong { display: block; }
.fcp-security-lines small { color: #8797a5; font-size: 9px; }
.fcp-security-lines strong { max-width: 230px; overflow: hidden; color: #284159; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.fcp-button { width: auto; }
.fcp-button svg { width: 16px !important; height: 16px !important; }
.fcp-button--soft { background: #eaf6fd !important; color: var(--fcp-primary) !important; box-shadow: none !important; }
.fcp-button--light { background: #fff !important; color: #15344e !important; box-shadow: none !important; }
.fcp-button--danger { background: #fff0f0 !important; color: var(--fcp-danger) !important; box-shadow: none !important; }

.fcp-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.fcp-action-card {
  position: relative;
  display: flex;
  min-height: 128px;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--fcp-line);
  border-radius: 13px;
  background: #fff;
  color: inherit !important;
  text-decoration: none !important;
}

.fcp-action-card:hover {
  border-color: #b9d9eb;
  box-shadow: 0 11px 26px rgba(15, 39, 62, 0.07);
  transform: translateY(-2px);
}

.fcp-action-icon {
  width: 35px;
  height: 35px;
  margin-bottom: 12px;
  border-radius: 10px;
}

.fcp-action-icon svg { width: 17px !important; height: 17px !important; }
.fcp-action-card strong { color: var(--fcp-ink); font-size: 12px; }
.fcp-action-card small { margin-top: 4px; color: var(--fcp-muted); font-size: 9.5px; line-height: 1.45; }
.fcp-action-card > b { position: absolute; right: 13px; bottom: 10px; color: #8fa1af; font-size: 15px; }

.fcp-order-list { display: grid; gap: 7px; }
.fcp-order-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(110px, 1fr) minmax(110px, 0.9fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid var(--fcp-line);
  border-radius: 11px;
  background: #fff;
  color: inherit !important;
  font-size: 11px;
  text-decoration: none !important;
}

.fcp-order-row:hover { border-color: #b8d9ec; background: #fbfdff; }
.fcp-order-number { color: var(--fcp-primary); font-weight: 600; }
.fcp-order-status { justify-self: start; padding: 5px 8px; border-radius: 999px; background: #eef5f8; color: #4e687d; font-size: 9px; font-weight: 600; }

.fcp-empty-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px;
  border: 1px dashed #cfdbe4;
  border-radius: 12px;
  background: #fafcfd;
  color: var(--fcp-muted);
}

.fcp-empty-state svg { flex: 0 0 auto; color: var(--fcp-primary); }
.fcp-empty-state strong,
.fcp-empty-state span { display: block; }
.fcp-empty-state strong { color: var(--fcp-ink); font-size: 12px; }
.fcp-empty-state span { margin-top: 2px; font-size: 10px; }

.fcp-support-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 21px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f2a43, #154d72);
  color: #fff;
}

.fcp-support-icon { width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, 0.12); color: #7bd2fc; }
.fcp-support-card h2 { margin: 3px 0 4px !important; color: #fff !important; font-size: 16px !important; }
.fcp-support-card p { margin: 0 !important; color: #b8ccdc !important; font-size: 10px !important; }
.fcp-support-card .fcp-kicker { color: #73cffb; }

/* Perfil, direcciones y tablas */
.fcp-extra-profile {
  margin: 18px 0;
  padding: 17px;
  border: 1px solid var(--fcp-line);
  border-radius: 13px;
  background: #fbfcfd;
}

.fcp-extra-profile legend { padding: 0 7px; color: var(--fcp-ink); font-size: 12px; font-weight: 600; }
.fcp-fields-note { margin: -2px 0 14px !important; color: var(--fcp-muted) !important; font-size: 10px !important; }
.fcp-optional { margin-left: 5px; padding: 2px 6px; border-radius: 999px; background: #edf2f6; color: #718395; font-size: 8px; font-weight: 600; text-transform: uppercase; }

.ferreton-cuenta-pro-active .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ferreton-cuenta-pro-active .woocommerce-Addresses::before,
.ferreton-cuenta-pro-active .woocommerce-Addresses::after { display: none; }
.ferreton-cuenta-pro-active .woocommerce-Address { float: none !important; width: auto !important; padding: 16px !important; border: 1px solid var(--fcp-line); border-radius: 13px; background: #fbfcfd; }

.ferreton-cuenta-pro-active .woocommerce table.shop_table {
  width: 100%;
  margin: 0 0 16px !important;
  overflow: hidden;
  border: 1px solid var(--fcp-line) !important;
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 12px !important;
  background: #fff;
  font-size: 11px;
}

.ferreton-cuenta-pro-active .woocommerce table.shop_table th {
  padding: 11px 12px !important;
  border-color: var(--fcp-line) !important;
  background: #f3f6f8;
  color: #435d73;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ferreton-cuenta-pro-active .woocommerce table.shop_table td {
  padding: 11px 12px !important;
  border-color: #e9eef2 !important;
  color: #314b61;
  vertical-align: middle;
}

/* Seguridad */
.fcp-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.fcp-security-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 16px;
}

.fcp-security-card--featured { grid-column: 1 / -1; }
.fcp-security-card__icon { width: 38px; height: 38px; border-radius: 10px; }
.fcp-security-card__icon svg { width: 18px !important; height: 18px !important; }
.fcp-security-card small { color: #8394a3; font-size: 8px; font-weight: 600; letter-spacing: 0.08em; }
.fcp-security-card h3 { margin: 3px 0 5px !important; font-size: 14px !important; }
.fcp-security-card p { margin: 0 0 4px !important; color: #496277 !important; font-size: 11px !important; line-height: 1.5 !important; }
.fcp-muted { color: var(--fcp-muted); font-size: 9.5px; }

.fcp-password-change-form {
  grid-column: 1 / -1;
  width: 100%;
  margin: 4px 0 0 !important;
  padding: 15px;
  border-top: 1px solid var(--fcp-line);
  border-radius: 11px;
  background: var(--fcp-surface-soft);
}

.fcp-security-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.fcp-security-fields p { margin: 0 !important; }
.fcp-security-form-actions { display: flex; align-items: center; gap: 11px; margin-top: 12px; }
.fcp-security-form-actions > span { color: var(--fcp-muted); font-size: 9px; }
.fcp-security-recover-link { margin-left: auto; }
.fcp-security-form { grid-column: 1 / -1; margin-top: 8px; }

.fcp-recovery-guide {
  margin-top: 14px;
  padding: 17px;
}

.fcp-recovery-guide ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 15px 0; padding: 0; list-style: none; }
.fcp-recovery-guide li { display: flex; align-items: flex-start; gap: 9px; padding: 11px; border: 1px solid #e7edf2; border-radius: 10px; background: #fbfcfd; }
.fcp-recovery-guide li > b { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: var(--fcp-primary); color: #fff; font-size: 9px; }
.fcp-recovery-guide strong,
.fcp-recovery-guide small { display: block; }
.fcp-recovery-guide strong { color: var(--fcp-ink); font-size: 10px; }
.fcp-recovery-guide small { margin-top: 2px; color: var(--fcp-muted); font-size: 9px; }

/* Recuperación OTP */
.ferreton-cuenta-pro-active.fcp-endpoint-lost-password .woocommerce {
  display: block !important;
  width: min(100%, 1100px) !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
}

.ferreton-cuenta-pro-active.fcp-endpoint-lost-password .fcp-auth-hero { display: none !important; }

.fcp-otp-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 24px 0 42px;
}

.fcp-otp-card {
  width: min(100%, 470px);
  margin: 0 auto;
  padding: 23px;
  border: 1px solid var(--fcp-line);
  border-radius: var(--fcp-radius);
  background: #fff;
  color: var(--fcp-ink);
  box-shadow: var(--fcp-shadow);
}

.fcp-otp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e9eef2;
}

.fcp-otp-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--fcp-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.fcp-otp-brand strong,
.fcp-otp-brand small { display: block; }
.fcp-otp-brand strong { font-size: 12px; }
.fcp-otp-brand small { margin-top: 2px; color: var(--fcp-muted); font-size: 9px; }

.fcp-otp-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 7px;
  margin: 17px 0 21px;
}

.fcp-otp-progress > span { display: flex; align-items: center; gap: 5px; color: #8d9baa; font-size: 9px; font-weight: 600; }
.fcp-otp-progress b { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid #d8e1e8; border-radius: 50%; background: #fff; color: #75899b; font-size: 9px; }
.fcp-otp-progress em { font-style: normal; }
.fcp-otp-progress i { height: 1px; background: #dfe7ed; }
.fcp-otp-progress > span.is-active { color: #29465f; }
.fcp-otp-progress > span.is-active b { border-color: var(--fcp-primary); background: var(--fcp-primary); color: #fff; }

.fcp-otp-icon,
.fcp-recovery-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 11px;
  background: #edf7fd;
  color: var(--fcp-primary);
}

.fcp-otp-icon svg,
.fcp-recovery-icon svg { width: 20px !important; height: 20px !important; }
.fcp-otp-head h1 { margin: 0 0 6px !important; color: var(--fcp-ink) !important; font-size: 22px !important; font-weight: 600 !important; letter-spacing: -0.025em !important; line-height: 1.2 !important; }
.fcp-otp-head p { margin: 0 !important; color: var(--fcp-muted) !important; font-size: 11px !important; line-height: 1.6 !important; }
.fcp-otp-form { margin-top: 18px; }
.fcp-otp-form p { margin: 0 0 12px !important; }
.fcp-otp-primary { width: 100% !important; margin-top: 3px; }

.fcp-otp-form .fcp-code-input {
  padding-left: calc(13px + 0.32em) !important;
  text-align: center !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.32em !important;
}

.fcp-otp-resend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid #e9eef2;
}

.fcp-otp-resend button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fcp-primary);
  font: 600 10px/1.3 Rubik, system-ui, sans-serif;
  cursor: pointer;
}

.fcp-otp-resend span,
.fcp-otp-footnote,
.fcp-password-rules { color: #8494a3; font-size: 9px; line-height: 1.5; }
.fcp-otp-footnote { margin: 12px 0 0 !important; }
.fcp-password-rules { display: flex; justify-content: space-between; gap: 10px; margin: -2px 0 12px; }
.fcp-otp-back { display: block; margin-top: 17px; padding-top: 13px; border-top: 1px solid #e9eef2; color: #60778a !important; text-align: center; text-decoration: none !important; font-size: 10px !important; font-weight: 600 !important; }
.fcp-otp-back:hover { color: var(--fcp-primary) !important; }

.fcp-otp-card .woocommerce-error,
.fcp-otp-card .woocommerce-message,
.fcp-otp-card .woocommerce-info { margin-bottom: 13px !important; padding: 10px 11px !important; font-size: 10px !important; }
.fcp-otp-card .woocommerce-error::before,
.fcp-otp-card .woocommerce-message::before,
.fcp-otp-card .woocommerce-info::before { display: none !important; }

.ferreton-cuenta-pro-active .woocommerce-ResetPassword,
.ferreton-cuenta-pro-active .lost_reset_password {
  display: block !important;
  width: min(100%, 650px) !important;
  margin: 22px auto !important;
  padding: 24px !important;
  border: 1px solid var(--fcp-line) !important;
  border-radius: var(--fcp-radius) !important;
  background: #fff !important;
  box-shadow: var(--fcp-shadow-sm) !important;
}

.fcp-recovery-hero,
.fcp-recovery-confirm,
.fcp-recovery-confirmation-box,
.fcp-recovery-help,
.fcp-reset-foot { width: min(100%, 680px); margin-right: auto; margin-left: auto; }
.fcp-recovery-hero { padding: 25px; text-align: center; border: 1px solid var(--fcp-line); border-radius: var(--fcp-radius); background: #fff; }
.fcp-recovery-icon { margin-right: auto; margin-left: auto; }
.fcp-recovery-hero h1 { margin: 6px 0 8px !important; font-size: 27px !important; }
.fcp-recovery-hero p { margin: 0 !important; color: var(--fcp-muted) !important; font-size: 11px !important; }
.fcp-recovery-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 17px; }
.fcp-recovery-steps span { display: flex; align-items: center; gap: 7px; padding: 8px; border: 1px solid var(--fcp-line); border-radius: 9px; color: #506a80; font-size: 9px; text-align: left; }
.fcp-recovery-steps b { display: grid; flex: 0 0 23px; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: var(--fcp-primary); color: #fff; }

/* Adaptación */
@media (max-width: 1100px) {
  .ferreton-cuenta-pro-active.fcp-guest .entry-content > .woocommerce {
    grid-template-areas:
      "avisos"
      "presentacion"
      "formulario";
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .fcp-auth-hero {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 1000px) {
  .fcp-account-shell { grid-template-columns: 1fr; gap: 12px; }
  .fcp-account-shell > .woocommerce-MyAccount-navigation,
  .fcp-account-shell > .woocommerce-MyAccount-content { grid-column: 1; }

  .ferreton-cuenta-pro-active .woocommerce-MyAccount-navigation,
  .ferreton-cuenta-pro-active .woocommerce-MyAccount-content {
    position: static;
    float: none !important;
    width: 100% !important;
  }

  .ferreton-cuenta-pro-active .woocommerce-MyAccount-navigation { overflow-x: auto; }
  .ferreton-cuenta-pro-active .woocommerce-MyAccount-navigation ul { display: flex; min-width: max-content; gap: 3px; }
  .ferreton-cuenta-pro-active .woocommerce-MyAccount-navigation li + li { margin-top: 0 !important; }
  .ferreton-cuenta-pro-active .woocommerce-MyAccount-navigation a { padding-right: 13px !important; }
  .fcp-overview-grid { grid-template-columns: 1fr; }
  .fcp-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body.ferreton-cuenta-pro-active .site-content > .rishi-container {
    width: calc(100% - 16px) !important;
  }

  body.ferreton-cuenta-pro-active .site-content .main-content-wrapper {
    margin-top: 12px !important;
    margin-bottom: 16px !important;
  }

  body.ferreton-cuenta-pro-active #primary.site-main {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  .ferreton-cuenta-pro-active .entry-content > .woocommerce,
  .ferreton-cuenta-pro-active.fcp-authenticated .woocommerce { padding-right: 4px !important; padding-left: 4px !important; }
  .fcp-auth-hero { margin: 0; padding: 21px 18px; border-radius: 15px; }
  .fcp-auth-hero h1 { font-size: 22px !important; }
  .fcp-auth-benefits { display: none; }
  .ferreton-cuenta-pro-active #customer_login { grid-template-columns: 1fr; }
  .ferreton-cuenta-pro-active #customer_login > .u-column1,
  .ferreton-cuenta-pro-active #customer_login > .u-column2 { padding: 19px 16px !important; }
  .ferreton-cuenta-pro-active #customer_login h2 { font-size: 19px !important; }
  .ferreton-cuenta-pro-active .woocommerce form .form-row-first,
  .ferreton-cuenta-pro-active .woocommerce form .form-row-last { float: none !important; width: 100% !important; }
  .fcp-account-header { align-items: flex-start; flex-direction: column; padding: 16px; }
  .fcp-account-header__identity { width: 100%; }
  .fcp-account-header__meta { width: 100%; }
  .fcp-account-header__meta > div { flex: 1; min-width: 0; }
  .ferreton-cuenta-pro-active .woocommerce-MyAccount-content { min-height: 0; padding: 16px !important; }
  .fcp-data-grid,
  .fcp-action-grid,
  .fcp-security-grid,
  .fcp-recovery-guide ol,
  .ferreton-cuenta-pro-active .woocommerce-Addresses { grid-template-columns: 1fr; }
  .fcp-security-card--featured { grid-column: auto; }
  .fcp-security-fields { grid-template-columns: 1fr; }
  .fcp-security-form-actions { align-items: stretch; flex-direction: column; }
  .fcp-security-form-actions .fcp-button { width: 100%; }
  .fcp-security-recover-link { margin-left: 0; text-align: center; }
  .fcp-support-card { grid-template-columns: auto minmax(0, 1fr); }
  .fcp-support-card .fcp-button { grid-column: 1 / -1; width: 100%; }
  .fcp-order-row { grid-template-columns: 1fr auto; }
  .fcp-order-row > *:nth-child(2),
  .fcp-order-row > *:nth-child(3) { grid-column: 1; }
  .fcp-otp-wrap { padding: 14px 0 30px; }
  .fcp-otp-card { padding: 19px 16px; border-radius: 14px; }
  .fcp-otp-progress em { display: none; }
  .fcp-otp-head h1 { font-size: 20px !important; }
  .fcp-password-rules { flex-direction: column; gap: 2px; }
  .fcp-recovery-steps { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .fcp-avatar { flex-basis: 44px; width: 44px; height: 44px; }
  .fcp-account-header h1 { font-size: 19px !important; }
  .fcp-account-header p { max-width: 230px; }
  .fcp-otp-progress { gap: 5px; }
  .fcp-otp-card { padding-right: 14px; padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ferreton-cuenta-pro-active .woocommerce *,
  .ferreton-cuenta-pro-active .woocommerce *::before,
  .ferreton-cuenta-pro-active .woocommerce *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
