@font-face {
  font-family: 'Inter';
  src: url('../font/Inter/Inter-VariableFont_opsz\,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../font/Inter/Inter-Italic-VariableFont_opsz\,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --darker-blue-150: #0084a1; 
  --darker-blue: #00afd7; 
  --lighter-blue: #65d5ff;
  --lighter-blue-50: hsla(196, 100%, 70%, 0.5);
  --lighter-blue-25: hsl(196deg 100% 70% / 25%);
  --very-light-lightblue: rgb(101 213 255 / 5%);
  /* --approval-success: hsl(160 70% 50%); */
  --approval-success: #059669;
  --approval-success-light: hsl(160 70% 50% / 0.2);
  --approval-foreground: hsl(0 0% 100%);

  --error-strong: #dc2828;
  --error-background: #dc28281a;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main {
  flex: 1;
}

#services {
  display: flex;
  justify-content: center;
  padding-top: 4em;
  width: 100%;
  align-items: flex-start;
}

.hidden {
  display: none!important; 
}

#services {
	font-family: 'Inter';
}

/* ══════════════════════════════════════════════════
  RESETS
══════════════════════════════════════════════════ */
a {
  text-decoration: none!important;
}

a:hover {
  color: white;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  padding: 0;
  font-family: 'Inter'!important;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center; /* 👈 distancia al borde */
  background-size: 16px;
  padding: 8px 44px 8px 12px; /* espacio para la flecha */
}

/* ══════════════════════════════════════════════════
  SHORTS
══════════════════════════════════════════════════ */
.text__center {
  text-align: center!important;
}

/* ══════════════════════════════════════════════════
  FIELD
══════════════════════════════════════════════════ */

.credisur__field {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  font-size: .85rem;
}

.credisur__field > span {
  color: #6b7280;
  font-weight: bold;
  padding-left: 0.25em;
}

.credisur__field__control {
  position: relative;
}

.credisur__field__control .credisur__field__icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #6b7280;
  pointer-events: none;
}

.credisur__field__control .credisur__field__link {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  color: var(--darker-blue);
}

.credisur__field__control input,
.credisur__field__control select {
  width: 100%;
  padding: 0.65rem 0.65rem .65rem 2.4rem;
  border-radius: .5rem;
  border: 1px solid #e5e7eb;
  font-weight: 400;
  transition:
}

.credisur__field__control input:focus-visible {
  outline: solid 2px var(--lighter-blue);
  border: none;
}

/* ══════════════════════════════════════════════════
  ICONOS
══════════════════════════════════════════════════ */

.approval-icon {
  position: relative;
}

.approval-icon--sm {
  width: 48px;
  height: 48px;
}

.approval-icon--md {
  width: 80px;
  height: 80px;
}

.approval-icon--lg {
  width: 112px;
  height: 112px;
}

.approval-icon__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--approval-success-light);
  animation: ring-fade 300ms ease-out 100ms both;
}

.approval-icon__circle {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background-color: var(--approval-success);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: circle-scale 350ms cubic-bezier(0.34, 1.56, 0.64, 1) 150ms both;
}

.approval-icon__tick {
  width: 50%;
  height: 50%;
  color: var(--approval-foreground);
}

.approval-icon__tick-path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: tick-draw 400ms ease-out 300ms forwards;
}

.error-icon {
	--approval-success: #ffaa53;
  --approval-success-light: #ff9e2f6e;
}

/* ══════════════════════════════════════════════════
   NAVBAR — PILLS Y LINKS DE ESCRITORIO
══════════════════════════════════════════════════ */

.navbar__links__desktop {
  display: flex;
  align-items: center;
  gap: 0.25em;
}   

#navbar__right__group {
  display: flex;
  align-items: center;
  gap: 0.25em;
  margin-left: auto;
}

.nav__link__home {
  font-size: 0.92em;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  padding: 0.4em 0.75em;
  border-radius: 2em;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav__link__home:hover {
  color: var(--darker-blue);
  background: rgb(101 213 255 / 10%);
}

.nav__pill__outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.92em;
  font-weight: 700;
  color: var(--darker-blue-150);
  text-decoration: none;
  padding: 0.42em 1.1em;
  border-radius: 2em;
  /* border: 1.5px solid var(--darker-blue); */
  background: transparent;
  transition: all 0.2s;
  white-space: nowrap;
  margin-left: 0.4em;
}
.nav__pill__outline:hover {
  background: var(--darker-blue);
  color: #fff;
}

