/* ============================================
   ESTILOS PARA CONVERSOR DE MONEDA
============================================ */

/* Contenedor del precio */
.price-tag {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
  font-family: var(--fuente-base);
}

/* "Från" / "From" / "Desde" */
.price-tag .from {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--grafito);
}

/* Monto principal */
.price-tag .amount {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--azul-logo);
  line-height: 1;
}

/* Moneda (kr) */
.price-tag .currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--azul-logo);
}

/* Conversión (≈ $850) */
.price-tag .conversion {
  font-size: 0.85rem;
  color: var(--grafito);
  opacity: 0.8;
  font-weight: 400;
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* ============================================
   SELECTOR DE MONEDA
============================================ */

#currency-selector-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  padding: 1rem;
}

.currency-selector {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: var(--fuente-base);
  color: var(--azul-logo);
  background-color: var(--blanco);
  border: 2px solid var(--azul-columbia);
  border-radius: var(--radius-default, 12px);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2346678f' d='M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.currency-selector:hover {
  border-color: var(--azul-logo);
  box-shadow: 0 4px 12px rgba(70, 103, 143, 0.2);
}

.currency-selector:focus {
  outline: none;
  border-color: var(--rosa-brillante);
  box-shadow: 0 0 0 3px rgba(255, 91, 115, 0.2);
}

.currency-selector option {
  padding: 0.5rem;
  font-size: 1rem;
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 768px) {
  .price-tag {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .price-tag .conversion {
    margin-left: 0;
    text-align: center;
  }
  
  .currency-selector {
    width: 100%;
    max-width: 300px;
  }
}

/* ============================================
   ANIMACIÓN DE CARGA
============================================ */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.price-tag.loading .amount {
  animation: pulse 1.5s ease-in-out infinite;
}