.profile-photo,
.profile-image-slice,
.profile-return-photo,
.other-profile-photo {
  background-image: url("assets/perfiles-mikredit-v2.png");
  background-repeat: no-repeat;
  background-size: 400% auto;
  background-position-y: 8%;
}

.profile-pensionado { background-position-x: 0%; }
.profile-docente { background-position-x: 33.333%; }
.profile-empleado-publico { background-position-x: 66.667%; }
.profile-fuerzas-militares { background-position-x: 100%; }

.standalone-profiles .profile-card {
  min-height: 390px;
  padding: 0 26px 32px;
  overflow: hidden;
}

.standalone-profiles .profile-photo {
  display: block;
  width: calc(100% + 52px);
  height: 230px;
  margin: 0 -26px 22px;
  background-color: #e6efeb;
  transition: transform .35s ease;
}

.standalone-profiles .profile-card:hover .profile-photo {
  transform: scale(1.035);
}

.standalone-profiles .profile-card strong {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.standalone-profiles .profile-number {
  z-index: 2;
  top: 16px;
  right: 16px;
  min-width: 34px;
  padding: 7px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  color: #4f8f72;
  text-align: center;
  box-shadow: 0 5px 16px rgba(51,11,67,.12);
}

.profile-visual .visual-icon.profile-image-slice {
  width: 210px;
  height: 210px;
  border: 5px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background-color: #e6efeb;
  box-shadow: 0 22px 42px rgba(0,0,0,.22);
  transform: none;
}

.form-profile-badge > span.profile-image-slice {
  width: 46px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: #e6efeb;
  box-shadow: 0 4px 10px rgba(51,11,67,.13);
}

/* Mantiene visible la fotografía incluso si otros temas redefinen el fondo. */
.form-profile-badge > #form-profile-icon.profile-image-slice {
  display: block;
  background-image: url("assets/perfiles-mikredit-v2.png") !important;
  background-repeat: no-repeat !important;
  background-size: 400% 100% !important;
  background-position-y: center !important;
}

.form-profile-badge > #form-profile-icon.profile-pensionado {
  background-position-x: 0% !important;
}

.form-profile-badge > #form-profile-icon.profile-docente {
  background-position-x: 33.333% !important;
}

.form-profile-badge > #form-profile-icon.profile-empleado-publico {
  background-position-x: 66.667% !important;
}

.form-profile-badge > #form-profile-icon.profile-fuerzas-militares {
  background-position-x: 100% !important;
}

.back-link {
  min-height: 62px;
  padding: 17px 25px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.back-link:hover {
  border-color: #78bd7d;
  background: rgba(255,255,255,.15);
}

.profile-return-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 75;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 285px;
  padding: 14px 22px 14px 14px;
  border: 1px solid #d7e2de;
  border-radius: 14px;
  background: #fff;
  color: #4f8f72;
  box-shadow: 0 16px 42px rgba(51,11,67,.22);
  transition: transform .2s, box-shadow .2s;
}

.profile-return-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(51,11,67,.28);
}

.profile-return-photo {
  flex: 0 0 58px;
  height: 58px;
  border-radius: 10px;
}

.profile-return-fab > span:last-child {
  display: flex;
  flex-direction: column;
}

.profile-return-fab small {
  margin-bottom: 2px;
  color: #6f7d88;
  font-size: 10px;
}

.profile-return-fab strong {
  font: 800 14px Manrope, sans-serif;
}

.profile-simulator {
  position: relative;
  overflow: hidden;
  padding: 95px 0;
  background: #4f8f72;
  color: #fff;
}

.profile-simulator::after {
  content: "";
  position: absolute;
  width: 410px;
  height: 410px;
  right: -190px;
  top: -210px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 75px rgba(255,255,255,.02);
}

.profile-simulator-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .8fr 1fr;
  align-items: center;
  gap: 90px;
}

