/*
    CÓDIGOS DE COLOR
    Amarillo: #F3A106
    Verde: #389001
    Rojo: #FF0000
    Gris claro (cuadros de texto fijos): #F5F5F5
    Gris oscuro (imputs, texto de imputs, botones deshabilitados, texto en gris): #B3B3B3
*/

:root {
  --color-principal: #f3a106;
  --color-verde: #389001;
  --color-rojo: #ff0000;
  --color-gris-claro: #f5f5f5;
  --color-gris-oscuro: #b3b3b3;
  --color-azul-mercado-pago: #009ee3;
}

@font-face {
  font-family: "Gilroy";
  src: url("/resources/fonts/Gilroy-Bold.woff2") format("woff2"),
    url("/resources/fonts/Gilroy-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("/resources/fonts/Gilroy-Regular.woff2") format("woff2"),
    url("/resources/fonts/Gilroy-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Gilroy", sans-serif;
}

.form-control {
  border: 1px solid var(--color-gris-claro);
  color: black;
  border-radius: 0.5rem;
}

.custom-control-input:checked ~ .custom-control-label::before {
  color: #fff;
  border-color: var(--color-principal);
  background-color: var(--color-principal);
}

/* Ocultar la flecha nativa */
.custom-select-icon {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none !important;
  padding-right: 2.5rem; /* Espacio para la flecha custom */
}

.custom-select-wrapper {
  width: 100%;
}

/* Estilo para el ícono personalizado */
.custom-select-wrapper .custom-select-arrow {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 14px;
  color: var(--color-gris-oscuro);
}

.text-principal {
  color: var(--color-principal);
}

.bg-verde {
  background-color: var(--color-verde) !important;
  border: 1px solid var(--color-verde) !important;
}

.bg-azul {
  background-color: var(--color-azul-mercado-pago) !important;
  border: 1px solid var(--color-azul-mercado) !important;
}

.banner {
  width: 100%;
  height: 10rem;
  background-image: url(../img/despacha/movil/banner-principal.webp);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.banner-metodo-pago {
  width: 100%;
  height: 10rem;
  background-image: url(../img/despacha/movil/banner-metodo-de-pago.webp);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.banner-pedido-confirmado {
  width: 100%;
  height: 10rem;
  background-image: url(../img/despacha/movil/banner-ultimo-paso.webp);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.titulo {
  font-size: 1.5rem;
  color: var(--color-principal);
  text-align: center;
  text-transform: uppercase;
  border-top: 2px solid var(--color-principal);
  border-bottom: 2px solid var(--color-principal);
  padding-top: 10px;
  padding-bottom: 7px;
  font-weight: bold;
}

.titulo-sin-top {
  border-top: none;
  padding-top: 0;
}

.origenes {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.origenes label {
  font-size: 1.2rem;
  color: var(--color-principal);
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
}

.prohibido {
  text-align: center;
  font-size: 1.1rem;
}

.enlace-prohibido {
  color: var(--color-principal);
  text-decoration: none;
}

.enlace-prohibido:hover {
  color: var(--color-principal);
  text-decoration: none;
}

.icon-prohibido {
  width: 25px;
  height: 25px;
  fill: var(--color-principal);
}

.parametro {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.icon-parametro {
  width: 40px;
  height: 40px;
  fill: var(--color-principal);
  margin: 0;
  padding: 0;
}

.input-group-text {
  background: none !important;
  border: none !important;
}

.btn-accion {
  background-color: var(--color-principal);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.3rem;
  border: 1px solid var(--color-principal);
  width: 100%;
}

hr {
  border: 1px solid var(--color-principal);
  width: 100%;
}

.contenedor-informacion {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--color-gris-claro);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  width: 100%;
}

.contenedor-informacion p {
  margin-bottom: 0;
}

.contenedor-informacion .texto-informacion {
  font-weight: bold;
}

.icon-ubicacion {
  width: 25px;
  height: 25px;
  fill: var(--color-principal);
}

.texto-costo-tradicional {
  font-size: 1.1rem;
  color: var(--color-gris-oscuro);
  font-weight: bold;
}

#costo_envio_tradicional {
  text-decoration: line-through;
}

.texto-costo-despacha {
  font-size: 1.6rem;
  font-weight: bold;
}

.texto-asegurado {
  font-size: 0.8rem;
}

.texto-informacion-pago {
  font-size: 1.1rem;
  text-align: center;
}

.contenedor-efectivo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 2px solid var(--color-principal);
  padding: 1rem 1.5rem;
  font-size: 1.2rem;
  background-color: var(--color-gris-claro);
  border-radius: 1rem;
}
.contenedor-efectivo .descripcion {
  display: flex;
  gap: 1rem;
}

.contenedor-efectivo .descripcion h4 {
  text-align: right;
}

.contenedor-efectivo .descripcion h4,
.contenedor-efectivo .descripcion p {
  width: 50%;
}

.lista-pago-efectivo {
  font-size: 0.9rem;
  margin-bottom: 2rem;
  list-style: none;
}

.lista-pago-efectivo li::before {
  content: "\2022";
  color: var(--color-principal);
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.list-group-item:last-child {
  border-bottom-right-radius: 1.25rem;
  border-bottom-left-radius: 1.25rem;
}

.list-group-item:first-child {
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
}

.list-group-item {
  border: 1px solid var(--color-gris-oscuro);
}

.metodos-pagos p {
  margin-bottom: 0;
  font-size: 1rem;
}

.contenedor-pedido-confirmado,
.contenedor-pedido-fallido {
  margin-bottom: 2rem;
}

.contenedor-pedido-confirmado p,
.contenedor-pedido-fallido p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  text-align: center;
}

.contenedor-pedido-confirmado a
.contenedor-pedido-fallido a {
  color: var(--color-principal);
  text-decoration: none;
  font-weight: bold;
}

.contenedor-pedido-confirmado h3 {
  font-size: 1.5rem;
  color: var(--color-principal);
  text-align: center;
}

.pedido-confirmado,
.pedido-fallido {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  background-color: var(--color-gris-claro);
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
}

.pedido-confirmado h2 {
  font-size: 1.7rem;
  font-weight: bold;
  color: var(--color-verde);
}

.pedido-confirmado .icon-confirmado {
  width: 50px;
  height: 50px;
  fill: var(--color-verde);
}

.pedido-fallido h2 {
  font-size: 1.7rem;
  font-weight: bold;
  color: var(--color-rojo);
}

.pedido-fallido .icon-fallido {
  width: 50px;
  height: 50px;
  fill: var(--color-rojo);
}

.contenedor-acuse {
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-principal);
}

.contenedor-acuse h3 {
  font-size: 1.5rem;
  font-weight: bold;
}

.contenedor-acuse p {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.contenedor-paquete {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0rem;
  border-bottom: 2px solid var(--color-principal);
}

.contenedor-paquete img {
  width: 6rem;
  height: 6rem;
}

.contenedor-paquete h3 {
  font-size: 1.5rem;
  font-weight: bold;
}

.contenedor-paquete p {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.contenedor-despacha {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
}

.contenedor-despacha h1 {
  font-size: 1.7rem;
  font-weight: bold;
  color: var(--color-principal);
}

.contenedor-despacha p {
  font-size: 1.2rem;
  margin-bottom: 0;
  text-align: center;
}

.contenedor-despacha img {
  width: 15rem;
  height: 15rem;
}

/*
    DIALOGS
*/
.dialog::backdrop {
  background: linear-gradient(#000d, #000a);
}

.dialog {
  border-radius: 2.5rem;
  border: 0;
  padding: 2rem 2rem;
}

.dialog::-webkit-scrollbar {
  display: none;
}

#dialog-seleccionar-opcion-cotizador .icono-dialog svg,
#dialog-no-puede-enviar .icono-dialog svg,
#dialog-bases-y-condiciones .icono-dialog svg {
  width: 4rem;
  height: 4rem;
  fill: var(--color-principal);
}

#dialog-seleccionar-opcion-cotizador .icono-dialog,
#dialog-no-puede-enviar .icono-dialog,
#dialog-bases-y-condiciones .icono-dialog {
  display: flex;
  justify-content: center;
}

.dialog ul {
  font-size: 0.9rem;
  margin-bottom: 0;
  margin-bottom: 2rem;
  list-style: none;
}

.dialog li::before {
  content: "\2022";
  color: var(--color-principal);
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.dialog .form-check-label {
  font-size: 1rem;
  font-weight: bold;
}

.contenedor-tipo-cotizador {
  display: flex;
  flex-direction: column;
  padding: 0 2rem;
}

.contenedor-tipo-cotizador label {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.btn-accion.disabled,
.btn-accion:disabled {
  opacity: 0.65;
}

/*
    LOADING
*/

#loading {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  background-color: rgba(34, 46, 60, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.spinner {
  position: relative;
  width: 15.7px;
  height: 15.7px;
}

.spinner div {
  animation: spinner-4t3wzl 1.875s infinite backwards;
  background-color: #ffffff;
  border-radius: 50%;
  height: 100%;
  position: absolute;
  width: 100%;
}

.spinner div:nth-child(1) {
  animation-delay: 0.15s;
  background-color: rgba(255, 255, 255, 0.9);
}

.spinner div:nth-child(2) {
  animation-delay: 0.3s;
  background-color: rgba(255, 255, 255, 0.8);
}

.spinner div:nth-child(3) {
  animation-delay: 0.45s;
  background-color: rgba(255, 255, 255, 0.7);
}

.spinner div:nth-child(4) {
  animation-delay: 0.6s;
  background-color: rgba(255, 255, 255, 0.6);
}

.spinner div:nth-child(5) {
  animation-delay: 0.75s;
  background-color: rgba(255, 255, 255, 0.5);
}

@keyframes spinner-4t3wzl {
  0% {
    transform: rotate(0deg) translateY(-200%);
  }

  60%,
  100% {
    transform: rotate(360deg) translateY(-200%);
  }
}

/*
    DROPDOWN PERSONALIZADO
*/
.dropdown-wrapper {
  width: 100%;
  position: relative;
  user-select: none;
}

.dropdown-trigger {
  padding: 1rem;
  border: 1px solid var(--color-gris-oscuro);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-wrapper.active .dropdown-trigger {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dropdown-trigger span {
  color: #000;
}

.dropdown-trigger svg {
  width: 20px;
  height: 20px;
  fill: var(--color-gris-oscuro);
}

.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid var(--color-gris-oscuro);
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: #fff;
  z-index: 1000;
  display: none;
}

.dropdown-options .option {
  padding: 1rem;
  border-top: 1px solid var(--color-gris-oscuro);
  cursor: pointer;
}

.dropdown-options .option:hover {
  background-color: #f3f3f3;
}

.dropdown-options .option strong {
  display: block;
  color: #000;
  font-weight: bold;
}

.dropdown-options .option small {
  display: block;
  color: #555;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.dropdown-wrapper.active .dropdown-options {
  display: block;
}

.dropdown-wrapper.active .dropdown-trigger span {
  color: #000;
}

.dropdown-wrapper.active .dropdown-trigger svg {
  transform: rotate(180deg);
  fill: #000;
}

/*
    MEDIAS QUERYS
*/
@media (min-width: 375px) {
  .banner,
  .banner-metodo-pago,
  .banner-pedido-confirmado {
    height: 11rem;
  }
}

@media (min-width: 425px) {
  .banner,
  .banner-metodo-pago,
  .banner-pedido-confirmado {
    height: 12rem;
  }

  .icon-parametro {
    width: 45px;
    height: 45px;
    fill: var(--color-principal);
  }

  .contenedor-efectivo .descripcion h4 {
    width: 65%;
  }

  .contenedor-efectivo .descripcion p {
    width: 30%;
  }

  .contenedor-paquete img {
    width: 10rem;
    height: 10rem;
  }

  .contenedor-despacha img {
    width: 20rem;
    height: 20rem;
  }
}

@media (min-width: 768px) {
  .banner,
  .banner-metodo-pago,
  .banner-pedido-confirmado {
    height: 22rem;
  }

  .contenedor-tipo-cotizador {
    padding: 0 3rem;
  }

  .titulo {
    font-size: 1.75rem;
  }

  .contenedor-efectivo {
    padding: 2rem 2.5rem;
  }

  .contenedor-efectivo .descripcion h4 {
    width: 50%;
  }

  .contenedor-efectivo .descripcion p {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .banner {
    background-image: url(../img/despacha/estandar/portadas-cotizador.webp);
    height: 29rem;
  }

  .banner-metodo-pago {
    background-image: url(../img/despacha/estandar/portadas-metodo-de-pago.webp);
    height: 29rem;
  }

  .banner-pedido-confirmado {
    background-image: url(../img/despacha/estandar/portadas-ultimo-paso.webp);
    height: 29rem;
  }

  .icon-parametro {
    width: 60px;
    height: 60px;
  }

  .btn-accion {
    width: auto;
    padding: 0.5rem 5rem 0.3rem 5rem;
  }

  #contenedorPagoEfectivo .btn-accion {
    padding: 0.5rem 2rem;
  }

  .contenedor-paquete {
    flex-direction: column;
    text-align: center;
    padding: 1rem 2rem;
    border-bottom: 0;
  }

  .contenedor-acuse {
    border-bottom: 0;
  }

  .dialog{
    max-width: 50rem;
  }
}

@media (min-width: 1200px) {
  .banner,
  .banner-metodo-pago,
  .banner-pedido-confirmado {
    height: 34rem;
  }

  .contenedor-pedido-confirmado {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .pedido-confirmado {
    width: 70%;
    padding: 1.5rem 2rem;
  }

  .contenedor-paquete {
    padding: 3rem 2rem;
  }
}

@media (min-width: 1300px) {
  .banner,
  .banner-metodo-pago,
  .banner-pedido-confirmado {
    height: 36rem;
  }
}

@media (min-width: 1440px) {
  .banner,
  .banner-metodo-pago,
  .banner-pedido-confirmado {
    height: 40rem;
  }
}
