/* Botones */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.3rem;
  font-weight: 500;
  height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
     font-family: 'Neue Haas', system-ui, sans-serif;
}

.boton-primario {
  background-color: var(--texto-principal);
  color: var(--texto-primario);
}

.boton-primario-naranja {
  background-color: var(--naranja);
  color: var(--texto-principal);
  padding: 21px 10px;
}

.boton-primario-naranja:hover {
  background-color: #000000;
  border: solid 2px var(--naranja);
  color: var(--fondo);
}

.boton-contorno {
  background-color: transparent;
  color: var(--texto-principal);
  border-color: var(--borde);
}

.boton-contorno:hover {
  background-color: var(--mutado);
}

.boton-fantasma {
  background-color: transparent;
  color: var(--texto-principal);
}

.boton-destructivo {
  background-color: var(--destructivo);
  color: var(--texto-destructivo);
}

.boton-destructivo:hover {
  background-color: #dc2626;
}

.boton-icono {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.boton-ancho-completo {
  width: 100%;
  font-size: .7rem;
  font-weight: 500;
}

.boton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Iconos */
.icono {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.icono-mr-2 {
  margin-right: 0.5rem;
}

/* Tarjetas */
.tarjeta {
  border-radius: 5px;
  background-color: var(--tarjeta);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.tarjeta:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.tarjeta-cabecera {
  width: 100%;
  height: 200px;
}

.tarjeta-cabecera img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tarjeta-contenido {
  flex: 1;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
}

.tarjeta-titulo {
  font-size: 1rem;
  font-weight: 450;
  margin: 0 0 0.5rem 0;
}

.tarjeta-descripcion {
  font-size: 0.875rem;
  color: var(--texto-mutado);
  flex-grow: 1;
  margin: 10px 0px;
}

.tarjeta-precio {
  font-size: 1.125rem;
  font-weight: 200;
  color: var(--primario);
  margin-top: auto;
}

.tarjeta-pie {
  padding: 1rem;
  padding-top: 0;
}

.boton-agregar-carrito {
  font-size: .65rem;
  padding: 0.5rem;
  height: fit-content;
  border-radius: 2px;
}

/* Formularios */
.grupo-formulario {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

label {
  font-weight: 500;
  font-size: 0.875rem;
  color: #374151;
}

input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--borde);
  border-radius: 0.375rem;
  background-color: var(--fondo);
  color: var(--texto-principal);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primario);
  box-shadow: 0 0 0 3px rgba(28, 25, 23, 0.2);
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
}

/* Modales */
.modal {
  display: none;
  position: fixed;
  z-index: 100000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  background-color: var(--fondo);
  padding: 1.5rem;
  border-radius: var(--radio-borde);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 95%;
  max-width: 500px;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  margin: 1rem;
}

.modal-contenido-grande {
  max-width: 650px;
}

.modal-contenido-pequeno {
  max-width: 425px;
}

.modal-encabezado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--borde);
  margin-bottom: 0.5rem;
}

.modal-titulo {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.modal-cuerpo {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.boton-cerrar {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--texto-mutado);
  padding: 0;
  line-height: 1;
}

.modal-pie {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--borde);
  margin-top: 1rem;
  gap: 0.5rem;
}

/* Spinner */
.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Notificaciones */
.contenedor-notificaciones {
  position: fixed;
  top: 2rem;
  right: 35%;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notificacion {
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: var(--texto-principal);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.notificacion.mostrar {
  opacity: 1;
  transform: translateX(0);
}

.notificacion.error {
  background-color: var(--destructivo);
}

.notificacion.info {
  background-color: #000000;
}

/* Media Queries Componentes */
@media (max-width: 639px) {
  .modal-contenido {
    width: calc(100% - .5rem);
    margin: 0;
    padding: 1rem;
  }

  .tarjeta-pie {
    padding: 10px;
  }

  .tarjeta-precio {
    margin: 0px;
  }
}