.nav__pill__green {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.92em;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 0.42em 1.1em;
  border-radius: 2em;
  background: var(--approval-success);
  border: 1.5px solid var(--approval-success);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav__pill__green:hover { 
  opacity: 0.88; 
  filter: contrast(110%);
  color: whitesmoke;
}

.nav__pill__primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.92em;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 0.42em 1.1em;
  border-radius: 2em;
  background: linear-gradient(90deg, var(--darker-blue), var(--lighter-blue));
  border: 1px solid var(--lighter-blue);
  transition: transform 0.2s;
  white-space: nowrap;
  margin-left: 0.4em;
}
.nav__pill__primary:hover { transform: scale(1.035); color: #fff; }

.nav__pill__gray {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.92em;
  font-weight: 700;
  color: rgb(80, 80, 80);
  text-decoration: none;
  padding: 0.42em 1.1em;
  border-radius: 2em;
  background: linear-gradient(90deg, #d9e3e6, #d1d2d3);
  border: 1px solid lightgray;
  transition: transform 0.2s;
  white-space: nowrap;
}
.nav__pill__gray:hover { transform: scale(1.035); }

@media (max-width: 56em) {
  #navbar__right__group .nav__link__home,
  #navbar__right__group .nav__pill__outline,
  #navbar__right__group .nav__pill__green,
  #navbar__right__group .nav__pill__primary,
  #navbar__right__group .nav__pill__gray { display: none; }
}

/* ══════════════════════════════════════════════════
  BUTTONS
══════════════════════════════════════════════════ */

.btn__info__credisur {
	color: white;
  font-weight: bold;
	background: linear-gradient(90deg, var(--darker-blue), var(--lighter-blue));
	display: inline-block;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: 1px solid var(--lighter-blue)!important;
  padding: .5rem .75rem;
  font-size: 1rem;
  border-radius: .5rem!important;
  transition: 0.25s transform;
}

.btn__gris__credisur {
	color: rgb(143, 143, 143);
  font-weight: bold;
	background: linear-gradient(90deg, #d9e3e6, #d1d2d3);
	display: inline-block;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: 1px solid lightgray!important;
  padding: .5rem .75rem;
  font-size: 1rem;
  border-radius: .5rem!important;
  transition: 0.25s transform;
}

.btn__white__credisur {
	color: black!important;
  font-weight: bold;
	background: white;
	display: inline-block;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: 1px solid lightgray!important;
  padding: .5rem .75rem;
  font-size: 1rem;
  border-radius: .5rem!important;
  transition: 0.25s transform;
}

.btn__gris__credisur:hover,
.btn__info__credisur:hover,
.btn__white__credisur:hover {
  transform: scale(1.035);
  color: white;
}

.btn__gris__credisur:disabled,
.btn__info__credisur:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn__gris__credisur:active,
.btn__info__credisur:active {
  animation: reduce 1s ease;
}

.li__select {
  border: solid 1px #0fb8df;
  background: #0fb8df4d;
  padding: 0.2rem;
  padding-left: 0.8em;
  margin-bottom: 0.2rem;
  border-radius: 0.25em;
  font-weight: 600;
  list-style: none;
  text-transform: capitalize;
}


/* ══════════════════════════════════════════════════
  POP UP --> Se usa con openClosePopUp() de components.js
══════════════════════════════════════════════════ */

.pop__up__bg {
  position: fixed;
  inset: 0;
  display: grid;
  justify-items: center;
  align-items: center;
  background-color: rgb(211 211 211 / 50%);
  z-index: 2;
}

.pop__up {
  font-family: 'Inter';
  position: relative;
  padding: 0.8em;
  border-radius: 1em;
  background-color: white;
  box-shadow: 0 1px 6px 0 #20212447;
  max-width: 26em;
  /* margin-inline: 1em; */
}

.pop__up::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1em;
  background: linear-gradient(90deg, var(--darker-blue), var(--lighter-blue));
  border-top-left-radius: 1em;
  border-top-right-radius: 1em;
}

.pop__up .close__pop {
  position: absolute;
  top: 1.5em;
  right: 1.25em;
  font-size: 1em;
  width: 1.5em;
  height: 1.5em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  border-radius: 40em;
  background: lightgray;
  color: white;
  align-items: center;
  justify-content: center;
}

.pop__up .pop__lucide {
  margin-top: 1.5em;
  display: grid;
  justify-self: center;
  justify-items: center;
  margin-inline: auto;
}

.pop__up .lucide__pop {
  width: 3em;
  height: 3em;
  border-radius: 50em;
  background: var(--lighter-blue-50);
  padding: 0.35em;
  color: var(--darker-blue);
  border: solid 1px var(--darker-blue);
  outline: solid 1px var(--lighter-blue-50);
  outline-offset: 0.35em;
}

.pop__up .btn__info__credisur {
  max-width: none;
  cursor: pointer;
  width: auto;
}

.pop__up .lucide__alert {
  width: 2.25em;
  height: 2.25em;
  color: orange;
  background: #fbf099;
  border-radius: 0.5em;
  padding: 0.25em;
  margin-top: 0.5em;
}

.pop__up .alert__icon {
  background: #fbf099;
  color: orange;
  border: solid 1px orange;
  outline: solid 1px #fbf099;
}

.pop__up .icon__container {
  display: grid;
  justify-items: center;
  margin-top: 0.5em;
}

.pop__up .btn__grid {
  display: grid;
  margin-top: 1em;
}

.closing__in {
  margin-bottom: -1.25em;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Contenido interno */
.msg__info {
  background-color: white;
  padding: 0.5em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  text-align: center;
}

.msg__info .msg__title {
  padding: 0.3em 0.5em;
  border-radius: 0.25rem;
  width: fit-content;
  margin: auto;
  margin-bottom: 0.5em;
  font-weight: bold;
  font-size: 1.25em;
}

.msg__info .msg__subtitle {
  padding-inline: 1em;
}

.msg__info .msg__grid {
  display: grid;
  gap: 0.5em;
}

.msg__info .msg__div {
  display: flex;
  align-items: center;
  background: #e7f1fd;
  text-align: left;
  border-radius: 8px;
  padding: 1em;
}

.msg__info .msg__li {
  background: #e7f1fd;
  text-align: left;
  border-radius: 8px;
  padding: 1em;
}

.buttons-row-credisur {
  background: red;
  padding: 1em;
  color: yellow;
}

@media (max-width: 650px) {
  .dropdown-credisur-content {
    margin-left: -70px!important;
  }
}

/* ══════════════════════════════════════════════════
    KEYFRAMES
══════════════════════════════════════════════════ */
@keyframes reduce {
  0% {
    transform: scale(0.99);
  }
}

@keyframes grow {
  0% {
    transform: scale(1.15);
  }
}

@keyframes mini-grow {
  0% {
    transform: scale(1.01);
  }
}

@keyframes ring-fade {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes circle-scale {
  from {
    opacity: 0;
    transform: scale(0);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tick-draw {
  from {
    stroke-dashoffset: 30;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}