@import url("/conversor/crypto/compra-venta.css");

:root {
  --color-fondo-tarjeta: #ffffff;
  --color-borde-tarjeta: #eaeaea;
  --color-fondo-recibo: #fbf9f5;
  --color-texto-principal: #1a1a1a;
  --color-texto-secundario: #666666;
  --color-marca-suave: #fdf7ec;
  /* ... tus otras variables de marca anteriores ... */
}

/* Colores cuando el modo oscuro está activo */
body.dark {
  --color-fondo-tarjeta: #1a1a1a;       /* Fondo oscuro */
  --color-borde-tarjeta: #333333;       /* Bordes grises oscuros */
  --color-fondo-recibo: #242424;        /* Cuadro de cantidad oscuro */
  --color-texto-principal: #ffffff;     /* Texto blanco */
  --color-texto-secundario: #a0a0a0;    /* Texto gris claro */
  --color-marca-suave: #3a3220;         /* Fondo oscuro para etiquetas */
}
/* ===========================
   Exchange Card Style (Estilo Wise)
=========================== */

.provider-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  margin-bottom: 20px;
  transition: 0.3s;
  gap: 20px;
}

/* Borde al pasar el ratón por la tarjeta */
.provider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border-color: var(--color-marca-principal);
}

/* Color de las estrellas */
.provider-rating {
  font-size: 0.9rem;
  color: var(--color-marca-principal); 
  letter-spacing: 2px;
}

/* Checkmarks (los "✓" de las características) */
.check {
  color: var(--color-marca-principal);
  font-weight: bold;
}

/* Badge normal (ej. "Rápido") */
.provider-badge {
  background: var(--color-marca-suave);
  color: var(--color-marca-hover);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Badge destacado (ej. "Mejor opción") */
.provider-badge.best {
  background: var(--color-marca-principal);
  color: var(--color-texto-boton);
}

/* Botón de acción principal */
.cta {
  background: var(--color-marca-principal);
  color: var(--color-texto-boton);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 24px;
  display: inline-block;
  transition: 0.2s;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.cta:hover {
  background: var(--color-marca-hover);
}

/* Columna Izquierda: Logo, Título y Cuadro de Recibo */
.provider-left {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1.2;
  max-width: 380px;
}

.provider-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exchange-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.exchange-name {
  font-weight: 700;
  font-size: 1.3rem;
  color: #1a1a1a;
}

.provider-rating {
  font-size: 0.9rem;
  color: #f2b01e; /* Color de las estrellas */
  letter-spacing: 2px;
}

.provider-result-box {
  background: #fbf9f5; /* Color beige claro estilo Wise */
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-label {
  font-size: 0.85rem;
  color: #666;
}

.result-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1c1c1c;
  margin: 2px 0;
}

.commission {
  font-size: 0.85rem;
  color: #666;
}

/* Columna Central: Características */
.provider-middle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  flex: 1;
}

.feature-item {
  font-size: 0.95rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.check {
  color: #c9a24d; /* Checkmark dorado */
  font-weight: bold;
}

/* Columna Derecha: Badges y Botones */
.provider-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  min-width: 220px;
}

.provider-badge {
  background: #f4eee1;
  color: #8c6d23;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.provider-badge.best {
  background: #d4b572; /* Dorado más fuerte para la mejor opción */
  color: #1a1a1a;
}

.cta {
  background: #c9a24d;
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 24px;
  display: inline-block;
  transition: 0.2s;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.cta:hover {
  background: #b89240;
}

.savings-text {
  font-size: 0.8rem;
  color: #666;
  text-align: right;
  margin-top: -4px;
}

/* Responsive */
@media(max-width: 850px){
  .provider-card {
    flex-direction: column;
    align-items: stretch;
  }
  .provider-left {
    max-width: 100%;
  }
  .provider-right {
    align-items: stretch;
    margin-top: 10px;
  }
  .savings-text {
    text-align: center;
  }
  .provider-badge {
    align-self: center;
  }
}





/* Animación de brillo */
@keyframes shimmer {
  0% { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}

.skeleton {
  background: #f6f7f8;
  background-image: linear-gradient(90deg, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
  background-repeat: no-repeat;
  background-size: 800px 104px;
  display: inline-block;
  position: relative;
  animation: shimmer 1.2s infinite linear;
  border-radius: 4px;
}

/* Adaptación al modo oscuro */
.dark .skeleton {
  background: #2a2a2a;
  background-image: linear-gradient(90deg, #2a2a2a 0%, #333 20%, #2a2a2a 40%, #2a2a2a 100%);
}

/* Formas específicas del esqueleto */
.skeleton-card {
  height: 180px;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 16px;
}



/* Contenedor principal */
.swap-grid {
  display: flex;
  align-items: flex-end; /* Alinea los selectores con el botón */
  gap: 0; /* El espacio lo dará el div del botón */
  margin-bottom: 25px;
  width: 100%;
}

/* Los bloques de selección (Izquierda y Derecha) */
.transfer-block {
  flex: 1; /* Se reparten el espacio restante */
  display: flex;
  flex-direction: column;
}

/* Estilo de los selectores (ahora con bordes completos) */
.transfer-block select {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--color-borde-tarjeta);
  background: var(--color-fondo-tarjeta);
  color: var(--color-texto-principal);
  font-size: 1rem;
  border-radius: 12px; /* Bordes redondeados en todos los lados */
}

/* === EL DIV CENTRAL (El que separa los cuadros) === */
.transfer-swap {
  flex: 0 0 65px; /* Crea un hueco fijo de 65px entre los dos cuadros */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 52px; /* Misma altura que el select para centrar el botón */
}

/* El botón circular */
#swapBtn {
  width: 42px;
  height: 42px;
  background: var(--color-fondo-tarjeta);
  border: 1px solid var(--color-borde-tarjeta);
  color: var(--color-marca-principal);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  z-index: 5;
  padding: 0;
  margin: 0;
}

#swapBtn:hover {
  border-color: var(--color-marca-principal);
  transform: scale(1.1) rotate(180deg);
  background: var(--color-marca-suave);
}