.profile-simulator-copy > span {
  color: #78bd7d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.profile-simulator-copy h2 {
  margin: 12px 0 18px;
  font: 800 clamp(36px,4vw,50px)/1.12 Manrope, sans-serif;
  letter-spacing: -.04em;
}

.profile-simulator-copy p {
  max-width: 530px;
  color: #ccdad0;
  line-height: 1.75;
}

.profile-simulator-card {
  padding: 34px;
  border-radius: 20px;
  background: #fff;
  color: #233342;
  box-shadow: 0 28px 65px rgba(0,0,0,.24);
}

.simulator-field { margin-bottom: 27px; }
.simulator-field > div { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.simulator-field label { color: #667480; font-size: 11px; font-weight: 700; }
.simulator-field output { color: #4f8f72; font: 800 19px Manrope, sans-serif; }
.simulator-field input { width: 100%; accent-color: #4f8f72; cursor: pointer; }
.simulator-limits { display: flex; justify-content: space-between; margin-top: 7px; color: #82909a; font-size: 9px; }

.simulator-result {
  padding: 20px;
  border-radius: 14px;
  background: #edf5f0;
  text-align: center;
}

.simulator-result small { color: #667480; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.simulator-result strong { display: block; margin: 5px 0; color: #4f8f72; font: 800 31px Manrope, sans-serif; }
.simulator-result p { margin: 0; color: #6f7d88; font-size: 9px; }
.simulator-disclaimer { margin: 14px 0 18px; color: #6f7d88; font-size: 9px; line-height: 1.55; }
.profile-simulator-card .product-btn { width: 100%; justify-content: center; background: #4f8f72; color: #fff; }

.uses-section {
  position: relative;
  overflow: hidden;
}

.uses-section::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  left: -210px;
  bottom: -230px;
  border: 1px solid rgba(51,11,67,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(51,11,67,.018);
}

.uses-copy { position: relative; z-index: 1; }
.uses-copy > p { max-width: 500px; }
.uses-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 15px;
  padding: 0 20px;
  border: 1px solid #4f8f72;
  border-radius: 10px;
  color: #4f8f72;
  font: 700 11px Manrope, sans-serif;
  transition: background .2s, color .2s, transform .2s;
}

.uses-cta:hover { background: #4f8f72; color: #fff; transform: translateY(-2px); }

.uses-grid .use-card {
  position: relative;
  min-height: 205px;
  padding: 27px;
  overflow: hidden;
  justify-content: flex-start;
  gap: 25px;
  border-color: rgba(51,11,67,.1);
  box-shadow: 0 10px 28px rgba(51,11,67,.055);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.uses-grid .use-card::after {
  content: "";
  position: absolute;
  width: 105px;
  height: 105px;
  right: -48px;
  bottom: -55px;
  border-radius: 50%;
  background: currentColor;
  opacity: .045;
}

.uses-grid .use-card:hover {
  transform: translateY(-6px);
  border-color: rgba(51,11,67,.25);
  box-shadow: 0 20px 42px rgba(51,11,67,.12);
}

.uses-grid .use-card i {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 16px;
  color: #4f8f72;
}

.uses-grid .use-card:nth-child(1) i { background: #e8f3ed; color: #246c49; }
.uses-grid .use-card:nth-child(2) i { background: #dcefdc; color: #3f755f; }
.uses-grid .use-card:nth-child(3) i { background: #e2f1e6; color: #35536f; }
.uses-grid .use-card:nth-child(4) i { background: #e6edf6; color: #294f7a; }
.uses-grid .use-card svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.uses-grid .use-card div { position: relative; z-index: 1; }
.uses-grid .use-card strong { display: block; margin-bottom: 8px; font-size: 15px; }
.uses-grid .use-card p { margin: 0; color: #6f7d88; font-size: 11px; line-height: 1.6; }
.use-number { position: absolute; right: 19px; top: 18px; color: #a9b7bf; font: 700 9px Manrope, sans-serif; letter-spacing: .08em; }

.request-layout {
  grid-template-columns: .68fr 1.32fr;
  gap: 75px;
}

.profile-form {
  padding: 48px 50px;
  border-radius: 24px;
  box-shadow: 0 30px 75px rgba(51,11,67,.16);
}

.form-profile-badge {
  gap: 18px;
  margin-bottom: 30px;
  padding: 18px 20px;
  border-radius: 14px;
}

.form-profile-badge > span.profile-image-slice {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-width: 3px;
}

.form-profile-badge small { font-size: 11px; }
.form-profile-badge strong { margin-top: 3px; font-size: 17px; }
.profile-form > label,
.form-row label { margin-bottom: 24px; font-size: 12px; }
.profile-form input { height: 54px; padding: 10px 4px; font-size: 14px; }
.form-row { gap: 28px; }
.money-field span { top: 16px; font-size: 15px; }
.money-field input { padding-left: 21px; }
.profile-form .privacy { margin: 5px 0 25px; font-size: 12px; }
.privacy input { width: 20px; height: 20px; flex: 0 0 20px; }
.profile-form button { height: 64px; border-radius: 12px; font-size: 16px; }

.profile-policy-note {
  margin: 22px 0 8px;
  padding: 16px 17px;
  border: 1px solid rgba(254,214,91,.3);
  border-radius: 12px;
  background: rgba(254,214,91,.09);
}

.profile-policy-note strong {
  color: #78bd7d;
  font: 700 11px Manrope, sans-serif;
}

.profile-policy-note p {
  margin: 6px 0 0;
  color: #d5e0d8;
  font-size: 10px;
  line-height: 1.65;
}

.other-profiles {
  padding: 88px 0;
  background: #f2f6f4;
}

.other-profiles > .product-container {
  display: block;
}

.other-profiles > .product-container > div:first-child {
  margin-bottom: 34px;
}

.other-profiles h2 {
  margin-top: 10px;
  font-size: clamp(32px,3.2vw,42px);
}

.other-profiles-copy {
  max-width: 620px;
  margin: 11px 0 0;
  color: #667480;
  font-size: 14px;
  line-height: 1.65;
}

.other-profiles > .product-container > div:last-child {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.other-profile-link {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(51,11,67,.13);
  border-radius: 17px;
  background: #fff;
  color: #4f8f72;
  box-shadow: 0 10px 28px rgba(51,11,67,.065);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}

.other-profile-link:hover {
  transform: translateY(-5px);
  border-color: #6f927f;
  background: #fff;
  box-shadow: 0 18px 38px rgba(51,11,67,.13);
}

.other-profile-photo {
  flex: 0 0 88px;
  height: 82px;
  border-radius: 13px;
  background-color: #e6efeb;
}

.other-profile-link > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.other-profile-link small {
  margin-bottom: 5px;
  color: #788691;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.other-profile-link strong {
  color: #4f8f72;
  font: 800 14px/1.3 Manrope, sans-serif;
}

@media (max-width: 900px) {
  .standalone-profiles .profile-photo { height: 230px; }
  .profile-simulator-layout { grid-template-columns: 1fr; gap: 45px; }
  .request-layout { grid-template-columns: 1fr; gap: 50px; }
  .other-profiles > .product-container > div:last-child { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .standalone-profiles .profile-card { min-height: 370px; }
  .standalone-profiles .profile-photo { height: 225px; }
  .profile-visual .visual-icon.profile-image-slice { width: 175px; height: 175px; }
  .profile-return-fab { left: 14px; right: 14px; bottom: 14px; justify-content: center; }
  .profile-simulator { padding: 70px 0 105px; }
  .profile-simulator-card { padding: 27px 20px; }
  .profile-form { padding: 32px 22px; border-radius: 19px; }
  .form-profile-badge { padding: 15px; }
  .form-profile-badge > span.profile-image-slice { width: 54px; height: 54px; flex-basis: 54px; }
  .profile-form button { height: 58px; font-size: 14px; }
  .other-profiles { padding: 68px 0 105px; }
  .other-profile-link { min-height: 104px; }
}
